@pipe0/base 0.5.2 β†’ 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -64,17 +64,25 @@ 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:Gt,exampleValue:Kt}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:sr,exampleValue:cr}},post_text:{label:`Post text`,description:`Raw text content of a social media post`,format:`text`,type:`string`,jsonMeta:null},post_id:{label:`Post ID`,description:`Stable identifier of the post (its LinkedIn share URN)`,format:`text`,type:`string`,jsonMeta:null},amplemarket_person_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Person match object as returned by Amplemarket`,jsonMeta:{zodSchema:mt,exampleValue:ht}},amplemarket_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Company match object as returned by Amplemarket`,jsonMeta:{zodSchema:ft,exampleValue:pt}},companyenrich_matches:{label:`CompanyEnrich matches`,type:`json`,format:`json_object`,description:`CompanyEnrich response list.`,jsonMeta:{zodSchema:r.array(Ft),exampleValue:[It]}},logo_url:{label:`Logo URL`,type:`string`,format:`text`,description:`Company or organization logo`,jsonMeta:null},logodev_describe_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Get company logos & brand data`,jsonMeta:{exampleValue:hn,zodSchema:mn}},mobile_number:{label:`Mobile`,type:`string`,description:`Mobile telephone number of a person.`,jsonMeta:null,format:`phone`},company_social_url:{label:`Company Social URL`,type:`string`,description:`Social Media URL for a given company (e.g. LinkedIn profile URL).`,jsonMeta:null,format:`profile_url`},professional_profile:{label:`Professional profile (LinkedIn)`,type:`json`,description:`A standardized format for returning LinkedIn profile data.`,jsonMeta:{zodSchema:ar,exampleValue:or},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},Ar={company_description:{},cleaned_company_name:{},company_industry:{},icypeas_person_match:{getStaticWidgets(e){if(!e)return{};let t=e;return{display_value:{label:`${t.firstname} ${t.lastname} profile`}}}},icypeas_company_match:{getStaticWidgets(e){return e?{display_value:{label:`${e.name} profile`}}:{}}},person_profile_match:{},company_region:{getStaticWidgets:e=>{let t={},n=Er(e);return n&&(t.location_indicator={emoji:n}),t}},location_hint:{},estimated_revenue:{},founded_year:{},technology_list:{},spending_trend:{getStaticWidgets(e){let t=e;return{display_value:{label:`${t>3?`πŸ”ΌπŸ”ΌπŸ”Ό`:t>1?`πŸ”ΌπŸ”Ό`:t>0?`πŸ”Ό`:t<-3?`πŸ”½πŸ”½πŸ”½`:t<-1?`πŸ”½πŸ”½`:t<0?`πŸ”½`:``} ${Math.round(t*100)}%`}}}},technology_match_builtwith:{getStaticWidgets(e){return{display_value:{label:`Technology profile`}}}},number_of_social_followers:{},email:{},personal_email:{},alternate_personal_emails:{},company_news_summary:{},work_email:{},headcount:{},company_website_url:{},company_domain:{getStaticWidgets(e){return typeof e==`string`?{entity_logo:{entity:e,image_url:at(e)}}:{}}},company_name:{},first_name:{},addressee_name:{},address_line_1:{},address_line_2:{},job_title:{getStaticWidgets(e){return typeof e==`string`?{emoji:{value:er(e)}}:{}}},job_description:{},profile_headline:{},address_city:{},address_country:{},address_state:{},zip_code:{},last_name:{},is_work_email:{},name:{getStaticWidgets(e){return typeof e==`string`?{avatar:{image_url:``,name:e}}:{}}},ip_address:{},skills:{},avatar_url:{},string_input:{},domain:{},url_input:{},slugified:{},http_response_status:{},http_response_body:{},http_response_headers:{},luma_id:{},registered_at:{},luma_event_guest_match:{getStaticWidgets(){return{display_value:{label:`Guest`}}}},estimated_salary:{},scrape_list_response:{},clado_person_match:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} profile`}}:{}}},clado_person_match_v2:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} profile`}}:{}}},company_social_url:{getStaticWidgets(e){let t=Or(e);return{display_value:t?{label:t}:void 0}}},crustdata_profile_match_score:{},is_email_valid:{},amplemarket_person_match:{getStaticWidgets(){return{display_value:{label:`Person match`}}}},amplemarket_company_match:{getStaticWidgets(){return{display_value:{label:`Company match`}}}},profile_url:{getStaticWidgets(e){let t=Or(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=Or(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},developer_profile_url:{},alternative_developer_profile_urls:{},profile_posts:{getStaticWidgets(){return{display_value:{label:`LinkedIn posts`}}}},profile:{getStaticWidgets(e){return e?{display_value:{label:`${e.name||`Person`} LinkedIn profile`}}:{}}},clado_person_profile:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} match`}}:{}}},email_subject:{},message:{},slack_message_success:{getStaticWidgets(e){return{display_value:{label:e?`βœ… Sent`:`❌ Not sent`}}}},resend_email_success:{getStaticWidgets(e){return{display_value:{label:e?`βœ… Sent`:`❌ Not sent`}}}},email_body:{},mobile:{},landline:{},phone:{},funding_history:{},funding_total_usd:{},leadmagic_competitor_list:{getStaticWidgets(e){return e?{display_value:{label:e.map(e=>e.company_name).slice(0,4).join(`, `)}}:{}}},leadmagic_acquisition_history:{getStaticWidgets(e){return e?{display_value:{label:e.map(e=>e.company_name).slice(0,4).join(`, `)}}:{}}},leadmagic_company_news_list:{getStaticWidgets(e){return e?{display_value:{label:`${e.length} news sources`}}:{}}},merge_result:{},website_markdown:{getStaticWidgets(e){return e?{display_value:{label:`πŸ“ Markdown result`}}:{}}},urls:{},website_html:{},website_url:{},website_links:{},mapped_links:{},firecrawl_extract_result:{getStaticWidgets(){return{display_value:{label:`Extract result`}}}},parallel_extract_result:{getStaticWidgets(){return{display_value:{label:`Extract result`}}}},exa_match_evaluation:{getStaticWidgets(){return{display_value:{label:`Exa match`}}}},email_validation_status:{},million_validation_match:{getStaticWidgets(){return{display_value:{label:`Validation result`}}}},post_list_string:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:it.linkedin}}}},crustdata_post_list:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:it.linkedin}}}},crustdata_company_match:{},crustdata_company_identity_matches:{},crustdata_person_match:{},parallel_person_entity_match:{},parallel_company_entity_match:{},resend_contact_id:{},lemlist_lead_id:{},lemlist_enrollment_result:{getStaticWidgets(e){return e?{display_value:{label:`Enrolled`}}:{}}},sheet_record_id:{},sheet_record_ids:{},sheet_rows_found_count:{},sheet_found_rows:{getStaticWidgets(e){if(!e)return{};let t=e;return{display_value:{label:`${t.length} row${t.length===1?``:`s`}`}}}},sheet_found_row_ids:{},db_rows_found_count:{},db_found_rows:{getStaticWidgets(e){if(!e)return{};let t=e;return{display_value:{label:`${t.length} row${t.length===1?``:`s`}`}}}},companyenrich_match:{},companyenrich_matches:{},input_objects:{},role_finder_match:{},sheet:{},logodev_describe_match:{getStaticWidgets(){return{display_value:{label:`Match`}}}},logo_url:{getStaticWidgets(){return{display_value:{label:`Logo URL`}}}},post_match:{},post_text:{},post_id:{},mobile_number:{},created_sheet:{},professional_profile:{},professional_profile_url:{},crustdata_companyenrich_match:{},template_output:{},zerobounce_validation_match:{},zerobounce_validation_status:{getStaticWidgets(e){return{display_value:{label:e===`valid`?`βœ… Valid`:e===`invalid`?`❌ Invalid`:e===`catch-all`?`⚾️ Catch All`:e===`abuse`?`⚠️ Abuse`:e===`do_not_mail`?`❌❌ Do not mail`:e===`spamtrap`?`❌❌❌ Spam Trap`:e}}}},gmail_email_success:{getStaticWidgets(e){return{display_value:{label:e?`βœ… Sent`:`❌ Not sent`}}}}};function g(e){return{...kr[e],name:e}}function jr(e,t){if(Nr(e,t))return Ar[e]}function Mr(e){return e in kr}function Nr(e,t){return e in kr?kr[e].format===t:!1}function Pr(e,t,n){if(!t.added_by||t.added_by.ref===`input`||t.added_by.pipe_index==null)throw Error(`Tried to find output field info for field not generated by pipe: ${e}, added_by: ${t.added_by}`);let r=n.orderedPipeInstances[t.added_by.pipe_index];if(!r)throw Error(`Unable to find pipe instance at index ${t.added_by.pipe_index} for resolved field ${e}`);let i=Object.entries(r.getOutputFields()).find(([t,n])=>n.resolvedName===e);if(!i)throw Error(`Resolved pipe output field '${e}' not found for pipe ${t.added_by.ref}`);let[a,o]=i;return{fieldName:a,...o}}const Fr=r.enum(`company_description.cleaned_company_name.company_industry.company_region.location_hint.estimated_revenue.founded_year.technology_list.spending_trend.technology_match_builtwith.number_of_social_followers.email.personal_email.alternate_personal_emails.company_news_summary.work_email.headcount.company_website_url.company_domain.company_name.first_name.addressee_name.address_line_1.address_line_2.job_title.job_description.profile_headline.address_city.address_country.address_state.zip_code.last_name.is_work_email.companyenrich_match.companyenrich_matches.name.ip_address.skills.avatar_url.estimated_salary.is_email_valid.profile_url.developer_profile_url.alternative_developer_profile_urls.company_profile_url.profile_posts.clado_person_match.clado_person_match_v2.icypeas_person_match.icypeas_company_match.clado_person_profile.resend_email_success.email_body.email_subject.profile.mobile.landline.phone.message.slack_message_success.funding_history.funding_total_usd.template_output.gmail_email_success.zerobounce_validation_status.zerobounce_validation_match.leadmagic_competitor_list.leadmagic_acquisition_history.leadmagic_company_news_list.merge_result.mapped_links.website_markdown.website_html.website_url.urls.website_links.firecrawl_extract_result.parallel_extract_result.exa_match_evaluation.email_validation_status.million_validation_match.scrape_list_response.resend_contact_id.sheet_record_id.sheet_record_ids.sheet_rows_found_count.sheet_found_rows.sheet_found_row_ids.db_rows_found_count.db_found_rows.input_objects.role_finder_match.logodev_describe_match.logo_url.crustdata_company_match.crustdata_companyenrich_match.crustdata_company_identity_matches.crustdata_person_match.person_profile_match.parallel_person_entity_match.parallel_company_entity_match.post_list_string.crustdata_post_list.crustdata_profile_match_score.amplemarket_person_match.amplemarket_company_match.created_sheet.sheet.string_input.domain.url_input.slugified.http_response_status.http_response_body.http_response_headers.luma_id.registered_at.luma_event_guest_match.post_match.post_text.post_id.lemlist_lead_id.lemlist_enrollment_result.professional_profile_url.professional_profile.company_social_url.mobile_number`.split(`.`)),Ir=r.enum(`pipe0.findymail.crustdata.hunter.zerobounce.millionverifier.googlemaps.gemini.anthropic.leadmagic.mixrank.builtwith.perplexity.serper.icypeas.prospeo.clado.resend.slack.gmail.firecrawl.exa.openai.companyenrich.logodev.amplemarket.parallel.luma.postgres.databricks.lemlist`.split(`.`)),Lr=r.enum([`production`,`sandbox`]),Rr=`prompt:run@1.company:newssummary:website@1.company:newssummary:domain@1.company:techstack:builtwith@1.company:techstack:builtwith@2.company:websiteurl:email@1.company:domain:workemail@1.company:funding:leadmagic@1.company:funding:leadmagic@2.people:workemail:waterfall@1.person:workemail:waterfall@1.people:email:iswork@1.email:iswork@1.people:name:split@1.person:name:split@1.person:name:join@1.people:validate:email:zerobounce@1.people:email:validate:zerobounce@2.email:validate:zerobounce@1.people:mobilenumber:workemail:waterfall@1.company:overview@1.company:overview@2.company:overview@3.json:extract:multi@1.email:write@1.message:write@1.email:send:resend@1.email:send:gmail@1.message:send:slack@1.template:fill@1.contact:create:resend@1.lead:enroll:lemlist@1.people:match:role:waterfall@1.person:match:role:waterfall@1.person:identity:amplemarket@1.company:identity@2.company:identity@3.company:identity:crustdata@1.person:match:amplemarket@1.people:phone:profile:waterfall@1.person:mobile:profileurl:waterfall@1.people:personalemail:profile:waterfall@1.person:personalemail:profileurl:waterfall@1.people:profile:waterfall@1.person:profile:waterfall@1.people:profileurl:email:waterfall@1.person:profileurl:email:waterfall@1.person:profileurl:name@1.people:email:validate:zerobounce@1.person:email:validate:millionverifier@1.people:phone:workemail:waterfall@1.person:mobile:workemail:waterfall@1.fields:merge@1.field:slugify@1.field:domainify@1.website:scrape:firecrawl@1.website:scrapelist:firecrawl@1.website:extract:firecrawl@1.website:extract:parallel@1.website:maplinks:firecrawl@1.row:append:sheet@1.row:expandappend:sheet@1.rows:find:sheet@1.rows:find:postgres@1.rows:find:databricks@1.company:lookalikes:companyenrich@1.company:lookalikes:companyenrich@2.company:match:logodev@1.company:match:logodev@2.person:posts:content:crustdata@1.company:match:crustdata@1.company:match:crustdata@2.people:profile:workemail:crustdata@1.person:profile:workemail:crustdata@1.people:workemail:profileurl:waterfall@1.person:workemail:profileurl:waterfall@1.people:identity:email:waterfall@1.person:identity:email:waterfall@1.person:devprofileurl:profileurl:waterfall@1.http:request@1.company:identity@1.people:professionalprofile:waterfall@1.people:professionalprofileurl:name@1.people:professionalprofileurl:email:waterfall@1.people:mobilenumber:professionalprofile:waterfall@1`.split(`.`),zr=r.enum(Rr),Br=[`string`,`number`,`boolean`,`json`,`unknown`],Vr=r.enum(Br),Hr=r.union([r.number(),r.string()]),Ur=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),Wr=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),Gr=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),Kr=r.object({type:r.literal(`static`).optional()}),qr=Kr.extend({image_url:r.url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),Jr=Kr.extend({emoji:r.string().describe(`Country flag emoji.`)}),Yr=Kr.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),Xr=Kr.extend({attempted_providers:r.array(r.object({provider:Ir})),available_providers:r.array(Ir),successful_provider:Ir.optional()}),Zr=r.enum([`linkedin`,`job`]),Qr=Kr.extend({key:Zr}).optional(),$r=Kr.extend({result_status:r.enum([`completed`,`failed`])}).optional(),ei=Kr.extend({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),ti=Kr.extend({numeric:r.int().min(1).max(5)}).optional(),ni=Kr.extend({value:r.string().min(1)}).optional(),ri=r.object({display_value:Kr.extend({label:r.string().optional()}),entity_logo:qr.optional(),location_indicator:Jr.optional(),avatar:Yr.optional(),waterfall:Xr.optional(),icon:Qr,action_summary:$r,sources:ei,confidence:ti,emoji:ni}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),ii=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),ai=r.object({code:r.string(),summary:r.string(),message:r.string()}),oi=[`json_object`,`json_list`,`json_list_string`,`url`,`website_url`,`profile_url`,`email`,`datetime`,`currency`,`date`,`phone`,`markdown`,`text`,`int`,`decimal`,`address_line_1`,`zip_code`,`percent`],si=r.enum(oi);si.nullable();const ci=r.object({type:Vr,label:r.string().nullable().optional(),format:si.nullable().optional(),json_metadata:Gr.nullable().optional()}),li=r.record(r.string(),ci),ui=r.enum([...Rr,`input`]).nullable(),di=r.enum([...Rr,`input`,`system`]).nullable(),fi=r.object({ref:ui,config_hash:r.string().nullable()}),pi=r.object({ref:di,environment:Lr.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),mi=r.object({value:Wr,status:Ur,type:Vr,reason:ai.nullable(),claimed_by:fi,resolved_by:pi.nullable(),widgets:ri.optional(),format:si.nullable()}),hi=r.object({value:Wr,status:Ur,reason:ai.nullable().optional(),type:Vr.optional(),format:si.nullable().optional(),claimed_by:fi.optional(),resolved_by:pi.nullable().optional(),widgets:ri.optional()}),gi=r.record(r.string(),r.union([Wr,hi])).openapi(`PipesInput`),_i=r.object({id:Hr,fields:r.record(Hr,mi)}),vi=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),yi=r.object({type:Vr,label:r.string(),added_by:r.object({ref:r.union([zr,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:si.nullable(),is_primary_output:r.boolean()}),bi=r.record(r.string(),yi),xi=r.object({field_name:r.string().min(1),extractions:r.array(r.object({path:r.string().min(1),output_field:r.object({name:r.string().min(1),format:si.nullable().default(null),label:r.string().optional(),type:Vr})})).min(1).check(e=>{let t=new Set;Object.values(e.value).forEach(n=>{t.has(n.output_field.name)?e.issues.push({code:`custom`,message:`Output field names must be unique. The name ${n.output_field.name} exists more than once in your config.`,input:e.value}):t.add(n.output_field.name)})})}),Si=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`,`matches`]),Ci={eq:`equals`,neq:`not equals`,gt:`greater than`,gte:`greater than or equal`,lt:`less than`,lte:`less than or equal`,contains:`contains`,matches:`matches regex`},wi=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`,`matches`],Ti=[`eq`,`neq`],Ei=r.object({type:r.literal(`vault`),connection:r.string().refine(e=>{let t=e.split(`_`)[0];return t!=null&&Ir.safeParse(t).success},{message:`Invalid vault connection string: expected the full provider-prefixed value (e.g. "slack_my-workspace") where the segment before the first "_" is a known provider name. Copy the string exactly as the vault lists it β€” never strip the prefix.`})}),Di=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(Ei)}).nullable().optional(),Oi=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(Ei).min(1,{message:`Provide your own credentials to use this object.`})},{error:`Provide your own credentials to use this object.`}),ki=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(r.object({type:r.literal(`vault`),connection:r.string()})).max(0,{message:`This pipe does not support custom connectors.`})}).optional().nullable(),Ai=r.enum(wi),ji=r.enum(Ti),Mi=r.enum([`failed`,`no_result`,`completed`,`skipped`]),Ni=r.object({property:r.literal(`value`).describe(`Compare the actual field value. Use operators: eq, neq, gt, gte, lt, lte, contains, matches.`),field_name:r.string().min(1,{message:`Provide a target field for the condition.`}).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:Ai.describe(`Comparison operator: "eq", "neq", "gt", "gte", "lt", "lte", "contains", "matches" (regex).`),value:r.union([r.number(),r.string(),r.boolean(),r.null()]).describe(`The value to compare the field against. Must be a primitive (string, number, boolean, or null).`).check(e=>{(e.value===void 0||e.value===``)&&e.issues.push({code:`custom`,input:e.value,message:`Provide a value to compare against.`}),typeof e.value==`object`&&e.value!==null&&e.issues.push({code:`custom`,input:e.value,message:`Conditions can only be defined on primitive fields. To apply a condition on a JSON value, expand it into an object first.`})})}),Pi=r.object({property:r.literal(`status`).describe(`Compare the field resolution status instead of its value. Use operators: eq, neq.`),field_name:r.string().min(1).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:ji.describe(`Status comparison operator: "eq" or "neq".`),value:Mi.describe(`Field status to compare against: "completed", "no_result", "failed", or "skipped".`)}),Fi=r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(r.discriminatedUnion(`property`,[Ni,Pi])).min(1).describe(`Array of conditions to evaluate. Each condition checks either a field value or its resolution status.`)}).describe(`Condition block. All conditions are combined with the chosen logic (and/or).`),Ii=r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(Ni).min(1).describe(`Array of value conditions to evaluate.`)}).describe(`Condition block. All conditions are combined with the chosen logic (and/or).`),Li=r.object({action:r.enum([`run`]).default(`run`).describe(`What to do when conditions match. Defaults to "run" (run the pipe only on matching records). Reserved for future extension.`),when:Fi}).describe(`Run-if gate for a pipe. When set, the pipe only runs on records matching the conditions. Example: { "when": { "logic": "and", "conditions": [{ "property": "status", "field_name": "work_email", "operator": "neq", "value": "no_result" }] } }`),Ri={pipe0:{name:`pipe0`,label:`pipe0`,description:`A framework for lead and company data enrichment.`,url:`https://pipe0.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/52f2d955-d9f3-4139-2c13-63cfd568ed00/icon`,background:{light:`#F4F4F5`,dark:`#1F1F23`},oAuthConfig:null},findymail:{name:`findymail`,label:`FindyMail`,description:`Find verified emails.`,url:`https://findymail.com`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,oAuthConfig:null,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/9e8ce38d-a49d-42a3-4317-506f7fbec900/icon`,background:{light:`#D4F4DD`,dark:`#143822`}},hunter:{name:`hunter`,label:`HunterMail`,description:`Find email addresses and send cold emails`,url:`https://hunter.io`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,oAuthConfig:null,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/a612ed1c-d5cf-421a-23c5-3cf74f506100/icon`,background:{light:`#FFE4D4`,dark:`#3D1F0C`}},zerobounce:{name:`zerobounce`,label:`ZeroBounce`,description:`Email validation tools and email list cleaning`,url:`https://www.zerobounce.net`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/db8e9e41-0bda-4f2c-de42-cf8ce61ee500/icon`,background:{light:`#D6F5E5`,dark:`#0E3823`},oAuthConfig:null},googlemaps:{name:`googlemaps`,label:`Google Maps`,description:`A map service by Google`,url:`https://www.google.com/maps`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1796d3c1-dfb0-4555-b2bf-0ca4930e8f00/icon`,background:{light:`#D8E8FF`,dark:`#0E2447`},oAuthConfig:null},leadmagic:{name:`leadmagic`,label:`LeadMagic`,description:`Enrichment provider`,url:`https://leadmagic.io`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/508cb23a-47d4-40ee-1645-b5a8bf994c00/icon`,background:{light:`#EBD8FF`,dark:`#2A1247`},oAuthConfig:null},builtwith:{name:`builtwith`,label:`BuiltWith`,description:`BuiltWith tracks over 2500 eCommerce technologies across over 26 million eCommerce websites.`,url:`https://builtwith.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e675cb72-6dc2-43c8-972e-0fc9c3b73c00/icon`,background:{light:`#FFF0D4`,dark:`#3D2806`},oAuthConfig:null},perplexity:{name:`perplexity`,label:`Perplexity`,description:`AI search company`,public:!1,url:`https://perplexity.com`,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/d17d3ba0-5c9e-43d8-17ee-3e4a70404e00/icon`,background:{light:`#D3F1EE`,dark:`#0E3633`},oAuthConfig:null},serper:{name:`serper`,label:`Serper`,description:`The World's Fastest & Cheapest Google Search API`,url:`https://serper.dev/`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/04e720cd-56ea-44d3-3a31-cfc516c6f800/icon`,background:{light:`#D8E6FF`,dark:`#0C2554`},oAuthConfig:null},icypeas:{name:`icypeas`,label:`Icypeas`,description:`A popular data catalog`,url:`https://www.icypeas.com/`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/d635119e-08ae-40cb-78bc-34161d422400/icon`,background:{light:`#D8EFFF`,dark:`#0C2A4A`},oAuthConfig:null},prospeo:{name:`prospeo`,label:`Prospeo`,description:`Find anyone’s contact data.`,url:`https://prospeo.io/`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/95032a9f-932b-4898-ff0d-45d49390d100/icon`,background:{light:`#D6E2FF`,dark:`#0C2052`},oAuthConfig:null},gemini:{name:`gemini`,label:`Gemini`,description:`Google's AI service`,url:`https://gemini.google.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/417de5dd-a8a8-4210-d7dc-6f40e54ece00/icon`,background:{light:`#DDE7FF`,dark:`#1A2C5C`},oAuthConfig:null},anthropic:{name:`anthropic`,label:`Anthropic`,description:`Anthropic's Claude AI models`,url:`https://www.anthropic.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8f2b7ff3-12a6-4c55-31fd-460b9f461300/icon`,background:{light:`#F0EEE6`,dark:`#2B2A26`},oAuthConfig:null},slack:{name:`slack`,label:`Slack`,description:`A modern business chat application.`,url:`https://slack.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/676e823c-c926-4b0b-465c-121b9d1c3300/icon`,background:{light:`#F1E0FF`,dark:`#2A0E44`},oAuthConfig:{}},companyenrich:{name:`companyenrich`,label:`CompanyEnrich`,description:`A company enrichment service.`,url:`https://companyenrich.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e80b3a16-7b36-4733-bcbe-46f471d33100/icon`,background:{light:`#DCEEFF`,dark:`#0E2C4A`},oAuthConfig:{}},mixrank:{name:`mixrank`,label:`MixRank`,description:`Ultra-high-frequency technographic and people data for your data teams.`,url:`https://mixrank.com/`,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,oAuthConfig:{},public:!0,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/a29f3095-b3f9-4b12-d21b-1c506ccd7200/icon`,background:{light:`#FFE5D4`,dark:`#3A1D08`}},clado:{name:`clado`,label:`Clado`,description:`A data provider deploying 10^5 AI agents to find contact information.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,url:`https://clado.ai`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fdf3d2d0-70be-45c3-2fe5-a8c5cac55a00/icon`,background:{light:`#E8E8EC`,dark:`#1A1A1F`},oAuthConfig:null},gmail:{name:`gmail`,label:`Gmail`,description:`Google's email service`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token_bundle`,url:`https://mail.google.com`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8da8ab6b-7f7e-4c42-6abf-212ea537db00/icon`,background:{light:`#FFD8D8`,dark:`#45100F`},oAuthConfig:{}},resend:{name:`resend`,label:`Resend`,description:`An email platform built for developers.`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,url:`https://clado.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7c88f71b-8472-40f4-4bec-0e77eac30400/icon`,background:{light:`#EDEDEE`,dark:`#1A1A1C`},oAuthConfig:null},firecrawl:{name:`firecrawl`,label:`Firecrawl`,description:`Firecrawl is an API service that takes a URL, crawls it, and converts it into clean markdown. Firecrawl crawls all accessible subpages and gives you clean markdown for each. No sitemap required.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.firecrawl.dev`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/5c318569-7bf4-4276-a3f2-1f25530f7f00/icon`,background:{light:`#FFE5CC`,dark:`#3A1A05`},oAuthConfig:null},exa:{name:`exa`,label:`Exa`,description:`Exa is a search engine built for AI.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://exa.ai/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8ae69780-4506-4952-a90e-02e70b06af00/icon`,background:{light:`#D8DCFF`,dark:`#14154A`},oAuthConfig:null},openai:{name:`openai`,label:`OpenAI`,description:`Foundational AI company based out of San Francisco.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://openai.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7ac79c3a-bccb-4ed4-d6e5-7b300b2fd300/icon`,background:{light:`#D8EFE4`,dark:`#0C2A1C`},oAuthConfig:null},millionverifier:{name:`millionverifier`,label:`MillionVerifier`,description:`E-Mail validation service.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.millionverifier.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7a8bd9cb-efeb-492e-3f4c-311c9492b800/icon`,background:{light:`#D8F0DB`,dark:`#0E3215`},oAuthConfig:null},logodev:{name:`logodev`,label:`Logo.dev`,description:`Every company logo, one simple API.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.logo.dev/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1defa51b-5c01-4034-1030-60f68aa46400/icon`,background:{light:`#F4ECD4`,dark:`#2C2406`},oAuthConfig:null},crustdata:{name:`crustdata`,label:`Crustdata`,description:`Real-time company & people data`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://crustdata.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fa05be24-d174-40f0-69c2-4fdb43c6be00/icon`,background:{light:`#FFE2D2`,dark:`#3C1A08`},oAuthConfig:null},amplemarket:{name:`amplemarket`,label:`Amplemarket`,description:`Sales data platform`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.amplemarket.com`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/adecf16b-4187-409b-d77f-16fc07fc6100/icon`,background:{light:`#FFD8E1`,dark:`#45102A`},oAuthConfig:null},parallel:{name:`parallel`,label:`Parallel`,description:`Agentic web search & research APIs purpose-built for AI agents.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://parallel.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/13d4ae54-9400-4577-8fbf-c96021fb0000/icon`,background:{light:`#E0E5FF`,dark:`#0F1A3D`},oAuthConfig:null},luma:{name:`luma`,label:`Luma`,description:`Delightful events, calendars, and ticketing for communities.`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,url:`https://lu.ma`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/ed6cf16b-e69e-4f90-7718-85e4600fff00/icon`,background:{light:`#FFF0E6`,dark:`#3A1F0F`},oAuthConfig:null},postgres:{name:`postgres`,label:`PostgreSQL`,description:`Connect your own PostgreSQL database and query it read-only.`,url:`https://www.postgresql.org`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`connection_string`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/eb8b2802-8280-45c3-ee08-a24aad6a0a00/icon`,background:{light:`#DCE9F5`,dark:`#0B2A45`},oAuthConfig:null},databricks:{name:`databricks`,label:`Databricks`,description:`Query your Databricks SQL warehouse read-only via a service principal.`,url:`https://www.databricks.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`databricks`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/07b73e49-e1fa-445b-865e-2b7dc2641700/icon`,background:{light:`#F5E6DC`,dark:`#3A1B0B`},oAuthConfig:null},lemlist:{name:`lemlist`,label:`lemlist`,description:`Sales engagement & cold outreach platform.`,url:`https://lemlist.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/5d2b25c5-86a7-4eea-9416-fcca77cc7000/icon`,background:{light:`#E6F0FF`,dark:`#0E1F3D`},oAuthConfig:null}},zi=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],Bi=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],Vi=/^[A-Z][A-Z0-9_]*$/,Hi=/^[A-Z][A-Z0-9_]*$/,Ui=/^[a-zA-Z_][a-zA-Z0-9_]*$/,Wi=`SECRETS`,Gi=`CONSTANTS`,Ki=new Set(zi),qi=new Set(Bi),Ji=e=>`{${e}}`;var Yi=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!Vi.test(t))throw Error(`Secret key "${t}" must be uppercase letters, digits, and underscores (e.g. SECRETS.API_KEY).`);if(!(t in this.values))throw Error(`Missing secret: SECRETS.${t}`);return this.values[t]}},Xi=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!Hi.test(t))throw Error(`Constant key "${t}" must be uppercase letters, digits, and underscores (e.g. CONSTANTS.PROMO).`);if(!(t in this.values))throw Error(`Missing constant: CONSTANTS.${t}`);return this.values[t]}};function Zi(e){let t=e.trim();if(!t)throw Error(`Empty {% output %} tag β€” expected at least a name (e.g. {% output rec, type: "string", description: "..." %}).`);let n=t.match(/^([a-zA-Z_][a-zA-Z0-9_]*)\s*(?:,|$)/);if(!n||!n[1])throw Error(`Invalid {% output %} tag β€” expected a name as the first argument, got: ${t}`);let r=n[1];if(!Ui.test(r))throw Error(`Invalid {% output %} tag name "${r}" β€” must start with a letter or underscore and contain only letters, digits, and underscores.`);let i=t.slice(n[0].length).trim(),a={},o=/([a-zA-Z_][a-zA-Z0-9_]*)\s*:\s*(?:"((?:\\.|[^"\\])*)"|'((?:\\.|[^'\\])*)'|(true|false))\s*(?:,|$)/g,s=0,c;for(;(c=o.exec(i))!==null;){s=c.index+c[0].length;let e=c[1],t=c[2]??c[3]??c[4];c[4]===void 0?a[e]=t:a[e]=t===`true`}if(i&&s<i.length)throw Error(`Invalid {% output %} tag β€” could not parse arguments after "${i.slice(s)}". Expected key: "value" pairs.`);let l=a.type;if(typeof l!=`string`||!l)throw Error(`{% output ${r} %} tag is missing required "type" argument (e.g. type: "string").`);let u=a.description;if(typeof u!=`string`||!u)throw Error(`{% output ${r} %} tag is missing required "description" argument (e.g. description: "What this means.").`);return{name:r,type:l,description:u,required:typeof a.required==`boolean`?a.required:!0,format:typeof a.format==`string`?a.format:null,schemaRef:typeof a.schema==`string`?a.schema:null}}function Qi(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=Zi(e.args);this.outputDecl=n},render(e,t){let n=this.outputDecl;if(!(e.globals&&e.globals.__outputAllowed))throw Error(`{% output %} is not allowed in this template (referenced output "${n.name}").`);t.write(Ji(n.name))}});for(let t of Object.keys(e.tags))Ki.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))qi.has(t)||delete e.filters[t];return e}let $i=null;function ea(){return $i||=Qi(),$i}async function ta(e,t,n={}){let r=ea(),i=n.renderLimitMs??250,a={...t.inputs??{},[Wi]:new Yi(t.secrets??{}),[Gi]:new Xi(t.constants??{})},o={globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i},s=await Promise.race([r.parseAndRender(e,a,o),new Promise((e,t)=>setTimeout(()=>t(Error(`Liquid render exceeded ${i}ms.`)),i))]);return String(s)}function na(e,t,n={}){let r=ea(),i=n.renderLimitMs??250,a={...t.inputs??{},[Wi]:new Yi(t.secrets??{}),[Gi]:new Xi(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function ra(e){return ea().parse(e)}function ia(e){let t=ea().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};aa(t,n);let r={};for(let[e,t]of n.inputs)r[e]={required:t.unguardedRefs>0};return{inputs:r,secrets:[...n.secrets],constants:[...n.constants],outputs:n.outputs}}function aa(e,t){for(let n of e)oa(n,t)}function oa(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){da(n.value,t,!1);return}if(typeof n.name==`string`){sa(n,t);return}}function sa(e,t){switch(e.name){case`for`:ca(e,t);return;case`if`:case`unless`:la(e,t);return;case`output`:ua(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function ca(e,t){if(t.forDepth+=1,t.forDepth>3)throw Error(`Liquid template exceeds maximum nested {% for %} depth of 3.`);e.collection!==void 0&&e.collection!==null&&fa(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),aa(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),aa(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function la(e,t){let n=Array.isArray(e.branches)?e.branches:[];e.name;for(let e=0;e<n.length;e++){let r=n[e],i=r.value,a=null;e===0&&i&&typeof i==`object`&&(a=ha(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&da(i,t,!1),aa(r.templates,t),a&&t.guardStack.pop()}aa(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function ua(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=Zi(t))}if(!n)throw Error(`Internal: {% output %} tag missing parsed declaration.`);t.outputs.push({name:n.name,type:n.type,description:n.description,required:n.required,format:n.format,schemaRef:n.schemaRef??void 0})}function da(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)ga(n)&&ma(n,t,i);for(let n of e.filters)for(let e of n.args)pa(e,t)}function fa(e,t,n){ga(e)&&ma(e,t,n)}function pa(e,t){if(Array.isArray(e)){let n=e[1];n&&fa(n,t,!1)}else fa(e,t,!1)}function ma(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!_a(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!_a(e))throw Error(`Invalid SECRETS reference β€” expected SECRETS.KEY (got ${ba(r)}).`);let n=e.content;if(!Vi.test(n))throw Error(`Invalid SECRETS key "${n}" β€” must be uppercase letters, digits, and underscores (e.g. SECRETS.API_KEY).`);t.secrets.add(n);return}if(a===`CONSTANTS`){let e=r[1];if(!e||!_a(e))throw Error(`Invalid CONSTANTS reference β€” expected CONSTANTS.KEY (got ${ba(r)}).`);let n=e.content;if(!Hi.test(n))throw Error(`Invalid CONSTANTS key "${n}" β€” must be uppercase letters, digits, and underscores (e.g. CONSTANTS.PROMO).`);t.constants.add(n);return}let o=n||t.guardStack.includes(a),s=t.inputs.get(a)??{unguardedRefs:0,guardedRefs:0};o?s.guardedRefs+=1:s.unguardedRefs+=1,t.inputs.set(a,s)}function ha(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&ga(t)&&t.props.length===1){let e=t.props[0];if(e&&_a(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&ga(t)&&t.props.length===1){let e=t.props[0];if(e&&_a(e)&&va(n)&&ya(r,[`==`,`!=`]))return e.content}}return null}function ga(e){return e.kind===o.PropertyAccess}function _a(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function va(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function ya(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function ba(e){let t=[];for(let n of e)n&&_a(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}function xa(e){let t=e.split(`_`),n=t[0],r=t.slice(1).join(`_`);if(!n)throw Error(`connection string of invalid format`);try{return{provider:Ir.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function Sa(e){return`${e.provider}_${e.id}`}const Ca=new s;function wa(e){return Ca.validateSchema(e)}function Ta(e){let t=!1;return c(e,{},e=>{e.type&&[`string`,`number`,`boolean`,`integer`,`null`].includes(e.type)&&(t=!0),e.type===`object`&&e.properties&&Object.keys(e.properties).length>0&&(t=!0),e.type===`array`&&e.items&&(t=!0)}),!t}function Ea(e){try{return JSON.parse(e)}catch{}return JSON.parse(ja(e))}function Da(e){try{return Ea(e)}catch{return}}const Oa=/[A-Za-z_$]/,ka=/[\w$]/,Aa=/\s/;function ja(e){let t=``,n=0,r=e.length;for(;n<r;){let i=e[n];if(i===`"`||i===`'`){let a=i,o=``;for(n++;n<r&&e[n]!==a;){if(e[n]===`\\`){o+=`\\${e[n+1]??``}`,n+=2;continue}o+=e[n],n++}n++,t+=JSON.stringify(Ma(o));continue}if(Oa.test(i)){let i=n;for(;i<r&&ka.test(e[i]);)i++;let a=e.slice(n,i),o=i;for(;o<r&&Aa.test(e[o]);)o++;t+=e[o]===`:`?JSON.stringify(a):a,n=i;continue}if(i===`,`){let t=n+1;for(;t<r&&Aa.test(e[t]);)t++;if(e[t]===`}`||e[t]===`]`){n++;continue}}t+=i,n++}return t}function Ma(e){let t=``;for(let n=0;n<e.length;n++){if(e[n]!==`\\`){t+=e[n];continue}let r=e[++n];switch(r){case`n`:t+=`
68
- `;break;case`t`:t+=` `;break;case`r`:t+=`\r`;break;case`b`:t+=`\b`;break;case`f`:t+=`\f`;break;case`v`:t+=`\v`;break;case`0`:t+=`\0`;break;case`u`:{let r=e.slice(n+1,n+5);/^[0-9a-fA-F]{4}$/.test(r)?(t+=String.fromCharCode(Number.parseInt(r,16)),n+=4):t+=`u`;break}default:t+=r??``;break}}return t}const Na=(e,t=`Add a ${e} connection to enable this field`)=>n=>(n.connector?.connections??[]).some(t=>t?.connection?.startsWith(`${e}_`))?{disabled:!1}:{disabled:!0,message:t},Pa=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},Fa=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},Ia=(...e)=>t=>{let n={disabled:!0,message:`No condition matched`};for(let r of e){let e=r(t);if(!e.disabled)return e;n=e}return n},La=[`gemini-flash-latest`,`openai-gpt-latest`,`openai-gpt-mini-latest`,`anthropic-opus-latest`],Ra={"gemini-flash-latest":{provider:`gemini`,rateLimitOperation:`gemini_35_flash`,rateLimitRatio:1,allowManagedConnection:!0,billingMode:`always`},"openai-gpt-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5`,rateLimitRatio:1,allowManagedConnection:!0,billingMode:`always`},"openai-gpt-mini-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5-mini`,rateLimitRatio:1,allowManagedConnection:!0,billingMode:`always`},"anthropic-opus-latest":{provider:`anthropic`,rateLimitOperation:`anthropic_opus`,rateLimitRatio:1,allowManagedConnection:!0,billingMode:`always`}},za=.03,Ba=.3,Va=100,Ha=100,Ua={"gemini-flash-latest":{inputPer1M:1.5,outputPer1M:9},"openai-gpt-latest":{inputPer1M:5,outputPer1M:30},"openai-gpt-mini-latest":{inputPer1M:.75,outputPer1M:4.5},"anthropic-opus-latest":{inputPer1M:5,outputPer1M:25}};function Wa(e){let t=Ra[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function Ga(e){let t=Ra[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function Ka(){let e=new Set;for(let t of La)e.add(Ra[t].provider);return[...e]}function qa(e){return Object.keys(e).some(e=>La.some(t=>e.endsWith(`-in-${t}`)||e.endsWith(`-out-${t}`)))}function Ja(e,t){return e/1e6*(1+Ba)/za*t}function Ya(e){let t=Ua[e];if(!t)throw Error(`Unknown AI model: ${e}`);return{in:Ja(t.inputPer1M,100),out:Ja(t.outputPer1M,100)}}function Xa(e,t){let n=Math.round(Ba*100);return`Billed per 100 ${e} tokens at ${Number(t.toPrecision(4))} credits/block (managed keys include a ${n}% margin over provider cost).`}function Za(e){let t={};for(let n of La){let r=Ra[n],i=Ya(n);t[`${e}-in-${n}`]={credits:{default:i.in},allowManagedConnection:!0,provider:r.provider,mode:r.billingMode,note:Xa(`input`,i.in)},t[`${e}-out-${n}`]={credits:{default:i.out},allowManagedConnection:!0,provider:r.provider,mode:r.billingMode,note:Xa(`output`,i.out)}}return t}function Qa(e,t){return{input:`${t}-in-${e}`,output:`${t}-out-${e}`}}function $a(e,t){let n=Qa(t.model,t.prefix);return[{billableOperation:n.input,quantity:e.count*Math.ceil(t.inputTokens/100)},{billableOperation:n.output,quantity:e.count*Math.ceil(t.outputTokens/100)}]}var eo=class{carriedInput=0;carriedOutput=0;addUsage(e){this.carriedInput+=Math.max(0,e.inputTokens),this.carriedOutput+=Math.max(0,e.outputTokens)}drainBlocks(){let e=Math.floor(this.carriedInput/100),t=Math.floor(this.carriedOutput/100);return this.carriedInput-=e*100,this.carriedOutput-=t*100,{inBlocks:e,outBlocks:t}}flush(){let e=+(this.carriedInput>0),t=+(this.carriedOutput>0);return this.carriedInput=0,this.carriedOutput=0,{inBlocks:e,outBlocks:t}}};function to(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(Na(e.requires.connection));for(let n of e.requires.fields??[])t.push(Pa(e=>n.split(`.`).reduce((e,t)=>e==null?e:e[t],e),`Set ${n} first`));if(t.length!==0)return t.length===1?t[0]:Fa(...t)}function no(e,t,n){let i={exampleValue:null,jsonSchema:null},a=t.fieldAnnotations.annotations[e];if(a?.json_metadata?.example_value&&(i.exampleValue=a.json_metadata.example_value||null),a?.json_metadata?.schema&&(i.jsonSchema=a.json_metadata.schema||null),i.exampleValue&&i.jsonSchema||!t.resolvedFieldNames[e])return i;let o=Pr(e,n,t),s=Mr(o.fieldName)?g(o.fieldName):null;return s?.jsonMeta?{jsonSchema:s.jsonMeta.zodSchema?r.toJSONSchema(s.jsonMeta.zodSchema):null,exampleValue:s.jsonMeta.exampleValue||null}:i}const _=r.registry();{let e=_._map,t=_.get.bind(_);_.get=n=>{let r=n;for(;r;){let t=e.get(r);if(typeof t==`function`)return t;r=r?._zod?.parent}return t(n)}}const v=r.registry();{let e=v._map,t=v.get.bind(v);v.get=n=>{let r=n;for(;r;){let t=e.get(r);if(typeof t==`function`)return t;r=r?._zod?.parent}return t(n)}}const y=r.registry();{let e=y._map,t=y.get.bind(y);y.get=n=>{let r=n;for(;r;){let t=e.get(r);if(typeof t==`function`)return t;r=r?._zod?.parent}return t(n)}}const ro=e=>e,b={text_input:r.coerce.string(),textarea_input:r.string(),prompt_input:r.object({template:r.string(),json_schemas:r.record(r.string(),r.record(r.string(),r.unknown()))}),template_input:r.string(),tagged_text_input:r.coerce.string(),boolean_input:r.boolean(),nullable_boolean_input:r.boolean().nullable(),select_input:r.string(),multi_select_input:r.array(r.string()),async_multi_select_input:r.array(r.string()),int_input:r.coerce.number().int(),number_input:r.coerce.number(),min_max_int_input:r.object({min:r.number().nullable().default(null),max:r.number().nullable().default(null)}),include_exclude_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),async_include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),exact_range_input:r.record(r.string(),r.number().nullable()),range_input:r.object({from:r.number().nullable(),to:r.number().nullable()}),date_range_input:r.record(r.string(),r.string()),multi_create_input:r.array(r.string()),ordered_multi_create_input:r.array(r.string()),tagged_ordered_multi_create_input:r.array(r.string()),loose_object_input:r.record(r.string(),r.string()),connector_input:r.object({connections:r.array(r.object({type:r.string(),connection:r.string()}))}).nullable(),providers_input:r.array(r.object({provider:r.string()})),json_extraction_input:r.record(r.string(),r.unknown()),pipes_run_if_input:r.record(r.string(),r.unknown()).nullable(),condition_block_input:r.record(r.string(),r.unknown()).nullable(),fields_select_input:r.array(r.object({field_name:r.string()})),output_field_input:r.object({alias:r.string(),enabled:r.boolean()}),json_schema_input:r.record(r.string(),r.unknown()),cursor_pagination_metadata:r.object({limit:r.number()}),context_select_input:r.union([r.string(),r.array(r.string())]),search_payload_input:r.looseObject({search_id:r.string()})},io=(e,t,n)=>{let r=[t.description||n,t.guide].filter(Boolean).join(` `);return r?e.describe(r):e},ao=(e,t)=>{let n=b.multi_create_input;return e.maxItems&&(n=n.max(e.maxItems)),n=e.minItems?n.min(e.minItems):n.default([]),t.add(n,{type:`multi_create_input`,...e}),n},oo=(e,t)=>{let n=b.ordered_multi_create_input;return e.maxItems&&(n=n.max(e.maxItems)),n=e.minItems?n.min(e.minItems):n.default([]),t.add(n,{type:`ordered_multi_create_input`,...e}),n},so=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,co=/\{\{|\{%/,lo=(e,t)=>{let n=b.tagged_ordered_multi_create_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{let r=so.test(e),i=co.test(e);!r&&i&&t.issues.push({code:`custom`,input:e,path:[n],message:`Each entry must be either plain text or a single field reference β€” not mixed.`})})}),n=e.minItems?n.min(e.minItems):n.default([]);let r={type:`tagged_ordered_multi_create_input`,...e};if(t===_){let i=t=>{let n=t.validationContext,i=n?Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).filter(([t,n])=>!e.expectedTagType||n.type===e.expectedTagType).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:i}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n}return t.add(n,r),n},uo=(e,t)=>{let n=b.loose_object_input;n=n.check(t=>{let n=t,r=Object.entries(n.value??{});e.minKeys!=null&&r.length<e.minKeys&&n.issues.push({code:`custom`,input:n.value,message:`Add at least ${e.minKeys} ${e.keyLabel?.toLowerCase()??`entr`}${e.keyLabel?`s`:`ies`}.`}),e.maxKeys!=null&&r.length>e.maxKeys&&n.issues.push({code:`custom`,input:n.value,message:`Use at most ${e.maxKeys} ${e.keyLabel?.toLowerCase()??`entr`}${e.keyLabel?`s`:`ies`}.`}),r.forEach(([e,t])=>{Vo({value:t,issues:n.issues},!1,[e])})}),n=n.default({});let r={type:`loose_object_input`,...e},i=e=>{let t=e.validationContext,n=t?Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e.hash).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:n}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n},fo=(e,t)=>{let n=e.maxItems||200,r=io(b.include_exclude_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}),e);return t.add(r,{type:`include_exclude_input`,...e}),r},po=()=>{let e=xi;return _.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`json_extraction_input`,fields:Object.entries(t.fieldDefinitions).filter(([e,t])=>e.toLowerCase()!==`id`&&t.type===`json`).map(([e,n])=>{let{jsonSchema:r,exampleValue:i}=no(e,t,n)||{};return{fieldName:e,fieldLabel:n.label,schema:r||null,exampleValue:i||null}}),path:`config.json_extraction`,groupPath:`config.json_extraction`,sectionKey:`general`}}),e},mo=(e,t)=>{let n=r.array(r.object({provider:r.enum(e.availableProviders)})).max(e.maxItems||99).min(1).default(e.defaultProviders),i=e.availableProviders.map(t=>{let n=e.providerCredits?.[t];return{value:t,label:Ri[t].label,widgets:{provider_logo:{provider:t},...typeof n==`number`?{pricing:{credits:n}}:{}}}});return t.add(n,{label:`Provider sequence`,description:``,path:`config.providers`,groupPath:`config.providers`,type:`providers_input`,options:i,defaultProviders:e.defaultProviders,maxItems:e.maxItems,sectionKey:e.sectionKey}),n},ho=(e,t)=>{let n=e.maxItems||200,r=io(b.include_exclude_select_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}),e);return t.add(r,{type:`include_exclude_select_input`,...e}),r},go=(e,t)=>{let n=io(b.exact_range_input.check(t=>{e.min===void 0&&e.max===void 0||Object.values(t.value).filter(e=>e!==null).some(t=>e.min!=null&&t<e.min||e.max!=null&&t>e.max)&&t.issues.push({code:`custom`,input:t.value,message:`Values must be between ${e.min??`any`} and ${e.max??`any`}`})}),e);return t.add(n,{type:`exact_range_input`,...e}),n},_o=(e,t)=>{let n=r.object({from:r.number().optional().nullable(),to:r.number().optional().nullable()}).default({from:null,to:null}),i=n;(e.min!==void 0||e.max!==void 0)&&(i=n.check(t=>{Object.values(t.value).filter(e=>e!=null).every(t=>(e?.min==null||t>=e.min)&&(e.max==null||t<=e.max))||t.issues.push({code:`custom`,input:t.value,message:`Values must be between ${e.min??`any`} and ${e.max??`any`}`}),t.value.from&&t.value.to&&t.value.from>t.value.to&&t.issues.push({code:`custom`,input:t.value,message:`'From' value must be smaller than 'to' value.`})}));let a=io(i,e);return t.add(a,{type:`range_input`,...e}),a},vo=(e,t)=>{let n=io(b.date_range_input.check(e=>{let t=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/;for(let[n,r]of Object.entries(e.value))r&&!t.test(r)&&e.issues.push({code:`custom`,input:r,path:[n],message:`Must be an ISO datetime string`})}),e);return t.add(n,{type:`date_range_input`,...e}),n},yo=(e,t)=>{let n=io(b.boolean_input.default(e.defaultValue),e);return t.add(n,{...e,required:!1,type:`boolean_input`}),n},bo=(e,t)=>{let n=io(b.nullable_boolean_input.default(e.defaultValue),e);return t.add(n,{...e,required:!1,type:`nullable_boolean_input`,defaultValue:e.defaultValue}),n},xo=(e,t)=>{let n=b.text_input;e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern)));let r=io(n,e);return t.add(r,{type:`text_input`,...e}),r},So=(e,t)=>{let n=b.textarea_input;e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength));let r=io(n,e);return t.add(r,{type:`textarea_input`,...e}),r},Co=(e,t,n=`pipe_io`)=>{let i=r.object({alias:r.string().default(``).describe(`Rename this output field. Leave empty to use default name.`),enabled:r.boolean().default(!0).describe(`Whether to include this field in the output.`)}).describe(`Output field '${e.fieldName}'`);return t.add(i,{type:`output_field_input`,label:`Rename *${e.fieldName}*`,placeholder:e.fieldName,path:`config.output_fields.${e.fieldName}`,description:void 0,groupPath:`config.output_fields`,sectionKey:n}),i.default({alias:``,enabled:!0})},wo=(e,t)=>r.unknown().check(e=>{t(e.value)&&e.issues.push({code:`custom`,input:e.value,message:`Required`})}).pipe(e),To=(e,t)=>{let n=io(wo(b.int_input.check(t=>{e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})}),e=>e==null),e);return t.add(n,{...e,type:`int_input`}),n},Eo=(e,t)=>{let n=io(wo(b.number_input.check(t=>{e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})}),e=>e===void 0),e);return t.add(n,{...e,type:`number_input`}),n},Do=(e,t)=>{let n=b.json_schema_input;return n.check(e=>{wa(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(n=n.check(e=>{Ta(e.value)&&e.issues.push({code:`custom`,message:`JSON Schema must define a meaningful value. Can not be an empty object or array.`,input:e.value})})),t.add(n,{...e,type:`json_schema_input`}),n},Oo=(e,t)=>{let n=e.options.map(e=>e.value),r=new Set([...n,``]),i=b.select_input.check(t=>{if(t.value===``){e.required&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}r.has(t.value)||t.issues.push({code:`custom`,input:t.value,message:`Must be one of: ${[...r].filter(e=>e).join(`, `)}`})}),a=io(e.defaultValue?i.default(e.defaultValue):i,e);return t.add(a,{type:`select_input`,...e}),a},ko=(e,t,n)=>{let r=io(b.search_payload_input.check(e=>{if(!e.value?.search_id){e.issues.push({code:`custom`,input:e.value,message:`Required`});return}let t=n?.safeParse(e.value);if(t&&!t.success)for(let n of t.error.issues)e.issues.push({code:`custom`,input:e.value,message:n.message,path:n.path})}),e);return t.add(r,{...e,type:`search_payload_input`,required:!0}),r},Ao=({billableOperations:e,...t},n)=>{let i=r.enum(La).default(t.defaultValue||`gemini-flash-latest`);return n.add(i,{type:`select_input`,options:La.map(t=>{let n=Object.keys(e).find(e=>e.endsWith(`-in-${t}`)),r=Object.keys(e).find(e=>e.endsWith(`-out-${t}`)),i=n?e[n]:void 0,a=r?e[r]:void 0;if(!i||!a)throw Error(`Unable to find token billing info for model ${t}`);return{label:t,value:t,widgets:{logo:{url:Ri[Ra[t].provider].logoUrl},token_pricing:{inputPerBlock:i.credits.default,outputPerBlock:a.credits.default,blockSize:100}}}}),required:!0,description:``,label:`AI Models`,...t}),i},jo=(e,t)=>{let n=e.options.map(e=>e.value),i=new Set(n),a=r.array(r.enum(Array.from(i))).check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`});let r=new Set;t.value.forEach((e,a)=>{i.has(e)?r.has(e)?t.issues.push({code:`custom`,input:e,path:[a],message:`Duplicate option: ${e}`}):r.add(e):t.issues.push({code:`custom`,input:e,path:[a],message:`Must be one of: ${n.join(`, `)}`})})});return t.add(a,{type:`multi_select_input`,...e}),a},Mo=(e,t)=>{let n=e.required?b.context_select_input.check(e=>{(e.value===``||Array.isArray(e.value)&&e.value.length===0)&&e.issues.push({code:`custom`,input:e.value,message:`Required`})}):b.context_select_input,r=e.defaultValue?n.default(e.defaultValue):n,i=e.enabledIf??to(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},No=(e,t)=>{let n=b.min_max_int_input.check(t=>{for(let n of[`min`,`max`]){let r=t.value[n];if(r!=null){if(!Number.isInteger(r)){t.issues.push({code:`custom`,input:r,path:[n],message:`Must be an integer`});continue}(r<e.min||r>e.max)&&t.issues.push({code:`custom`,input:r,path:[n],message:`Must be between ${e.min} and ${e.max}`})}}});return t.add(n,{type:`min_max_int_input`,...e}),n},Po=(e,t)=>{let n=b.async_multi_select_input.check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`})});return e.maxItems&&(n=n.max(e.maxItems)),t.add(n,{type:`async_multi_select_input`,...e}),n},Fo=(e,t)=>{let n=e.maxItems||200,r=b.async_include_exclude_select_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})});return t.add(r,{type:`async_include_exclude_select_input`,...e}),r},x=()=>{let e=Li.nullish();return _.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`pipes_run_if_input`,groupPath:`run_if`,path:`run_if`,sectionKey:`pipe_io`,fields:Object.entries(t.fieldDefinitions).filter(([e,t])=>t.type!==`json`&&e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:t.label,format:t.format,type:t.type}))}}),e},Io=e=>{let t=Fi.nullish();return y.add(t,t=>{let n=t.validationContext;return{type:`condition_block_input`,...e,fields:Object.entries(n.fieldDefinitions).filter(([e,t])=>t.type!==`json`&&e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:t.label,format:t.format,type:t.type}))}}),t},Lo=e=>{let t=io(Ii.nullable().check(e=>{let t=e;if(t.value===null){t.issues.push({code:`custom`,input:t.value,message:`Add at least one condition.`});return}(t.value?.conditions??[]).forEach((e,n)=>{typeof e.value==`string`&&Vo({value:e.value,issues:t.issues},!1,[`conditions`,n,`value`])})}),e,"Condition block over the target sheet's columns. `field_name` is a LITERAL column name of the looked-up sheet (never templated); string `value`s may contain `{{ field }}` / `{{ SECRETS.KEY }}` / `{{ CONSTANTS.KEY }}` Liquid references resolved per row.");return _.add(t,t=>{let n=t.validationContext;return{type:`condition_block_input`,fields:[],fieldNameMode:`text`,properties:[`value`],inputFields:Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).map(([e,t])=>({...t,resolvedName:e})),...e}}),t};function Ro(e,t){if(!t)return e;let n={...e};for(let[r,i]of Object.entries(t))n[r]=i===null?null:{...e[r]??{},...i};return n}function zo({fieldMetadata:e,store:t}){if(e.type===`context_select_input`||e.type===`tagged_text_input`){t.field_options??={};let n=t.field_options[e.path]?.options||[],r=e.optionsDef?.widgets;e.options=r?n.map(e=>({...e,widgets:{...r,...e.widgets??{}}})):n}return e}const Bo=({schema:e,extractFromSchema:t,store:n,formResolvers:i,sectionMap:a,groupMap:o,pathMap:s})=>{let c={};function l(e){let t=e?._zod?.def?.type;return!(t===`optional`||t===`nullable`||t===`default`)}function u(e,d){let f=t(e),ee=f?.required,te=f&&ee===void 0&&d!==void 0?{...f,required:d}:f;if(te){let{sectionKey:e,groupPath:t,path:r}=te,l=a?.[e],u=o?.[t],d=s?.[r];if(!(l===null||u===null||d===null)){let r=d?{...te,label:d.label??te.label,description:d.description??te.description}:te;c[e]??={type:`section`,groups:[],metadata:{type:`form_section`,path:l?.path??e,label:l?.label,description:l?.description}};let a=c[e];if(!a)throw Error(`Section not defined`);let o=a.groups.find(e=>e.groupPath===t);if(o){let e=zo({fieldMetadata:r,store:n,formResolvers:i});e&&o.fields.push(e)}else{let e=zo({fieldMetadata:r,store:n,formResolvers:i});e&&a.groups.push({groupPath:t,fields:[e],type:`group`,label:u?.label,defaultExpand:!!u?.defaultExpand,description:u?.description,iconKey:u?.iconKey,order:u?.order})}}}if(typeof e==`object`&&`unwrap`in e&&typeof e.unwrap==`function`&&u(e.unwrap(),d),e instanceof r.ZodObject)for(let t of Object.values(e.shape))u(t,l(t))}u(e);for(let e of Object.values(c))e.groups=e.groups.filter(e=>e.fields.length!==0),e.groups.sort((e,t)=>(e.order??99)-(t.order??99));return Object.entries(c).filter(([,e])=>e.groups.length!==0).sort(([e],[t])=>(a?.[e]?.order??99)-(a?.[t]?.order??99)).map(([,e])=>e)};function Vo(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=ia(r);!t&&i.outputs.length>0&&e.issues.push({code:`custom`,input:r,path:n,message:`{% output %} tags are not allowed in this field.`}),t&&i.outputs.length===0&&e.issues.push({code:`custom`,input:r,path:n,message:`At least one {% output %} tag is required, e.g. {% output result, type: "string", description: "..." %}`})}catch(t){e.issues.push({code:`custom`,input:r,path:n,message:t instanceof Error?t.message:String(t)})}}const Ho=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:io(r.string().min(10).check(e=>Vo(e,t,[])),e,'Liquid prompt with `{{ field }}` input refs, `{{ field | default: "" }}` for optional refs, `{{ SECRETS.KEY }}` for secrets, `{{ CONSTANTS.KEY }}` for plaintext constants, and `{% output name, type: "string", description: "..." %}` to declare model outputs. Supports `{% if %}` / `{% for %}` control flow. Example: "Summarize {{ name }}. {% output summary, type: \\"string\\", description: \\"One-line summary\\" %}"'),json_schemas:r.record(r.string().min(1,`Schema name cannot be empty`),r.record(r.string(),r.any())).optional().describe(`JSON schemas for output fields with type="json". Keys are referenced via schema="<name>" in output tags.`)});return _.add(n,t=>{let n=t.validationContext;return{type:`prompt_input`,inputFields:Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).map(([e,t])=>({...t,resolvedName:e})),...e}}),n},Uo=e=>{let t=r.string();e.required&&(t=t.min(1)),e.maxLength&&(t=t.max(e.maxLength));let n=io(t.check(e=>Vo(e,!1,[])),e,'Liquid template with `{{ field }}` input refs, `{{ field | default: "" }}` for optional refs, `{{ SECRETS.KEY }}` for secrets, `{{ CONSTANTS.KEY }}` for plaintext constants, and `{% if %}` / `{% for %}` control flow. Example: "Write to {{ name }} about {{ topic | default: \\"the project\\" }}."');return _.add(n,t=>{let n=t.validationContext;return{type:`template_input`,inputFields:Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).map(([e,t])=>({...t,resolvedName:e})),rows:e.rows||10,...e}}),n},S=e=>{let t=`${e.multiline?`Multi-line`:`Single-line`} ${e.expectedTagType} value, optionally containing \`{{ field }}\` Liquid input refs (use \`| default: ""\` for optional refs), \`{{ SECRETS.KEY }}\` for encrypted secrets, and \`{{ CONSTANTS.KEY }}\` for plaintext constants.`,n=r.coerce.string();e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),n=n.check(e=>Vo(e,!1,[])),n=io(n,e,t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??to(e.optionsDef)}:void 0,a={type:`tagged_text_input`,...e,optionsDef:i,options:[]},o=t=>{let n=t.validationContext,r=Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).filter(([t,n])=>n.type===e.expectedTagType).map(([e,t])=>({...t,resolvedName:e}));return{...a,inputFields:r}};return o.staticMeta={...a,inputFields:[]},_.add(n,o),n};function Wo(e,t){_.add(e,({userConnections:e,pipeEntry:n})=>{let r=new Set(n.allowedUserConnectionProviders),i=e.filter(e=>r.has(e.provider));return{label:t===`required`?`Custom connection`:``,description:``,required:t===`required`,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:Sa({id:e.public_id,provider:e.provider})}))}})}const Go=()=>{let e=Oi;return Wo(e,`required`),e},C=()=>{let e=Di;return Wo(e,`optional`),e},w=()=>{let e=ki;return Wo(e,`disabled`),e};function Ko(e,t){v.add(e,({userConnections:e,searchEntry:n})=>{let r=n.allowsUserConnection?[n.provider]:[],i=new Set(r),a=e.filter(e=>i.has(e.provider));return{label:t===`required`?`Custom connection`:``,description:``,required:t===`required`,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:i.size>0,filteredConnections:a.map(e=>({provider:e.provider,connection:Sa({id:e.public_id,provider:e.provider})}))}})}const qo=()=>{let e=Oi;return Ko(e,`required`),e},Jo=()=>{let e=Di;return Ko(e,`optional`),e};function Yo(e,t){y.add(e,({userConnections:e,effectEntry:n})=>{let r=new Set(n.allowedUserConnectionProviders),i=e.filter(e=>r.has(e.provider));return{label:t===`required`?`Custom connection`:``,description:``,required:t===`required`,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:Sa({id:e.public_id,provider:e.provider})}))}})}const Xo=()=>{let e=Oi;return Yo(e,`required`),e},Zo=()=>{let e=Di;return Yo(e,`optional`),e},T=()=>{let e=ki;return Yo(e,`disabled`),e};function Qo(e,t){return Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e&&t.toLowerCase()!==`id`).map(([e,t])=>({label:e,value:e,type:t.type,format:t.format}))}const E=e=>{let t=r.object({alias:r.string().describe(`Override field name mapping. Leave empty to use default.`)});return _.add(t,t=>{let n=t.validationContext;return{type:`select_input`,required:!1,sectionKey:`pipe_io`,defaultValue:void 0,placeholder:e.fieldName,options:Qo(t.hash,n),path:`config.input_fields.${e.fieldName}.alias`,label:`Assign *${e.fieldName}* to:`,description:``,groupPath:`config.input_fields`,multiple:!1}}),t.default({alias:``})},D=e=>mo(e,_),$o=e=>{let t=b.fields_select_input.check(e=>{e.value.forEach((t,n)=>{t.field_name.length<1&&e.issues.push({code:`custom`,input:t.field_name,path:[n,`field_name`],message:`field_name must not be empty`})})});return t=e.minItems?t.min(e.minItems):t.default([]),_.add(t,t=>{let n=t.validationContext;return{type:`fields_select_input`,options:Object.entries(n.fieldDefinitions).filter(([e])=>e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:e,type:t.type})).map(e=>({value:e.fieldName,label:e.fieldLabel,widgets:{field_type:{type:e.type}}})),...e}}),t},es=e=>{let t=b.fields_select_input.check(e=>{e.value.forEach((t,n)=>{t.field_name.length<1&&e.issues.push({code:`custom`,input:t.field_name,path:[n,`field_name`],message:`field_name must not be empty`})})});return t=e.minItems?t.min(e.minItems):t.default([]),y.add(t,t=>{let n=t.validationContext;return{type:`fields_select_input`,options:Object.entries(n.fieldDefinitions).filter(([e])=>e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:e,type:t.type})).map(e=>({value:e.fieldName,label:e.fieldLabel,widgets:{field_type:{type:e.type}}})),...e}}),t},ts=(e,t)=>{let n=t===`selection`?et:t===`sheet`?tt:rt,i={label:`All rows`,value:{type:`all`}},a={label:`Specific rows by ID`,value:{type:`rows`,record_ids:[]}},o=t===`selection`?[a]:t===`sheet`?[i]:[i,a,{label:`Window of 10 rows`,value:{type:`window`,count:10}}],s=r.preprocess(e=>{if(typeof e!=`string`)return e;let t=e.trim();if(t===``)return;let n=Da(t);return n===void 0?e:n},n).optional();return y.add(s,{type:`textarea_input`,rows:3,language:`json`,quickOptions:o,...e}),s},ns=e=>fo(e,_),rs=e=>ao(e,_),is=e=>oo(e,_),as=e=>lo(e,_),os=e=>uo(e,_),ss=e=>ho(e,_),cs=e=>Fo(e,_),ls=e=>go(e,_),us=e=>vo(e,_),O=e=>yo(e,_),k=e=>Co(e,_),ds=e=>{let{groupPath:t,sectionKey:n=`pipe_io`,defaultName:r,nameInfo:i}=e;return{destination_field_name:fs({label:`Field name`,description:`Destination field name`,info:i??`Name of the field written to the destination sheet.`,placeholder:r,inputType:`text`,path:`config.destination_field_name`,groupPath:t,sectionKey:n}).nullable().default(``),destination_field_type:ms({label:`Type`,info:`Field data type. Leave unset to infer it from the data.`,path:`config.destination_field_type`,groupPath:t,sectionKey:n,required:!1,options:Br.filter(e=>e!==`unknown`).map(e=>({value:e,label:e}))}).default(``),destination_field_format:ms({label:`Format`,info:`Optional display format for the field.`,path:`config.destination_field_format`,groupPath:t,sectionKey:n,required:!1,options:oi.map(e=>({value:e,label:e}))}).default(``),destination_field_label:fs({label:`Label`,description:`Destination field label`,info:`Human-friendly column header. Defaults to the field name.`,inputType:`text`,path:`config.destination_field_label`,groupPath:t,sectionKey:n}).nullable().default(``)}},fs=e=>xo(e,_),ps=e=>So(e,_),ms=e=>Oo(e,_),hs=e=>Ao(e,_),gs=e=>jo(e,_),_s=e=>To(e,_),vs=e=>Eo(e,_),ys=e=>Do(e,_),bs=e=>Mo(e,_),A=e=>ao(e,v),xs=e=>oo(e,v),Ss=e=>No(e,v),j=e=>fo(e,v),M=e=>ho(e,v),Cs=e=>go(e,v),ws=e=>_o(e,v),Ts=e=>vo(e,v),Es=e=>yo(e,v),Ds=e=>bo(e,v),N=e=>Co(e,v,`pipe_io`),Os=e=>xo(e,v),ks=e=>So(e,v),As=e=>Oo(e,v),js=e=>Mo(e,v),P=e=>jo(e,v),F=e=>Po(e,v),I=e=>Fo(e,v),L=e=>To(e,v),Ms=e=>Eo(e,v),Ns=e=>xo(e,ro(y)),Ps=e=>So(e,ro(y)),Fs=e=>Oo(e,ro(y)),Is=e=>jo(e,ro(y)),Ls=e=>To(e,ro(y)),Rs=e=>To(e,ro(y)).nullish(),zs=e=>yo(e,ro(y)),Bs=e=>Mo(e,ro(y)),Vs=e=>Ao(e,ro(y)),Hs=(e,t)=>ko(e,ro(y),t),R=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()),z=e=>e.optional();function Us(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Us).filter(e=>!kn(e));let t={};for(let[n,r]of Object.entries(e)){let e=Us(r);kn(e)||(t[n]=e)}return t}const Ws=await l();var Gs=class e{static hashObject(t){if(!Ws)throw Error(`HashAPI not initialized`);let{h64ToString:n}=Ws,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 B(e){return e.split(`@`)[0]}function Ks(e,t){let n={effectId:e,config:Us(t)};return Gs.hashObject(n)}var V=class{validatePayload(e){try{return this.schema.parse(e)}catch(e){throw e instanceof n?Error(JSON.stringify(r.prettifyError(e))):e}}getSecretRequirements(){return[]}getConstantRequirements(){return[]}getConfigHashKey(){return Ks(this.payload.effect_id,this.payload.config||{})}producesDynamicFields(){return!1}evolveSchema(e){return{next:e}}getRecordQueueConfig(e){return null}};const qs=`env:change@1`,Js={},Ys=r.object({effect_id:r.literal(qs),connector:T(),config:r.object({environment:Lr})}),Xs=class extends V{effectId=qs;schema=Ys;payload;billableOperations=Js;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},Zs=Ys,Qs={effectId:qs,baseEffect:B(qs),label:`Change environment`,description:`Switch the sheet between production and sandbox.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:Js,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:qs,connector:null,config:{environment:`production`}}},$s=`fields:add@1`,ec={},tc=r.object({effect_id:r.literal($s),connector:T(),config:r.object({})}),nc=class extends V{effectId=$s;schema=tc;payload;billableOperations=ec;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},rc=tc,ic={effectId:$s,baseEffect:B($s),label:`Add field`,description:`Add a new empty field to the sheet.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:ec,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:$s,connector:null,config:{}}},ac=[`id`],oc=e=>ac.includes(e.trim().toLowerCase()),sc=e=>typeof e.kind==`string`,cc=e=>sc(e)?e:{kind:`field`,field:e},H=e=>({kind:`field`,field:e}),lc=(...e)=>({kind:`all`,of:e.map(cc)}),uc=(...e)=>({kind:`any`,of:e.map(cc)}),dc=e=>({kind:`optional`,field:e});function fc(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>fc(e,t));case`any`:return e.of.some(e=>fc(e,t))}}function pc(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(pc)}}function mc(e,t){let n=hc(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function hc(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=hc(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=hc(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function gc(e,t){let n={pipeId:e,config:Us(t)};return Gs.hashObject(n)}function _c(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:Gs.hashObject(Us(n))}var U=class{validatePayload(e){try{return this.payloadSchema.parse(e)}catch(e){throw e instanceof n?Error(r.prettifyError(e)):e}}getSecretRequirements(){return[]}getConstantRequirements(){return[]}async getAgentContext(e){return null}catalogOutput(e,{isPrimaryOutput:t=!1,resolveFormat:n,resolveType:r}={resolveType:void 0,resolveFormat:void 0,isPrimaryOutput:!1}){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:r||e.type,format:n||e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0,isPrimaryOutput:t}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}get inputFields(){let e={};for(let{field:t}of pc(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return gc(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return _c(e,this.inputFields)}};const W={EMAIL:`Email`,TEXT:`Text`,CHAT:`Chat`,PERSONAL_EMAIL:`Personal Email`,NAMES:`Names`,WORK_EMAIL:`Work Email`,WATERFALL:`Waterfall`,WEBSITE:`Website`,SCRAPE:`Scrape`,ADDRESS:`Address`,NEWS:`News`,LINKEDIN:`LinkedIn`,FINANCIAL_DATA:`Financial Data`,AI:`AI`,PHONE:`Phone Number`,NEW:`New`,BETA:`Beta`,PEOPLE_PROFILES:`People Profiles`,COMPANY_PROFILES:`Company Profiles`,EVENTS:`Events`,JSON:`Json`,FIELDS:`Fields`,LOGIC:`Logic`,DEPRECATED:`Deprecated ❌`};function G(e,...t){return t.map(t=>({billableOperation:t,quantity:e.count}))}function vc(e,t){return n=>{let r=e[n];if(!r)throw Error(`Missing billableOperation def for "${n}"`);return!r.allowManagedConnection||t?.(r.provider)?0:r.credits.default}}function yc(e,t,n=`sum`){let r=e.map(e=>e.quantity*t(e.billableOperation));return r.length===0?0:n===`max`?Math.max(...r):r.reduce((e,t)=>e+t,0)}function bc(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 xc(e){return pc(e).map(({field:e})=>e)}function Sc({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function Cc({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function wc({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 Tc(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 Ec(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function Dc(e){return e.value=null,e.status=`processing`,e.resolved_by=null,e.widgets={},e}function K(e){return e.split(`@`)[0]}function q(e){return`/docs/pipe-catalog/${K(e)}/${e.split(`@`)[1]}`}function J(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 Oc=`company:domain:workemail@1`,kc=g(`company_domain`),Ac=g(`work_email`),jc=r.object({pipe_id:r.literal(Oc),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Ac.name]:E({fieldName:Ac.name})})),output_fields:R(r.object({[kc.name]:k({fieldName:kc.name})}))}).optional()}),Mc=e=>H(J(Ac,e)),Nc={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Pc=class extends U{pipeId=Oc;payload;payloadSchema=jc;billableOperations=Nc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`company-domain-workemail-v1-pipe0`)}getInputRequirement(){return Mc(this.payload.config)}getRawOutputFields(){return{[kc.name]:this.catalogOutput(kc)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Fc=jc,Ic={pipeId:Oc,basePipe:K(Oc),inputFieldMode:`static`,outputFieldMode:`static`,label:`Website from email`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Extract the company website URL from a work email address.`,tags:[W.EMAIL,W.WORK_EMAIL,W.WEBSITE],docPath:q(Oc),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Nc,defaultInputRequirement:Mc(null),defaultPayload:{pipe_id:Oc,connector:null,run_if:null,config:{input_fields:{[Ac.name]:{alias:``}},output_fields:{[kc.name]:{alias:``,enabled:!0}}}}},Lc=`company:funding:leadmagic@2`,Rc=g(`company_name`),zc=g(`company_domain`),Bc=g(`funding_history`),Vc=g(`funding_total_usd`),Hc=g(`leadmagic_competitor_list`),Uc=g(`leadmagic_acquisition_history`),Wc=g(`leadmagic_company_news_list`),Gc=r.object({pipe_id:r.literal(Lc),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[Rc.name]:E({fieldName:Rc.name}),[zc.name]:E({fieldName:zc.name})})),output_fields:R(r.object({[Bc.name]:k({fieldName:Bc.name}),[Vc.name]:k({fieldName:Vc.name}),[Hc.name]:k({fieldName:Hc.name}),[Uc.name]:k({fieldName:Uc.name}),[Wc.name]:k({fieldName:Wc.name})}))}).optional()}),Kc=e=>uc(J(Rc,e),J(zc,e)),qc={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Jc=class extends U{pipeId=Lc;payload;payloadSchema=Gc;billableOperations=qc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(e){return G(e,`company-funding-leadmagic-v2-leadmagic`)}getInputRequirement(){return Kc(this.payload.config)}getRawOutputFields(){return{[Bc.name]:this.catalogOutput(Bc),[Vc.name]:this.catalogOutput(Vc),[Uc.name]:this.catalogOutput(Uc),[Wc.name]:this.catalogOutput(Wc),[Hc.name]:this.catalogOutput(Hc)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},Yc=Gc,Xc={pipeId:Lc,basePipe:K(Lc),label:`Funding history`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[W.FINANCIAL_DATA],docPath:q(Lc),billableOperations:qc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:Kc(null),defaultPayload:{pipe_id:Lc,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:``}}}}},Zc=g(`company_name`),Qc=g(`company_profile_url`),$c=g(`company_domain`),el=g(`cleaned_company_name`),tl=`company:identity@3`,nl=r.object({pipe_id:r.literal(tl),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Zc.name]:E({fieldName:Zc.name})})),output_fields:R(r.object({[Qc.name]:k({fieldName:Qc.name}),[el.name]:k({fieldName:el.name}),[$c.name]:k({fieldName:$c.name})}))}).optional()}),rl=e=>H(J(Zc,e)),il={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3,level1:{credits:.2,weight:1}},mode:`always`,provider:`pipe0`}},al=class extends U{pipeId=tl;payload;payloadSchema=nl;billableOperations=il;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`company-identity-v3-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:K(tl),label:`Company identity`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:q(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_domain:{alias:``,enabled:!0}}}}},cl=g(`company_domain`),ll=g(`company_name`),ul=g(`crustdata_company_identity_matches`),dl=`company:identity:crustdata@1`,fl=r.object({pipe_id:r.literal(dl),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[cl.name]:E({fieldName:cl.name}),[ll.name]:E({fieldName:ll.name})})),output_fields:R(r.object({[ul.name]:k({fieldName:ul.name})}))}).optional()}),pl=e=>uc(J(cl,e),J(ll,e)),ml={"company-identity-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:.001},mode:`onSuccess`,provider:`crustdata`}},hl=class extends U{pipeId=dl;payload;payloadSchema=fl;billableOperations=ml;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return G(e,`company-identity-crustdata-v1-crustdata`)}getInputRequirement(){return pl(this.payload.config)}getRawOutputFields(){return{[ul.name]:this.catalogOutput(ul)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_identify`,allowManagedConnection:!0}]}},gl=fl,_l={pipeId:dl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(dl),label:`Company identity`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Resolve a company to Crustdata's matching candidates by domain or name. Returns the full list of matches.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:q(dl),billableOperations:ml,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:pl(null),defaultPayload:{pipe_id:dl,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``},company_name:{alias:``}},output_fields:{crustdata_company_identity_matches:{alias:``,enabled:!0}}}}},vl=g(`company_domain`),yl=g(`companyenrich_matches`),bl=`company:lookalikes:companyenrich@2`,xl=r.object({pipe_id:r.literal(bl),run_if:x(),connector:C(),config:r.object({limit:_s({groupPath:`config.general`,max:50,min:1,path:`config.limit`,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:z(r.object({[vl.name]:E({fieldName:vl.name})})),output_fields:R(r.object({[yl.name]:k({fieldName:yl.name})}))}).optional()}),Sl=e=>H(J(vl,e)),Cl={"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`}},wl=class extends U{pipeId=bl;payload;payloadSchema=xl;billableOperations=Cl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(e){return[{billableOperation:`company-lookalikes-companyenrich-v2-companyenrich`,quantity:e.count*5}]}getInputRequirement(){return Sl(this.payload.config)}getRawOutputFields(){return{[yl.name]:this.catalogOutput(yl)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},Tl=xl,El={pipeId:bl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(bl),label:`Find company lookalikes`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find companies similar to the company you provide as input.`,tags:[W.COMPANY_PROFILES],docPath:q(bl),billableOperations:Cl,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Sl(null),defaultPayload:{pipe_id:bl,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Dl=g(`company_domain`),Ol=g(`crustdata_companyenrich_match`),kl=`company:match:crustdata@2`,Al=r.object({pipe_id:r.literal(kl),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[Dl.name]:E({fieldName:Dl.name})})),output_fields:R(r.object({[Ol.name]:k({fieldName:Ol.name})}))}).optional()}),jl=e=>H(J(Dl,e)),Ml={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.2,weight:1}},mode:`onSuccess`,provider:`crustdata`}},Nl=class extends U{pipeId=kl;payload;payloadSchema=Al;billableOperations=Ml;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return G(e,`company-match-crustdata-v2-crustdata`)}getInputRequirement(){return jl(this.payload.config)}getRawOutputFields(){return{[Ol.name]:this.catalogOutput(Ol)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Pl=Al,Fl={pipeId:kl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(kl),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:q(kl),billableOperations:Ml,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:jl(null),defaultPayload:{pipe_id:kl,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Il=g(`company_domain`),Ll=g(`company_name`),Rl=g(`company_profile_url`),zl=g(`logodev_describe_match`),Bl=g(`logo_url`),Vl=`company:match:logodev@2`,Hl=r.object({pipe_id:r.literal(Vl),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[Il.name]:E({fieldName:Il.name})})),output_fields:R(r.object({[Rl.name]:k({fieldName:Rl.name}),[Bl.name]:k({fieldName:Bl.name}),[Ll.name]:k({fieldName:Ll.name}),[zl.name]:k({fieldName:zl.name})}))}).optional()}),Ul=e=>H(J(Il,e)),Wl={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},Gl=class extends U{pipeId=Vl;payload;payloadSchema=Hl;billableOperations=Wl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(e){return G(e,`company-match-logodev-v2-logodev`)}getInputRequirement(){return Ul(this.payload.config)}getRawOutputFields(){return{[Rl.name]:this.catalogOutput(Rl),[Ll.name]:this.catalogOutput(Ll),[Bl.name]:this.catalogOutput(Bl),[zl.name]:this.catalogOutput(zl)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},Kl=Hl,ql={pipeId:Vl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(Vl),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find brand data like logos, colors, and social links via the Logo.dev API.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:q(Vl),billableOperations:Wl,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Ul(null),defaultPayload:{pipe_id:Vl,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}}}}},Jl=`company:newssummary:domain@1`,Yl=g(`company_news_summary`),Xl=g(`company_domain`),Zl=r.object({pipe_id:r.literal(Jl),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[Xl.name]:E({fieldName:Xl.name})})),output_fields:R(r.object({[Yl.name]:k({fieldName:Yl.name})}))}).optional()}),Ql=e=>H(J(Xl,e)),$l={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:2},mode:`always`,provider:`pipe0`}},eu=class extends U{pipeId=Jl;payloadSchema=Zl;billableOperations=$l;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`company-newssummary-domain-v1-pipe0`)}getInputRequirement(){return Ql(this.payload.config)}getRawOutputFields(){return{[Yl.name]:this.catalogOutput(Yl)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0}]}},tu=Zl,nu={pipeId:Jl,basePipe:K(Jl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company news`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find recent company news by performing a search and scrape.`,tags:[W.NEWS],docPath:q(Jl),billableOperations:$l,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Ql(null),defaultPayload:{pipe_id:Jl,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},ru=g(`company_domain`),iu=g(`company_profile_url`),au=g(`company_description`),ou=g(`company_industry`),su=g(`company_region`),cu=g(`headcount`),lu=g(`estimated_revenue`),uu=g(`founded_year`),du=g(`company_name`),fu=`company:overview@3`,pu=r.object({pipe_id:r.literal(fu),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[ru.name]:E({fieldName:ru.name}),[iu.name]:E({fieldName:iu.name})})),output_fields:R(r.object({[au.name]:k({fieldName:au.name}),[ou.name]:k({fieldName:ou.name}),[su.name]:k({fieldName:su.name}),[cu.name]:k({fieldName:cu.name}),[lu.name]:k({fieldName:lu.name}),[uu.name]:k({fieldName:uu.name}),[du.name]:k({fieldName:du.name})}))}).optional()}),mu=e=>uc(J(ru,e),J(iu,e)),hu={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`always`}},gu=class extends U{pipeId=fu;payloadSchema=pu;billableOperations=hu;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`company-overview-v3-pipe0`)}getInputRequirement(){return mu(this.payload.config)}getRawOutputFields(){return{[au.name]:this.catalogOutput(au),[ou.name]:this.catalogOutput(ou),[su.name]:this.catalogOutput(su),[cu.name]:this.catalogOutput(cu),[lu.name]:this.catalogOutput(lu),[uu.name]:this.catalogOutput(uu),[du.name]:this.catalogOutput(du)}}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}]}},_u=pu,vu={pipeId:fu,basePipe:K(fu),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:q(fu),tags:[W.WEBSITE,W.LINKEDIN,W.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:hu,defaultInputRequirement:mu(null),defaultPayload:{pipe_id:fu,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}}}}},yu=g(`company_domain`),bu=g(`technology_list`),xu=g(`spending_trend`),Su=g(`technology_match_builtwith`),Cu=`company:techstack:builtwith@2`,wu=r.object({pipe_id:r.literal(Cu),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[yu.name]:E({fieldName:yu.name})})),output_fields:R(r.object({[bu.name]:k({fieldName:bu.name}),[Su.name]:k({fieldName:Su.name}),[xu.name]:k({fieldName:xu.name})}))}).optional()}),Tu=e=>H(J(yu,e)),Eu={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},Du=class extends U{pipeId=Cu;payload;payloadSchema=wu;billableOperations=Eu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(e){return G(e,`company-techstack-builtwith-v2-builtwith`)}getInputRequirement(){return Tu(this.payload.config)}getRawOutputFields(){return{[bu.name]:this.catalogOutput(bu),[Su.name]:this.catalogOutput(Su),[xu.name]:this.catalogOutput(xu)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Ou=wu,ku={pipeId:Cu,basePipe:K(Cu),managedProviders:[`builtwith`],deprecatedProviders:[],allowedUserConnectionProviders:[`builtwith`],label:`Tech stack`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`All technologies and frameworks powering a given website.`,tags:[W.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:q(Cu),billableOperations:Eu,defaultInputRequirement:Tu(null),defaultPayload:{pipe_id:Cu,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}}}}},Au={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},ju=`contact:create:resend@1`,Mu={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Nu=g(`email`),Pu=g(`name`),Fu=g(`resend_contact_id`),Iu=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],Lu=r.object({pipe_id:r.literal(ju),connector:Go(),run_if:x(),config:r.object({segment_id:bs({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:Na(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Iu;if(!t)throw new Au.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 Au.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:O({sectionKey:`general`,defaultValue:!0,label:`Add as subscribed`,groupPath:`config.general`,path:`config.add_as_subscribed`,info:``}),input_fields:z(r.object({[Pu.name]:E({fieldName:Pu.name}),[Nu.name]:E({fieldName:Nu.name})})),output_fields:R(r.object({[Fu.name]:k({fieldName:Fu.name})}))})}),Ru=e=>lc(H(J(Nu,e)),H(J(Pu,e))),zu=class extends U{pipeId=ju;payload;payloadSchema=Lu;billableOperations=Mu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(e){return G(e,`contact-create-resend-v1-resend`)}getInputRequirement(){return Ru(this.payload.config)}getRawOutputFields(){return{[Fu.name]:this.catalogOutput(Fu)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Bu=Lu,Vu={pipeId:ju,basePipe:K(ju),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[W.EMAIL],docPath:q(ju),billableOperations:Mu,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:Ru(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:ju,connector:{strategy:`first`,connections:[]},run_if:null,config:{segment_id:``,add_as_subscribed:!0,input_fields:{name:{alias:``},email:{alias:``}},output_fields:{resend_contact_id:{alias:``,enabled:!0}}}}},Hu=`company:funding:leadmagic@1`,Uu=g(`company_name`),Wu=g(`company_website_url`),Gu=g(`funding_history`),Ku=g(`funding_total_usd`),qu=g(`leadmagic_competitor_list`),Ju=g(`leadmagic_acquisition_history`),Yu=g(`leadmagic_company_news_list`),Xu=r.object({pipe_id:r.literal(Hu),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[Uu.name]:E({fieldName:Uu.name}),[Wu.name]:E({fieldName:Wu.name})})),output_fields:R(r.object({[Gu.name]:k({fieldName:Gu.name}),[Ku.name]:k({fieldName:Ku.name}),[qu.name]:k({fieldName:qu.name}),[Ju.name]:k({fieldName:Ju.name}),[Yu.name]:k({fieldName:Yu.name})}))}).optional()}),Zu=e=>uc(J(Uu,e),J(Wu,e)),Qu={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},$u=class extends U{pipeId=Hu;payload;payloadSchema=Xu;billableOperations=Qu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(e){return G(e,`company-funding-leadmagic-v1-leadmagic`)}getInputRequirement(){return Zu(this.payload.config)}getRawOutputFields(){return{[Gu.name]:this.catalogOutput(Gu),[Ku.name]:this.catalogOutput(Ku)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},ed=Xu,td={pipeId:Hu,basePipe:K(Hu),label:`Funding history`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:funding:leadmagic@2`},description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[W.FINANCIAL_DATA],docPath:q(Hu),billableOperations:Qu,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:Zu(null),defaultPayload:{pipe_id:Hu,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:``}}}}},nd=g(`company_name`),rd=g(`company_social_url`),id=g(`company_website_url`),ad=g(`cleaned_company_name`),od=`company:identity@1`,sd=r.object({pipe_id:r.literal(od),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[nd.name]:E({fieldName:nd.name})})),output_fields:R(r.object({[rd.name]:k({fieldName:rd.name}),[ad.name]:k({fieldName:ad.name}),[id.name]:k({fieldName:id.name})}))}).optional()}),cd=e=>H(J(nd,e)),ld={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},ud=class extends U{pipeId=od;payload;payloadSchema=sd;billableOperations=ld;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`company-identity-v1-pipe0`)}getInputRequirement(){return cd(this.payload.config)}getRawOutputFields(){return{[rd.name]:this.catalogOutput(rd),[id.name]:this.catalogOutput(id),[ad.name]:this.catalogOutput(ad)}}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}]}},dd=sd,fd={pipeId:od,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(od),label:`Company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@2`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:`/resources/pipe-catalog/company:identity/1`,billableOperations:ld,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:cd(null),defaultPayload:{pipe_id:od,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}}}}},pd=g(`company_name`),md=g(`company_profile_url`),hd=g(`company_website_url`),gd=g(`cleaned_company_name`),_d=`company:identity@2`,vd=r.object({pipe_id:r.literal(_d),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[pd.name]:E({fieldName:pd.name})})),output_fields:R(r.object({[md.name]:k({fieldName:md.name}),[gd.name]:k({fieldName:gd.name}),[hd.name]:k({fieldName:hd.name})}))}).optional()}),yd=e=>H(J(pd,e)),bd={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},xd=class extends U{pipeId=_d;payload;payloadSchema=vd;billableOperations=bd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`company-identity-v2-pipe0`)}getInputRequirement(){return yd(this.payload.config)}getRawOutputFields(){return{[md.name]:this.catalogOutput(md),[hd.name]:this.catalogOutput(hd),[gd.name]:this.catalogOutput(gd)}}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}]}},Sd=vd,Cd={pipeId:_d,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(_d),label:`Company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@3`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:q(_d),billableOperations:bd,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:yd(null),defaultPayload:{pipe_id:_d,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}}}}},wd=g(`company_website_url`),Td=g(`companyenrich_matches`),Ed=`company:lookalikes:companyenrich@1`,Dd=r.object({pipe_id:r.literal(Ed),run_if:x(),connector:C(),config:r.object({limit:_s({groupPath:`config.general`,max:50,min:1,path:`config.limit`,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:z(r.object({[wd.name]:E({fieldName:wd.name})})),output_fields:R(r.object({[Td.name]:k({fieldName:Td.name})}))}).optional()}),Od=e=>H(J(wd,e)),kd={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Ad=class extends U{pipeId=Ed;payload;payloadSchema=Dd;billableOperations=kd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(e){return[{billableOperation:`company-lookalikes-companyenrich-v1-companyenrich`,quantity:e.count*5}]}getInputRequirement(){return Od(this.payload.config)}getRawOutputFields(){return{[Td.name]:this.catalogOutput(Td)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},jd=Dd,Md={pipeId:Ed,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(Ed),label:`Find company lookalikes`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:lookalikes:companyenrich@2`},description:`Find companies similar to the company you provide as input.`,tags:[W.COMPANY_PROFILES],docPath:q(Ed),billableOperations:kd,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Od(null),defaultPayload:{pipe_id:Ed,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Nd=g(`company_website_url`),Pd=g(`crustdata_companyenrich_match`),Fd=`company:match:crustdata@1`,Id=r.object({pipe_id:r.literal(Fd),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[Nd.name]:E({fieldName:Nd.name})})),output_fields:R(r.object({[Pd.name]:k({fieldName:Pd.name})}))}).optional()}),Ld=e=>H(J(Nd,e)),Rd={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},zd=class extends U{pipeId=Fd;payload;payloadSchema=Id;billableOperations=Rd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return G(e,`company-match-crustdata-v1-crustdata`)}getInputRequirement(){return Ld(this.payload.config)}getRawOutputFields(){return{[Pd.name]:this.catalogOutput(Pd)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Bd=Id,Vd={pipeId:Fd,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(Fd),label:`Company match`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:match:crustdata@2`},description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:q(Fd),billableOperations:Rd,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Ld(null),defaultPayload:{pipe_id:Fd,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Hd=g(`company_website_url`),Ud=g(`company_name`),Wd=g(`company_profile_url`),Gd=g(`logodev_describe_match`),Kd=g(`logo_url`),qd=`company:match:logodev@1`,Jd=r.object({pipe_id:r.literal(qd),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[Hd.name]:E({fieldName:Hd.name})})),output_fields:R(r.object({[Wd.name]:k({fieldName:Wd.name}),[Kd.name]:k({fieldName:Kd.name}),[Ud.name]:k({fieldName:Ud.name}),[Gd.name]:k({fieldName:Gd.name})}))}).optional()}),Yd=e=>H(J(Hd,e)),Xd={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},Zd=class extends U{pipeId=qd;payload;payloadSchema=Jd;billableOperations=Xd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(e){return G(e,`company-match-logodev-v1-logodev`)}getInputRequirement(){return Yd(this.payload.config)}getRawOutputFields(){return{[Wd.name]:this.catalogOutput(Wd),[Ud.name]:this.catalogOutput(Ud),[Kd.name]:this.catalogOutput(Kd),[Gd.name]:this.catalogOutput(Gd)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},Qd=Jd,$d={pipeId:qd,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(qd),label:`Company match`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:match:logodev@2`},description:`Find brand data like logos, colors, and social links via the Logo.dev API.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:q(qd),billableOperations:Xd,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Yd(null),defaultPayload:{pipe_id:qd,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}}}}},ef=`company:newssummary:website@1`,tf=g(`company_news_summary`),nf=g(`company_website_url`),rf=r.object({pipe_id:r.literal(ef),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[nf.name]:E({fieldName:nf.name})})),output_fields:R(r.object({[tf.name]:k({fieldName:tf.name})}))}).optional()}),af=e=>H(J(nf,e)),of={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},sf=class extends U{pipeId=ef;payloadSchema=rf;billableOperations=of;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`company-newssummary-website-v1-pipe0`)}getInputRequirement(){return af(this.payload.config)}getRawOutputFields(){return{[tf.name]:this.catalogOutput(tf)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},cf=rf,lf={pipeId:ef,basePipe:K(ef),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company news`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:newssummary:domain@1`},description:`Find recent company news by performing a search and scrape.`,tags:[W.NEWS],docPath:q(ef),billableOperations:of,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:af(null),defaultPayload:{pipe_id:ef,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},uf=g(`company_website_url`),df=g(`company_social_url`),ff=g(`company_description`),pf=g(`company_industry`),mf=g(`company_region`),hf=g(`headcount`),gf=g(`estimated_revenue`),_f=g(`founded_year`),vf=`company:overview@1`,yf=r.object({pipe_id:r.literal(vf),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[uf.name]:E({fieldName:uf.name}),[df.name]:E({fieldName:df.name})})),output_fields:R(r.object({[ff.name]:k({fieldName:ff.name}),[pf.name]:k({fieldName:pf.name}),[mf.name]:k({fieldName:mf.name}),[hf.name]:k({fieldName:hf.name}),[gf.name]:k({fieldName:gf.name}),[_f.name]:k({fieldName:_f.name})}))}).optional()}),bf=e=>uc(J(uf,e),J(df,e)),xf={"company-overview-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},Sf=class extends U{pipeId=vf;payloadSchema=yf;billableOperations=xf;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`company-overview-v1-pipe0`)}getInputRequirement(){return bf(this.payload.config)}getRawOutputFields(){return{[ff.name]:this.catalogOutput(ff),[pf.name]:this.catalogOutput(pf),[mf.name]:this.catalogOutput(mf),[hf.name]:this.catalogOutput(hf),[gf.name]:this.catalogOutput(gf),[_f.name]:this.catalogOutput(_f)}}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}]}},Cf=yf,wf={pipeId:vf,basePipe:K(vf),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@2`},description:`Find high-level business and financial information like company description, estimated revenue, and headcount.`,docPath:`/resources/pipe-catalog/company:overview/1`,tags:[W.WEBSITE,W.LINKEDIN,W.FINANCIAL_DATA,W.DEPRECATED],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:xf,defaultInputRequirement:bf(null),defaultPayload:{pipe_id:vf,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}}}}},Tf=g(`company_website_url`),Ef=g(`company_profile_url`),Df=g(`company_description`),Of=g(`company_industry`),kf=g(`company_region`),Af=g(`headcount`),jf=g(`estimated_revenue`),Mf=g(`founded_year`),Nf=g(`company_name`),Pf=`company:overview@2`,Ff=r.object({pipe_id:r.literal(Pf),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Tf.name]:E({fieldName:Tf.name}),[Ef.name]:E({fieldName:Ef.name})})),output_fields:R(r.object({[Df.name]:k({fieldName:Df.name}),[Of.name]:k({fieldName:Of.name}),[kf.name]:k({fieldName:kf.name}),[Af.name]:k({fieldName:Af.name}),[jf.name]:k({fieldName:jf.name}),[Mf.name]:k({fieldName:Mf.name}),[Nf.name]:k({fieldName:Nf.name})}))}).optional()}),If=e=>uc(J(Tf,e),J(Ef,e)),Lf={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},Rf=class extends U{pipeId=Pf;payloadSchema=Ff;billableOperations=Lf;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`company-overview-v2-pipe0`)}getInputRequirement(){return If(this.payload.config)}getRawOutputFields(){return{[Df.name]:this.catalogOutput(Df),[Of.name]:this.catalogOutput(Of),[kf.name]:this.catalogOutput(kf),[Af.name]:this.catalogOutput(Af),[jf.name]:this.catalogOutput(jf),[Mf.name]:this.catalogOutput(Mf),[Nf.name]:this.catalogOutput(Nf)}}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}]}},zf=Ff,Bf={pipeId:Pf,basePipe:K(Pf),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:q(Pf),tags:[W.WEBSITE,W.LINKEDIN,W.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Lf,defaultInputRequirement:If(null),defaultPayload:{pipe_id:Pf,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}}}}},Vf=g(`company_website_url`),Hf=g(`technology_list`),Uf=g(`spending_trend`),Wf=g(`technology_match_builtwith`),Gf=`company:techstack:builtwith@1`,Kf=r.object({pipe_id:r.literal(Gf),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[Vf.name]:E({fieldName:Vf.name})})),output_fields:R(r.object({[Hf.name]:k({fieldName:Hf.name}),[Wf.name]:k({fieldName:Wf.name}),[Uf.name]:k({fieldName:Uf.name})}))}).optional()}),qf=e=>H(J(Vf,e)),Jf={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},Yf=class extends U{pipeId=Gf;payload;payloadSchema=Kf;billableOperations=Jf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(e){return G(e,`company-techstack-builtwith-v1-builtwith`)}getInputRequirement(){return qf(this.payload.config)}getRawOutputFields(){return{[Hf.name]:this.catalogOutput(Hf),[Wf.name]:this.catalogOutput(Wf),[Uf.name]:this.catalogOutput(Uf)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Xf=Kf,Zf={pipeId:Gf,basePipe:K(Gf),managedProviders:[`builtwith`],deprecatedProviders:[],allowedUserConnectionProviders:[`builtwith`],label:`Tech stack`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:techstack:builtwith@2`},description:`All technologies and frameworks powering a given website.`,tags:[W.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:q(Gf),billableOperations:Jf,defaultInputRequirement:qf(null),defaultPayload:{pipe_id:Gf,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}}}}},Qf=`company:websiteurl:email@1`,$f=g(`company_website_url`),ep=g(`email`),tp=r.object({pipe_id:r.literal(Qf),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[ep.name]:E({fieldName:ep.name})})),output_fields:R(r.object({[$f.name]:k({fieldName:$f.name})}))}).optional()}),np=e=>H(J(ep,e)),rp={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},ip=class extends U{pipeId=Qf;payload;payloadSchema=tp;billableOperations=rp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`company-websiteurl-email-v1-pipe0`)}getInputRequirement(){return np(this.payload.config)}getRawOutputFields(){return{[$f.name]:this.catalogOutput($f)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},ap=tp,op={pipeId:Qf,basePipe:K(Qf),inputFieldMode:`static`,outputFieldMode:`static`,label:`Website from email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:domain:workemail@1`},description:`Extract the company website URL from a work email address.`,tags:[W.EMAIL,W.WORK_EMAIL,W.WEBSITE],docPath:q(Qf),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:rp,defaultInputRequirement:np(null),defaultPayload:{pipe_id:Qf,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},sp=`people:email:iswork@1`,cp=g(`is_work_email`),lp=g(`email`),up=r.object({pipe_id:r.literal(sp),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[lp.name]:E({fieldName:lp.name})})),output_fields:R(r.object({[cp.name]:k({fieldName:cp.name})}))}).optional()}),dp=e=>H(J(lp,e)),fp={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},pp=class extends U{pipeId=sp;payload;payloadSchema=up;billableOperations=fp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`people-email-iswork-v1-pipe0`)}getInputRequirement(){return dp(this.payload.config)}getRawOutputFields(){return{[cp.name]:this.catalogOutput(cp)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},mp=up,hp={pipeId:sp,label:`Work email checker`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`email:iswork@1`},description:`Check if a given email address is personal or professional.`,tags:[W.EMAIL,W.WORK_EMAIL],docPath:q(sp),billableOperations:fp,basePipe:K(sp),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:dp(null),defaultPayload:{pipe_id:sp,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},gp=`people:email:validate:zerobounce@1`,_p=g(`work_email`),vp=g(`is_email_valid`),yp=r.object({pipe_id:r.literal(gp),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[_p.name]:E({fieldName:_p.name})})),output_fields:R(r.object({[vp.name]:k({fieldName:vp.name})}))}).optional()}),bp=e=>H(J(_p,e)),xp={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},Sp=class extends U{pipeId=gp;payload;payloadSchema=yp;billableOperations=xp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return G(e,`people-email-validate-zerobounce-v1-zerobounce`)}getInputRequirement(){return bp(this.payload.config)}getRawOutputFields(){return{[vp.name]:this.catalogOutput(vp)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Cp=yp,wp={pipeId:gp,basePipe:K(gp),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:email:validate:zerobounce@2`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[W.EMAIL],docPath:`/resources/pipe-catalog/people:email:validate:zerobounce/1`,billableOperations:xp,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:bp(null),defaultPayload:{pipe_id:gp,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Tp=`people:email:validate:zerobounce@2`,Ep=g(`email`),Dp=g(`zerobounce_validation_status`),Op=g(`zerobounce_validation_match`),kp=r.object({pipe_id:r.literal(Tp),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[Ep.name]:E({fieldName:Ep.name})})),output_fields:R(r.object({[Op.name]:k({fieldName:Op.name}),[Dp.name]:k({fieldName:Dp.name})}))}).optional()}),Ap=e=>H(J(Ep,e)),jp={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},Mp=class extends U{pipeId=Tp;payload;payloadSchema=kp;billableOperations=jp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return G(e,`people-email-validate-zerobounce-v2-zerobounce`)}getInputRequirement(){return Ap(this.payload.config)}getRawOutputFields(){return{[Dp.name]:this.catalogOutput(Dp),[Op.name]:this.catalogOutput(Op)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Np=kp,Pp={pipeId:Tp,basePipe:K(Tp),label:`Validate email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`email:validate:zerobounce@1`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[W.EMAIL],docPath:q(Tp),billableOperations:jp,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Ap(null),defaultPayload:{pipe_id:Tp,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 Fp(e){return(e.widgets||{}).display_value?.label}function Ip(e){console.dir(e,{depth:100})}function Lp(e){return typeof e==`object`&&e?JSON.stringify(e):e}function Y(e){return e===0?1:e===1?.3:e===2?.2:.1}function Rp(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=Rp(e[n])}),t}const zp={string:[`address_line_1`,`email`,`url`,`website_url`,`markdown`,`zip_code`,`date`,`datetime`,`phone`,`text`,`profile_url`],json:[`json_object`,`json_list`],number:[`int`,`decimal`],boolean:[],unknown:[]};function X(e,t){let n=Object.entries(t).filter(([t,n])=>n.provider===e);if(n.length!==1)throw Error(`Found ${n.length} billing operations for provider ${e}. This is not allowed. There must be exactly 1 billing operation per provider.`);let[r,i]=n[0];return{billableOperation:r,billableOperationDef:i}}const Bp=`people:identity:email:waterfall@1`,Vp=g(`email`),Hp=g(`company_website_url`),Up=g(`name`),Wp=g(`job_title`),Gp=g(`profile_url`),Kp=g(`company_profile_url`),qp=g(`company_name`),Jp=[`findymail`,`hunter`,`crustdata`],Yp=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],Xp=r.object({pipe_id:r.literal(Bp),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:Jp,defaultProviders:Yp,sectionKey:`general`}),input_fields:z(r.object({[Vp.name]:E({fieldName:Vp.name})})),output_fields:R(r.object({[Up.name]:k({fieldName:Up.name}),[Gp.name]:k({fieldName:Gp.name}),[Wp.name]:k({fieldName:Wp.name}),[Hp.name]:k({fieldName:Hp.name}),[qp.name]:k({fieldName:qp.name}),[Kp.name]:k({fieldName:Kp.name})}))}).optional()}),Zp=e=>H(J(Vp,e)),Qp={"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`}},$p=class extends U{pipeId=Bp;payload;payloadSchema=Xp;billableOperations=Qp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Zp(this.payload.config)}getRawOutputFields(){return{[Up.name]:this.catalogOutput(Up,{isPrimaryOutput:!0}),[Gp.name]:this.catalogOutput(Gp,{isPrimaryOutput:!0}),[Wp.name]:this.catalogOutput(Wp,{isPrimaryOutput:!0}),[qp.name]:this.catalogOutput(qp,{isPrimaryOutput:!0}),[Kp.name]:this.catalogOutput(Kp,{isPrimaryOutput:!0}),[Hp.name]:this.catalogOutput(Hp,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},em=Xp,tm={pipeId:Bp,basePipe:K(Bp),label:`Person identity from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:identity:email:waterfall@1`},description:`Find identity of a person from their email address.`,tags:[W.EMAIL,W.PEOPLE_PROFILES],docPath:q(Bp),managedProviders:Jp,deprecatedProviders:[],allowedUserConnectionProviders:Jp,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Qp,defaultInputRequirement:Zp(null),defaultPayload:{pipe_id:Bp,connector:null,run_if:null,config:{providers:Yp,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}}}}},nm=`people:match:role:waterfall@1`,rm=g(`company_website_url`),im=g(`role_finder_match`),am=[`leadmagic`],om=[{provider:`leadmagic`}],sm=r.object({pipe_id:r.literal(nm),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:om,availableProviders:am}),roles:is({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:z(r.object({[rm.name]:E({fieldName:rm.name})})),output_fields:R(r.object({[im.name]:k({fieldName:im.name})}))})}),cm=e=>uc(J(rm,e)),lm={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},um=class extends U{pipeId=nm;payload;payloadSchema=sm;billableOperations=lm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return cm(this.payload.config)}getRawOutputFields(){return{[im.name]:this.catalogOutput(im,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},dm=sm,fm={pipeId:nm,basePipe:K(nm),managedProviders:am,deprecatedProviders:[],allowedUserConnectionProviders:am,label:`Role finder`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:match:role:waterfall@1`},description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[W.PEOPLE_PROFILES],docPath:q(nm),billableOperations:lm,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:cm(null),defaultPayload:{pipe_id:nm,run_if:null,connector:null,config:{roles:[],providers:om,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},pm=`people:mobilenumber:professionalprofile:waterfall@1`,mm=g(`professional_profile_url`),hm=g(`mobile_number`),gm=[`leadmagic`,`prospeo`],_m=[{provider:`leadmagic`},{provider:`prospeo`}],vm=r.object({pipe_id:r.literal(pm),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:_m,availableProviders:gm}),input_fields:z(r.object({[mm.name]:E({fieldName:mm.name})})),output_fields:R(r.object({[hm.name]:k({fieldName:hm.name})}))}).optional()}),ym=e=>H(J(mm,e)),bm={"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`}},xm=class extends U{pipeId=pm;payload;payloadSchema=vm;billableOperations=bm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return ym(this.payload.config)}getRawOutputFields(){return{[hm.name]:this.catalogOutput(hm)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Sm=vm,Cm={pipeId:pm,basePipe:K(pm),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:phone:profile:waterfall@1`},description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:`/resources/pipe-catalog/people:mobilenumber:professionalprofile:waterfall/1`,tags:[W.PHONE,W.WATERFALL],billableOperations:bm,defaultInputRequirement:ym(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:gm,deprecatedProviders:[],allowedUserConnectionProviders:gm,defaultPayload:{pipe_id:pm,connector:null,run_if:null,config:{providers:_m,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},wm=`people:mobilenumber:workemail:waterfall@1`,Tm=g(`work_email`),Em=g(`mobile_number`),Dm=[`leadmagic`],Om=[{provider:`leadmagic`}],km=r.object({pipe_id:r.literal(wm),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Dm,defaultProviders:Om}),input_fields:z(r.object({[Tm.name]:E({fieldName:Tm.name})})),output_fields:R(r.object({[Em.name]:k({fieldName:Em.name})}))}).optional()}),Am=e=>H(J(Tm,e)),jm={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Mm=class extends U{pipeId=wm;payload;payloadSchema=km;billableOperations=jm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers?.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Am(this.payload.config)}getRawOutputFields(){return{[Em.name]:this.catalogOutput(Em)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Nm=km,Pm={pipeId:wm,basePipe:K(wm),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:phone:workemail:waterfall@1`},description:`Find a mobile phone number for a prospect.`,tags:[W.PHONE,W.WATERFALL],docPath:`/resources/pipe-catalog/people:mobilenumber:workemail:waterfall/1`,billableOperations:jm,defaultInputRequirement:Am(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Dm,managedProviders:Dm,deprecatedProviders:[],defaultPayload:{pipe_id:wm,connector:null,run_if:null,config:{providers:Om,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Fm=`people:name:split@1`,Im=g(`name`),Lm=g(`first_name`),Rm=g(`last_name`),zm=r.object({pipe_id:r.literal(Fm),connector:w(),run_if:x(),config:r.object({input_fields:z(r.object({[Im.name]:E({fieldName:Im.name})})),output_fields:R(r.object({[Lm.name]:k({fieldName:Lm.name}),[Rm.name]:k({fieldName:Rm.name})}))}).optional()}),Bm=e=>H(J(Im,e)),Vm={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Hm=class extends U{pipeId=Fm;payload;payloadSchema=zm;billableOperations=Vm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`people-name-split-v1-pipe0`)}getInputRequirement(){return Bm(this.payload.config)}getRawOutputFields(){return{[Lm.name]:this.catalogOutput(Lm),[Rm.name]:this.catalogOutput(Rm)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Um=zm,Wm={pipeId:Fm,basePipe:K(Fm),label:`Split name`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:name:split@1`},description:`Split a full name into first and last name.`,tags:[W.NAMES],docPath:q(Fm),billableOperations:Vm,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Bm(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Fm,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},Gm=`people:personalemail:profile:waterfall@1`,Km=g(`profile_url`),qm=g(`personal_email`),Jm=g(`alternate_personal_emails`),Ym=[`clado`,`leadmagic`,`mixrank`],Xm=[{provider:`leadmagic`},{provider:`mixrank`}],Zm=r.object({pipe_id:r.literal(Gm),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Ym,defaultProviders:Xm}),input_fields:z(r.object({[Km.name]:E({fieldName:Km.name})})),output_fields:R(r.object({[qm.name]:k({fieldName:qm.name}),[Jm.name]:k({fieldName:Jm.name})}))}).optional()}),Qm=e=>H(J(Km,e)),$m={"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`}},eh=class extends U{pipeId=Gm;payload;payloadSchema=Zm;billableOperations=$m;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Qm(this.payload.config)}getRawOutputFields(){return{[qm.name]:this.catalogOutput(qm,{isPrimaryOutput:!0}),[Jm.name]:this.catalogOutput(Jm)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,clado:`clado_contact_information`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},th=Zm,nh={pipeId:Gm,basePipe:K(Gm),allowedUserConnectionProviders:Ym,managedProviders:Ym,deprecatedProviders:[`clado`],label:`Personal email from LinkedIn`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:personalemail:profileurl:waterfall@1`},description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[W.EMAIL,W.PERSONAL_EMAIL],docPath:q(Gm),billableOperations:$m,defaultInputRequirement:Qm(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Gm,connector:null,run_if:null,config:{providers:Xm,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},rh=`people:phone:profile:waterfall@1`,ih=g(`profile_url`),ah=g(`mobile`),oh=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],sh=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],ch=r.object({pipe_id:r.literal(rh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:sh,availableProviders:oh}),input_fields:z(r.object({[ih.name]:E({fieldName:ih.name})})),output_fields:R(r.object({[ah.name]:k({fieldName:ah.name})}))}).optional()}),lh=e=>H(J(ih,e)),uh={"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`}},dh=class extends U{pipeId=rh;payload;payloadSchema=ch;billableOperations=uh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return lh(this.payload.config)}getRawOutputFields(){return{[ah.name]:this.catalogOutput(ah,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`,findymail:`findymail_phone_lookup`,clado:`clado_contact_information`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},fh=ch,ph={pipeId:rh,basePipe:K(rh),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:q(rh),tags:[W.PHONE,W.WATERFALL],billableOperations:uh,defaultInputRequirement:lh(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:oh,allowedUserConnectionProviders:oh,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:rh,connector:null,run_if:null,config:{providers:sh,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},mh=`people:phone:workemail:waterfall@1`,hh=g(`work_email`),gh=g(`mobile`),_h=[`leadmagic`,`amplemarket`],vh=[{provider:`leadmagic`},{provider:`amplemarket`}],yh=r.object({pipe_id:r.literal(mh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:_h,defaultProviders:vh}),input_fields:z(r.object({[hh.name]:E({fieldName:hh.name})})),output_fields:R(r.object({[gh.name]:k({fieldName:gh.name})}))}).optional()}),bh=e=>H(J(hh,e)),xh={"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`}},Sh=class extends U{pipeId=mh;payload;payloadSchema=yh;billableOperations=xh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return bh(this.payload.config)}getRawOutputFields(){return{[gh.name]:this.catalogOutput(gh,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Ch=yh,wh={pipeId:mh,basePipe:K(mh),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:mobile:workemail:waterfall@1`},description:`Find a mobile phone number for a prospect.`,tags:[W.PHONE,W.WATERFALL],docPath:q(mh),billableOperations:xh,defaultInputRequirement:bh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:_h,managedProviders:_h,deprecatedProviders:[],defaultPayload:{pipe_id:mh,connector:null,run_if:null,config:{providers:vh,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Th=`people:professionalprofile:waterfall@1`,Eh=g(`professional_profile`),Dh=g(`professional_profile_url`),Oh=[`prospeo`,`icypeas`],kh=[{provider:`prospeo`},{provider:`icypeas`}],Ah=r.object({pipe_id:r.literal(Th),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Oh,defaultProviders:kh}),input_fields:z(r.object({[Dh.name]:E({fieldName:Dh.name})})),output_fields:R(r.object({[Eh.name]:k({fieldName:Eh.name})}))}).optional()}),jh=e=>H(J(Dh,e)),Mh={"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}},Nh=class extends U{pipeId=Th;payload;payloadSchema=Ah;billableOperations=Mh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return jh(this.payload.config)}getRawOutputFields(){return{[Eh.name]:this.catalogOutput(Eh)}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Ph=Ah,Fh={pipeId:Th,basePipe:K(Th),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profile:waterfall@1`},description:`Find a JSON representation of a LinkedIn profile.`,docPath:`/resources/pipe-catalog/people:professionalprofile:waterfall/1`,tags:[W.LINKEDIN,W.WATERFALL],managedProviders:Oh,deprecatedProviders:[],allowedUserConnectionProviders:Oh,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Mh,defaultInputRequirement:jh(null),defaultPayload:{pipe_id:Th,run_if:null,connector:null,config:{providers:kh,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},Ih=`people:professionalprofileurl:email:waterfall@1`,Lh=g(`email`),Rh=g(`work_email`),zh=g(`professional_profile_url`),Bh=[`leadmagic`],Vh=[{provider:`leadmagic`}],Hh=r.object({pipe_id:r.literal(Ih),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Vh,availableProviders:Bh}),input_fields:z(r.object({[Lh.name]:E({fieldName:Lh.name}),[Rh.name]:E({fieldName:Rh.name})})),output_fields:R(r.object({[zh.name]:k({fieldName:zh.name})}))}).optional()}),Uh=e=>uc(J(Lh,e),J(Rh,e)),Wh={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},Gh=class extends U{pipeId=Ih;payload;payloadSchema=Hh;billableOperations=Wh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Uh(this.payload.config)}getRawOutputFields(){return{[zh.name]:this.catalogOutput(zh)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Kh=Hh,qh={pipeId:Ih,basePipe:K(Ih),managedProviders:Bh,deprecatedProviders:[],allowedUserConnectionProviders:Bh,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profileurl:email:waterfall@1`},description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[W.LINKEDIN],docPath:`/resources/pipe-catalog/people:professionalprofileurl:email:waterfall/1`,billableOperations:Wh,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Uh(null),defaultPayload:{pipe_id:Ih,run_if:null,connector:null,config:{providers:Vh,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},Jh=`people:professionalprofileurl:name@1`,Yh=g(`name`),Xh=g(`company_name`),Zh=g(`location_hint`),Qh=g(`professional_profile_url`),$h=r.object({pipe_id:r.literal(Jh),connector:w(),run_if:x(),config:r.object({input_fields:z(r.object({[Yh.name]:E({fieldName:Yh.name}),[Xh.name]:E({fieldName:Xh.name}),[Zh.name]:E({fieldName:Zh.name})})),output_fields:R(r.object({[Qh.name]:k({fieldName:Qh.name})}))}).optional()}),eg=e=>lc(H(J(Yh,e)),H(J(Xh,e)),dc(J(Zh,e))),tg={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},ng=class extends U{pipeId=Jh;payload;payloadSchema=$h;billableOperations=tg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`people-professionalprofileurl-name-v1-pipe0`)}getInputRequirement(){return eg(this.payload.config)}getRawOutputFields(){return{[Qh.name]:this.catalogOutput(Qh)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},rg=$h,ig={pipeId:Jh,basePipe:K(Jh),label:`LinkedIn URL from name`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profileurl:name@1`},allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],description:`Find the LinkedIn profile URL by using the prospect's name as input.`,docPath:`/resources/pipe-catalog/people:professionalprofileurl:name/1`,tags:[W.LINKEDIN],billableOperations:tg,defaultInputRequirement:eg(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Jh,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}}}}},ag=`people:profile:waterfall@1`,og=g(`profile`),sg=g(`profile_url`),cg=[`prospeo`,`icypeas`,`amplemarket`,`clado`],lg=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],ug=r.object({pipe_id:r.literal(ag),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:cg,defaultProviders:lg}),input_fields:z(r.object({[sg.name]:E({fieldName:sg.name})})),output_fields:R(r.object({[og.name]:k({fieldName:og.name})}))}).optional()}),dg=e=>H(J(sg,e)),fg={"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}},pg=class extends U{pipeId=ag;payload;payloadSchema=ug;billableOperations=fg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return dg(this.payload.config)}getRawOutputFields(){return{[og.name]:this.catalogOutput(og,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`,clado:`clado_social_profile_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},mg=ug,hg={pipeId:ag,basePipe:K(ag),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:q(ag),tags:[W.LINKEDIN,W.WATERFALL],managedProviders:cg,deprecatedProviders:[`clado`],allowedUserConnectionProviders:cg,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:fg,defaultInputRequirement:dg(null),defaultPayload:{pipe_id:ag,run_if:null,connector:null,config:{providers:lg,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},gg=g(`work_email`),_g=g(`crustdata_person_match`),vg=g(`crustdata_profile_match_score`),yg=`people:profile:workemail:crustdata@1`,bg=r.object({pipe_id:r.literal(yg),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[gg.name]:E({fieldName:gg.name})})),output_fields:R(r.object({[_g.name]:k({fieldName:_g.name}),[vg.name]:k({fieldName:vg.name})}))}).optional()}),xg=e=>H(J(gg,e)),Sg={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},Cg=class extends U{pipeId=yg;payload;payloadSchema=bg;billableOperations=Sg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return G(e,`people-profile-workemail-crustdata-v1-crustdata`)}getInputRequirement(){return xg(this.payload.config)}getRawOutputFields(){return{[_g.name]:this.catalogOutput(_g),[vg.name]:this.catalogOutput(vg)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},wg=bg,Tg={pipeId:yg,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(yg),label:`Profile from work email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profile:workemail:crustdata@1`},description:`Find person profile by their work email address.`,tags:[W.EMAIL,W.PEOPLE_PROFILES],docPath:q(yg),billableOperations:Sg,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:xg(null),defaultPayload:{pipe_id:yg,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}}}}},Eg=`people:profileurl:email:waterfall@1`,Dg=g(`email`),Og=g(`work_email`),kg=g(`profile_url`),Ag=[`leadmagic`],jg=[{provider:`leadmagic`}],Mg=r.object({pipe_id:r.literal(Eg),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:jg,availableProviders:Ag}),input_fields:z(r.object({[Dg.name]:E({fieldName:Dg.name}),[Og.name]:E({fieldName:Og.name})})),output_fields:R(r.object({[kg.name]:k({fieldName:kg.name})}))}).optional()}),Ng=e=>uc(J(Dg,e),J(Og,e)),Pg={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},Fg=class extends U{pipeId=Eg;payload;payloadSchema=Mg;billableOperations=Pg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Ng(this.payload.config)}getRawOutputFields(){return{[kg.name]:this.catalogOutput(kg,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Ig=Mg,Lg={pipeId:Eg,basePipe:K(Eg),managedProviders:Ag,deprecatedProviders:[],allowedUserConnectionProviders:Ag,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profileurl:email:waterfall@1`},description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[W.LINKEDIN],docPath:q(Eg),billableOperations:Pg,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Ng(null),defaultPayload:{pipe_id:Eg,run_if:null,connector:null,config:{providers:jg,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Rg=`people:validate:email:zerobounce@1`,zg=g(`work_email`),Bg=g(`ip_address`),Vg=g(`is_email_valid`),Hg=r.object({pipe_id:r.literal(Rg),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[zg.name]:E({fieldName:zg.name}),[Bg.name]:E({fieldName:Bg.name})})),output_fields:R(r.object({[Vg.name]:k({fieldName:Vg.name})}))}).optional()}),Ug=e=>lc(H(J(zg,e)),dc(J(Bg,e))),Wg={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},Gg=class extends U{pipeId=Rg;payload;payloadSchema=Hg;billableOperations=Wg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return G(e,`people-validate-email-zerobounce-v1-zerobounce`)}getInputRequirement(){return Ug(this.payload.config)}getRawOutputFields(){return{[Vg.name]:this.catalogOutput(Vg)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Kg=Hg,qg={pipeId:Rg,basePipe:K(Rg),label:`Validate email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:email:validate:zerobounce@1`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[W.EMAIL],docPath:`/resources/pipe-catalog/people:validate:email:zerobounce/1`,billableOperations:Wg,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Ug(null),defaultPayload:{pipe_id:Rg,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Jg=`people:workemail:profileurl:waterfall@1`,Yg=g(`profile_url`),Xg=g(`work_email`),Zg=g(`email_validation_status`),Qg=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],$g=[`clado`],e_=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],t_=r.object({pipe_id:r.literal(Jg),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:Qg,defaultProviders:e_,sectionKey:`general`}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:O({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:z(r.object({[Yg.name]:E({fieldName:Yg.name})})),output_fields:R(r.object({[Xg.name]:k({fieldName:Xg.name}),[Zg.name]:k({fieldName:Zg.name})}))}).optional()}),n_=e=>H(J(Yg,e)),r_={"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`}},i_=class extends U{pipeId=Jg;payload;payloadSchema=t_;billableOperations=r_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return n_(this.payload.config)}getRawOutputFields(){return{[Xg.name]:this.catalogOutput(Xg,{isPrimaryOutput:!0}),[Zg.name]:this.catalogOutput(Zg,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_b2b_lookup`,hunter:`prospeo_email_lookup`,amplemarket:`amplemarket-person-reveal`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`,clado:`clado_contact_information`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},a_=t_,o_={pipeId:Jg,basePipe:K(Jg),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:workemail:profileurl:waterfall@1`},description:`Find work email addresses from B2B profile.`,tags:[W.EMAIL,W.WORK_EMAIL,W.WATERFALL],docPath:q(Jg),managedProviders:Qg,allowedUserConnectionProviders:Qg,deprecatedProviders:$g,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:r_,defaultInputRequirement:n_(null),defaultPayload:{pipe_id:Jg,connector:null,run_if:null,config:{providers:e_,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}}}}},s_=`people:workemail:waterfall@1`,c_=g(`name`),l_=g(`company_website_url`),u_=g(`company_name`),d_=g(`work_email`),f_=g(`email_validation_status`),p_=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],m_=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],h_=r.object({pipe_id:r.literal(s_),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:p_,defaultProviders:m_,sectionKey:`general`}),allow_catch_all_emails:O({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:O({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:z(r.object({[c_.name]:E({fieldName:c_.name}),[l_.name]:E({fieldName:l_.name}),[u_.name]:E({fieldName:u_.name})})),output_fields:R(r.object({[d_.name]:k({fieldName:d_.name}),[f_.name]:k({fieldName:f_.name})}))}).optional()}),g_=e=>lc(H(J(c_,e)),uc(J(l_,e),J(u_,e))),__={"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`}},v_=class extends U{pipeId=s_;payload;payloadSchema=h_;billableOperations=__;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return g_(this.payload.config)}getRawOutputFields(){return{[d_.name]:this.catalogOutput(d_,{isPrimaryOutput:!0}),[f_.name]:this.catalogOutput(f_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_email_lookup`,icypeas:`icypeas_email_lookup`,findymail:`findymail_email_lookup`,hunter:`hunter_email_finder`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},y_=h_,b_={pipeId:s_,basePipe:K(s_),label:`Work email from name`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:workemail:waterfall@1`},description:`Find work email addresses in a waterfall motion.`,tags:[W.EMAIL,W.WORK_EMAIL,W.WATERFALL],docPath:q(s_),managedProviders:p_,deprecatedProviders:[],allowedUserConnectionProviders:p_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:__,defaultInputRequirement:g_(null),defaultPayload:{pipe_id:s_,connector:null,run_if:null,config:{providers:m_,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{company_name:{alias:``},company_website_url:{alias:``},name:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},x_=`email:iswork@1`,S_=g(`is_work_email`),C_=g(`email`),w_=r.object({pipe_id:r.literal(x_),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[C_.name]:E({fieldName:C_.name})})),output_fields:R(r.object({[S_.name]:k({fieldName:S_.name})}))}).optional()}),T_=e=>H(J(C_,e)),E_={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},D_=class extends U{pipeId=x_;payload;payloadSchema=w_;billableOperations=E_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`email-iswork-v1-pipe0`)}getInputRequirement(){return T_(this.payload.config)}getRawOutputFields(){return{[S_.name]:this.catalogOutput(S_)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},O_=w_,k_={pipeId:x_,label:`Work email checker`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Check if a given email address is personal or professional.`,tags:[W.EMAIL,W.WORK_EMAIL],docPath:q(x_),billableOperations:E_,basePipe:K(x_),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:T_(null),defaultPayload:{pipe_id:x_,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}};function A_(e,t){return typeof t==`string`?t:t(e)}function j_(e,t){return typeof t==`string`||t===null?t:t(e)}function M_(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:A_(e,a[r].type),format:j_(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 N_(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:A_(e,r[t].type),format:j_(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function P_(e,t={}){let n=t.expectedType??`string`,r=t.expectedFormat??`text`,i=new Map;for(let t of e){if(!t)continue;let e;try{e=ia(t)}catch{continue}for(let[t,n]of Object.entries(e.inputs)){let e=i.get(t);i.set(t,{required:e&&e.required||n.required})}}let a=[];for(let[e,t]of i){let i={name:e,resolvedName:e,label:e,description:``,type:t=>N_(t,e)?.type||n,format:r};a.push(t.required?H(i):dc(i))}return lc(...a)}function F_(e){let t=new Set;for(let n of e)if(n)try{let e=ia(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function I_(e){let t=new Set;for(let n of e)if(n)try{let e=ia(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const L_=`email:send:gmail@1`,R_=g(`gmail_email_success`),z_=r.object({pipe_id:r.literal(L_),connector:Go(),run_if:x(),config:r.object({to:S({sectionKey:`general`,groupPath:`config.general`,path:`config.to`,label:`To`,info:"Recipient address. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`{{ email }}`,inputType:`email`,minLength:1,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),reply_to:S({sectionKey:`general`,groupPath:`config.general`,path:`config.reply_to`,label:`Reply-To`,info:"Optional address recipients can reply to. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`support@example.com`,inputType:`email`,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}).nullable(),subject:S({sectionKey:`general`,groupPath:`config.general`,path:`config.subject`,label:`Subject`,info:"Email subject line. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }}`,inputType:`text`,minLength:1,maxLength:998,expectedTagType:`string`,expectedTagFormat:`text`}),body:S({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Email body in markdown. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }},
67
+ How do you...`]}},crustdata_post_list:{label:`Crustdata Post list`,type:`json`,format:`json_list_string`,description:`Rich JSON post list`,jsonMeta:{zodSchema:Gt,exampleValue:Kt}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:sr,exampleValue:cr}},post_text:{label:`Post text`,description:`Raw text content of a social media post`,format:`text`,type:`string`,jsonMeta:null},post_id:{label:`Post ID`,description:`Stable identifier of the post (its LinkedIn share URN)`,format:`text`,type:`string`,jsonMeta:null},amplemarket_person_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Person match object as returned by Amplemarket`,jsonMeta:{zodSchema:mt,exampleValue:ht}},amplemarket_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Company match object as returned by Amplemarket`,jsonMeta:{zodSchema:ft,exampleValue:pt}},companyenrich_matches:{label:`CompanyEnrich matches`,type:`json`,format:`json_object`,description:`CompanyEnrich response list.`,jsonMeta:{zodSchema:r.array(Ft),exampleValue:[It]}},logo_url:{label:`Logo URL`,type:`string`,format:`text`,description:`Company or organization logo`,jsonMeta:null},logodev_describe_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Get company logos & brand data`,jsonMeta:{exampleValue:hn,zodSchema:mn}},mobile_number:{label:`Mobile`,type:`string`,description:`Mobile telephone number of a person.`,jsonMeta:null,format:`phone`},company_social_url:{label:`Company Social URL`,type:`string`,description:`Social Media URL for a given company (e.g. LinkedIn profile URL).`,jsonMeta:null,format:`profile_url`},professional_profile:{label:`Professional profile (LinkedIn)`,type:`json`,description:`A standardized format for returning LinkedIn profile data.`,jsonMeta:{zodSchema:ar,exampleValue:or},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},Ar={company_description:{},cleaned_company_name:{},company_industry:{},icypeas_person_match:{getStaticWidgets(e){if(!e)return{};let t=e;return{display_value:{label:`${t.firstname} ${t.lastname} profile`}}}},icypeas_company_match:{getStaticWidgets(e){return e?{display_value:{label:`${e.name} profile`}}:{}}},person_profile_match:{},company_region:{getStaticWidgets:e=>{let t={},n=Er(e);return n&&(t.location_indicator={emoji:n}),t}},location_hint:{},estimated_revenue:{},founded_year:{},technology_list:{},spending_trend:{getStaticWidgets(e){let t=e;return{display_value:{label:`${t>3?`πŸ”ΌπŸ”ΌπŸ”Ό`:t>1?`πŸ”ΌπŸ”Ό`:t>0?`πŸ”Ό`:t<-3?`πŸ”½πŸ”½πŸ”½`:t<-1?`πŸ”½πŸ”½`:t<0?`πŸ”½`:``} ${Math.round(t*100)}%`}}}},technology_match_builtwith:{getStaticWidgets(e){return{display_value:{label:`Technology profile`}}}},number_of_social_followers:{},email:{},personal_email:{},alternate_personal_emails:{},company_news_summary:{},work_email:{},headcount:{},company_website_url:{},company_domain:{getStaticWidgets(e){return typeof e==`string`?{entity_logo:{entity:e,image_url:at(e)}}:{}}},company_name:{},first_name:{},addressee_name:{},address_line_1:{},address_line_2:{},job_title:{getStaticWidgets(e){return typeof e==`string`?{emoji:{value:er(e)}}:{}}},job_description:{},profile_headline:{},address_city:{},address_country:{},address_state:{},zip_code:{},last_name:{},is_work_email:{},name:{getStaticWidgets(e){return typeof e==`string`?{avatar:{image_url:``,name:e}}:{}}},ip_address:{},skills:{},avatar_url:{},string_input:{},domain:{},url_input:{},slugified:{},http_response_status:{},http_response_body:{},http_response_headers:{},luma_id:{},registered_at:{},luma_event_guest_match:{getStaticWidgets(){return{display_value:{label:`Guest`}}}},estimated_salary:{},scrape_list_response:{},clado_person_match:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} profile`}}:{}}},clado_person_match_v2:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} profile`}}:{}}},company_social_url:{getStaticWidgets(e){let t=Or(e);return{display_value:t?{label:t}:void 0}}},crustdata_profile_match_score:{},is_email_valid:{},amplemarket_person_match:{getStaticWidgets(){return{display_value:{label:`Person match`}}}},amplemarket_company_match:{getStaticWidgets(){return{display_value:{label:`Company match`}}}},profile_url:{getStaticWidgets(e){let t=Or(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=Or(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},developer_profile_url:{},alternative_developer_profile_urls:{},profile_posts:{getStaticWidgets(){return{display_value:{label:`LinkedIn posts`}}}},profile:{getStaticWidgets(e){return e?{display_value:{label:`${e.name||`Person`} LinkedIn profile`}}:{}}},clado_person_profile:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} match`}}:{}}},email_subject:{},message:{},slack_message_success:{getStaticWidgets(e){return{display_value:{label:e?`βœ… Sent`:`❌ Not sent`}}}},resend_email_success:{getStaticWidgets(e){return{display_value:{label:e?`βœ… Sent`:`❌ Not sent`}}}},email_body:{},mobile:{},landline:{},phone:{},funding_history:{},funding_total_usd:{},leadmagic_competitor_list:{getStaticWidgets(e){return e?{display_value:{label:e.map(e=>e.company_name).slice(0,4).join(`, `)}}:{}}},leadmagic_acquisition_history:{getStaticWidgets(e){return e?{display_value:{label:e.map(e=>e.company_name).slice(0,4).join(`, `)}}:{}}},leadmagic_company_news_list:{getStaticWidgets(e){return e?{display_value:{label:`${e.length} news sources`}}:{}}},merge_result:{},website_markdown:{getStaticWidgets(e){return e?{display_value:{label:`πŸ“ Markdown result`}}:{}}},urls:{},website_html:{},website_url:{},website_links:{},mapped_links:{},firecrawl_extract_result:{getStaticWidgets(){return{display_value:{label:`Extract result`}}}},parallel_extract_result:{getStaticWidgets(){return{display_value:{label:`Extract result`}}}},exa_match_evaluation:{getStaticWidgets(){return{display_value:{label:`Exa match`}}}},email_validation_status:{},million_validation_match:{getStaticWidgets(){return{display_value:{label:`Validation result`}}}},post_list_string:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:it.linkedin}}}},crustdata_post_list:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:it.linkedin}}}},crustdata_company_match:{},crustdata_company_identity_matches:{},crustdata_person_match:{},parallel_person_entity_match:{},parallel_company_entity_match:{},resend_contact_id:{},lemlist_lead_id:{},lemlist_enrollment_result:{getStaticWidgets(e){return e?{display_value:{label:`Enrolled`}}:{}}},sheet_record_id:{},sheet_record_ids:{},sheet_rows_found_count:{},sheet_found_rows:{getStaticWidgets(e){if(!e)return{};let t=e;return{display_value:{label:`${t.length} row${t.length===1?``:`s`}`}}}},sheet_found_row_ids:{},db_rows_found_count:{},db_found_rows:{getStaticWidgets(e){if(!e)return{};let t=e;return{display_value:{label:`${t.length} row${t.length===1?``:`s`}`}}}},companyenrich_match:{},companyenrich_matches:{},input_objects:{},role_finder_match:{},sheet:{},logodev_describe_match:{getStaticWidgets(){return{display_value:{label:`Match`}}}},logo_url:{getStaticWidgets(){return{display_value:{label:`Logo URL`}}}},post_match:{},post_text:{},post_id:{},mobile_number:{},created_sheet:{},professional_profile:{},professional_profile_url:{},crustdata_companyenrich_match:{},template_output:{},zerobounce_validation_match:{},zerobounce_validation_status:{getStaticWidgets(e){return{display_value:{label:e===`valid`?`βœ… Valid`:e===`invalid`?`❌ Invalid`:e===`catch-all`?`⚾️ Catch All`:e===`abuse`?`⚠️ Abuse`:e===`do_not_mail`?`❌❌ Do not mail`:e===`spamtrap`?`❌❌❌ Spam Trap`:e}}}},gmail_email_success:{getStaticWidgets(e){return{display_value:{label:e?`βœ… Sent`:`❌ Not sent`}}}}};function g(e){return{...kr[e],name:e}}function jr(e,t){if(Nr(e,t))return Ar[e]}function Mr(e){return e in kr}function Nr(e,t){return e in kr?kr[e].format===t:!1}function Pr(e,t,n){if(!t.added_by||t.added_by.ref===`input`||t.added_by.pipe_index==null)throw Error(`Tried to find output field info for field not generated by pipe: ${e}, added_by: ${t.added_by}`);let r=n.orderedPipeInstances[t.added_by.pipe_index];if(!r)throw Error(`Unable to find pipe instance at index ${t.added_by.pipe_index} for resolved field ${e}`);let i=Object.entries(r.getOutputFields()).find(([t,n])=>n.resolvedName===e);if(!i)throw Error(`Resolved pipe output field '${e}' not found for pipe ${t.added_by.ref}`);let[a,o]=i;return{fieldName:a,...o}}const Fr=r.enum(`company_description.cleaned_company_name.company_industry.company_region.location_hint.estimated_revenue.founded_year.technology_list.spending_trend.technology_match_builtwith.number_of_social_followers.email.personal_email.alternate_personal_emails.company_news_summary.work_email.headcount.company_website_url.company_domain.company_name.first_name.addressee_name.address_line_1.address_line_2.job_title.job_description.profile_headline.address_city.address_country.address_state.zip_code.last_name.is_work_email.companyenrich_match.companyenrich_matches.name.ip_address.skills.avatar_url.estimated_salary.is_email_valid.profile_url.developer_profile_url.alternative_developer_profile_urls.company_profile_url.profile_posts.clado_person_match.clado_person_match_v2.icypeas_person_match.icypeas_company_match.clado_person_profile.resend_email_success.email_body.email_subject.profile.mobile.landline.phone.message.slack_message_success.funding_history.funding_total_usd.template_output.gmail_email_success.zerobounce_validation_status.zerobounce_validation_match.leadmagic_competitor_list.leadmagic_acquisition_history.leadmagic_company_news_list.merge_result.mapped_links.website_markdown.website_html.website_url.urls.website_links.firecrawl_extract_result.parallel_extract_result.exa_match_evaluation.email_validation_status.million_validation_match.scrape_list_response.resend_contact_id.sheet_record_id.sheet_record_ids.sheet_rows_found_count.sheet_found_rows.sheet_found_row_ids.db_rows_found_count.db_found_rows.input_objects.role_finder_match.logodev_describe_match.logo_url.crustdata_company_match.crustdata_companyenrich_match.crustdata_company_identity_matches.crustdata_person_match.person_profile_match.parallel_person_entity_match.parallel_company_entity_match.post_list_string.crustdata_post_list.crustdata_profile_match_score.amplemarket_person_match.amplemarket_company_match.created_sheet.sheet.string_input.domain.url_input.slugified.http_response_status.http_response_body.http_response_headers.luma_id.registered_at.luma_event_guest_match.post_match.post_text.post_id.lemlist_lead_id.lemlist_enrollment_result.professional_profile_url.professional_profile.company_social_url.mobile_number`.split(`.`)),Ir=r.enum(`pipe0.findymail.crustdata.hunter.zerobounce.millionverifier.googlemaps.gemini.anthropic.leadmagic.mixrank.builtwith.perplexity.serper.icypeas.prospeo.clado.resend.slack.gmail.firecrawl.exa.openai.companyenrich.logodev.amplemarket.parallel.luma.postgres.databricks.lemlist`.split(`.`)),Lr=r.enum([`production`,`sandbox`]),Rr=`prompt:run@1.agent:run@1.company:newssummary:website@1.company:newssummary:domain@1.company:techstack:builtwith@1.company:techstack:builtwith@2.company:websiteurl:email@1.company:domain:workemail@1.company:funding:leadmagic@1.company:funding:leadmagic@2.people:workemail:waterfall@1.person:workemail:waterfall@1.people:email:iswork@1.email:iswork@1.people:name:split@1.person:name:split@1.person:name:join@1.people:validate:email:zerobounce@1.people:email:validate:zerobounce@2.email:validate:zerobounce@1.people:mobilenumber:workemail:waterfall@1.company:overview@1.company:overview@2.company:overview@3.json:extract:multi@1.email:write@1.message:write@1.email:send:resend@1.email:send:gmail@1.message:send:slack@1.template:fill@1.contact:create:resend@1.lead:enroll:lemlist@1.people:match:role:waterfall@1.person:match:role:waterfall@1.person:identity:amplemarket@1.company:identity@2.company:identity@3.company:identity:crustdata@1.person:match:amplemarket@1.people:phone:profile:waterfall@1.person:mobile:profileurl:waterfall@1.people:personalemail:profile:waterfall@1.person:personalemail:profileurl:waterfall@1.people:profile:waterfall@1.person:profile:waterfall@1.people:profileurl:email:waterfall@1.person:profileurl:email:waterfall@1.person:profileurl:name@1.people:email:validate:zerobounce@1.person:email:validate:millionverifier@1.people:phone:workemail:waterfall@1.person:mobile:workemail:waterfall@1.fields:merge@1.field:slugify@1.field:domainify@1.website:scrape:firecrawl@1.website:scrapelist:firecrawl@1.website:extract:firecrawl@1.website:extract:parallel@1.website:maplinks:firecrawl@1.row:append:sheet@1.row:expandappend:sheet@1.rows:find:sheet@1.rows:find:postgres@1.rows:find:databricks@1.company:lookalikes:companyenrich@1.company:lookalikes:companyenrich@2.company:match:logodev@1.company:match:logodev@2.person:posts:content:crustdata@1.company:match:crustdata@1.company:match:crustdata@2.people:profile:workemail:crustdata@1.person:profile:workemail:crustdata@1.people:workemail:profileurl:waterfall@1.person:workemail:profileurl:waterfall@1.people:identity:email:waterfall@1.person:identity:email:waterfall@1.person:devprofileurl:profileurl:waterfall@1.http:request@1.company:identity@1.people:professionalprofile:waterfall@1.people:professionalprofileurl:name@1.people:professionalprofileurl:email:waterfall@1.people:mobilenumber:professionalprofile:waterfall@1`.split(`.`),zr=r.enum(Rr),Br=[`string`,`number`,`boolean`,`json`,`unknown`],Vr=r.enum(Br),Hr=r.union([r.number(),r.string()]),Ur=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),Wr=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),Gr=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),Kr=r.object({type:r.literal(`static`).optional()}),qr=Kr.extend({image_url:r.url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),Jr=Kr.extend({emoji:r.string().describe(`Country flag emoji.`)}),Yr=Kr.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),Xr=Kr.extend({attempted_providers:r.array(r.object({provider:Ir})),available_providers:r.array(Ir),successful_provider:Ir.optional()}),Zr=r.enum([`linkedin`,`job`]),Qr=Kr.extend({key:Zr}).optional(),$r=Kr.extend({result_status:r.enum([`completed`,`failed`])}).optional(),ei=Kr.extend({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),ti=Kr.extend({numeric:r.int().min(1).max(5)}).optional(),ni=Kr.extend({value:r.string().min(1)}).optional(),ri=r.object({display_value:Kr.extend({label:r.string().optional()}),entity_logo:qr.optional(),location_indicator:Jr.optional(),avatar:Yr.optional(),waterfall:Xr.optional(),icon:Qr,action_summary:$r,sources:ei,confidence:ti,emoji:ni}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),ii=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),ai=r.object({code:r.string(),summary:r.string(),message:r.string()}),oi=[`json_object`,`json_list`,`json_list_string`,`url`,`website_url`,`profile_url`,`email`,`datetime`,`currency`,`date`,`phone`,`markdown`,`text`,`int`,`decimal`,`address_line_1`,`zip_code`,`percent`],si=r.enum(oi);si.nullable();const ci=r.object({type:Vr,label:r.string().nullable().optional(),format:si.nullable().optional(),json_metadata:Gr.nullable().optional()}),li=r.record(r.string(),ci),ui=r.enum([...Rr,`input`]).nullable(),di=r.enum([...Rr,`input`,`system`]).nullable(),fi=r.object({ref:ui,config_hash:r.string().nullable()}),pi=r.object({ref:di,environment:Lr.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),mi=r.object({value:Wr,status:Ur,type:Vr,reason:ai.nullable(),claimed_by:fi,resolved_by:pi.nullable(),widgets:ri.optional(),format:si.nullable()}),hi=r.object({value:Wr,status:Ur,reason:ai.nullable().optional(),type:Vr.optional(),format:si.nullable().optional(),claimed_by:fi.optional(),resolved_by:pi.nullable().optional(),widgets:ri.optional()}),gi=r.record(r.string(),r.union([Wr,hi])).openapi(`PipesInput`),_i=r.object({id:Hr,fields:r.record(Hr,mi)}),vi=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),yi=r.object({type:Vr,label:r.string(),added_by:r.object({ref:r.union([zr,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:si.nullable(),is_primary_output:r.boolean()}),bi=r.record(r.string(),yi),xi=r.object({field_name:r.string().min(1),extractions:r.array(r.object({path:r.string().min(1),output_field:r.object({name:r.string().min(1),format:si.nullable().default(null),label:r.string().optional(),type:Vr})})).min(1).check(e=>{let t=new Set;Object.values(e.value).forEach(n=>{t.has(n.output_field.name)?e.issues.push({code:`custom`,message:`Output field names must be unique. The name ${n.output_field.name} exists more than once in your config.`,input:e.value}):t.add(n.output_field.name)})})}),Si=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`,`matches`]),Ci={eq:`equals`,neq:`not equals`,gt:`greater than`,gte:`greater than or equal`,lt:`less than`,lte:`less than or equal`,contains:`contains`,matches:`matches regex`},wi=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`,`matches`],Ti=[`eq`,`neq`],Ei=r.object({type:r.literal(`vault`),connection:r.string().refine(e=>{let t=e.split(`_`)[0];return t!=null&&Ir.safeParse(t).success},{message:`Invalid vault connection string: expected the full provider-prefixed value (e.g. "slack_my-workspace") where the segment before the first "_" is a known provider name. Copy the string exactly as the vault lists it β€” never strip the prefix.`})}),Di=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(Ei)}).nullable().optional(),Oi=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(Ei).min(1,{message:`Provide your own credentials to use this object.`})},{error:`Provide your own credentials to use this object.`}),ki=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(r.object({type:r.literal(`vault`),connection:r.string()})).max(0,{message:`This pipe does not support custom connectors.`})}).optional().nullable(),Ai=r.enum(wi),ji=r.enum(Ti),Mi=r.enum([`failed`,`no_result`,`completed`,`skipped`]),Ni=r.object({property:r.literal(`value`).describe(`Compare the actual field value. Use operators: eq, neq, gt, gte, lt, lte, contains, matches.`),field_name:r.string().min(1,{message:`Provide a target field for the condition.`}).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:Ai.describe(`Comparison operator: "eq", "neq", "gt", "gte", "lt", "lte", "contains", "matches" (regex).`),value:r.union([r.number(),r.string(),r.boolean(),r.null()]).describe(`The value to compare the field against. Must be a primitive (string, number, boolean, or null).`).check(e=>{(e.value===void 0||e.value===``)&&e.issues.push({code:`custom`,input:e.value,message:`Provide a value to compare against.`}),typeof e.value==`object`&&e.value!==null&&e.issues.push({code:`custom`,input:e.value,message:`Conditions can only be defined on primitive fields. To apply a condition on a JSON value, expand it into an object first.`})})}),Pi=r.object({property:r.literal(`status`).describe(`Compare the field resolution status instead of its value. Use operators: eq, neq.`),field_name:r.string().min(1).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:ji.describe(`Status comparison operator: "eq" or "neq".`),value:Mi.describe(`Field status to compare against: "completed", "no_result", "failed", or "skipped".`)}),Fi=r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(r.discriminatedUnion(`property`,[Ni,Pi])).min(1).describe(`Array of conditions to evaluate. Each condition checks either a field value or its resolution status.`)}).describe(`Condition block. All conditions are combined with the chosen logic (and/or).`),Ii=r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(Ni).min(1).describe(`Array of value conditions to evaluate.`)}).describe(`Condition block. All conditions are combined with the chosen logic (and/or).`),Li=r.object({action:r.enum([`run`]).default(`run`).describe(`What to do when conditions match. Defaults to "run" (run the pipe only on matching records). Reserved for future extension.`),when:Fi}).describe(`Run-if gate for a pipe. When set, the pipe only runs on records matching the conditions. Example: { "when": { "logic": "and", "conditions": [{ "property": "status", "field_name": "work_email", "operator": "neq", "value": "no_result" }] } }`),Ri={pipe0:{name:`pipe0`,label:`pipe0`,description:`A framework for lead and company data enrichment.`,url:`https://pipe0.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/52f2d955-d9f3-4139-2c13-63cfd568ed00/icon`,background:{light:`#F4F4F5`,dark:`#1F1F23`},oAuthConfig:null},findymail:{name:`findymail`,label:`FindyMail`,description:`Find verified emails.`,url:`https://findymail.com`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,oAuthConfig:null,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/9e8ce38d-a49d-42a3-4317-506f7fbec900/icon`,background:{light:`#D4F4DD`,dark:`#143822`}},hunter:{name:`hunter`,label:`HunterMail`,description:`Find email addresses and send cold emails`,url:`https://hunter.io`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,oAuthConfig:null,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/a612ed1c-d5cf-421a-23c5-3cf74f506100/icon`,background:{light:`#FFE4D4`,dark:`#3D1F0C`}},zerobounce:{name:`zerobounce`,label:`ZeroBounce`,description:`Email validation tools and email list cleaning`,url:`https://www.zerobounce.net`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/db8e9e41-0bda-4f2c-de42-cf8ce61ee500/icon`,background:{light:`#D6F5E5`,dark:`#0E3823`},oAuthConfig:null},googlemaps:{name:`googlemaps`,label:`Google Maps`,description:`A map service by Google`,url:`https://www.google.com/maps`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1796d3c1-dfb0-4555-b2bf-0ca4930e8f00/icon`,background:{light:`#D8E8FF`,dark:`#0E2447`},oAuthConfig:null},leadmagic:{name:`leadmagic`,label:`LeadMagic`,description:`Enrichment provider`,url:`https://leadmagic.io`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/508cb23a-47d4-40ee-1645-b5a8bf994c00/icon`,background:{light:`#EBD8FF`,dark:`#2A1247`},oAuthConfig:null},builtwith:{name:`builtwith`,label:`BuiltWith`,description:`BuiltWith tracks over 2500 eCommerce technologies across over 26 million eCommerce websites.`,url:`https://builtwith.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e675cb72-6dc2-43c8-972e-0fc9c3b73c00/icon`,background:{light:`#FFF0D4`,dark:`#3D2806`},oAuthConfig:null},perplexity:{name:`perplexity`,label:`Perplexity`,description:`AI search company`,public:!1,url:`https://perplexity.com`,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/d17d3ba0-5c9e-43d8-17ee-3e4a70404e00/icon`,background:{light:`#D3F1EE`,dark:`#0E3633`},oAuthConfig:null},serper:{name:`serper`,label:`Serper`,description:`The World's Fastest & Cheapest Google Search API`,url:`https://serper.dev/`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/04e720cd-56ea-44d3-3a31-cfc516c6f800/icon`,background:{light:`#D8E6FF`,dark:`#0C2554`},oAuthConfig:null},icypeas:{name:`icypeas`,label:`Icypeas`,description:`A popular data catalog`,url:`https://www.icypeas.com/`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/d635119e-08ae-40cb-78bc-34161d422400/icon`,background:{light:`#D8EFFF`,dark:`#0C2A4A`},oAuthConfig:null},prospeo:{name:`prospeo`,label:`Prospeo`,description:`Find anyone’s contact data.`,url:`https://prospeo.io/`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/95032a9f-932b-4898-ff0d-45d49390d100/icon`,background:{light:`#D6E2FF`,dark:`#0C2052`},oAuthConfig:null},gemini:{name:`gemini`,label:`Gemini`,description:`Google's AI service`,url:`https://gemini.google.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/417de5dd-a8a8-4210-d7dc-6f40e54ece00/icon`,background:{light:`#DDE7FF`,dark:`#1A2C5C`},oAuthConfig:null},anthropic:{name:`anthropic`,label:`Anthropic`,description:`Anthropic's Claude AI models`,url:`https://www.anthropic.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8f2b7ff3-12a6-4c55-31fd-460b9f461300/icon`,background:{light:`#F0EEE6`,dark:`#2B2A26`},oAuthConfig:null},slack:{name:`slack`,label:`Slack`,description:`A modern business chat application.`,url:`https://slack.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/676e823c-c926-4b0b-465c-121b9d1c3300/icon`,background:{light:`#F1E0FF`,dark:`#2A0E44`},oAuthConfig:{}},companyenrich:{name:`companyenrich`,label:`CompanyEnrich`,description:`A company enrichment service.`,url:`https://companyenrich.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e80b3a16-7b36-4733-bcbe-46f471d33100/icon`,background:{light:`#DCEEFF`,dark:`#0E2C4A`},oAuthConfig:{}},mixrank:{name:`mixrank`,label:`MixRank`,description:`Ultra-high-frequency technographic and people data for your data teams.`,url:`https://mixrank.com/`,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,oAuthConfig:{},public:!0,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/a29f3095-b3f9-4b12-d21b-1c506ccd7200/icon`,background:{light:`#FFE5D4`,dark:`#3A1D08`}},clado:{name:`clado`,label:`Clado`,description:`A data provider deploying 10^5 AI agents to find contact information.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,url:`https://clado.ai`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fdf3d2d0-70be-45c3-2fe5-a8c5cac55a00/icon`,background:{light:`#E8E8EC`,dark:`#1A1A1F`},oAuthConfig:null},gmail:{name:`gmail`,label:`Gmail`,description:`Google's email service`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token_bundle`,url:`https://mail.google.com`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8da8ab6b-7f7e-4c42-6abf-212ea537db00/icon`,background:{light:`#FFD8D8`,dark:`#45100F`},oAuthConfig:{}},resend:{name:`resend`,label:`Resend`,description:`An email platform built for developers.`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,url:`https://clado.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7c88f71b-8472-40f4-4bec-0e77eac30400/icon`,background:{light:`#EDEDEE`,dark:`#1A1A1C`},oAuthConfig:null},firecrawl:{name:`firecrawl`,label:`Firecrawl`,description:`Firecrawl is an API service that takes a URL, crawls it, and converts it into clean markdown. Firecrawl crawls all accessible subpages and gives you clean markdown for each. No sitemap required.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.firecrawl.dev`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/5c318569-7bf4-4276-a3f2-1f25530f7f00/icon`,background:{light:`#FFE5CC`,dark:`#3A1A05`},oAuthConfig:null},exa:{name:`exa`,label:`Exa`,description:`Exa is a search engine built for AI.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://exa.ai/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8ae69780-4506-4952-a90e-02e70b06af00/icon`,background:{light:`#D8DCFF`,dark:`#14154A`},oAuthConfig:null},openai:{name:`openai`,label:`OpenAI`,description:`Foundational AI company based out of San Francisco.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://openai.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7ac79c3a-bccb-4ed4-d6e5-7b300b2fd300/icon`,background:{light:`#D8EFE4`,dark:`#0C2A1C`},oAuthConfig:null},millionverifier:{name:`millionverifier`,label:`MillionVerifier`,description:`E-Mail validation service.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.millionverifier.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7a8bd9cb-efeb-492e-3f4c-311c9492b800/icon`,background:{light:`#D8F0DB`,dark:`#0E3215`},oAuthConfig:null},logodev:{name:`logodev`,label:`Logo.dev`,description:`Every company logo, one simple API.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.logo.dev/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1defa51b-5c01-4034-1030-60f68aa46400/icon`,background:{light:`#F4ECD4`,dark:`#2C2406`},oAuthConfig:null},crustdata:{name:`crustdata`,label:`Crustdata`,description:`Real-time company & people data`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://crustdata.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fa05be24-d174-40f0-69c2-4fdb43c6be00/icon`,background:{light:`#FFE2D2`,dark:`#3C1A08`},oAuthConfig:null},amplemarket:{name:`amplemarket`,label:`Amplemarket`,description:`Sales data platform`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.amplemarket.com`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/adecf16b-4187-409b-d77f-16fc07fc6100/icon`,background:{light:`#FFD8E1`,dark:`#45102A`},oAuthConfig:null},parallel:{name:`parallel`,label:`Parallel`,description:`Agentic web search & research APIs purpose-built for AI agents.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://parallel.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/13d4ae54-9400-4577-8fbf-c96021fb0000/icon`,background:{light:`#E0E5FF`,dark:`#0F1A3D`},oAuthConfig:null},luma:{name:`luma`,label:`Luma`,description:`Delightful events, calendars, and ticketing for communities.`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,url:`https://lu.ma`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/ed6cf16b-e69e-4f90-7718-85e4600fff00/icon`,background:{light:`#FFF0E6`,dark:`#3A1F0F`},oAuthConfig:null},postgres:{name:`postgres`,label:`PostgreSQL`,description:`Connect your own PostgreSQL database and query it read-only.`,url:`https://www.postgresql.org`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`connection_string`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/eb8b2802-8280-45c3-ee08-a24aad6a0a00/icon`,background:{light:`#DCE9F5`,dark:`#0B2A45`},oAuthConfig:null},databricks:{name:`databricks`,label:`Databricks`,description:`Query your Databricks SQL warehouse read-only via a service principal.`,url:`https://www.databricks.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`databricks`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/07b73e49-e1fa-445b-865e-2b7dc2641700/icon`,background:{light:`#F5E6DC`,dark:`#3A1B0B`},oAuthConfig:null},lemlist:{name:`lemlist`,label:`lemlist`,description:`Sales engagement & cold outreach platform.`,url:`https://lemlist.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/5d2b25c5-86a7-4eea-9416-fcca77cc7000/icon`,background:{light:`#E6F0FF`,dark:`#0E1F3D`},oAuthConfig:null}},zi=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],Bi=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],Vi=/^[A-Z][A-Z0-9_]*$/,Hi=/^[A-Z][A-Z0-9_]*$/,Ui=/^[a-zA-Z_][a-zA-Z0-9_]*$/,Wi=`SECRETS`,Gi=`CONSTANTS`,Ki=new Set(zi),qi=new Set(Bi),Ji=e=>`{${e}}`;var Yi=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!Vi.test(t))throw Error(`Secret key "${t}" must be uppercase letters, digits, and underscores (e.g. SECRETS.API_KEY).`);if(!(t in this.values))throw Error(`Missing secret: SECRETS.${t}`);return this.values[t]}},Xi=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!Hi.test(t))throw Error(`Constant key "${t}" must be uppercase letters, digits, and underscores (e.g. CONSTANTS.PROMO).`);if(!(t in this.values))throw Error(`Missing constant: CONSTANTS.${t}`);return this.values[t]}};function Zi(e){let t=e.trim();if(!t)throw Error(`Empty {% output %} tag β€” expected at least a name (e.g. {% output rec, type: "string", description: "..." %}).`);let n=t.match(/^([a-zA-Z_][a-zA-Z0-9_]*)\s*(?:,|$)/);if(!n||!n[1])throw Error(`Invalid {% output %} tag β€” expected a name as the first argument, got: ${t}`);let r=n[1];if(!Ui.test(r))throw Error(`Invalid {% output %} tag name "${r}" β€” must start with a letter or underscore and contain only letters, digits, and underscores.`);let i=t.slice(n[0].length).trim(),a={},o=/([a-zA-Z_][a-zA-Z0-9_]*)\s*:\s*(?:"((?:\\.|[^"\\])*)"|'((?:\\.|[^'\\])*)'|(true|false))\s*(?:,|$)/g,s=0,c;for(;(c=o.exec(i))!==null;){s=c.index+c[0].length;let e=c[1],t=c[2]??c[3]??c[4];c[4]===void 0?a[e]=t:a[e]=t===`true`}if(i&&s<i.length)throw Error(`Invalid {% output %} tag β€” could not parse arguments after "${i.slice(s)}". Expected key: "value" pairs.`);let l=a.type;if(typeof l!=`string`||!l)throw Error(`{% output ${r} %} tag is missing required "type" argument (e.g. type: "string").`);let u=a.description;if(typeof u!=`string`||!u)throw Error(`{% output ${r} %} tag is missing required "description" argument (e.g. description: "What this means.").`);return{name:r,type:l,description:u,required:typeof a.required==`boolean`?a.required:!0,format:typeof a.format==`string`?a.format:null,schemaRef:typeof a.schema==`string`?a.schema:null}}function Qi(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=Zi(e.args);this.outputDecl=n},render(e,t){let n=this.outputDecl;if(!(e.globals&&e.globals.__outputAllowed))throw Error(`{% output %} is not allowed in this template (referenced output "${n.name}").`);t.write(Ji(n.name))}});for(let t of Object.keys(e.tags))Ki.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))qi.has(t)||delete e.filters[t];return e}let $i=null;function ea(){return $i||=Qi(),$i}async function ta(e,t,n={}){let r=ea(),i=n.renderLimitMs??250,a={...t.inputs??{},[Wi]:new Yi(t.secrets??{}),[Gi]:new Xi(t.constants??{})},o={globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i},s=await Promise.race([r.parseAndRender(e,a,o),new Promise((e,t)=>setTimeout(()=>t(Error(`Liquid render exceeded ${i}ms.`)),i))]);return String(s)}function na(e,t,n={}){let r=ea(),i=n.renderLimitMs??250,a={...t.inputs??{},[Wi]:new Yi(t.secrets??{}),[Gi]:new Xi(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function ra(e){return ea().parse(e)}function ia(e){let t=ea().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};aa(t,n);let r={};for(let[e,t]of n.inputs)r[e]={required:t.unguardedRefs>0};return{inputs:r,secrets:[...n.secrets],constants:[...n.constants],outputs:n.outputs}}function aa(e,t){for(let n of e)oa(n,t)}function oa(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){da(n.value,t,!1);return}if(typeof n.name==`string`){sa(n,t);return}}function sa(e,t){switch(e.name){case`for`:ca(e,t);return;case`if`:case`unless`:la(e,t);return;case`output`:ua(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function ca(e,t){if(t.forDepth+=1,t.forDepth>3)throw Error(`Liquid template exceeds maximum nested {% for %} depth of 3.`);e.collection!==void 0&&e.collection!==null&&fa(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),aa(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),aa(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function la(e,t){let n=Array.isArray(e.branches)?e.branches:[];e.name;for(let e=0;e<n.length;e++){let r=n[e],i=r.value,a=null;e===0&&i&&typeof i==`object`&&(a=ha(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&da(i,t,!1),aa(r.templates,t),a&&t.guardStack.pop()}aa(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function ua(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=Zi(t))}if(!n)throw Error(`Internal: {% output %} tag missing parsed declaration.`);t.outputs.push({name:n.name,type:n.type,description:n.description,required:n.required,format:n.format,schemaRef:n.schemaRef??void 0})}function da(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)ga(n)&&ma(n,t,i);for(let n of e.filters)for(let e of n.args)pa(e,t)}function fa(e,t,n){ga(e)&&ma(e,t,n)}function pa(e,t){if(Array.isArray(e)){let n=e[1];n&&fa(n,t,!1)}else fa(e,t,!1)}function ma(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!_a(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!_a(e))throw Error(`Invalid SECRETS reference β€” expected SECRETS.KEY (got ${ba(r)}).`);let n=e.content;if(!Vi.test(n))throw Error(`Invalid SECRETS key "${n}" β€” must be uppercase letters, digits, and underscores (e.g. SECRETS.API_KEY).`);t.secrets.add(n);return}if(a===`CONSTANTS`){let e=r[1];if(!e||!_a(e))throw Error(`Invalid CONSTANTS reference β€” expected CONSTANTS.KEY (got ${ba(r)}).`);let n=e.content;if(!Hi.test(n))throw Error(`Invalid CONSTANTS key "${n}" β€” must be uppercase letters, digits, and underscores (e.g. CONSTANTS.PROMO).`);t.constants.add(n);return}let o=n||t.guardStack.includes(a),s=t.inputs.get(a)??{unguardedRefs:0,guardedRefs:0};o?s.guardedRefs+=1:s.unguardedRefs+=1,t.inputs.set(a,s)}function ha(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&ga(t)&&t.props.length===1){let e=t.props[0];if(e&&_a(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&ga(t)&&t.props.length===1){let e=t.props[0];if(e&&_a(e)&&va(n)&&ya(r,[`==`,`!=`]))return e.content}}return null}function ga(e){return e.kind===o.PropertyAccess}function _a(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function va(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function ya(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function ba(e){let t=[];for(let n of e)n&&_a(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}function xa(e){let t=e.split(`_`),n=t[0],r=t.slice(1).join(`_`);if(!n)throw Error(`connection string of invalid format`);try{return{provider:Ir.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function Sa(e){return`${e.provider}_${e.id}`}const Ca=new s;function wa(e){return Ca.validateSchema(e)}function Ta(e){let t=!1;return c(e,{},e=>{e.type&&[`string`,`number`,`boolean`,`integer`,`null`].includes(e.type)&&(t=!0),e.type===`object`&&e.properties&&Object.keys(e.properties).length>0&&(t=!0),e.type===`array`&&e.items&&(t=!0)}),!t}function Ea(e){try{return JSON.parse(e)}catch{}return JSON.parse(ja(e))}function Da(e){try{return Ea(e)}catch{return}}const Oa=/[A-Za-z_$]/,ka=/[\w$]/,Aa=/\s/;function ja(e){let t=``,n=0,r=e.length;for(;n<r;){let i=e[n];if(i===`"`||i===`'`){let a=i,o=``;for(n++;n<r&&e[n]!==a;){if(e[n]===`\\`){o+=`\\${e[n+1]??``}`,n+=2;continue}o+=e[n],n++}n++,t+=JSON.stringify(Ma(o));continue}if(Oa.test(i)){let i=n;for(;i<r&&ka.test(e[i]);)i++;let a=e.slice(n,i),o=i;for(;o<r&&Aa.test(e[o]);)o++;t+=e[o]===`:`?JSON.stringify(a):a,n=i;continue}if(i===`,`){let t=n+1;for(;t<r&&Aa.test(e[t]);)t++;if(e[t]===`}`||e[t]===`]`){n++;continue}}t+=i,n++}return t}function Ma(e){let t=``;for(let n=0;n<e.length;n++){if(e[n]!==`\\`){t+=e[n];continue}let r=e[++n];switch(r){case`n`:t+=`
68
+ `;break;case`t`:t+=` `;break;case`r`:t+=`\r`;break;case`b`:t+=`\b`;break;case`f`:t+=`\f`;break;case`v`:t+=`\v`;break;case`0`:t+=`\0`;break;case`u`:{let r=e.slice(n+1,n+5);/^[0-9a-fA-F]{4}$/.test(r)?(t+=String.fromCharCode(Number.parseInt(r,16)),n+=4):t+=`u`;break}default:t+=r??``;break}}return t}const Na=(e,t=`Add a ${e} connection to enable this field`)=>n=>(n.connector?.connections??[]).some(t=>t?.connection?.startsWith(`${e}_`))?{disabled:!1}:{disabled:!0,message:t},Pa=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},Fa=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},Ia=(...e)=>t=>{let n={disabled:!0,message:`No condition matched`};for(let r of e){let e=r(t);if(!e.disabled)return e;n=e}return n},La=[`google-low`,`openai-high`,`anthropic-high`],Ra={"google-low":{label:`Gemini 3.5 Flash`,provider:`gemini`,rateLimitOperation:`gemini_35_flash`,rateLimitRatio:1,allowManagedConnection:!0,billingMode:`always`},"openai-high":{label:`GPT-5.5`,provider:`openai`,rateLimitOperation:`openai_gpt-5`,rateLimitRatio:1,allowManagedConnection:!0,billingMode:`always`},"anthropic-high":{label:`Claude Opus 4.8`,provider:`anthropic`,rateLimitOperation:`anthropic_opus`,rateLimitRatio:1,allowManagedConnection:!0,billingMode:`always`}},za=.03,Ba=.3,Va=100,Ha=100,Ua={"google-low":{inputPer1M:1.5,outputPer1M:9},"openai-high":{inputPer1M:5,outputPer1M:30},"anthropic-high":{inputPer1M:5,outputPer1M:25}};function Wa(e){let t=Ra[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function Ga(e){let t=Ra[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function Ka(){let e=new Set;for(let t of La)e.add(Ra[t].provider);return[...e]}function qa(e){return Object.keys(e).some(e=>La.some(t=>e.endsWith(`-in-${t}`)||e.endsWith(`-out-${t}`)))}function Ja(e,t){return e/1e6*(1+Ba)/za*t}function Ya(e){let t=Ua[e];if(!t)throw Error(`Unknown AI model: ${e}`);return{in:Ja(t.inputPer1M,100),out:Ja(t.outputPer1M,100)}}function Xa(e,t){let n=Math.round(Ba*100);return`Billed per 100 ${e} tokens at ${Number(t.toPrecision(4))} credits/block (managed keys include a ${n}% margin over provider cost).`}function Za(e){let t={};for(let n of La){let r=Ra[n],i=Ya(n);t[`${e}-in-${n}`]={credits:{default:i.in},allowManagedConnection:!0,provider:r.provider,mode:r.billingMode,note:Xa(`input`,i.in)},t[`${e}-out-${n}`]={credits:{default:i.out},allowManagedConnection:!0,provider:r.provider,mode:r.billingMode,note:Xa(`output`,i.out)}}return t}function Qa(e,t){return{input:`${t}-in-${e}`,output:`${t}-out-${e}`}}function $a(e,t){let n=Qa(t.model,t.prefix);return[{billableOperation:n.input,quantity:e.count*Math.ceil(t.inputTokens/100)},{billableOperation:n.output,quantity:e.count*Math.ceil(t.outputTokens/100)}]}var eo=class{carriedInput=0;carriedOutput=0;addUsage(e){this.carriedInput+=Math.max(0,e.inputTokens),this.carriedOutput+=Math.max(0,e.outputTokens)}drainBlocks(){let e=Math.floor(this.carriedInput/100),t=Math.floor(this.carriedOutput/100);return this.carriedInput-=e*100,this.carriedOutput-=t*100,{inBlocks:e,outBlocks:t}}flush(){let e=+(this.carriedInput>0),t=+(this.carriedOutput>0);return this.carriedInput=0,this.carriedOutput=0,{inBlocks:e,outBlocks:t}}};function to(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(Na(e.requires.connection));for(let n of e.requires.fields??[])t.push(Pa(e=>n.split(`.`).reduce((e,t)=>e==null?e:e[t],e),`Set ${n} first`));if(t.length!==0)return t.length===1?t[0]:Fa(...t)}function no(e,t,n){let i={exampleValue:null,jsonSchema:null},a=t.fieldAnnotations.annotations[e];if(a?.json_metadata?.example_value&&(i.exampleValue=a.json_metadata.example_value||null),a?.json_metadata?.schema&&(i.jsonSchema=a.json_metadata.schema||null),i.exampleValue&&i.jsonSchema||!t.resolvedFieldNames[e])return i;let o=Pr(e,n,t),s=Mr(o.fieldName)?g(o.fieldName):null;return s?.jsonMeta?{jsonSchema:s.jsonMeta.zodSchema?r.toJSONSchema(s.jsonMeta.zodSchema):null,exampleValue:s.jsonMeta.exampleValue||null}:i}const _=r.registry();{let e=_._map,t=_.get.bind(_);_.get=n=>{let r=n;for(;r;){let t=e.get(r);if(typeof t==`function`)return t;r=r?._zod?.parent}return t(n)}}const v=r.registry();{let e=v._map,t=v.get.bind(v);v.get=n=>{let r=n;for(;r;){let t=e.get(r);if(typeof t==`function`)return t;r=r?._zod?.parent}return t(n)}}const y=r.registry();{let e=y._map,t=y.get.bind(y);y.get=n=>{let r=n;for(;r;){let t=e.get(r);if(typeof t==`function`)return t;r=r?._zod?.parent}return t(n)}}const ro=e=>e,b={text_input:r.coerce.string(),textarea_input:r.string(),prompt_input:r.object({template:r.string(),json_schemas:r.record(r.string(),r.record(r.string(),r.unknown()))}),template_input:r.string(),tagged_text_input:r.coerce.string(),boolean_input:r.boolean(),nullable_boolean_input:r.boolean().nullable(),select_input:r.string(),multi_select_input:r.array(r.string()),async_multi_select_input:r.array(r.string()),int_input:r.coerce.number().int(),number_input:r.coerce.number(),min_max_int_input:r.object({min:r.number().nullable().default(null),max:r.number().nullable().default(null)}),include_exclude_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),async_include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),exact_range_input:r.record(r.string(),r.number().nullable()),range_input:r.object({from:r.number().nullable(),to:r.number().nullable()}),date_range_input:r.record(r.string(),r.string()),multi_create_input:r.array(r.string()),ordered_multi_create_input:r.array(r.string()),tagged_ordered_multi_create_input:r.array(r.string()),loose_object_input:r.record(r.string(),r.string()),connector_input:r.object({connections:r.array(r.object({type:r.string(),connection:r.string()}))}).nullable(),providers_input:r.array(r.object({provider:r.string()})),json_extraction_input:r.record(r.string(),r.unknown()),pipes_run_if_input:r.record(r.string(),r.unknown()).nullable(),condition_block_input:r.record(r.string(),r.unknown()).nullable(),fields_select_input:r.array(r.object({field_name:r.string()})),output_field_input:r.object({alias:r.string(),enabled:r.boolean()}),json_schema_input:r.record(r.string(),r.unknown()),cursor_pagination_metadata:r.object({limit:r.number()}),context_select_input:r.union([r.string(),r.array(r.string())]),search_payload_input:r.looseObject({search_id:r.string()})},io=(e,t,n)=>{let r=[t.description||n,t.guide].filter(Boolean).join(` `);return r?e.describe(r):e},ao=(e,t)=>{let n=b.multi_create_input;return e.maxItems&&(n=n.max(e.maxItems)),n=e.minItems?n.min(e.minItems):n.default([]),t.add(n,{type:`multi_create_input`,...e}),n},oo=(e,t)=>{let n=b.ordered_multi_create_input;return e.maxItems&&(n=n.max(e.maxItems)),n=e.minItems?n.min(e.minItems):n.default([]),t.add(n,{type:`ordered_multi_create_input`,...e}),n},so=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,co=/\{\{|\{%/,lo=(e,t)=>{let n=b.tagged_ordered_multi_create_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{let r=so.test(e),i=co.test(e);!r&&i&&t.issues.push({code:`custom`,input:e,path:[n],message:`Each entry must be either plain text or a single field reference β€” not mixed.`})})}),n=e.minItems?n.min(e.minItems):n.default([]);let r={type:`tagged_ordered_multi_create_input`,...e};if(t===_){let i=t=>{let n=t.validationContext,i=n?Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).filter(([t,n])=>!e.expectedTagType||n.type===e.expectedTagType).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:i}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n}return t.add(n,r),n},uo=(e,t)=>{let n=b.loose_object_input;n=n.check(t=>{let n=t,r=Object.entries(n.value??{});e.minKeys!=null&&r.length<e.minKeys&&n.issues.push({code:`custom`,input:n.value,message:`Add at least ${e.minKeys} ${e.keyLabel?.toLowerCase()??`entr`}${e.keyLabel?`s`:`ies`}.`}),e.maxKeys!=null&&r.length>e.maxKeys&&n.issues.push({code:`custom`,input:n.value,message:`Use at most ${e.maxKeys} ${e.keyLabel?.toLowerCase()??`entr`}${e.keyLabel?`s`:`ies`}.`}),r.forEach(([e,t])=>{Vo({value:t,issues:n.issues},!1,[e])})}),n=n.default({});let r={type:`loose_object_input`,...e},i=e=>{let t=e.validationContext,n=t?Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e.hash).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:n}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n},fo=(e,t)=>{let n=e.maxItems||200,r=io(b.include_exclude_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}),e);return t.add(r,{type:`include_exclude_input`,...e}),r},po=()=>{let e=xi;return _.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`json_extraction_input`,fields:Object.entries(t.fieldDefinitions).filter(([e,t])=>e.toLowerCase()!==`id`&&t.type===`json`).map(([e,n])=>{let{jsonSchema:r,exampleValue:i}=no(e,t,n)||{};return{fieldName:e,fieldLabel:n.label,schema:r||null,exampleValue:i||null}}),path:`config.json_extraction`,groupPath:`config.json_extraction`,sectionKey:`general`}}),e},mo=(e,t)=>{let n=r.array(r.object({provider:r.enum(e.availableProviders)})).max(e.maxItems||99).min(1).default(e.defaultProviders),i=e.availableProviders.map(t=>{let n=e.providerCredits?.[t];return{value:t,label:Ri[t].label,widgets:{provider_logo:{provider:t},...typeof n==`number`?{pricing:{credits:n}}:{}}}});return t.add(n,{label:`Provider sequence`,description:``,path:`config.providers`,groupPath:`config.providers`,type:`providers_input`,options:i,defaultProviders:e.defaultProviders,maxItems:e.maxItems,sectionKey:e.sectionKey}),n},ho=(e,t)=>{let n=e.maxItems||200,r=io(b.include_exclude_select_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}),e);return t.add(r,{type:`include_exclude_select_input`,...e}),r},go=(e,t)=>{let n=io(b.exact_range_input.check(t=>{e.min===void 0&&e.max===void 0||Object.values(t.value).filter(e=>e!==null).some(t=>e.min!=null&&t<e.min||e.max!=null&&t>e.max)&&t.issues.push({code:`custom`,input:t.value,message:`Values must be between ${e.min??`any`} and ${e.max??`any`}`})}),e);return t.add(n,{type:`exact_range_input`,...e}),n},_o=(e,t)=>{let n=r.object({from:r.number().optional().nullable(),to:r.number().optional().nullable()}).default({from:null,to:null}),i=n;(e.min!==void 0||e.max!==void 0)&&(i=n.check(t=>{Object.values(t.value).filter(e=>e!=null).every(t=>(e?.min==null||t>=e.min)&&(e.max==null||t<=e.max))||t.issues.push({code:`custom`,input:t.value,message:`Values must be between ${e.min??`any`} and ${e.max??`any`}`}),t.value.from&&t.value.to&&t.value.from>t.value.to&&t.issues.push({code:`custom`,input:t.value,message:`'From' value must be smaller than 'to' value.`})}));let a=io(i,e);return t.add(a,{type:`range_input`,...e}),a},vo=(e,t)=>{let n=io(b.date_range_input.check(e=>{let t=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/;for(let[n,r]of Object.entries(e.value))r&&!t.test(r)&&e.issues.push({code:`custom`,input:r,path:[n],message:`Must be an ISO datetime string`})}),e);return t.add(n,{type:`date_range_input`,...e}),n},yo=(e,t)=>{let n=io(b.boolean_input.default(e.defaultValue),e);return t.add(n,{...e,required:!1,type:`boolean_input`}),n},bo=(e,t)=>{let n=io(b.nullable_boolean_input.default(e.defaultValue),e);return t.add(n,{...e,required:!1,type:`nullable_boolean_input`,defaultValue:e.defaultValue}),n},xo=(e,t)=>{let n=b.text_input;e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern)));let r=io(n,e);return t.add(r,{type:`text_input`,...e}),r},So=(e,t)=>{let n=b.textarea_input;e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength));let r=io(n,e);return t.add(r,{type:`textarea_input`,...e}),r},Co=(e,t,n=`pipe_io`)=>{let i=r.object({alias:r.string().default(``).describe(`Rename this output field. Leave empty to use default name.`),enabled:r.boolean().default(!0).describe(`Whether to include this field in the output.`)}).describe(`Output field '${e.fieldName}'`);return t.add(i,{type:`output_field_input`,label:`Rename *${e.fieldName}*`,placeholder:e.fieldName,path:`config.output_fields.${e.fieldName}`,description:void 0,groupPath:`config.output_fields`,sectionKey:n}),i.default({alias:``,enabled:!0})},wo=(e,t)=>r.unknown().check(e=>{t(e.value)&&e.issues.push({code:`custom`,input:e.value,message:`Required`})}).pipe(e),To=(e,t)=>{let n=io(wo(b.int_input.check(t=>{e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})}),e=>e==null),e);return t.add(n,{...e,type:`int_input`}),n},Eo=(e,t)=>{let n=io(wo(b.number_input.check(t=>{e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})}),e=>e===void 0),e);return t.add(n,{...e,type:`number_input`}),n},Do=(e,t)=>{let n=b.json_schema_input;return n.check(e=>{wa(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(n=n.check(e=>{Ta(e.value)&&e.issues.push({code:`custom`,message:`JSON Schema must define a meaningful value. Can not be an empty object or array.`,input:e.value})})),t.add(n,{...e,type:`json_schema_input`}),n},Oo=(e,t)=>{let n=e.options.map(e=>e.value),r=new Set([...n,``]),i=b.select_input.check(t=>{if(t.value===``){e.required&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}r.has(t.value)||t.issues.push({code:`custom`,input:t.value,message:`Must be one of: ${[...r].filter(e=>e).join(`, `)}`})}),a=io(e.defaultValue?i.default(e.defaultValue):i,e);return t.add(a,{type:`select_input`,...e}),a},ko=(e,t,n)=>{let r=io(b.search_payload_input.check(e=>{if(!e.value?.search_id){e.issues.push({code:`custom`,input:e.value,message:`Required`});return}let t=n?.safeParse(e.value);if(t&&!t.success)for(let n of t.error.issues)e.issues.push({code:`custom`,input:e.value,message:n.message,path:n.path})}),e);return t.add(r,{...e,type:`search_payload_input`,required:!0}),r},Ao=({billableOperations:e,...t},n)=>{let i=r.enum(La).default(t.defaultValue||`google-low`);return n.add(i,{type:`select_input`,options:La.map(t=>{let n=Object.keys(e).find(e=>e.endsWith(`-in-${t}`)),r=Object.keys(e).find(e=>e.endsWith(`-out-${t}`)),i=n?e[n]:void 0,a=r?e[r]:void 0;if(!i||!a)throw Error(`Unable to find token billing info for model ${t}`);return{label:Ra[t].label,value:t,widgets:{logo:{url:Ri[Ra[t].provider].logoUrl},token_pricing:{inputPerBlock:i.credits.default,outputPerBlock:a.credits.default,blockSize:100}}}}),required:!0,description:``,label:`AI Models`,...t}),i},jo=(e,t)=>{let n=e.options.map(e=>e.value),i=new Set(n),a=r.array(r.enum(Array.from(i))).check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`});let r=new Set;t.value.forEach((e,a)=>{i.has(e)?r.has(e)?t.issues.push({code:`custom`,input:e,path:[a],message:`Duplicate option: ${e}`}):r.add(e):t.issues.push({code:`custom`,input:e,path:[a],message:`Must be one of: ${n.join(`, `)}`})})});return t.add(a,{type:`multi_select_input`,...e}),a},Mo=(e,t)=>{let n=e.required?b.context_select_input.check(e=>{(e.value===``||Array.isArray(e.value)&&e.value.length===0)&&e.issues.push({code:`custom`,input:e.value,message:`Required`})}):b.context_select_input,r=e.defaultValue?n.default(e.defaultValue):n,i=e.enabledIf??to(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},No=(e,t)=>{let n=b.min_max_int_input.check(t=>{for(let n of[`min`,`max`]){let r=t.value[n];if(r!=null){if(!Number.isInteger(r)){t.issues.push({code:`custom`,input:r,path:[n],message:`Must be an integer`});continue}(r<e.min||r>e.max)&&t.issues.push({code:`custom`,input:r,path:[n],message:`Must be between ${e.min} and ${e.max}`})}}});return t.add(n,{type:`min_max_int_input`,...e}),n},Po=(e,t)=>{let n=b.async_multi_select_input.check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`})});return e.maxItems&&(n=n.max(e.maxItems)),t.add(n,{type:`async_multi_select_input`,...e}),n},Fo=(e,t)=>{let n=e.maxItems||200,r=b.async_include_exclude_select_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})});return t.add(r,{type:`async_include_exclude_select_input`,...e}),r},x=()=>{let e=Li.nullish();return _.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`pipes_run_if_input`,groupPath:`run_if`,path:`run_if`,sectionKey:`pipe_io`,fields:Object.entries(t.fieldDefinitions).filter(([e,t])=>t.type!==`json`&&e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:t.label,format:t.format,type:t.type}))}}),e},Io=e=>{let t=Fi.nullish();return y.add(t,t=>{let n=t.validationContext;return{type:`condition_block_input`,...e,fields:Object.entries(n.fieldDefinitions).filter(([e,t])=>t.type!==`json`&&e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:t.label,format:t.format,type:t.type}))}}),t},Lo=e=>{let t=io(Ii.nullable().check(e=>{let t=e;if(t.value===null){t.issues.push({code:`custom`,input:t.value,message:`Add at least one condition.`});return}(t.value?.conditions??[]).forEach((e,n)=>{typeof e.value==`string`&&Vo({value:e.value,issues:t.issues},!1,[`conditions`,n,`value`])})}),e,"Condition block over the target sheet's columns. `field_name` is a LITERAL column name of the looked-up sheet (never templated); string `value`s may contain `{{ field }}` / `{{ SECRETS.KEY }}` / `{{ CONSTANTS.KEY }}` Liquid references resolved per row.");return _.add(t,t=>{let n=t.validationContext;return{type:`condition_block_input`,fields:[],fieldNameMode:`text`,properties:[`value`],inputFields:Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).map(([e,t])=>({...t,resolvedName:e})),...e}}),t};function Ro(e,t){if(!t)return e;let n={...e};for(let[r,i]of Object.entries(t))n[r]=i===null?null:{...e[r]??{},...i};return n}function zo({fieldMetadata:e,store:t}){if(e.type===`context_select_input`||e.type===`tagged_text_input`){t.field_options??={};let n=t.field_options[e.path]?.options||[],r=e.optionsDef?.widgets;e.options=r?n.map(e=>({...e,widgets:{...r,...e.widgets??{}}})):n}return e}const Bo=({schema:e,extractFromSchema:t,store:n,formResolvers:i,sectionMap:a,groupMap:o,pathMap:s})=>{let c={};function l(e){let t=e?._zod?.def?.type;return!(t===`optional`||t===`nullable`||t===`default`)}function u(e,d){let f=t(e),ee=f?.required,te=f&&ee===void 0&&d!==void 0?{...f,required:d}:f;if(te){let{sectionKey:e,groupPath:t,path:r}=te,l=a?.[e],u=o?.[t],d=s?.[r];if(!(l===null||u===null||d===null)){let r=d?{...te,label:d.label??te.label,description:d.description??te.description}:te;c[e]??={type:`section`,groups:[],metadata:{type:`form_section`,path:l?.path??e,label:l?.label,description:l?.description}};let a=c[e];if(!a)throw Error(`Section not defined`);let o=a.groups.find(e=>e.groupPath===t);if(o){let e=zo({fieldMetadata:r,store:n,formResolvers:i});e&&o.fields.push(e)}else{let e=zo({fieldMetadata:r,store:n,formResolvers:i});e&&a.groups.push({groupPath:t,fields:[e],type:`group`,label:u?.label,defaultExpand:!!u?.defaultExpand,description:u?.description,iconKey:u?.iconKey,order:u?.order})}}}if(typeof e==`object`&&`unwrap`in e&&typeof e.unwrap==`function`&&u(e.unwrap(),d),e instanceof r.ZodObject)for(let t of Object.values(e.shape))u(t,l(t))}u(e);for(let e of Object.values(c))e.groups=e.groups.filter(e=>e.fields.length!==0),e.groups.sort((e,t)=>(e.order??99)-(t.order??99));return Object.entries(c).filter(([,e])=>e.groups.length!==0).sort(([e],[t])=>(a?.[e]?.order??99)-(a?.[t]?.order??99)).map(([,e])=>e)};function Vo(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=ia(r);!t&&i.outputs.length>0&&e.issues.push({code:`custom`,input:r,path:n,message:`{% output %} tags are not allowed in this field.`}),t&&i.outputs.length===0&&e.issues.push({code:`custom`,input:r,path:n,message:`At least one {% output %} tag is required, e.g. {% output result, type: "string", description: "..." %}`})}catch(t){e.issues.push({code:`custom`,input:r,path:n,message:t instanceof Error?t.message:String(t)})}}const Ho=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:io(r.string().min(10).check(e=>Vo(e,t,[])),e,'Liquid prompt with `{{ field }}` input refs, `{{ field | default: "" }}` for optional refs, `{{ SECRETS.KEY }}` for secrets, `{{ CONSTANTS.KEY }}` for plaintext constants, and `{% output name, type: "string", description: "..." %}` to declare model outputs. Supports `{% if %}` / `{% for %}` control flow. Example: "Summarize {{ name }}. {% output summary, type: \\"string\\", description: \\"One-line summary\\" %}"'),json_schemas:r.record(r.string().min(1,`Schema name cannot be empty`),r.record(r.string(),r.any())).optional().describe(`JSON schemas for output fields with type="json". Keys are referenced via schema="<name>" in output tags.`)});return _.add(n,t=>{let n=t.validationContext;return{type:`prompt_input`,inputFields:Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).map(([e,t])=>({...t,resolvedName:e})),...e}}),n},Uo=e=>{let t=r.string();e.required&&(t=t.min(1)),e.maxLength&&(t=t.max(e.maxLength));let n=io(t.check(e=>Vo(e,!1,[])),e,'Liquid template with `{{ field }}` input refs, `{{ field | default: "" }}` for optional refs, `{{ SECRETS.KEY }}` for secrets, `{{ CONSTANTS.KEY }}` for plaintext constants, and `{% if %}` / `{% for %}` control flow. Example: "Write to {{ name }} about {{ topic | default: \\"the project\\" }}."');return _.add(n,t=>{let n=t.validationContext;return{type:`template_input`,inputFields:Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).map(([e,t])=>({...t,resolvedName:e})),rows:e.rows||10,...e}}),n},S=e=>{let t=`${e.multiline?`Multi-line`:`Single-line`} ${e.expectedTagType} value, optionally containing \`{{ field }}\` Liquid input refs (use \`| default: ""\` for optional refs), \`{{ SECRETS.KEY }}\` for encrypted secrets, and \`{{ CONSTANTS.KEY }}\` for plaintext constants.`,n=r.coerce.string();e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),n=n.check(e=>Vo(e,!1,[])),n=io(n,e,t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??to(e.optionsDef)}:void 0,a={type:`tagged_text_input`,...e,optionsDef:i,options:[]},o=t=>{let n=t.validationContext,r=Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).filter(([t,n])=>n.type===e.expectedTagType).map(([e,t])=>({...t,resolvedName:e}));return{...a,inputFields:r}};return o.staticMeta={...a,inputFields:[]},_.add(n,o),n};function Wo(e,t){_.add(e,({userConnections:e,pipeEntry:n})=>{let r=new Set(n.allowedUserConnectionProviders),i=e.filter(e=>r.has(e.provider));return{label:t===`required`?`Custom connection`:``,description:``,required:t===`required`,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:Sa({id:e.public_id,provider:e.provider})}))}})}const Go=()=>{let e=Oi;return Wo(e,`required`),e},C=()=>{let e=Di;return Wo(e,`optional`),e},w=()=>{let e=ki;return Wo(e,`disabled`),e};function Ko(e,t){v.add(e,({userConnections:e,searchEntry:n})=>{let r=n.allowsUserConnection?[n.provider]:[],i=new Set(r),a=e.filter(e=>i.has(e.provider));return{label:t===`required`?`Custom connection`:``,description:``,required:t===`required`,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:i.size>0,filteredConnections:a.map(e=>({provider:e.provider,connection:Sa({id:e.public_id,provider:e.provider})}))}})}const qo=()=>{let e=Oi;return Ko(e,`required`),e},Jo=()=>{let e=Di;return Ko(e,`optional`),e};function Yo(e,t){y.add(e,({userConnections:e,effectEntry:n})=>{let r=new Set(n.allowedUserConnectionProviders),i=e.filter(e=>r.has(e.provider));return{label:t===`required`?`Custom connection`:``,description:``,required:t===`required`,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:Sa({id:e.public_id,provider:e.provider})}))}})}const Xo=()=>{let e=Oi;return Yo(e,`required`),e},Zo=()=>{let e=Di;return Yo(e,`optional`),e},T=()=>{let e=ki;return Yo(e,`disabled`),e};function Qo(e,t){return Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e&&t.toLowerCase()!==`id`).map(([e,t])=>({label:e,value:e,type:t.type,format:t.format}))}const E=e=>{let t=r.object({alias:r.string().describe(`Override field name mapping. Leave empty to use default.`)});return _.add(t,t=>{let n=t.validationContext;return{type:`select_input`,required:!1,sectionKey:`pipe_io`,defaultValue:void 0,placeholder:e.fieldName,options:Qo(t.hash,n),path:`config.input_fields.${e.fieldName}.alias`,label:`Assign *${e.fieldName}* to:`,description:``,groupPath:`config.input_fields`,multiple:!1}}),t.default({alias:``})},D=e=>mo(e,_),$o=e=>{let t=b.fields_select_input.check(e=>{e.value.forEach((t,n)=>{t.field_name.length<1&&e.issues.push({code:`custom`,input:t.field_name,path:[n,`field_name`],message:`field_name must not be empty`})})});return t=e.minItems?t.min(e.minItems):t.default([]),_.add(t,t=>{let n=t.validationContext;return{type:`fields_select_input`,options:Object.entries(n.fieldDefinitions).filter(([e])=>e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:e,type:t.type})).map(e=>({value:e.fieldName,label:e.fieldLabel,widgets:{field_type:{type:e.type}}})),...e}}),t},es=e=>{let t=b.fields_select_input.check(e=>{e.value.forEach((t,n)=>{t.field_name.length<1&&e.issues.push({code:`custom`,input:t.field_name,path:[n,`field_name`],message:`field_name must not be empty`})})});return t=e.minItems?t.min(e.minItems):t.default([]),y.add(t,t=>{let n=t.validationContext;return{type:`fields_select_input`,options:Object.entries(n.fieldDefinitions).filter(([e])=>e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:e,type:t.type})).map(e=>({value:e.fieldName,label:e.fieldLabel,widgets:{field_type:{type:e.type}}})),...e}}),t},ts=(e,t)=>{let n=t===`selection`?et:t===`sheet`?tt:rt,i={label:`All rows`,value:{type:`all`}},a={label:`Specific rows by ID`,value:{type:`rows`,record_ids:[]}},o=t===`selection`?[a]:t===`sheet`?[i]:[i,a,{label:`Window of 10 rows`,value:{type:`window`,count:10}}],s=r.preprocess(e=>{if(typeof e!=`string`)return e;let t=e.trim();if(t===``)return;let n=Da(t);return n===void 0?e:n},n).optional();return y.add(s,{type:`textarea_input`,rows:3,language:`json`,quickOptions:o,...e}),s},ns=e=>fo(e,_),rs=e=>ao(e,_),is=e=>oo(e,_),as=e=>lo(e,_),os=e=>uo(e,_),ss=e=>ho(e,_),cs=e=>Fo(e,_),ls=e=>go(e,_),us=e=>vo(e,_),ds=e=>yo(e,_),O=e=>Co(e,_),fs=e=>{let{groupPath:t,sectionKey:n=`pipe_io`,defaultName:r,nameInfo:i}=e;return{destination_field_name:ps({label:`Field name`,description:`Destination field name`,info:i??`Name of the field written to the destination sheet.`,placeholder:r,inputType:`text`,path:`config.destination_field_name`,groupPath:t,sectionKey:n}).nullable().default(``),destination_field_type:hs({label:`Type`,info:`Field data type. Leave unset to infer it from the data.`,path:`config.destination_field_type`,groupPath:t,sectionKey:n,required:!1,options:Br.filter(e=>e!==`unknown`).map(e=>({value:e,label:e}))}).default(``),destination_field_format:hs({label:`Format`,info:`Optional display format for the field.`,path:`config.destination_field_format`,groupPath:t,sectionKey:n,required:!1,options:oi.map(e=>({value:e,label:e}))}).default(``),destination_field_label:ps({label:`Label`,description:`Destination field label`,info:`Human-friendly column header. Defaults to the field name.`,inputType:`text`,path:`config.destination_field_label`,groupPath:t,sectionKey:n}).nullable().default(``)}},ps=e=>xo(e,_),ms=e=>So(e,_),hs=e=>Oo(e,_),gs=e=>Ao(e,_),_s=e=>jo(e,_),vs=e=>To(e,_),ys=e=>Eo(e,_),bs=e=>Do(e,_),xs=e=>Mo(e,_),k=e=>ao(e,v),Ss=e=>oo(e,v),Cs=e=>No(e,v),A=e=>fo(e,v),j=e=>ho(e,v),ws=e=>go(e,v),Ts=e=>_o(e,v),Es=e=>vo(e,v),Ds=e=>yo(e,v),Os=e=>bo(e,v),M=e=>Co(e,v,`pipe_io`),ks=e=>xo(e,v),As=e=>So(e,v),js=e=>Oo(e,v),Ms=e=>Mo(e,v),N=e=>jo(e,v),P=e=>Po(e,v),F=e=>Fo(e,v),I=e=>To(e,v),Ns=e=>Eo(e,v),Ps=e=>xo(e,ro(y)),Fs=e=>So(e,ro(y)),Is=e=>Oo(e,ro(y)),Ls=e=>jo(e,ro(y)),Rs=e=>To(e,ro(y)),zs=e=>To(e,ro(y)).nullish(),Bs=e=>yo(e,ro(y)),Vs=e=>Mo(e,ro(y)),Hs=e=>Ao(e,ro(y)),Us=(e,t)=>ko(e,ro(y),t),L=e=>(e=e.check(e=>{let t=e.value,n=!1;for(let e in t)if(t[e]?.enabled){n=!0;break}n||e.issues.push({code:`custom`,input:e.value,message:`All output fields are disabled. Enable at least one output.`})}),e.optional()),R=e=>e.optional();function Ws(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Ws).filter(e=>!kn(e));let t={};for(let[n,r]of Object.entries(e)){let e=Ws(r);kn(e)||(t[n]=e)}return t}const Gs=await l();var Ks=class e{static hashObject(t){if(!Gs)throw Error(`HashAPI not initialized`);let{h64ToString:n}=Gs,r=e.normalizeObject(t);return n(JSON.stringify(r))}static normalizeObject(t){if(typeof t!=`object`||!t)return t;if(Array.isArray(t))return t.map(t=>e.normalizeObject(t));let n={},r=Object.keys(t).sort();for(let i of r)n[i]=e.normalizeObject(t[i]);return n}};function z(e){return e.split(`@`)[0]}function qs(e,t){let n={effectId:e,config:Ws(t)};return Ks.hashObject(n)}var B=class{validatePayload(e){try{return this.schema.parse(e)}catch(e){throw e instanceof n?Error(JSON.stringify(r.prettifyError(e))):e}}getSecretRequirements(){return[]}getConstantRequirements(){return[]}getConfigHashKey(){return qs(this.payload.effect_id,this.payload.config||{})}producesDynamicFields(){return!1}evolveSchema(e){return{next:e}}getRecordQueueConfig(e){return null}};const Js=`env:change@1`,Ys={},Xs=r.object({effect_id:r.literal(Js),connector:T(),config:r.object({environment:Lr})}),Zs=class extends B{effectId=Js;schema=Xs;payload;billableOperations=Ys;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},Qs=Xs,$s={effectId:Js,baseEffect:z(Js),label:`Change environment`,description:`Switch the sheet between production and sandbox.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:Ys,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:Js,connector:null,config:{environment:`production`}}},ec=`fields:add@1`,tc={},nc=r.object({effect_id:r.literal(ec),connector:T(),config:r.object({})}),rc=class extends B{effectId=ec;schema=nc;payload;billableOperations=tc;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},ic=nc,ac={effectId:ec,baseEffect:z(ec),label:`Add field`,description:`Add a new empty field to the sheet.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:tc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:ec,connector:null,config:{}}},oc=[`id`],sc=e=>oc.includes(e.trim().toLowerCase()),cc=e=>typeof e.kind==`string`,lc=e=>cc(e)?e:{kind:`field`,field:e},V=e=>({kind:`field`,field:e}),uc=(...e)=>({kind:`all`,of:e.map(lc)}),dc=(...e)=>({kind:`any`,of:e.map(lc)}),fc=e=>({kind:`optional`,field:e});function pc(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>pc(e,t));case`any`:return e.of.some(e=>pc(e,t))}}function mc(e){switch(e.kind){case`field`:return[{field:e.field,required:!0}];case`optional`:return[{field:e.field,required:!1}];case`all`:case`any`:return e.of.flatMap(mc)}}function hc(e,t){let n=gc(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function gc(e,t){switch(e.kind){case`optional`:return{ok:!0};case`field`:{let n=t.fields[e.field.resolvedName];if(!n)throw Error(`Record field does not exist ${e.field.name} for requirement.`);return n.status===`completed`||n.status===`queued`?{ok:!0}:{ok:!1,field:e.field,recordField:n}}case`all`:for(let n of e.of){let e=gc(n,t);if(!e.ok)return e}return{ok:!0};case`any`:{let n=null,r=!1;for(let i of e.of)try{let e=gc(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function _c(e,t){let n={pipeId:e,config:Ws(t)};return Ks.hashObject(n)}function vc(e,t){let n={};return Object.values(t).forEach(t=>{let r=t,i=e.fields[r.resolvedName];i?.value!=null&&(n[r.resolvedName]=i.value)}),Object.keys(n).length===0?null:Ks.hashObject(Ws(n))}var H=class{validatePayload(e){try{return this.payloadSchema.parse(e)}catch(e){throw e instanceof n?Error(r.prettifyError(e)):e}}getSecretRequirements(){return[]}getConstantRequirements(){return[]}async getAgentContext(e){return null}catalogOutput(e,{isPrimaryOutput:t=!1,resolveFormat:n,resolveType:r}={resolveType:void 0,resolveFormat:void 0,isPrimaryOutput:!1}){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:r||e.type,format:n||e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0,isPrimaryOutput:t}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}get inputFields(){let e={};for(let{field:t}of mc(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return _c(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return vc(e,this.inputFields)}};const yc={title:`Software Engineer, CEO, ...`,seniority:`C-Suite, Senior, ...`,department:`Consulting, Finance, ...`,certification:`CISSP, AWS, ...`,crunchbase_category:`3D Printing, Big Date, ...`,honor:`Cum Laude, 40 Under 40, ...`,field_of_study:`Engineering, Computer Science, ...`,degree_name:`Bachelor of Science, ...`,extracurricular:`Athelete, Debate Team, ...`,job_function:`Accounting, Advertising, ...`,location:`United States, Germany, France, ...`,company_name:`Google, Anthropic, ...`,company_domain:`google.com, openai.com, ...`,company_profile_keyword:`B2B, Software, ...`,headline_keywords:`Founder, JavaScript, ...`,profile_keywords:`Coach, Scrum, ...`,languages:`German, English, ...`,languages_1:`Spanish, Italian, ...`,skills:`TypeScript, Playwright, ...`,industry:`IT, Agriculture, ...`,investor:`a16z, Inside Partners, ...`,school:`MIT, Harvard, ...`,prompt:`Enter prompt here...`,template:`Enter template here...`};function U(e){return yc[e]}function bc(e,t){return typeof t==`string`?t:t(e)}function xc(e,t){return typeof t==`string`||t===null?t:t(e)}function Sc(e,t){let n={};for(let r of t){let t=!1;for(let i of e.pipes){let a=i.getOutputFields();if(a[r]){n[r]??={type:bc(e,a[r].type),format:xc(e,a[r].format)},t=!0;break}}if(t)continue;let i=e.derivedInputFields[r];i&&(n[r]??={type:i.type,format:null})}return n}function Cc(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:bc(e,r[t].type),format:xc(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function wc(e,t={}){let n=t.expectedType??`string`,r=t.expectedFormat??`text`,i=new Map;for(let t of e){if(!t)continue;let e;try{e=ia(t)}catch{continue}for(let[t,n]of Object.entries(e.inputs)){let e=i.get(t);i.set(t,{required:e&&e.required||n.required})}}let a=[];for(let[e,t]of i){let i={name:e,resolvedName:e,label:e,description:``,type:t=>Cc(t,e)?.type||n,format:r};a.push(t.required?V(i):fc(i))}return uc(...a)}function Tc(e){let t=new Set;for(let n of e)if(n)try{let e=ia(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function Ec(e){let t=new Set;for(let n of e)if(n)try{let e=ia(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const W={EMAIL:`Email`,TEXT:`Text`,CHAT:`Chat`,PERSONAL_EMAIL:`Personal Email`,NAMES:`Names`,WORK_EMAIL:`Work Email`,WATERFALL:`Waterfall`,WEBSITE:`Website`,SCRAPE:`Scrape`,ADDRESS:`Address`,NEWS:`News`,LINKEDIN:`LinkedIn`,FINANCIAL_DATA:`Financial Data`,AI:`AI`,PHONE:`Phone Number`,NEW:`New`,BETA:`Beta`,PEOPLE_PROFILES:`People Profiles`,COMPANY_PROFILES:`Company Profiles`,EVENTS:`Events`,JSON:`Json`,FIELDS:`Fields`,LOGIC:`Logic`,DEPRECATED:`Deprecated ❌`};function Dc(e,t){let n={};for(let r of t)for(let t of Object.values(e))if(t&&t.provider===r&&t.allowManagedConnection){n[r]=t.credits.default;break}return n}function Oc(e){return mc(e).map(({field:e})=>e)}function kc({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function Ac({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function jc({recordField:e,reason:t,resolvedBy:n,widgets:r={}}){return e.value=null,e.status=`no_result`,e.resolved_by=n,e.reason=t,e.widgets=r,e}function Mc(e,t,n){return e.value=null,e.status=`failed`,e.resolved_by=null,e.reason=t,e.resolved_by=n,e.widgets={},e}function Nc(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function Pc(e){return e.value=null,e.status=`processing`,e.resolved_by=null,e.widgets={},e}function G(e){return e.split(`@`)[0]}function K(e){return`/docs/pipe-catalog/${G(e)}/${e.split(`@`)[1]}`}function q(e,t){return{name:e.name,description:e.description,resolvedName:t?.input_fields?.[e.name]?.alias||e.name,type:e.type,label:e.label,format:e.format}}const Fc=`agent:run@1`,Ic=`agent-run-v1`,Lc=[{value:`web_researcher`,label:`Web researcher`,widgets:{emoji:{char:`πŸ”Ž`}}}],Rc={...Za(Ic),"agent-run-v1-search-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.2},mode:`always`,note:`Billed per web search the agent performs.`},"agent-run-v1-extract-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.1},mode:`always`,note:`Billed per URL-extraction call the agent performs.`}},zc=r.object({pipe_id:r.literal(Fc),connector:C(),run_if:x(),config:r.object({agent_type:hs({sectionKey:`general`,groupPath:`config.prompt`,path:`config.agent_type`,label:`Agent type`,defaultValue:`web_researcher`,options:[...Lc],required:!0}),prompt:Ho({sectionKey:`general`,path:`config.prompt`,placeholder:U(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:gs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Rc})})}),Bc=class extends H{pipeId=Fc;payload;payloadSchema=zc;billableOperations=Rc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[...Wa(this.payload.config.model),`parallel`]}estimateBillableOperations(e){return[...$a(e,{model:this.payload.config.model,prefix:Ic,inputTokens:8e3,outputTokens:2e3}),{billableOperation:`agent-run-v1-search-parallel`,quantity:e.count*5},{billableOperation:`agent-run-v1-extract-parallel`,quantity:e.count*2}]}getInputRequirement(){return wc([this.payload.config.prompt.template])}getSecretRequirements(){return Tc([this.payload.config.prompt.template])}getConstantRequirements(){return Ec([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=ia(e)}catch{return n}for(let e of r.outputs){let r=e.type;if(r===`json`){let i=e.schemaRef?t[e.schemaRef]:void 0;n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:{zodSchema:i,exampleValue:null},format:null,isCatalogFIeld:!1,isPrimaryOutput:!1}}else n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:null,format:e.format??null,isCatalogFIeld:!1,isPrimaryOutput:!1}}return n}getConnectionsRequirements(){return[...Ga(this.payload.config.model),{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`parallel`,rateLimitRatio:1,rateLimitOperation:`parallel_extract`,allowManagedConnection:!0}]}},Vc=zc,Hc={pipeId:Fc,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:G(Fc),label:`AI agent`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,description:`Runs an AI research agent with web tools and structured output fields.`,guide:`AI agent with tools. Like prompt:run@1, inputs and outputs are fully dynamic β€” defined by the tags in the prompt template β€” but the agent can call tools before answering. The agent type decides the toolset: web_researcher gets web search and URL extraction, for questions model knowledge alone can't answer ('has {{ company_name }} ever raised money?', 'find the general counsel of {{ company_name }}'). Every tool call is billed on top of tokens, so when no live research is needed, use prompt:run@1 instead. Fields the agent cannot ground in evidence come back as no_result, not a guess.`,tags:[W.AI],docPath:K(Fc),defaultInputRequirement:null,billableOperations:Rc,allowedUserConnectionProviders:[...Ka(),`parallel`],managedProviders:[...Ka(),`parallel`],deprecatedProviders:[],defaultPayload:{pipe_id:Fc,connector:null,run_if:null,config:{agent_type:`web_researcher`,model:`google-low`,prompt:{template:``,json_schemas:{}}}}};function J(e,...t){return t.map(t=>({billableOperation:t,quantity:e.count}))}function Uc(e,t){return n=>{let r=e[n];if(!r)throw Error(`Missing billableOperation def for "${n}"`);return!r.allowManagedConnection||t?.(r.provider)?0:r.credits.default}}function Wc(e,t,n=`sum`){let r=e.map(e=>e.quantity*t(e.billableOperation));return r.length===0?0:n===`max`?Math.max(...r):r.reduce((e,t)=>e+t,0)}const Gc=`company:domain:workemail@1`,Kc=g(`company_domain`),qc=g(`work_email`),Jc=r.object({pipe_id:r.literal(Gc),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[qc.name]:E({fieldName:qc.name})})),output_fields:L(r.object({[Kc.name]:O({fieldName:Kc.name})}))}).optional()}),Yc=e=>V(q(qc,e)),Xc={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Zc=class extends H{pipeId=Gc;payload;payloadSchema=Jc;billableOperations=Xc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-domain-workemail-v1-pipe0`)}getInputRequirement(){return Yc(this.payload.config)}getRawOutputFields(){return{[Kc.name]:this.catalogOutput(Kc)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Qc=Jc,$c={pipeId:Gc,basePipe:G(Gc),inputFieldMode:`static`,outputFieldMode:`static`,label:`Website from email`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Extract the company website URL from a work email address.`,tags:[W.EMAIL,W.WORK_EMAIL,W.WEBSITE],docPath:K(Gc),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Xc,defaultInputRequirement:Yc(null),defaultPayload:{pipe_id:Gc,connector:null,run_if:null,config:{input_fields:{[qc.name]:{alias:``}},output_fields:{[Kc.name]:{alias:``,enabled:!0}}}}},el=`company:funding:leadmagic@2`,tl=g(`company_name`),nl=g(`company_domain`),rl=g(`funding_history`),il=g(`funding_total_usd`),al=g(`leadmagic_competitor_list`),ol=g(`leadmagic_acquisition_history`),sl=g(`leadmagic_company_news_list`),cl=r.object({pipe_id:r.literal(el),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[tl.name]:E({fieldName:tl.name}),[nl.name]:E({fieldName:nl.name})})),output_fields:L(r.object({[rl.name]:O({fieldName:rl.name}),[il.name]:O({fieldName:il.name}),[al.name]:O({fieldName:al.name}),[ol.name]:O({fieldName:ol.name}),[sl.name]:O({fieldName:sl.name})}))}).optional()}),ll=e=>dc(q(tl,e),q(nl,e)),ul={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},dl=class extends H{pipeId=el;payload;payloadSchema=cl;billableOperations=ul;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(e){return J(e,`company-funding-leadmagic-v2-leadmagic`)}getInputRequirement(){return ll(this.payload.config)}getRawOutputFields(){return{[rl.name]:this.catalogOutput(rl),[il.name]:this.catalogOutput(il),[ol.name]:this.catalogOutput(ol),[sl.name]:this.catalogOutput(sl),[al.name]:this.catalogOutput(al)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},fl=cl,pl={pipeId:el,basePipe:G(el),label:`Funding history`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[W.FINANCIAL_DATA],docPath:K(el),billableOperations:ul,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:ll(null),defaultPayload:{pipe_id:el,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``},company_domain:{alias:``}},output_fields:{funding_history:{enabled:!0,alias:``},funding_total_usd:{enabled:!0,alias:``},leadmagic_acquisition_history:{enabled:!1,alias:``},leadmagic_company_news_list:{enabled:!1,alias:``},leadmagic_competitor_list:{enabled:!1,alias:``}}}}},ml=g(`company_name`),hl=g(`company_profile_url`),gl=g(`company_domain`),_l=g(`cleaned_company_name`),vl=`company:identity@3`,yl=r.object({pipe_id:r.literal(vl),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[ml.name]:E({fieldName:ml.name})})),output_fields:L(r.object({[hl.name]:O({fieldName:hl.name}),[_l.name]:O({fieldName:_l.name}),[gl.name]:O({fieldName:gl.name})}))}).optional()}),bl=e=>V(q(ml,e)),xl={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3,level1:{credits:.2,weight:1}},mode:`always`,provider:`pipe0`}},Sl=class extends H{pipeId=vl;payload;payloadSchema=yl;billableOperations=xl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-identity-v3-pipe0`)}getInputRequirement(){return bl(this.payload.config)}getRawOutputFields(){return{[hl.name]:this.catalogOutput(hl),[gl.name]:this.catalogOutput(gl),[_l.name]:this.catalogOutput(_l)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},Cl=yl,wl={pipeId:vl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(vl),label:`Company identity`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:K(vl),billableOperations:xl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:bl(null),defaultPayload:{pipe_id:vl,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_domain:{alias:``,enabled:!0}}}}},Tl=g(`company_domain`),El=g(`company_name`),Dl=g(`crustdata_company_identity_matches`),Ol=`company:identity:crustdata@1`,kl=r.object({pipe_id:r.literal(Ol),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Tl.name]:E({fieldName:Tl.name}),[El.name]:E({fieldName:El.name})})),output_fields:L(r.object({[Dl.name]:O({fieldName:Dl.name})}))}).optional()}),Al=e=>dc(q(Tl,e),q(El,e)),jl={"company-identity-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:.001},mode:`onSuccess`,provider:`crustdata`}},Ml=class extends H{pipeId=Ol;payload;payloadSchema=kl;billableOperations=jl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`company-identity-crustdata-v1-crustdata`)}getInputRequirement(){return Al(this.payload.config)}getRawOutputFields(){return{[Dl.name]:this.catalogOutput(Dl)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_identify`,allowManagedConnection:!0}]}},Nl=kl,Pl={pipeId:Ol,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Ol),label:`Company identity`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Resolve a company to Crustdata's matching candidates by domain or name. Returns the full list of matches.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:K(Ol),billableOperations:jl,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Al(null),defaultPayload:{pipe_id:Ol,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``},company_name:{alias:``}},output_fields:{crustdata_company_identity_matches:{alias:``,enabled:!0}}}}},Fl=g(`company_domain`),Il=g(`companyenrich_matches`),Ll=`company:lookalikes:companyenrich@2`,Rl=r.object({pipe_id:r.literal(Ll),run_if:x(),connector:C(),config:r.object({limit:vs({groupPath:`config.general`,max:50,min:1,path:`config.limit`,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:R(r.object({[Fl.name]:E({fieldName:Fl.name})})),output_fields:L(r.object({[Il.name]:O({fieldName:Il.name})}))}).optional()}),zl=e=>V(q(Fl,e)),Bl={"company-lookalikes-companyenrich-v2-companyenrich":{allowManagedConnection:!0,credits:{default:.2,level1:{credits:.1,weight:1}},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Vl=class extends H{pipeId=Ll;payload;payloadSchema=Rl;billableOperations=Bl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(e){return[{billableOperation:`company-lookalikes-companyenrich-v2-companyenrich`,quantity:e.count*5}]}getInputRequirement(){return zl(this.payload.config)}getRawOutputFields(){return{[Il.name]:this.catalogOutput(Il)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},Hl=Rl,Ul={pipeId:Ll,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Ll),label:`Find company lookalikes`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find companies similar to the company you provide as input.`,tags:[W.COMPANY_PROFILES],docPath:K(Ll),billableOperations:Bl,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:zl(null),defaultPayload:{pipe_id:Ll,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Wl=g(`company_domain`),Gl=g(`crustdata_companyenrich_match`),Kl=`company:match:crustdata@2`,ql=r.object({pipe_id:r.literal(Kl),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Wl.name]:E({fieldName:Wl.name})})),output_fields:L(r.object({[Gl.name]:O({fieldName:Gl.name})}))}).optional()}),Jl=e=>V(q(Wl,e)),Yl={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.2,weight:1}},mode:`onSuccess`,provider:`crustdata`}},Xl=class extends H{pipeId=Kl;payload;payloadSchema=ql;billableOperations=Yl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`company-match-crustdata-v2-crustdata`)}getInputRequirement(){return Jl(this.payload.config)}getRawOutputFields(){return{[Gl.name]:this.catalogOutput(Gl)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Zl=ql,Ql={pipeId:Kl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Kl),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:K(Kl),billableOperations:Yl,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Jl(null),defaultPayload:{pipe_id:Kl,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},$l=g(`company_domain`),eu=g(`company_name`),tu=g(`company_profile_url`),nu=g(`logodev_describe_match`),ru=g(`logo_url`),iu=`company:match:logodev@2`,au=r.object({pipe_id:r.literal(iu),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[$l.name]:E({fieldName:$l.name})})),output_fields:L(r.object({[tu.name]:O({fieldName:tu.name}),[ru.name]:O({fieldName:ru.name}),[eu.name]:O({fieldName:eu.name}),[nu.name]:O({fieldName:nu.name})}))}).optional()}),ou=e=>V(q($l,e)),su={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},cu=class extends H{pipeId=iu;payload;payloadSchema=au;billableOperations=su;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(e){return J(e,`company-match-logodev-v2-logodev`)}getInputRequirement(){return ou(this.payload.config)}getRawOutputFields(){return{[tu.name]:this.catalogOutput(tu),[eu.name]:this.catalogOutput(eu),[ru.name]:this.catalogOutput(ru),[nu.name]:this.catalogOutput(nu)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},lu=au,uu={pipeId:iu,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(iu),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find brand data like logos, colors, and social links via the Logo.dev API.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:K(iu),billableOperations:su,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:ou(null),defaultPayload:{pipe_id:iu,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_profile_url:{alias:``,enabled:!0},logo_url:{alias:``,enabled:!0},logodev_describe_match:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},du=`company:newssummary:domain@1`,fu=g(`company_news_summary`),pu=g(`company_domain`),mu=r.object({pipe_id:r.literal(du),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[pu.name]:E({fieldName:pu.name})})),output_fields:L(r.object({[fu.name]:O({fieldName:fu.name})}))}).optional()}),hu=e=>V(q(pu,e)),gu={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:2},mode:`always`,provider:`pipe0`}},_u=class extends H{pipeId=du;payloadSchema=mu;billableOperations=gu;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-newssummary-domain-v1-pipe0`)}getInputRequirement(){return hu(this.payload.config)}getRawOutputFields(){return{[fu.name]:this.catalogOutput(fu)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0}]}},vu=mu,yu={pipeId:du,basePipe:G(du),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company news`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find recent company news by performing a search and scrape.`,tags:[W.NEWS],docPath:K(du),billableOperations:gu,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:hu(null),defaultPayload:{pipe_id:du,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},bu=g(`company_domain`),xu=g(`company_profile_url`),Su=g(`company_description`),Cu=g(`company_industry`),wu=g(`company_region`),Tu=g(`headcount`),Eu=g(`estimated_revenue`),Du=g(`founded_year`),Ou=g(`company_name`),ku=`company:overview@3`,Au=r.object({pipe_id:r.literal(ku),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[bu.name]:E({fieldName:bu.name}),[xu.name]:E({fieldName:xu.name})})),output_fields:L(r.object({[Su.name]:O({fieldName:Su.name}),[Cu.name]:O({fieldName:Cu.name}),[wu.name]:O({fieldName:wu.name}),[Tu.name]:O({fieldName:Tu.name}),[Eu.name]:O({fieldName:Eu.name}),[Du.name]:O({fieldName:Du.name}),[Ou.name]:O({fieldName:Ou.name})}))}).optional()}),ju=e=>dc(q(bu,e),q(xu,e)),Mu={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`always`}},Nu=class extends H{pipeId=ku;payloadSchema=Au;billableOperations=Mu;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-overview-v3-pipe0`)}getInputRequirement(){return ju(this.payload.config)}getRawOutputFields(){return{[Su.name]:this.catalogOutput(Su),[Cu.name]:this.catalogOutput(Cu),[wu.name]:this.catalogOutput(wu),[Tu.name]:this.catalogOutput(Tu),[Eu.name]:this.catalogOutput(Eu),[Du.name]:this.catalogOutput(Du),[Ou.name]:this.catalogOutput(Ou)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},Pu=Au,Fu={pipeId:ku,basePipe:G(ku),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:K(ku),tags:[W.WEBSITE,W.LINKEDIN,W.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Mu,defaultInputRequirement:ju(null),defaultPayload:{pipe_id:ku,run_if:null,connector:void 0,config:{input_fields:{company_profile_url:{alias:``},company_domain:{alias:``}},output_fields:{company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0},estimated_revenue:{alias:``,enabled:!0},founded_year:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},Iu=g(`company_domain`),Lu=g(`technology_list`),Ru=g(`spending_trend`),zu=g(`technology_match_builtwith`),Bu=`company:techstack:builtwith@2`,Vu=r.object({pipe_id:r.literal(Bu),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Iu.name]:E({fieldName:Iu.name})})),output_fields:L(r.object({[Lu.name]:O({fieldName:Lu.name}),[zu.name]:O({fieldName:zu.name}),[Ru.name]:O({fieldName:Ru.name})}))}).optional()}),Hu=e=>V(q(Iu,e)),Uu={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},Wu=class extends H{pipeId=Bu;payload;payloadSchema=Vu;billableOperations=Uu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(e){return J(e,`company-techstack-builtwith-v2-builtwith`)}getInputRequirement(){return Hu(this.payload.config)}getRawOutputFields(){return{[Lu.name]:this.catalogOutput(Lu),[zu.name]:this.catalogOutput(zu),[Ru.name]:this.catalogOutput(Ru)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Gu=Vu,Ku={pipeId:Bu,basePipe:G(Bu),managedProviders:[`builtwith`],deprecatedProviders:[],allowedUserConnectionProviders:[`builtwith`],label:`Tech stack`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`All technologies and frameworks powering a given website.`,tags:[W.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:K(Bu),billableOperations:Uu,defaultInputRequirement:Hu(null),defaultPayload:{pipe_id:Bu,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{technology_list:{alias:``,enabled:!0},technology_match_builtwith:{alias:``,enabled:!0},spending_trend:{alias:``,enabled:!0}}}}},qu={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},Ju=`contact:create:resend@1`,Yu={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Xu=g(`email`),Zu=g(`name`),Qu=g(`resend_contact_id`),$u=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],ed=r.object({pipe_id:r.literal(Ju),connector:Go(),run_if:x(),config:r.object({segment_id:xs({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:Na(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return $u;if(!t)throw new qu.MissingSecretError({providerName:`resend`});let r=await fetch(`https://api.resend.com/segments?limit=100`,{headers:{Authorization:`Bearer ${t}`}});if(!r.ok){let e=await r.text();throw new qu.HttpError({msg:e})}let i=(await r.json()).data.map(e=>({label:e.name,value:e.id}));return e?i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):i}}}),add_as_subscribed:ds({sectionKey:`general`,defaultValue:!0,label:`Add as subscribed`,groupPath:`config.general`,path:`config.add_as_subscribed`,info:``}),input_fields:R(r.object({[Zu.name]:E({fieldName:Zu.name}),[Xu.name]:E({fieldName:Xu.name})})),output_fields:L(r.object({[Qu.name]:O({fieldName:Qu.name})}))})}),td=e=>uc(V(q(Xu,e)),V(q(Zu,e))),nd=class extends H{pipeId=Ju;payload;payloadSchema=ed;billableOperations=Yu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(e){return J(e,`contact-create-resend-v1-resend`)}getInputRequirement(){return td(this.payload.config)}getRawOutputFields(){return{[Qu.name]:this.catalogOutput(Qu)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},rd=ed,id={pipeId:Ju,basePipe:G(Ju),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[W.EMAIL],docPath:K(Ju),billableOperations:Yu,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:td(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Ju,connector:{strategy:`first`,connections:[]},run_if:null,config:{segment_id:``,add_as_subscribed:!0,input_fields:{name:{alias:``},email:{alias:``}},output_fields:{resend_contact_id:{alias:``,enabled:!0}}}}},ad=`company:funding:leadmagic@1`,od=g(`company_name`),sd=g(`company_website_url`),cd=g(`funding_history`),ld=g(`funding_total_usd`),ud=g(`leadmagic_competitor_list`),dd=g(`leadmagic_acquisition_history`),fd=g(`leadmagic_company_news_list`),pd=r.object({pipe_id:r.literal(ad),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[od.name]:E({fieldName:od.name}),[sd.name]:E({fieldName:sd.name})})),output_fields:L(r.object({[cd.name]:O({fieldName:cd.name}),[ld.name]:O({fieldName:ld.name}),[ud.name]:O({fieldName:ud.name}),[dd.name]:O({fieldName:dd.name}),[fd.name]:O({fieldName:fd.name})}))}).optional()}),md=e=>dc(q(od,e),q(sd,e)),hd={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},gd=class extends H{pipeId=ad;payload;payloadSchema=pd;billableOperations=hd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(e){return J(e,`company-funding-leadmagic-v1-leadmagic`)}getInputRequirement(){return md(this.payload.config)}getRawOutputFields(){return{[cd.name]:this.catalogOutput(cd),[ld.name]:this.catalogOutput(ld)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},_d=pd,vd={pipeId:ad,basePipe:G(ad),label:`Funding history`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:funding:leadmagic@2`},description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[W.FINANCIAL_DATA],docPath:K(ad),billableOperations:hd,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:md(null),defaultPayload:{pipe_id:ad,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``},company_website_url:{alias:``}},output_fields:{funding_history:{enabled:!0,alias:``},funding_total_usd:{enabled:!0,alias:``},leadmagic_acquisition_history:{enabled:!1,alias:``},leadmagic_company_news_list:{enabled:!1,alias:``},leadmagic_competitor_list:{enabled:!1,alias:``}}}}},yd=g(`company_name`),bd=g(`company_social_url`),xd=g(`company_website_url`),Sd=g(`cleaned_company_name`),Cd=`company:identity@1`,wd=r.object({pipe_id:r.literal(Cd),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[yd.name]:E({fieldName:yd.name})})),output_fields:L(r.object({[bd.name]:O({fieldName:bd.name}),[Sd.name]:O({fieldName:Sd.name}),[xd.name]:O({fieldName:xd.name})}))}).optional()}),Td=e=>V(q(yd,e)),Ed={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Dd=class extends H{pipeId=Cd;payload;payloadSchema=wd;billableOperations=Ed;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-identity-v1-pipe0`)}getInputRequirement(){return Td(this.payload.config)}getRawOutputFields(){return{[bd.name]:this.catalogOutput(bd),[xd.name]:this.catalogOutput(xd),[Sd.name]:this.catalogOutput(Sd)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},Od=wd,kd={pipeId:Cd,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Cd),label:`Company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@2`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:`/resources/pipe-catalog/company:identity/1`,billableOperations:Ed,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Td(null),defaultPayload:{pipe_id:Cd,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_social_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},Ad=g(`company_name`),jd=g(`company_profile_url`),Md=g(`company_website_url`),Nd=g(`cleaned_company_name`),Pd=`company:identity@2`,Fd=r.object({pipe_id:r.literal(Pd),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Ad.name]:E({fieldName:Ad.name})})),output_fields:L(r.object({[jd.name]:O({fieldName:jd.name}),[Nd.name]:O({fieldName:Nd.name}),[Md.name]:O({fieldName:Md.name})}))}).optional()}),Id=e=>V(q(Ad,e)),Ld={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Rd=class extends H{pipeId=Pd;payload;payloadSchema=Fd;billableOperations=Ld;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-identity-v2-pipe0`)}getInputRequirement(){return Id(this.payload.config)}getRawOutputFields(){return{[jd.name]:this.catalogOutput(jd),[Md.name]:this.catalogOutput(Md),[Nd.name]:this.catalogOutput(Nd)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},zd=Fd,Bd={pipeId:Pd,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Pd),label:`Company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@3`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:K(Pd),billableOperations:Ld,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Id(null),defaultPayload:{pipe_id:Pd,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},Vd=g(`company_website_url`),Hd=g(`companyenrich_matches`),Ud=`company:lookalikes:companyenrich@1`,Wd=r.object({pipe_id:r.literal(Ud),run_if:x(),connector:C(),config:r.object({limit:vs({groupPath:`config.general`,max:50,min:1,path:`config.limit`,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:R(r.object({[Vd.name]:E({fieldName:Vd.name})})),output_fields:L(r.object({[Hd.name]:O({fieldName:Hd.name})}))}).optional()}),Gd=e=>V(q(Vd,e)),Kd={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},qd=class extends H{pipeId=Ud;payload;payloadSchema=Wd;billableOperations=Kd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(e){return[{billableOperation:`company-lookalikes-companyenrich-v1-companyenrich`,quantity:e.count*5}]}getInputRequirement(){return Gd(this.payload.config)}getRawOutputFields(){return{[Hd.name]:this.catalogOutput(Hd)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},Jd=Wd,Yd={pipeId:Ud,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Ud),label:`Find company lookalikes`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:lookalikes:companyenrich@2`},description:`Find companies similar to the company you provide as input.`,tags:[W.COMPANY_PROFILES],docPath:K(Ud),billableOperations:Kd,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Gd(null),defaultPayload:{pipe_id:Ud,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Xd=g(`company_website_url`),Zd=g(`crustdata_companyenrich_match`),Qd=`company:match:crustdata@1`,$d=r.object({pipe_id:r.literal(Qd),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Xd.name]:E({fieldName:Xd.name})})),output_fields:L(r.object({[Zd.name]:O({fieldName:Zd.name})}))}).optional()}),ef=e=>V(q(Xd,e)),tf={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},nf=class extends H{pipeId=Qd;payload;payloadSchema=$d;billableOperations=tf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`company-match-crustdata-v1-crustdata`)}getInputRequirement(){return ef(this.payload.config)}getRawOutputFields(){return{[Zd.name]:this.catalogOutput(Zd)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},rf=$d,af={pipeId:Qd,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Qd),label:`Company match`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:match:crustdata@2`},description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:K(Qd),billableOperations:tf,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:ef(null),defaultPayload:{pipe_id:Qd,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},of=g(`company_website_url`),sf=g(`company_name`),cf=g(`company_profile_url`),lf=g(`logodev_describe_match`),uf=g(`logo_url`),df=`company:match:logodev@1`,ff=r.object({pipe_id:r.literal(df),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[of.name]:E({fieldName:of.name})})),output_fields:L(r.object({[cf.name]:O({fieldName:cf.name}),[uf.name]:O({fieldName:uf.name}),[sf.name]:O({fieldName:sf.name}),[lf.name]:O({fieldName:lf.name})}))}).optional()}),pf=e=>V(q(of,e)),mf={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},hf=class extends H{pipeId=df;payload;payloadSchema=ff;billableOperations=mf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(e){return J(e,`company-match-logodev-v1-logodev`)}getInputRequirement(){return pf(this.payload.config)}getRawOutputFields(){return{[cf.name]:this.catalogOutput(cf),[sf.name]:this.catalogOutput(sf),[uf.name]:this.catalogOutput(uf),[lf.name]:this.catalogOutput(lf)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},gf=ff,_f={pipeId:df,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(df),label:`Company match`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:match:logodev@2`},description:`Find brand data like logos, colors, and social links via the Logo.dev API.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:K(df),billableOperations:mf,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:pf(null),defaultPayload:{pipe_id:df,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_profile_url:{alias:``,enabled:!0},logo_url:{alias:``,enabled:!0},logodev_describe_match:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},vf=`company:newssummary:website@1`,yf=g(`company_news_summary`),bf=g(`company_website_url`),xf=r.object({pipe_id:r.literal(vf),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[bf.name]:E({fieldName:bf.name})})),output_fields:L(r.object({[yf.name]:O({fieldName:yf.name})}))}).optional()}),Sf=e=>V(q(bf,e)),Cf={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},wf=class extends H{pipeId=vf;payloadSchema=xf;billableOperations=Cf;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-newssummary-website-v1-pipe0`)}getInputRequirement(){return Sf(this.payload.config)}getRawOutputFields(){return{[yf.name]:this.catalogOutput(yf)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},Tf=xf,Ef={pipeId:vf,basePipe:G(vf),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company news`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:newssummary:domain@1`},description:`Find recent company news by performing a search and scrape.`,tags:[W.NEWS],docPath:K(vf),billableOperations:Cf,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Sf(null),defaultPayload:{pipe_id:vf,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Df=g(`company_website_url`),Of=g(`company_social_url`),kf=g(`company_description`),Af=g(`company_industry`),jf=g(`company_region`),Mf=g(`headcount`),Nf=g(`estimated_revenue`),Pf=g(`founded_year`),Ff=`company:overview@1`,If=r.object({pipe_id:r.literal(Ff),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Df.name]:E({fieldName:Df.name}),[Of.name]:E({fieldName:Of.name})})),output_fields:L(r.object({[kf.name]:O({fieldName:kf.name}),[Af.name]:O({fieldName:Af.name}),[jf.name]:O({fieldName:jf.name}),[Mf.name]:O({fieldName:Mf.name}),[Nf.name]:O({fieldName:Nf.name}),[Pf.name]:O({fieldName:Pf.name})}))}).optional()}),Lf=e=>dc(q(Df,e),q(Of,e)),Rf={"company-overview-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},zf=class extends H{pipeId=Ff;payloadSchema=If;billableOperations=Rf;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-overview-v1-pipe0`)}getInputRequirement(){return Lf(this.payload.config)}getRawOutputFields(){return{[kf.name]:this.catalogOutput(kf),[Af.name]:this.catalogOutput(Af),[jf.name]:this.catalogOutput(jf),[Mf.name]:this.catalogOutput(Mf),[Nf.name]:this.catalogOutput(Nf),[Pf.name]:this.catalogOutput(Pf)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},Bf=If,Vf={pipeId:Ff,basePipe:G(Ff),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@2`},description:`Find high-level business and financial information like company description, estimated revenue, and headcount.`,docPath:`/resources/pipe-catalog/company:overview/1`,tags:[W.WEBSITE,W.LINKEDIN,W.FINANCIAL_DATA,W.DEPRECATED],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Rf,defaultInputRequirement:Lf(null),defaultPayload:{pipe_id:Ff,run_if:null,connector:void 0,config:{input_fields:{company_social_url:{alias:``},company_website_url:{alias:``}},output_fields:{company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0},estimated_revenue:{alias:``,enabled:!0},founded_year:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0}}}}},Hf=g(`company_website_url`),Uf=g(`company_profile_url`),Wf=g(`company_description`),Gf=g(`company_industry`),Kf=g(`company_region`),qf=g(`headcount`),Jf=g(`estimated_revenue`),Yf=g(`founded_year`),Xf=g(`company_name`),Zf=`company:overview@2`,Qf=r.object({pipe_id:r.literal(Zf),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Hf.name]:E({fieldName:Hf.name}),[Uf.name]:E({fieldName:Uf.name})})),output_fields:L(r.object({[Wf.name]:O({fieldName:Wf.name}),[Gf.name]:O({fieldName:Gf.name}),[Kf.name]:O({fieldName:Kf.name}),[qf.name]:O({fieldName:qf.name}),[Jf.name]:O({fieldName:Jf.name}),[Yf.name]:O({fieldName:Yf.name}),[Xf.name]:O({fieldName:Xf.name})}))}).optional()}),$f=e=>dc(q(Hf,e),q(Uf,e)),ep={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},tp=class extends H{pipeId=Zf;payloadSchema=Qf;billableOperations=ep;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-overview-v2-pipe0`)}getInputRequirement(){return $f(this.payload.config)}getRawOutputFields(){return{[Wf.name]:this.catalogOutput(Wf),[Gf.name]:this.catalogOutput(Gf),[Kf.name]:this.catalogOutput(Kf),[qf.name]:this.catalogOutput(qf),[Jf.name]:this.catalogOutput(Jf),[Yf.name]:this.catalogOutput(Yf),[Xf.name]:this.catalogOutput(Xf)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},np=Qf,rp={pipeId:Zf,basePipe:G(Zf),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:overview@3`},description:`Business description, industry, and financial information.`,docPath:K(Zf),tags:[W.WEBSITE,W.LINKEDIN,W.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:ep,defaultInputRequirement:$f(null),defaultPayload:{pipe_id:Zf,run_if:null,connector:void 0,config:{input_fields:{company_profile_url:{alias:``},company_website_url:{alias:``}},output_fields:{company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0},estimated_revenue:{alias:``,enabled:!0},founded_year:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},ip=g(`company_website_url`),ap=g(`technology_list`),op=g(`spending_trend`),sp=g(`technology_match_builtwith`),cp=`company:techstack:builtwith@1`,lp=r.object({pipe_id:r.literal(cp),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[ip.name]:E({fieldName:ip.name})})),output_fields:L(r.object({[ap.name]:O({fieldName:ap.name}),[sp.name]:O({fieldName:sp.name}),[op.name]:O({fieldName:op.name})}))}).optional()}),up=e=>V(q(ip,e)),dp={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},fp=class extends H{pipeId=cp;payload;payloadSchema=lp;billableOperations=dp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(e){return J(e,`company-techstack-builtwith-v1-builtwith`)}getInputRequirement(){return up(this.payload.config)}getRawOutputFields(){return{[ap.name]:this.catalogOutput(ap),[sp.name]:this.catalogOutput(sp),[op.name]:this.catalogOutput(op)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},pp=lp,mp={pipeId:cp,basePipe:G(cp),managedProviders:[`builtwith`],deprecatedProviders:[],allowedUserConnectionProviders:[`builtwith`],label:`Tech stack`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:techstack:builtwith@2`},description:`All technologies and frameworks powering a given website.`,tags:[W.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:K(cp),billableOperations:dp,defaultInputRequirement:up(null),defaultPayload:{pipe_id:cp,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{technology_list:{alias:``,enabled:!0},technology_match_builtwith:{alias:``,enabled:!0},spending_trend:{alias:``,enabled:!0}}}}},hp=`company:websiteurl:email@1`,gp=g(`company_website_url`),_p=g(`email`),vp=r.object({pipe_id:r.literal(hp),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[_p.name]:E({fieldName:_p.name})})),output_fields:L(r.object({[gp.name]:O({fieldName:gp.name})}))}).optional()}),yp=e=>V(q(_p,e)),bp={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},xp=class extends H{pipeId=hp;payload;payloadSchema=vp;billableOperations=bp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-websiteurl-email-v1-pipe0`)}getInputRequirement(){return yp(this.payload.config)}getRawOutputFields(){return{[gp.name]:this.catalogOutput(gp)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Sp=vp,Cp={pipeId:hp,basePipe:G(hp),inputFieldMode:`static`,outputFieldMode:`static`,label:`Website from email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:domain:workemail@1`},description:`Extract the company website URL from a work email address.`,tags:[W.EMAIL,W.WORK_EMAIL,W.WEBSITE],docPath:K(hp),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:bp,defaultInputRequirement:yp(null),defaultPayload:{pipe_id:hp,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},wp=`people:email:iswork@1`,Tp=g(`is_work_email`),Ep=g(`email`),Dp=r.object({pipe_id:r.literal(wp),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Ep.name]:E({fieldName:Ep.name})})),output_fields:L(r.object({[Tp.name]:O({fieldName:Tp.name})}))}).optional()}),Op=e=>V(q(Ep,e)),kp={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Ap=class extends H{pipeId=wp;payload;payloadSchema=Dp;billableOperations=kp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`people-email-iswork-v1-pipe0`)}getInputRequirement(){return Op(this.payload.config)}getRawOutputFields(){return{[Tp.name]:this.catalogOutput(Tp)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},jp=Dp,Mp={pipeId:wp,label:`Work email checker`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`email:iswork@1`},description:`Check if a given email address is personal or professional.`,tags:[W.EMAIL,W.WORK_EMAIL],docPath:K(wp),billableOperations:kp,basePipe:G(wp),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Op(null),defaultPayload:{pipe_id:wp,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},Np=`people:email:validate:zerobounce@1`,Pp=g(`work_email`),Fp=g(`is_email_valid`),Ip=r.object({pipe_id:r.literal(Np),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Pp.name]:E({fieldName:Pp.name})})),output_fields:L(r.object({[Fp.name]:O({fieldName:Fp.name})}))}).optional()}),Lp=e=>V(q(Pp,e)),Rp={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},zp=class extends H{pipeId=Np;payload;payloadSchema=Ip;billableOperations=Rp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return J(e,`people-email-validate-zerobounce-v1-zerobounce`)}getInputRequirement(){return Lp(this.payload.config)}getRawOutputFields(){return{[Fp.name]:this.catalogOutput(Fp)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Bp=Ip,Vp={pipeId:Np,basePipe:G(Np),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:email:validate:zerobounce@2`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[W.EMAIL],docPath:`/resources/pipe-catalog/people:email:validate:zerobounce/1`,billableOperations:Rp,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Lp(null),defaultPayload:{pipe_id:Np,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Hp=`people:email:validate:zerobounce@2`,Up=g(`email`),Wp=g(`zerobounce_validation_status`),Gp=g(`zerobounce_validation_match`),Kp=r.object({pipe_id:r.literal(Hp),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Up.name]:E({fieldName:Up.name})})),output_fields:L(r.object({[Gp.name]:O({fieldName:Gp.name}),[Wp.name]:O({fieldName:Wp.name})}))}).optional()}),qp=e=>V(q(Up,e)),Jp={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},Yp=class extends H{pipeId=Hp;payload;payloadSchema=Kp;billableOperations=Jp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return J(e,`people-email-validate-zerobounce-v2-zerobounce`)}getInputRequirement(){return qp(this.payload.config)}getRawOutputFields(){return{[Wp.name]:this.catalogOutput(Wp),[Gp.name]:this.catalogOutput(Gp)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Xp=Kp,Zp={pipeId:Hp,basePipe:G(Hp),label:`Validate email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`email:validate:zerobounce@1`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[W.EMAIL],docPath:K(Hp),billableOperations:Jp,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:qp(null),defaultPayload:{pipe_id:Hp,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}};function Qp(e){return(e.widgets||{}).display_value?.label}function $p(e){console.dir(e,{depth:100})}function em(e){return typeof e==`object`&&e?JSON.stringify(e):e}function Y(e){return e===0?1:e===1?.3:e===2?.2:.1}function tm(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=tm(e[n])}),t}const nm={string:[`address_line_1`,`email`,`url`,`website_url`,`markdown`,`zip_code`,`date`,`datetime`,`phone`,`text`,`profile_url`],json:[`json_object`,`json_list`],number:[`int`,`decimal`],boolean:[],unknown:[]};function X(e,t){let n=Object.entries(t).filter(([t,n])=>n.provider===e);if(n.length!==1)throw Error(`Found ${n.length} billing operations for provider ${e}. This is not allowed. There must be exactly 1 billing operation per provider.`);let[r,i]=n[0];return{billableOperation:r,billableOperationDef:i}}const rm=`people:identity:email:waterfall@1`,im=g(`email`),am=g(`company_website_url`),om=g(`name`),sm=g(`job_title`),cm=g(`profile_url`),lm=g(`company_profile_url`),um=g(`company_name`),dm=[`findymail`,`hunter`,`crustdata`],fm=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],pm=r.object({pipe_id:r.literal(rm),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:dm,defaultProviders:fm,sectionKey:`general`}),input_fields:R(r.object({[im.name]:E({fieldName:im.name})})),output_fields:L(r.object({[om.name]:O({fieldName:om.name}),[cm.name]:O({fieldName:cm.name}),[sm.name]:O({fieldName:sm.name}),[am.name]:O({fieldName:am.name}),[um.name]:O({fieldName:um.name}),[lm.name]:O({fieldName:lm.name})}))}).optional()}),mm=e=>V(q(im,e)),hm={"people-identity-email-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-identity-email-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-identity-email-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},gm=class extends H{pipeId=rm;payload;payloadSchema=pm;billableOperations=hm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return mm(this.payload.config)}getRawOutputFields(){return{[om.name]:this.catalogOutput(om,{isPrimaryOutput:!0}),[cm.name]:this.catalogOutput(cm,{isPrimaryOutput:!0}),[sm.name]:this.catalogOutput(sm,{isPrimaryOutput:!0}),[um.name]:this.catalogOutput(um,{isPrimaryOutput:!0}),[lm.name]:this.catalogOutput(lm,{isPrimaryOutput:!0}),[am.name]:this.catalogOutput(am,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},_m=pm,vm={pipeId:rm,basePipe:G(rm),label:`Person identity from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:identity:email:waterfall@1`},description:`Find identity of a person from their email address.`,tags:[W.EMAIL,W.PEOPLE_PROFILES],docPath:K(rm),managedProviders:dm,deprecatedProviders:[],allowedUserConnectionProviders:dm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:hm,defaultInputRequirement:mm(null),defaultPayload:{pipe_id:rm,connector:null,run_if:null,config:{providers:fm,input_fields:{email:{alias:``}},output_fields:{name:{alias:``,enabled:!0},profile_url:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},ym=`people:match:role:waterfall@1`,bm=g(`company_website_url`),xm=g(`role_finder_match`),Sm=[`leadmagic`],Cm=[{provider:`leadmagic`}],wm=r.object({pipe_id:r.literal(ym),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Cm,availableProviders:Sm}),roles:is({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:R(r.object({[bm.name]:E({fieldName:bm.name})})),output_fields:L(r.object({[xm.name]:O({fieldName:xm.name})}))})}),Tm=e=>dc(q(bm,e)),Em={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Dm=class extends H{pipeId=ym;payload;payloadSchema=wm;billableOperations=Em;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Tm(this.payload.config)}getRawOutputFields(){return{[xm.name]:this.catalogOutput(xm,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Om=wm,km={pipeId:ym,basePipe:G(ym),managedProviders:Sm,deprecatedProviders:[],allowedUserConnectionProviders:Sm,label:`Role finder`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:match:role:waterfall@1`},description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[W.PEOPLE_PROFILES],docPath:K(ym),billableOperations:Em,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Tm(null),defaultPayload:{pipe_id:ym,run_if:null,connector:null,config:{roles:[],providers:Cm,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},Am=`people:mobilenumber:professionalprofile:waterfall@1`,jm=g(`professional_profile_url`),Mm=g(`mobile_number`),Nm=[`leadmagic`,`prospeo`],Pm=[{provider:`leadmagic`},{provider:`prospeo`}],Fm=r.object({pipe_id:r.literal(Am),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Pm,availableProviders:Nm}),input_fields:R(r.object({[jm.name]:E({fieldName:jm.name})})),output_fields:L(r.object({[Mm.name]:O({fieldName:Mm.name})}))}).optional()}),Im=e=>V(q(jm,e)),Lm={"people-mobilenumber-professionalprofile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-mobilenumber-professionalprofile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},Rm=class extends H{pipeId=Am;payload;payloadSchema=Fm;billableOperations=Lm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Im(this.payload.config)}getRawOutputFields(){return{[Mm.name]:this.catalogOutput(Mm)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},zm=Fm,Bm={pipeId:Am,basePipe:G(Am),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:phone:profile:waterfall@1`},description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:`/resources/pipe-catalog/people:mobilenumber:professionalprofile:waterfall/1`,tags:[W.PHONE,W.WATERFALL],billableOperations:Lm,defaultInputRequirement:Im(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Nm,deprecatedProviders:[],allowedUserConnectionProviders:Nm,defaultPayload:{pipe_id:Am,connector:null,run_if:null,config:{providers:Pm,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Vm=`people:mobilenumber:workemail:waterfall@1`,Hm=g(`work_email`),Um=g(`mobile_number`),Wm=[`leadmagic`],Gm=[{provider:`leadmagic`}],Km=r.object({pipe_id:r.literal(Vm),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Wm,defaultProviders:Gm}),input_fields:R(r.object({[Hm.name]:E({fieldName:Hm.name})})),output_fields:L(r.object({[Um.name]:O({fieldName:Um.name})}))}).optional()}),qm=e=>V(q(Hm,e)),Jm={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Ym=class extends H{pipeId=Vm;payload;payloadSchema=Km;billableOperations=Jm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers?.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return qm(this.payload.config)}getRawOutputFields(){return{[Um.name]:this.catalogOutput(Um)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Xm=Km,Zm={pipeId:Vm,basePipe:G(Vm),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:phone:workemail:waterfall@1`},description:`Find a mobile phone number for a prospect.`,tags:[W.PHONE,W.WATERFALL],docPath:`/resources/pipe-catalog/people:mobilenumber:workemail:waterfall/1`,billableOperations:Jm,defaultInputRequirement:qm(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Wm,managedProviders:Wm,deprecatedProviders:[],defaultPayload:{pipe_id:Vm,connector:null,run_if:null,config:{providers:Gm,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Qm=`people:name:split@1`,$m=g(`name`),eh=g(`first_name`),th=g(`last_name`),nh=r.object({pipe_id:r.literal(Qm),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[$m.name]:E({fieldName:$m.name})})),output_fields:L(r.object({[eh.name]:O({fieldName:eh.name}),[th.name]:O({fieldName:th.name})}))}).optional()}),rh=e=>V(q($m,e)),ih={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ah=class extends H{pipeId=Qm;payload;payloadSchema=nh;billableOperations=ih;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`people-name-split-v1-pipe0`)}getInputRequirement(){return rh(this.payload.config)}getRawOutputFields(){return{[eh.name]:this.catalogOutput(eh),[th.name]:this.catalogOutput(th)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},oh=nh,sh={pipeId:Qm,basePipe:G(Qm),label:`Split name`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:name:split@1`},description:`Split a full name into first and last name.`,tags:[W.NAMES],docPath:K(Qm),billableOperations:ih,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:rh(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Qm,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},ch=`people:personalemail:profile:waterfall@1`,lh=g(`profile_url`),uh=g(`personal_email`),dh=g(`alternate_personal_emails`),fh=[`clado`,`leadmagic`,`mixrank`],ph=[{provider:`leadmagic`},{provider:`mixrank`}],mh=r.object({pipe_id:r.literal(ch),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:fh,defaultProviders:ph}),input_fields:R(r.object({[lh.name]:E({fieldName:lh.name})})),output_fields:L(r.object({[uh.name]:O({fieldName:uh.name}),[dh.name]:O({fieldName:dh.name})}))}).optional()}),hh=e=>V(q(lh,e)),gh={"people-personalemail-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:2},mode:`always`},"people-personalemail-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-personalemail-profile-waterfall-v1-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},_h=class extends H{pipeId=ch;payload;payloadSchema=mh;billableOperations=gh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return hh(this.payload.config)}getRawOutputFields(){return{[uh.name]:this.catalogOutput(uh,{isPrimaryOutput:!0}),[dh.name]:this.catalogOutput(dh)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,clado:`clado_contact_information`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},vh=mh,yh={pipeId:ch,basePipe:G(ch),allowedUserConnectionProviders:fh,managedProviders:fh,deprecatedProviders:[`clado`],label:`Personal email from LinkedIn`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:personalemail:profileurl:waterfall@1`},description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[W.EMAIL,W.PERSONAL_EMAIL],docPath:K(ch),billableOperations:gh,defaultInputRequirement:hh(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:ch,connector:null,run_if:null,config:{providers:ph,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},bh=`people:phone:profile:waterfall@1`,xh=g(`profile_url`),Sh=g(`mobile`),Ch=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],wh=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Th=r.object({pipe_id:r.literal(bh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:wh,availableProviders:Ch}),input_fields:R(r.object({[xh.name]:E({fieldName:xh.name})})),output_fields:L(r.object({[Sh.name]:O({fieldName:Sh.name})}))}).optional()}),Eh=e=>V(q(xh,e)),Dh={"people-phone-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6},mode:`onSuccess`},"people-phone-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},Oh=class extends H{pipeId=bh;payload;payloadSchema=Th;billableOperations=Dh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Eh(this.payload.config)}getRawOutputFields(){return{[Sh.name]:this.catalogOutput(Sh,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`,findymail:`findymail_phone_lookup`,clado:`clado_contact_information`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},kh=Th,Ah={pipeId:bh,basePipe:G(bh),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:mobile:profileurl:waterfall@1`},description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:K(bh),tags:[W.PHONE,W.WATERFALL],billableOperations:Dh,defaultInputRequirement:Eh(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Ch,allowedUserConnectionProviders:Ch,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:bh,connector:null,run_if:null,config:{providers:wh,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},jh=`people:phone:workemail:waterfall@1`,Mh=g(`work_email`),Nh=g(`mobile`),Ph=[`leadmagic`,`amplemarket`],Fh=[{provider:`leadmagic`},{provider:`amplemarket`}],Ih=r.object({pipe_id:r.literal(jh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Ph,defaultProviders:Fh}),input_fields:R(r.object({[Mh.name]:E({fieldName:Mh.name})})),output_fields:L(r.object({[Nh.name]:O({fieldName:Nh.name})}))}).optional()}),Lh=e=>V(q(Mh,e)),Rh={"people-phone-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},zh=class extends H{pipeId=jh;payload;payloadSchema=Ih;billableOperations=Rh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Lh(this.payload.config)}getRawOutputFields(){return{[Nh.name]:this.catalogOutput(Nh,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Bh=Ih,Vh={pipeId:jh,basePipe:G(jh),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:mobile:workemail:waterfall@1`},description:`Find a mobile phone number for a prospect.`,tags:[W.PHONE,W.WATERFALL],docPath:K(jh),billableOperations:Rh,defaultInputRequirement:Lh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Ph,managedProviders:Ph,deprecatedProviders:[],defaultPayload:{pipe_id:jh,connector:null,run_if:null,config:{providers:Fh,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Hh=`people:professionalprofile:waterfall@1`,Uh=g(`professional_profile`),Wh=g(`professional_profile_url`),Gh=[`prospeo`,`icypeas`],Kh=[{provider:`prospeo`},{provider:`icypeas`}],qh=r.object({pipe_id:r.literal(Hh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Gh,defaultProviders:Kh}),input_fields:R(r.object({[Wh.name]:E({fieldName:Wh.name})})),output_fields:L(r.object({[Uh.name]:O({fieldName:Uh.name})}))}).optional()}),Jh=e=>V(q(Wh,e)),Yh={"people-professionalprofile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-professionalprofile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},Xh=class extends H{pipeId=Hh;payload;payloadSchema=qh;billableOperations=Yh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Jh(this.payload.config)}getRawOutputFields(){return{[Uh.name]:this.catalogOutput(Uh)}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Zh=qh,Qh={pipeId:Hh,basePipe:G(Hh),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profile:waterfall@1`},description:`Find a JSON representation of a LinkedIn profile.`,docPath:`/resources/pipe-catalog/people:professionalprofile:waterfall/1`,tags:[W.LINKEDIN,W.WATERFALL],managedProviders:Gh,deprecatedProviders:[],allowedUserConnectionProviders:Gh,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Yh,defaultInputRequirement:Jh(null),defaultPayload:{pipe_id:Hh,run_if:null,connector:null,config:{providers:Kh,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},$h=`people:professionalprofileurl:email:waterfall@1`,eg=g(`email`),tg=g(`work_email`),ng=g(`professional_profile_url`),rg=[`leadmagic`],ig=[{provider:`leadmagic`}],ag=r.object({pipe_id:r.literal($h),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:ig,availableProviders:rg}),input_fields:R(r.object({[eg.name]:E({fieldName:eg.name}),[tg.name]:E({fieldName:tg.name})})),output_fields:L(r.object({[ng.name]:O({fieldName:ng.name})}))}).optional()}),og=e=>dc(q(eg,e),q(tg,e)),sg={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},cg=class extends H{pipeId=$h;payload;payloadSchema=ag;billableOperations=sg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return og(this.payload.config)}getRawOutputFields(){return{[ng.name]:this.catalogOutput(ng)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},lg=ag,ug={pipeId:$h,basePipe:G($h),managedProviders:rg,deprecatedProviders:[],allowedUserConnectionProviders:rg,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profileurl:email:waterfall@1`},description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[W.LINKEDIN],docPath:`/resources/pipe-catalog/people:professionalprofileurl:email:waterfall/1`,billableOperations:sg,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:og(null),defaultPayload:{pipe_id:$h,run_if:null,connector:null,config:{providers:ig,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},dg=`people:professionalprofileurl:name@1`,fg=g(`name`),pg=g(`company_name`),mg=g(`location_hint`),hg=g(`professional_profile_url`),gg=r.object({pipe_id:r.literal(dg),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[fg.name]:E({fieldName:fg.name}),[pg.name]:E({fieldName:pg.name}),[mg.name]:E({fieldName:mg.name})})),output_fields:L(r.object({[hg.name]:O({fieldName:hg.name})}))}).optional()}),_g=e=>uc(V(q(fg,e)),V(q(pg,e)),fc(q(mg,e))),vg={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},yg=class extends H{pipeId=dg;payload;payloadSchema=gg;billableOperations=vg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`people-professionalprofileurl-name-v1-pipe0`)}getInputRequirement(){return _g(this.payload.config)}getRawOutputFields(){return{[hg.name]:this.catalogOutput(hg)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},bg=gg,xg={pipeId:dg,basePipe:G(dg),label:`LinkedIn URL from name`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profileurl:name@1`},allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],description:`Find the LinkedIn profile URL by using the prospect's name as input.`,docPath:`/resources/pipe-catalog/people:professionalprofileurl:name/1`,tags:[W.LINKEDIN],billableOperations:vg,defaultInputRequirement:_g(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:dg,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},Sg=`people:profile:waterfall@1`,Cg=g(`profile`),wg=g(`profile_url`),Tg=[`prospeo`,`icypeas`,`amplemarket`,`clado`],Eg=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Dg=r.object({pipe_id:r.literal(Sg),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Tg,defaultProviders:Eg}),input_fields:R(r.object({[wg.name]:E({fieldName:wg.name})})),output_fields:L(r.object({[Cg.name]:O({fieldName:Cg.name})}))}).optional()}),Og=e=>V(q(wg,e)),kg={"people-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-clado":{provider:`clado`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},Ag=class extends H{pipeId=Sg;payload;payloadSchema=Dg;billableOperations=kg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Og(this.payload.config)}getRawOutputFields(){return{[Cg.name]:this.catalogOutput(Cg,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`,clado:`clado_social_profile_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},jg=Dg,Mg={pipeId:Sg,basePipe:G(Sg),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profile:waterfall@1`},description:`Find a JSON representation of a LinkedIn profile.`,docPath:K(Sg),tags:[W.LINKEDIN,W.WATERFALL],managedProviders:Tg,deprecatedProviders:[`clado`],allowedUserConnectionProviders:Tg,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:kg,defaultInputRequirement:Og(null),defaultPayload:{pipe_id:Sg,run_if:null,connector:null,config:{providers:Eg,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Ng=g(`work_email`),Pg=g(`crustdata_person_match`),Fg=g(`crustdata_profile_match_score`),Ig=`people:profile:workemail:crustdata@1`,Lg=r.object({pipe_id:r.literal(Ig),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Ng.name]:E({fieldName:Ng.name})})),output_fields:L(r.object({[Pg.name]:O({fieldName:Pg.name}),[Fg.name]:O({fieldName:Fg.name})}))}).optional()}),Rg=e=>V(q(Ng,e)),zg={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},Bg=class extends H{pipeId=Ig;payload;payloadSchema=Lg;billableOperations=zg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`people-profile-workemail-crustdata-v1-crustdata`)}getInputRequirement(){return Rg(this.payload.config)}getRawOutputFields(){return{[Pg.name]:this.catalogOutput(Pg),[Fg.name]:this.catalogOutput(Fg)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Vg=Lg,Hg={pipeId:Ig,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Ig),label:`Profile from work email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profile:workemail:crustdata@1`},description:`Find person profile by their work email address.`,tags:[W.EMAIL,W.PEOPLE_PROFILES],docPath:K(Ig),billableOperations:zg,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Rg(null),defaultPayload:{pipe_id:Ig,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{crustdata_person_match:{alias:``,enabled:!0},crustdata_profile_match_score:{alias:``,enabled:!0}}}}},Ug=`people:profileurl:email:waterfall@1`,Wg=g(`email`),Gg=g(`work_email`),Kg=g(`profile_url`),qg=[`leadmagic`],Jg=[{provider:`leadmagic`}],Yg=r.object({pipe_id:r.literal(Ug),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Jg,availableProviders:qg}),input_fields:R(r.object({[Wg.name]:E({fieldName:Wg.name}),[Gg.name]:E({fieldName:Gg.name})})),output_fields:L(r.object({[Kg.name]:O({fieldName:Kg.name})}))}).optional()}),Xg=e=>dc(q(Wg,e),q(Gg,e)),Zg={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},Qg=class extends H{pipeId=Ug;payload;payloadSchema=Yg;billableOperations=Zg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Xg(this.payload.config)}getRawOutputFields(){return{[Kg.name]:this.catalogOutput(Kg,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},$g=Yg,e_={pipeId:Ug,basePipe:G(Ug),managedProviders:qg,deprecatedProviders:[],allowedUserConnectionProviders:qg,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profileurl:email:waterfall@1`},description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[W.LINKEDIN],docPath:K(Ug),billableOperations:Zg,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Xg(null),defaultPayload:{pipe_id:Ug,run_if:null,connector:null,config:{providers:Jg,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},t_=`people:validate:email:zerobounce@1`,n_=g(`work_email`),r_=g(`ip_address`),i_=g(`is_email_valid`),a_=r.object({pipe_id:r.literal(t_),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[n_.name]:E({fieldName:n_.name}),[r_.name]:E({fieldName:r_.name})})),output_fields:L(r.object({[i_.name]:O({fieldName:i_.name})}))}).optional()}),o_=e=>uc(V(q(n_,e)),fc(q(r_,e))),s_={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},c_=class extends H{pipeId=t_;payload;payloadSchema=a_;billableOperations=s_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return J(e,`people-validate-email-zerobounce-v1-zerobounce`)}getInputRequirement(){return o_(this.payload.config)}getRawOutputFields(){return{[i_.name]:this.catalogOutput(i_)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},l_=a_,u_={pipeId:t_,basePipe:G(t_),label:`Validate email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:email:validate:zerobounce@1`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[W.EMAIL],docPath:`/resources/pipe-catalog/people:validate:email:zerobounce/1`,billableOperations:s_,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:o_(null),defaultPayload:{pipe_id:t_,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},d_=`people:workemail:profileurl:waterfall@1`,f_=g(`profile_url`),p_=g(`work_email`),m_=g(`email_validation_status`),h_=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],g_=[`clado`],__=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],v_=r.object({pipe_id:r.literal(d_),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:h_,defaultProviders:__,sectionKey:`general`}),allow_catch_all_emails:ds({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:ds({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Higher chance of bouncing or being marked as spam.`,label:`Allow risky emails`}),input_fields:R(r.object({[f_.name]:E({fieldName:f_.name})})),output_fields:L(r.object({[p_.name]:O({fieldName:p_.name}),[m_.name]:O({fieldName:m_.name})}))}).optional()}),y_=e=>V(q(f_,e)),b_={"people-workemail-profileurl-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:3},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5},mode:`onSuccess`}},x_=class extends H{pipeId=d_;payload;payloadSchema=v_;billableOperations=b_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return y_(this.payload.config)}getRawOutputFields(){return{[p_.name]:this.catalogOutput(p_,{isPrimaryOutput:!0}),[m_.name]:this.catalogOutput(m_,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_b2b_lookup`,hunter:`prospeo_email_lookup`,amplemarket:`amplemarket-person-reveal`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`,clado:`clado_contact_information`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},S_=v_,C_={pipeId:d_,basePipe:G(d_),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:workemail:profileurl:waterfall@1`},description:`Find work email addresses from B2B profile.`,tags:[W.EMAIL,W.WORK_EMAIL,W.WATERFALL],docPath:K(d_),managedProviders:h_,allowedUserConnectionProviders:h_,deprecatedProviders:g_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:b_,defaultInputRequirement:y_(null),defaultPayload:{pipe_id:d_,connector:null,run_if:null,config:{providers:__,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{profile_url:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!0}}}}},w_=`people:workemail:waterfall@1`,T_=g(`name`),E_=g(`company_website_url`),D_=g(`company_name`),O_=g(`work_email`),k_=g(`email_validation_status`),A_=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],j_=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],M_=r.object({pipe_id:r.literal(w_),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:A_,defaultProviders:j_,sectionKey:`general`}),allow_catch_all_emails:ds({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,description:`Catch-alls appear valid but remain undeliverable-risk.`,label:`Allow catch-all emails`}),allow_risky_emails:ds({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,description:`DNS configuration and spam reputation may flag emails as high-risk.`,label:`Allow risky emails`}),input_fields:R(r.object({[T_.name]:E({fieldName:T_.name}),[E_.name]:E({fieldName:E_.name}),[D_.name]:E({fieldName:D_.name})})),output_fields:L(r.object({[O_.name]:O({fieldName:O_.name}),[k_.name]:O({fieldName:k_.name})}))}).optional()}),N_=e=>uc(V(q(T_,e)),dc(q(E_,e),q(D_,e))),P_={"people-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:.5},mode:`onSuccess`},"people-workemail-waterfall-v1-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:{default:.5},mode:`onSuccess`},"people-workemail-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`},"people-workemail-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5},mode:`onSuccess`}},F_=class extends H{pipeId=w_;payload;payloadSchema=M_;billableOperations=P_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return N_(this.payload.config)}getRawOutputFields(){return{[O_.name]:this.catalogOutput(O_,{isPrimaryOutput:!0}),[k_.name]:this.catalogOutput(k_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_email_lookup`,icypeas:`icypeas_email_lookup`,findymail:`findymail_email_lookup`,hunter:`hunter_email_finder`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},I_=M_,L_={pipeId:w_,basePipe:G(w_),label:`Work email from name`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:workemail:waterfall@1`},description:`Find work email addresses in a waterfall motion.`,tags:[W.EMAIL,W.WORK_EMAIL,W.WATERFALL],docPath:K(w_),managedProviders:A_,deprecatedProviders:[],allowedUserConnectionProviders:A_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:P_,defaultInputRequirement:N_(null),defaultPayload:{pipe_id:w_,connector:null,run_if:null,config:{providers:j_,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{company_name:{alias:``},company_website_url:{alias:``},name:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},R_=`email:iswork@1`,z_=g(`is_work_email`),B_=g(`email`),V_=r.object({pipe_id:r.literal(R_),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[B_.name]:E({fieldName:B_.name})})),output_fields:L(r.object({[z_.name]:O({fieldName:z_.name})}))}).optional()}),H_=e=>V(q(B_,e)),U_={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},W_=class extends H{pipeId=R_;payload;payloadSchema=V_;billableOperations=U_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`email-iswork-v1-pipe0`)}getInputRequirement(){return H_(this.payload.config)}getRawOutputFields(){return{[z_.name]:this.catalogOutput(z_)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},G_=V_,K_={pipeId:R_,label:`Work email checker`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Check if a given email address is personal or professional.`,tags:[W.EMAIL,W.WORK_EMAIL],docPath:K(R_),billableOperations:U_,basePipe:G(R_),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:H_(null),defaultPayload:{pipe_id:R_,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},q_=`email:send:gmail@1`,J_=g(`gmail_email_success`),Y_=r.object({pipe_id:r.literal(q_),connector:Go(),run_if:x(),config:r.object({to:S({sectionKey:`general`,groupPath:`config.general`,path:`config.to`,label:`To`,info:"Recipient address. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`{{ email }}`,inputType:`email`,minLength:1,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),reply_to:S({sectionKey:`general`,groupPath:`config.general`,path:`config.reply_to`,label:`Reply-To`,info:"Optional address recipients can reply to. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`support@example.com`,inputType:`email`,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}).nullable(),subject:S({sectionKey:`general`,groupPath:`config.general`,path:`config.subject`,label:`Subject`,info:"Email subject line. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }}`,inputType:`text`,minLength:1,maxLength:998,expectedTagType:`string`,expectedTagFormat:`text`}),body:S({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Email body in markdown. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }},
69
69
 
70
- …`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[R_.name]:k({fieldName:R_.name})}))})}),B_={"email-send-gmail-v1-gmail":{allowManagedConnection:!1,provider:`gmail`,credits:null,mode:null}},V_=class extends U{pipeId=L_;payload;payloadSchema=z_;billableOperations=B_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`gmail`]}estimateBillableOperations(e){return G(e,`email-send-gmail-v1-gmail`)}getTemplatedFields(){return[this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return P_(this.getTemplatedFields())}getSecretRequirements(){return F_(this.getTemplatedFields())}getConstantRequirements(){return I_(this.getTemplatedFields())}getRawOutputFields(){return{[R_.name]:this.catalogOutput(R_)}}getConnectionsRequirements(){return[{provider:`gmail`,rateLimitRatio:1,rateLimitOperation:`gmail_send_email`,allowManagedConnection:!1}]}},H_=z_,U_={pipeId:L_,basePipe:K(L_),label:`Send email`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Gmail.`,guide:"Send an email via Gmail. To, Reply-To, Subject and Body are templated config fields β€” reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Gmail vault connection (call list_connections to find one).",tags:[W.EMAIL],docPath:q(L_),billableOperations:B_,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`gmail`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:L_,connector:{strategy:`first`,connections:[]},run_if:null,config:{to:``,reply_to:``,subject:``,body:``,output_fields:{gmail_email_success:{alias:``,enabled:!0}}}}},W_=`email:send:resend@1`,G_=g(`resend_email_success`),K_=r.object({pipe_id:r.literal(W_),connector:Go(),run_if:x(),config:r.object({from:S({sectionKey:`general`,groupPath:`config.general`,path:`config.from`,label:`From`,info:"Sender address. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`noreply@example.com`,inputType:`email`,minLength:3,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),to:S({sectionKey:`general`,groupPath:`config.general`,path:`config.to`,label:`To`,info:"Recipient address. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`{{ email }}`,inputType:`email`,minLength:1,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),reply_to:S({sectionKey:`general`,groupPath:`config.general`,path:`config.reply_to`,label:`Reply-To`,info:"Optional address recipients can reply to. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`support@example.com`,inputType:`email`,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}).nullable(),subject:S({sectionKey:`general`,groupPath:`config.general`,path:`config.subject`,label:`Subject`,info:"Email subject line. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }}`,inputType:`text`,minLength:1,maxLength:998,expectedTagType:`string`,expectedTagFormat:`text`}),body:S({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Email body in markdown. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }},
70
+ …`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:L(r.object({[J_.name]:O({fieldName:J_.name})}))})}),X_={"email-send-gmail-v1-gmail":{allowManagedConnection:!1,provider:`gmail`,credits:null,mode:null}},Z_=class extends H{pipeId=q_;payload;payloadSchema=Y_;billableOperations=X_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`gmail`]}estimateBillableOperations(e){return J(e,`email-send-gmail-v1-gmail`)}getTemplatedFields(){return[this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return wc(this.getTemplatedFields())}getSecretRequirements(){return Tc(this.getTemplatedFields())}getConstantRequirements(){return Ec(this.getTemplatedFields())}getRawOutputFields(){return{[J_.name]:this.catalogOutput(J_)}}getConnectionsRequirements(){return[{provider:`gmail`,rateLimitRatio:1,rateLimitOperation:`gmail_send_email`,allowManagedConnection:!1}]}},Q_=Y_,$_={pipeId:q_,basePipe:G(q_),label:`Send email`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Gmail.`,guide:"Send an email via Gmail. To, Reply-To, Subject and Body are templated config fields β€” reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Gmail vault connection (call list_connections to find one).",tags:[W.EMAIL],docPath:K(q_),billableOperations:X_,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`gmail`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:q_,connector:{strategy:`first`,connections:[]},run_if:null,config:{to:``,reply_to:``,subject:``,body:``,output_fields:{gmail_email_success:{alias:``,enabled:!0}}}}},ev=`email:send:resend@1`,tv=g(`resend_email_success`),nv=r.object({pipe_id:r.literal(ev),connector:Go(),run_if:x(),config:r.object({from:S({sectionKey:`general`,groupPath:`config.general`,path:`config.from`,label:`From`,info:"Sender address. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`noreply@example.com`,inputType:`email`,minLength:3,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),to:S({sectionKey:`general`,groupPath:`config.general`,path:`config.to`,label:`To`,info:"Recipient address. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`{{ email }}`,inputType:`email`,minLength:1,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),reply_to:S({sectionKey:`general`,groupPath:`config.general`,path:`config.reply_to`,label:`Reply-To`,info:"Optional address recipients can reply to. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`support@example.com`,inputType:`email`,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}).nullable(),subject:S({sectionKey:`general`,groupPath:`config.general`,path:`config.subject`,label:`Subject`,info:"Email subject line. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }}`,inputType:`text`,minLength:1,maxLength:998,expectedTagType:`string`,expectedTagFormat:`text`}),body:S({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Email body in markdown. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }},
71
71
 
72
- …`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[G_.name]:k({fieldName:G_.name})}))})}),q_={"email-send-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},J_=class extends U{pipeId=W_;payload;payloadSchema=K_;billableOperations=q_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(e){return G(e,`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 P_(this.getTemplatedFields())}getSecretRequirements(){return F_(this.getTemplatedFields())}getConstantRequirements(){return I_(this.getTemplatedFields())}getRawOutputFields(){return{[G_.name]:this.catalogOutput(G_)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Y_=K_,X_={pipeId:W_,basePipe:K(W_),label:`Send email with Resend`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Resend.`,guide:"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:[W.EMAIL],docPath:q(W_),billableOperations:q_,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:W_,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},Z_=`email:validate:zerobounce@1`,Q_=g(`email`),$_=g(`zerobounce_validation_status`),ev=g(`zerobounce_validation_match`),tv=r.object({pipe_id:r.literal(Z_),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[Q_.name]:E({fieldName:Q_.name})})),output_fields:R(r.object({[ev.name]:k({fieldName:ev.name}),[$_.name]:k({fieldName:$_.name})}))}).optional()}),nv=e=>H(J(Q_,e)),rv={"email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.4,level1:{credits:.3,weight:1},level2:{credits:.15,weight:6}},mode:`always`}},iv=class extends U{pipeId=Z_;payload;payloadSchema=tv;billableOperations=rv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return G(e,`email-validate-zerobounce-v1-zerobounce`)}getInputRequirement(){return nv(this.payload.config)}getRawOutputFields(){return{[$_.name]:this.catalogOutput($_),[ev.name]:this.catalogOutput(ev)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},av=tv,ov={pipeId:Z_,basePipe:K(Z_),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:[W.EMAIL],docPath:q(Z_),billableOperations:rv,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:nv(null),defaultPayload:{pipe_id:Z_,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},sv={title:`Software Engineer, CEO, ...`,seniority:`C-Suite, Senior, ...`,department:`Consulting, Finance, ...`,certification:`CISSP, AWS, ...`,crunchbase_category:`3D Printing, Big Date, ...`,honor:`Cum Laude, 40 Under 40, ...`,field_of_study:`Engineering, Computer Science, ...`,degree_name:`Bachelor of Science, ...`,extracurricular:`Athelete, Debate Team, ...`,job_function:`Accounting, Advertising, ...`,location:`United States, Germany, France, ...`,company_name:`Google, Anthropic, ...`,company_domain:`google.com, openai.com, ...`,company_profile_keyword:`B2B, Software, ...`,headline_keywords:`Founder, JavaScript, ...`,profile_keywords:`Coach, Scrum, ...`,languages:`German, English, ...`,languages_1:`Spanish, Italian, ...`,skills:`TypeScript, Playwright, ...`,industry:`IT, Agriculture, ...`,investor:`a16z, Inside Partners, ...`,school:`MIT, Harvard, ...`,prompt:`Enter prompt here...`,template:`Enter template here...`};function Z(e){return sv[e]}const cv=`email:write@1`,lv=`email-write-v1`,uv=Za(lv),dv=g(`email_subject`),fv=g(`email_body`),pv=r.object({pipe_id:r.literal(cv),connector:C(),run_if:x(),config:r.object({template:Uo({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:Z(`prompt`),groupPath:`config.prompt`,required:!0}),model:hs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:uv}),signature:ps({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:ms({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:R(r.object({[dv.name]:k({fieldName:dv.name}),[fv.name]:k({fieldName:fv.name})}))})}),mv=class extends U{pipeId=cv;payload;payloadSchema=pv;billableOperations=uv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return Wa(this.payload.config.model)}estimateBillableOperations(e){return $a(e,{model:this.payload.config.model,prefix:lv,inputTokens:600,outputTokens:800})}getInputRequirement(){return P_([this.payload.config.template])}getSecretRequirements(){return F_([this.payload.config.template])}getConstantRequirements(){return I_([this.payload.config.template])}getRawOutputFields(){return{[dv.name]:this.catalogOutput(dv),[fv.name]:this.catalogOutput(fv)}}getConnectionsRequirements(){return Ga(this.payload.config.model)}},hv=pv,gv={pipeId:cv,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:K(cv),label:`Email writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing emails.`,guide:`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:[W.AI],docPath:q(cv),defaultInputRequirement:null,billableOperations:uv,allowedUserConnectionProviders:Ka(),managedProviders:Ka(),deprecatedProviders:[],defaultPayload:{pipe_id:cv,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:``}}},_v=`field:domainify@1`,vv=g(`url_input`),yv=g(`domain`),bv=r.object({pipe_id:r.literal(_v),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[vv.name]:E({fieldName:vv.name})})),output_fields:R(r.object({[yv.name]:k({fieldName:yv.name})}))}).optional()}),xv=e=>H(J(vv,e)),Sv={"field-domainify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Cv=class extends U{pipeId=_v;payload;payloadSchema=bv;billableOperations=Sv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return xv(this.payload.config)}getRawOutputFields(){return{[yv.name]:this.catalogOutput(yv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},wv=bv,Tv={pipeId:_v,basePipe:K(_v),label:`Extract domain`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Transform URL input into a domain. Example: 'https://go.com' to 'go.com'.`,tags:[W.LOGIC,W.FIELDS],docPath:q(_v),billableOperations:Sv,defaultInputRequirement:xv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:_v,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},Ev=`field:slugify@1`,Dv=g(`string_input`),Ov=g(`slugified`),kv=r.object({pipe_id:r.literal(Ev),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Dv.name]:E({fieldName:Dv.name})})),output_fields:R(r.object({[Ov.name]:k({fieldName:Ov.name})}))}).optional()}),Av=e=>H(J(Dv,e)),jv={"field-slugify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Mv=class extends U{pipeId=Ev;payload;payloadSchema=kv;billableOperations=jv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Av(this.payload.config)}getRawOutputFields(){return{[Ov.name]:this.catalogOutput(Ov)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Nv=kv,Pv={pipeId:Ev,basePipe:K(Ev),label:`Slugify field`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Strip a field value of characters not commonly found in slugs.`,tags:[W.LOGIC,W.FIELDS],docPath:q(Ev),billableOperations:jv,defaultInputRequirement:Av(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ev,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function Fv({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function Iv(e){switch(e.kind){case`field`:return Fv(e.field);case`optional`:return`[optional ${Fv(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?Iv(e.of[0]):`(${e.of.map(Iv).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?Iv(e.of[0]):`(${e.of.map(Iv).join(` OR `)})`}}function Lv(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})`}`:``}: ${Iv(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var Rv=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 Q={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:Lv(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 ${Fv(t)} to pipeline because it already exists. Try renaming it.`}),ReservedOutputFieldName:({})=>({code:`ReservedOutputFieldName`,message:`'id' is reserved field name. Please rename your output field.`}),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 zv=class extends Error{},$=class extends zv{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 Bv=`fields:merge@1`,Vv=g(`merge_result`),Hv=r.object({pipe_id:r.literal(Bv),connector:w(),run_if:x(),config:r.object({sources:$o({sectionKey:`general`,groupPath:`config.general`,path:`config.sources`,info:`Provide references to input fields`,minItems:2}),output_fields:R(r.object({[Vv.name]:k({fieldName:Vv.name})}))})}),Uv={"fields-merge-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Wv=class extends U{pipeId=Bv;payload;payloadSchema=Hv;billableOperations=Uv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`fields-merge-v1-pipe0`)}getInputRequirement(){let e=this.payload.config.sources.map(e=>e.field_name),t;return uc(...this.payload.config.sources.map(n=>H({format:null,type:r=>{let i=M_(r,e)[n.field_name],a=i?.type?i.type:`unknown`;if(a!==`unknown`){if(t&&t!==a)throw new $([Q.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{[Vv.name]:this.catalogOutput(Vv,{resolveType:e=>{let t=M_(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}]}},Gv=Hv,Kv={pipeId:Bv,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:K(Bv),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:[W.FIELDS,W.LOGIC],docPath:q(Bv),defaultInputRequirement:null,billableOperations:Uv,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Bv,connector:null,run_if:null,config:{sources:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},qv=`http:request@1`,Jv=g(`http_response_status`),Yv=g(`http_response_body`),Xv=g(`http_response_headers`),Zv=r.object({pipe_id:r.literal(qv),connector:w(),run_if:x(),config:r.object({method:ms({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:os({sectionKey:`general`,groupPath:`config.general`,path:`config.query_params`,label:`Query parameters`,info:"Appended to the URL. In the value column, type `/` to insert a field or secret reference.",keyLabel:`Key`,valueLabel:`Value`,keyPlaceholder:`page`,valuePlaceholder:`1`,maxKeys: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
+ …`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:L(r.object({[tv.name]:O({fieldName:tv.name})}))})}),rv={"email-send-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},iv=class extends H{pipeId=ev;payload;payloadSchema=nv;billableOperations=rv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(e){return J(e,`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 wc(this.getTemplatedFields())}getSecretRequirements(){return Tc(this.getTemplatedFields())}getConstantRequirements(){return Ec(this.getTemplatedFields())}getRawOutputFields(){return{[tv.name]:this.catalogOutput(tv)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},av=nv,ov={pipeId:ev,basePipe:G(ev),label:`Send email with Resend`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Resend.`,guide:"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:[W.EMAIL],docPath:K(ev),billableOperations:rv,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:ev,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},sv=`email:validate:zerobounce@1`,cv=g(`email`),lv=g(`zerobounce_validation_status`),uv=g(`zerobounce_validation_match`),dv=r.object({pipe_id:r.literal(sv),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[cv.name]:E({fieldName:cv.name})})),output_fields:L(r.object({[uv.name]:O({fieldName:uv.name}),[lv.name]:O({fieldName:lv.name})}))}).optional()}),fv=e=>V(q(cv,e)),pv={"email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.4,level1:{credits:.3,weight:1},level2:{credits:.15,weight:6}},mode:`always`}},mv=class extends H{pipeId=sv;payload;payloadSchema=dv;billableOperations=pv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return J(e,`email-validate-zerobounce-v1-zerobounce`)}getInputRequirement(){return fv(this.payload.config)}getRawOutputFields(){return{[lv.name]:this.catalogOutput(lv),[uv.name]:this.catalogOutput(uv)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},hv=dv,gv={pipeId:sv,basePipe:G(sv),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:[W.EMAIL],docPath:K(sv),billableOperations:pv,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:fv(null),defaultPayload:{pipe_id:sv,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},_v=`email:write@1`,vv=`email-write-v1`,yv=Za(vv),bv=g(`email_subject`),xv=g(`email_body`),Sv=r.object({pipe_id:r.literal(_v),connector:C(),run_if:x(),config:r.object({template:Uo({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:U(`prompt`),groupPath:`config.prompt`,required:!0}),model:gs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:yv}),signature:ms({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:hs({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({[bv.name]:O({fieldName:bv.name}),[xv.name]:O({fieldName:xv.name})}))})}),Cv=class extends H{pipeId=_v;payload;payloadSchema=Sv;billableOperations=yv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return Wa(this.payload.config.model)}estimateBillableOperations(e){return $a(e,{model:this.payload.config.model,prefix:vv,inputTokens:600,outputTokens:800})}getInputRequirement(){return wc([this.payload.config.template])}getSecretRequirements(){return Tc([this.payload.config.template])}getConstantRequirements(){return Ec([this.payload.config.template])}getRawOutputFields(){return{[bv.name]:this.catalogOutput(bv),[xv.name]:this.catalogOutput(xv)}}getConnectionsRequirements(){return Ga(this.payload.config.model)}},wv=Sv,Tv={pipeId:_v,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:G(_v),label:`Email writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing emails.`,guide:`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:[W.AI],docPath:K(_v),defaultInputRequirement:null,billableOperations:yv,allowedUserConnectionProviders:Ka(),managedProviders:Ka(),deprecatedProviders:[],defaultPayload:{pipe_id:_v,connector:null,run_if:null,config:{template:``,output_fields:{email_body:{alias:``,enabled:!0},email_subject:{alias:``,enabled:!0}},persona:`sales`,model:`openai-high`,signature:``}}},Ev=`field:domainify@1`,Dv=g(`url_input`),Ov=g(`domain`),kv=r.object({pipe_id:r.literal(Ev),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Dv.name]:E({fieldName:Dv.name})})),output_fields:L(r.object({[Ov.name]:O({fieldName:Ov.name})}))}).optional()}),Av=e=>V(q(Dv,e)),jv={"field-domainify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Mv=class extends H{pipeId=Ev;payload;payloadSchema=kv;billableOperations=jv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Av(this.payload.config)}getRawOutputFields(){return{[Ov.name]:this.catalogOutput(Ov)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Nv=kv,Pv={pipeId:Ev,basePipe:G(Ev),label:`Extract domain`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Transform URL input into a domain. Example: 'https://go.com' to 'go.com'.`,tags:[W.LOGIC,W.FIELDS],docPath:K(Ev),billableOperations:jv,defaultInputRequirement:Av(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ev,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},Fv=`field:slugify@1`,Iv=g(`string_input`),Lv=g(`slugified`),Rv=r.object({pipe_id:r.literal(Fv),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Iv.name]:E({fieldName:Iv.name})})),output_fields:L(r.object({[Lv.name]:O({fieldName:Lv.name})}))}).optional()}),zv=e=>V(q(Iv,e)),Bv={"field-slugify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Vv=class extends H{pipeId=Fv;payload;payloadSchema=Rv;billableOperations=Bv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return zv(this.payload.config)}getRawOutputFields(){return{[Lv.name]:this.catalogOutput(Lv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Hv=Rv,Uv={pipeId:Fv,basePipe:G(Fv),label:`Slugify field`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Strip a field value of characters not commonly found in slugs.`,tags:[W.LOGIC,W.FIELDS],docPath:K(Fv),billableOperations:Bv,defaultInputRequirement:zv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Fv,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function Wv({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function Gv(e){switch(e.kind){case`field`:return Wv(e.field);case`optional`:return`[optional ${Wv(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?Gv(e.of[0]):`(${e.of.map(Gv).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?Gv(e.of[0]):`(${e.of.map(Gv).join(` OR `)})`}}function Kv(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})`}`:``}: ${Gv(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var qv=class extends Error{constructor(e){super(`Request validation failed (${e.length} errors): ${e.join(`, `)}`),this.errors=e,this.name=`RequestValidationError`,Object.setPrototypeOf(this,new.target.prototype)}};const Z={ConditionTargetFieldNotFound:({fieldName:e,pipeId:t,pipeIdx:n})=>({code:`ConditionTargetFieldNotFound`,message:`${t} (idx: ${n}) has an invalid condition. Field '${e}' not found.`}),FaultyEnrichmentOrder:()=>({code:`FaultyEnrichmentOrder`,message:`Enrichment not found while ordering. Was the request invalid?`}),MustDefineAnnotations:()=>({code:`MustDefineAnnotations`,message:`Must define either input or field annoations to validate pipes payload.`}),CircularDependency:({currentPipe:e,circularPipe:t})=>({code:`CircularDependency`,message:`'${e.pipe_id}' (${e.idx}) and '${t.pipeId}' (${t.idx}) create a dependency loop. They both need the other's output to complete. Neither can complete. You can map the pipe outputs or input to fields with different names if you want the pipes to be independent or each other.`}),ValidationFailed:({error:e})=>({code:`ValidationFailed`,message:`Failed to validate task request: ${e instanceof Error?e.message:String(e)}`}),MissingCustomConnections:({pipeId:e,index:t,missingProviders:n})=>({code:`MissingCustomConnections`,message:`Pipe ${e} (index ${t}) requires you to specify custom connections for the providers ${n.join(`, `)}. Create the custom connections in the dashbard and reference them in your request.`}),ResponseGenerationFailed:({error:e})=>({code:`ResponseGenerationFailed`,message:`Failed to generate response: ${e instanceof Error?e.message:String(e)}`}),InputValuesMustHaveSameType:({pipeId:e,fieldNames:t})=>({code:`InputValuesMustHaveSameType`,message:`Pipe ${e} requires all input values to have the same type. But values ${t.join(`, `)} have different types.`}),NotValidated:()=>({code:`NotValidated`,message:`PipelineRequest must be validated before accessing results`}),MissingIdInInput:()=>({code:`MissingIdInInput`,message:`Inputs missing 'id' property.`}),InputDataTypeMismatch:({key:e,derivedInputFieldType:t,fieldType:n})=>({code:`InputDataTypeMismatch`,message:`Input data has values with matching keys '${e}' but different types. Expected type: '${t}'. Actual: '${n}'.`}),UnresolvableDependency:({index:e,dependencyIndex:t})=>({code:`UnresolvableDependency`,message:`Unresolvable dependency at index ${e} to ${t}`}),RequirementUnmet:({requirement:e,pipeId:t,index:n})=>({code:`RequirementUnmet`,message:Kv(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 ${Wv(t)} to pipeline because it already exists. Try renaming it.`}),ReservedOutputFieldName:({})=>({code:`ReservedOutputFieldName`,message:`'id' is reserved field name. Please rename your output field.`}),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 Jv=class extends Error{},Q=class extends Jv{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 Yv=`fields:merge@1`,Xv=g(`merge_result`),Zv=r.object({pipe_id:r.literal(Yv),connector:w(),run_if:x(),config:r.object({sources:$o({sectionKey:`general`,groupPath:`config.general`,path:`config.sources`,info:`Provide references to input fields`,minItems:2}),output_fields:L(r.object({[Xv.name]:O({fieldName:Xv.name})}))})}),Qv={"fields-merge-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},$v=class extends H{pipeId=Yv;payload;payloadSchema=Zv;billableOperations=Qv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`fields-merge-v1-pipe0`)}getInputRequirement(){let e=this.payload.config.sources.map(e=>e.field_name),t;return dc(...this.payload.config.sources.map(n=>V({format:null,type:r=>{let i=Sc(r,e)[n.field_name],a=i?.type?i.type:`unknown`;if(a!==`unknown`){if(t&&t!==a)throw new Q([Z.InputValuesMustHaveSameType({pipeId:this.pipeId,fieldNames:e})]);t=a}return i?.type?i.type:`unknown`},label:``,description:``,name:n.field_name,resolvedName:n.field_name})))}getRawOutputFields(){return{[Xv.name]:this.catalogOutput(Xv,{resolveType:e=>{let t=Sc(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}]}},ey=Zv,ty={pipeId:Yv,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:G(Yv),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:[W.FIELDS,W.LOGIC],docPath:K(Yv),defaultInputRequirement:null,billableOperations:Qv,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Yv,connector:null,run_if:null,config:{sources:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},ny=`http:request@1`,ry=g(`http_response_status`),iy=g(`http_response_body`),ay=g(`http_response_headers`),oy=r.object({pipe_id:r.literal(ny),connector:w(),run_if:x(),config:r.object({method:hs({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:os({sectionKey:`general`,groupPath:`config.general`,path:`config.query_params`,label:`Query parameters`,info:"Appended to the URL. In the value column, type `/` to insert a field or secret reference.",keyLabel:`Key`,valueLabel:`Value`,keyPlaceholder:`page`,valuePlaceholder:`1`,maxKeys: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:`{
73
73
  "key": "value"
74
- }`,inputType:`text`,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`text`,multiline:!0}).nullable(),headers:os({sectionKey:`general`,groupPath:`config.general`,path:`config.headers`,label:`Headers`,info:"In the value column, type `/` to insert a field or secret reference (e.g. `Bearer {{ secret … }}`).",keyLabel:`Header`,valueLabel:`Value`,keyPlaceholder:`Authorization`,valuePlaceholder:`Bearer {{ secret … }}`,maxKeys:50}),expected_response_schema:ys({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).`,allowEmpty:!0}).optional(),output_fields:R(r.object({[Jv.name]:k({fieldName:Jv.name}),[Yv.name]:k({fieldName:Yv.name}),[Xv.name]:k({fieldName:Xv.name})}))})}),Qv={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},$v=class extends U{pipeId=qv;payload;payloadSchema=Zv;billableOperations=Qv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`http-request-v1-pipe0`)}getTemplatedFields(){return[this.payload.config.url,this.payload.config.body,...Object.values(this.payload.config.query_params??{}),...Object.values(this.payload.config.headers??{})]}getInputRequirement(){return P_(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return F_(this.getTemplatedFields())}getConstantRequirements(){return I_(this.getTemplatedFields())}getRawOutputFields(){return{[Jv.name]:this.catalogOutput(Jv),[Yv.name]:this.catalogOutput(Yv),[Xv.name]:this.catalogOutput(Xv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},ey=Zv,ty={pipeId:qv,basePipe:K(qv),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:[W.LOGIC,W.JSON,W.NEW],docPath:q(qv),billableOperations:Qv,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:qv,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}}}}},ny=`json:extract:multi@1`,ry=r.object({pipe_id:r.literal(ny),run_if:x(),connector:w(),config:r.object({json_extraction:po()})}),iy={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ay=class extends U{pipeId=ny;payload;payloadSchema=ry;billableOperations=iy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`json-extract-multi-v1-pipe0`)}getInputRequirement(){return H({description:``,name:this.payload.config.json_extraction.field_name,format:null,label:``,type:`json`,resolvedName:this.payload.config.json_extraction.field_name})}getRawOutputFields(){let e={};for(let t of this.payload.config.json_extraction.extractions)e[t.output_field.name||t.output_field.name]={description:`Extracted value from JSON input field ${this.payload.config.json_extraction.field_name}.`,enabled:!0,format:t.output_field.format||null,label:t.output_field.label||`Extract JSON`,name:t.output_field.name,resolvedName:t.output_field.name,jsonMeta:null,type:t.output_field.type,isCatalogFIeld:!1,isPrimaryOutput:!1};return e}getConnectionsRequirements(){return[]}},oy=ry,sy={pipeId:ny,basePipe:K(ny),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,guide:'Deterministic JSON extraction β€” PREFER this over prompt:run@1 whenever you need a value out of a JSON / known-schema column (no LLM, reproducible, schedulable). config.json_extraction.field_name is the source json column; each extraction has a JSONata `path` plus an output_field. Read the source column\'s JSON schema (get_pipe_schema / get_search_schema output fields, or get_sheet_schema) to author the path. Examples over a profile\'s employment_history array: `employment_history[is_current_employer=true][]` (array of current jobs β†’ output_field.type "json"); `employment_history[is_primary_current_employer=true].company_domain` (scalar β†’ output_field.type "string"). Set output_field.type to "json" for an object/array result, "string" for a scalar. CRITICAL for a list you will fan out (e.g. into row:expandappend:sheet@1): a JSONata filter returns the matched ELEMENT when exactly one row matches but an ARRAY when several do β€” so ALWAYS append the array constructor `[]` to force a consistent array in every row (`employment_history[is_current_employer=true][]`, not `...=true]`). Without it the column is an object in single-match rows and an array in others, and the downstream expand rejects the object rows. To confirm a NEW path resolves the shape you expect before running anything downstream, switch the sheet to SANDBOX (env:change@1) and run just this extraction β€” it runs for REAL in sandbox (no writes, no spend), so you can read the actual result, fix the path, then switch back to production.',docPath:q(ny),tags:[W.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:iy,defaultInputRequirement:null,defaultPayload:{pipe_id:ny,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},cy=`lead:enroll:lemlist@1`,ly={"lead-enroll-lemlist-v1-lemlist":{allowManagedConnection:!1,provider:`lemlist`,credits:null,mode:null}},uy=g(`email`),dy=g(`name`),fy=g(`first_name`),py=g(`last_name`),my=g(`company_name`),hy=g(`job_title`),gy=g(`profile_url`),_y=g(`phone`),vy=g(`lemlist_lead_id`),yy=g(`lemlist_enrollment_result`),by=new Set([`email`,`firstName`,`lastName`,`name`,`companyName`,`jobTitle`,`linkedinUrl`,`phone`,`companyDomain`,`icebreaker`,`picture`]),xy=[{label:`Demo Β· Q3 Outbound`,value:`cam_sandbox_1`},{label:`Demo Β· Founder Intros`,value:`cam_sandbox_2`}],Sy={requires:{connection:`lemlist`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return xy;if(!t)throw new Au.MissingSecretError({providerName:`lemlist`});let r=await fetch(`https://api.lemlist.com/api/campaigns?limit=100`,{headers:{Authorization:`Basic ${t}`}});if(!r.ok){let e=await r.text();throw new Au.HttpError({msg:e})}let i=await r.json(),a=(Array.isArray(i)?i:i.campaigns??[]).map(e=>({label:e.name,value:e._id}));return e?a.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):a},widgets:{provider_logo:{provider:`lemlist`}}};function Cy(e){let t=new Set,n=new Set;try{let r=ia(e);for(let[e,i]of Object.entries(r.inputs))(i.required?t:n).add(e)}catch{for(let n of e.matchAll(/\{\{\s*([A-Za-z_][A-Za-z0-9_]*)/g))t.add(n[1])}return{required:[...t],optional:[...n]}}const wy=r.object({pipe_id:r.literal(cy),connector:Go(),run_if:x(),config:r.object({campaign_id:bs({sectionKey:`general`,required:!0,label:`Campaign`,groupPath:`config.general`,path:`config.campaign_id`,info:`The lemlist campaign to enroll the lead into.`,enabledIf:Na(`lemlist`),optionsDef:Sy}),input_fields:z(r.object({[uy.name]:E({fieldName:uy.name}),[dy.name]:E({fieldName:dy.name}),[fy.name]:E({fieldName:fy.name}),[py.name]:E({fieldName:py.name}),[my.name]:E({fieldName:my.name}),[hy.name]:E({fieldName:hy.name}),[gy.name]:E({fieldName:gy.name}),[_y.name]:E({fieldName:_y.name})})),custom_variables:os({sectionKey:`general`,groupPath:`config.general`,path:`config.custom_variables`,label:`Custom variables`,info:"lemlist custom variables, set on the lead after enrollment. The Variable name must match what your sequence references (e.g. `{{ painPoint }}`) β€” case-sensitive, no spaces. In the Value column, type `/` to insert a field or secret; leave a Value empty to skip that row. Standard fields (company, job title, LinkedIn, phone) are set via the fields above, not here.",keyLabel:`Variable`,valueLabel:`Value`,keyPlaceholder:`painPoint`,valuePlaceholder:`{{ pain_point }}`,maxKeys:50}),output_fields:R(r.object({[vy.name]:k({fieldName:vy.name}),[yy.name]:k({fieldName:yy.name})}))}).check(e=>{let t=e.value;for(let n of Object.keys(t.custom_variables??{})){let t=n.trim();if(!t)continue;let r=t=>e.issues.push({code:`custom`,input:n,message:t,path:[`custom_variables`,n]});if(t.includes(`{{`)){r("Variable name must be a literal (no `{{ }}` templating).");continue}if(!/^[A-Za-z_][A-Za-z0-9_]*$/.test(t)){r(`Invalid lemlist variable name "${t}" β€” use letters, digits, and underscores; no spaces.`);continue}by.has(t)&&r(`"${t}" is a standard lemlist field β€” set it via the dedicated field above, not as a custom variable.`)}})}),Ty=e=>lc(H(J(uy,e)),uc(H(J(dy,e)),lc(H(J(fy,e)),H(J(py,e)))),dc(J(my,e)),dc(J(hy,e)),dc(J(gy,e)),dc(J(_y,e))),Ey=e=>{let t=new Set;for(let n of e)if(n)try{let e=ia(n);for(let n of Object.keys(e.inputs))t.add(n)}catch{}return[...t].map(e=>dc({name:e,resolvedName:e,label:e,description:``,type:t=>N_(t,e)?.type||`string`,format:`text`}))},Dy=class extends U{pipeId=cy;payload;payloadSchema=wy;billableOperations=ly;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`lemlist`]}estimateBillableOperations(e){return G(e,`lead-enroll-lemlist-v1-lemlist`)}getCustomVariableValueTemplates(){return Object.values(this.payload.config.custom_variables??{})}getInputRequirement(){return lc(Ty(this.payload.config),...Ey(this.getCustomVariableValueTemplates()))}getSecretRequirements(){return F_(this.getCustomVariableValueTemplates())}getConstantRequirements(){return I_(this.getCustomVariableValueTemplates())}getRawOutputFields(){return{[vy.name]:this.catalogOutput(vy),[yy.name]:this.catalogOutput(yy)}}getConnectionsRequirements(){return[{provider:`lemlist`,rateLimitRatio:1,rateLimitOperation:`lemlist_create_lead`,allowManagedConnection:!1}]}async getAgentContext({connectionSecrets:e,environment:t}){let n=this.payload.config.campaign_id,r=Array.isArray(n)?n[0]:n;if(!r)return null;if(t===`sandbox`)return{summary:`Sandbox: this sequence references custom variables painPoint and eventLink β€” set each via config.custom_variables.`,data:{required_custom_variables:[`painPoint`,`eventLink`],used_standard_fields:[`firstName`]}};let i=e.lemlist;if(!i)throw new Au.MissingSecretError({providerName:`lemlist`});let a=await fetch(`https://api.lemlist.com/api/campaigns/${encodeURIComponent(r)}/sequences`,{headers:{Authorization:`Basic ${i}`},signal:AbortSignal.timeout(1e4)});if(!a.ok){let e=await a.text();throw new Au.HttpError({msg:e})}let o=await a.json(),s=new Set;for(let e of Object.values(o??{}))for(let t of e?.steps??[])for(let e of[t?.subject,t?.message]){if(!e)continue;let{required:t,optional:n}=Cy(e);for(let e of[...t,...n])s.add(e)}let c=[...s].filter(e=>by.has(e)),l=[...s].filter(e=>!by.has(e));return{summary:l.length===0?`This sequence uses only standard lemlist fields β€” no custom variables to set.`:`This sequence requires these custom variables β€” set each via config.custom_variables (the value is a Liquid template over your sheet columns, e.g. {{ pain_point }}): ${l.join(`, `)}. Standard fields (email, firstName, …) are populated by the input fields above, not here.`,data:{required_custom_variables:l,used_standard_fields:c}}}},Oy=wy,ky={pipeId:cy,basePipe:K(cy),label:`Enroll Lead in Campaign`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Add a lead to a lemlist campaign sequence, with custom variables.`,tags:[W.EMAIL],docPath:q(cy),billableOperations:ly,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`lemlist`],defaultInputRequirement:Ty(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:cy,connector:{strategy:`first`,connections:[]},run_if:null,config:{campaign_id:``,input_fields:{email:{alias:``},name:{alias:``},first_name:{alias:``},last_name:{alias:``},company_name:{alias:``},job_title:{alias:``},profile_url:{alias:``},phone:{alias:``}},custom_variables:{},output_fields:{lemlist_lead_id:{alias:``,enabled:!0},lemlist_enrollment_result:{alias:``,enabled:!1}}}}},Ay=`message:send:slack@1`,jy=g(`slack_message_success`),My=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],Ny=r.object({pipe_id:r.literal(Ay),connector:Go(),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 My;if(!t)throw new Au.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 Au.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new Au.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:R(r.object({[jy.name]:k({fieldName:jy.name})}))})}),Py={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},Fy=class extends U{pipeId=Ay;payload;payloadSchema=Ny;billableOperations=Py;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(e){return G(e,`message-send-slack-v1-slack`)}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return P_(this.getTemplatedFields())}getSecretRequirements(){return F_(this.getTemplatedFields())}getConstantRequirements(){return I_(this.getTemplatedFields())}getRawOutputFields(){return{[jy.name]:this.catalogOutput(jy)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},Iy=Ny,Ly={pipeId:Ay,basePipe:K(Ay),label:`Send message into channel`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send a Slack message to a channel.`,guide:"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:[W.CHAT],docPath:q(Ay),billableOperations:Py,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:Ay,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},Ry=`message:write@1`,zy=g(`message`),By=`message-write-v1`,Vy=Za(By),Hy=r.object({pipe_id:r.literal(Ry),connector:C(),run_if:x(),config:r.object({template:Uo({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:Z(`prompt`),groupPath:`config.prompt`,required:!0}),model:hs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Vy}),output_fields:R(r.object({[zy.name]:k({fieldName:zy.name})}))})}),Uy=class extends U{pipeId=Ry;payload;payloadSchema=Hy;billableOperations=Vy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return Wa(this.payload.config.model)}estimateBillableOperations(e){return $a(e,{model:this.payload.config.model,prefix:By,inputTokens:600,outputTokens:800})}getInputRequirement(){return P_([this.payload.config.template])}getSecretRequirements(){return F_([this.payload.config.template])}getConstantRequirements(){return I_([this.payload.config.template])}getRawOutputFields(){return{[zy.name]:this.catalogOutput(zy)}}getConnectionsRequirements(){return Ga(this.payload.config.model)}},Wy=Hy,Gy={pipeId:Ry,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:K(Ry),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.)`,guide:`AI message composer for Slack/Teams/Discord. Outputs: message. Pair with message:send:slack@1 to send.`,tags:[W.AI],docPath:q(Ry),defaultInputRequirement:null,billableOperations:Vy,allowedUserConnectionProviders:Ka(),managedProviders:Ka(),deprecatedProviders:[],defaultPayload:{pipe_id:Ry,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},Ky=`person:devprofileurl:profileurl:waterfall@1`,qy=g(`profile_url`),Jy=g(`developer_profile_url`),Yy=g(`alternative_developer_profile_urls`),Xy=[`crustdata`],Zy=[{provider:`crustdata`}],Qy=r.object({pipe_id:r.literal(Ky),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Zy,availableProviders:Xy}),input_fields:z(r.object({[qy.name]:E({fieldName:qy.name})})),output_fields:R(r.object({[Jy.name]:k({fieldName:Jy.name}),[Yy.name]:k({fieldName:Yy.name})}))}).optional()}),$y=e=>H(J(qy,e)),eb={"person-devprofileurl-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1.3,weight:1}},mode:`onSuccess`}},tb=class extends U{pipeId=Ky;payload;payloadSchema=Qy;billableOperations=eb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return $y(this.payload.config)}getRawOutputFields(){return{[Jy.name]:this.catalogOutput(Jy,{isPrimaryOutput:!0}),[Yy.name]:this.catalogOutput(Yy,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},nb=Qy,rb={pipeId:Ky,basePipe:K(Ky),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:q(Ky),tags:[W.LINKEDIN,W.WATERFALL,W.NEW],billableOperations:eb,defaultInputRequirement:$y(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Xy,allowedUserConnectionProviders:Xy,deprecatedProviders:[],defaultPayload:{pipe_id:Ky,connector:null,run_if:null,config:{providers:Zy,input_fields:{profile_url:{alias:``}},output_fields:{developer_profile_url:{alias:``,enabled:!0},alternative_developer_profile_urls:{alias:``,enabled:!1}}}}},ib=`person:email:validate:millionverifier@1`,ab=g(`email`),ob=g(`email_validation_status`),sb=g(`million_validation_match`),cb=r.object({pipe_id:r.literal(ib),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[ab.name]:E({fieldName:ab.name})})),output_fields:R(r.object({[ob.name]:k({fieldName:ob.name}),[sb.name]:k({fieldName:sb.name})}))}).optional()}),lb=e=>H(J(ab,e)),ub={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},db=class extends U{pipeId=ib;payload;payloadSchema=cb;billableOperations=ub;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(e){return G(e,`person-email-validate-millionverifier-v1-millionverifier`)}getInputRequirement(){return lb(this.payload.config)}getRawOutputFields(){return{[ob.name]:this.catalogOutput(ob),[sb.name]:this.catalogOutput(sb)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},fb=cb,pb={pipeId:ib,basePipe:K(ib),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[W.EMAIL],docPath:q(ib),billableOperations:ub,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:lb(null),defaultPayload:{pipe_id:ib,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},mb=g(`email`),hb=g(`amplemarket_person_match`),gb=`person:identity:amplemarket@1`,_b=r.object({pipe_id:r.literal(gb),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[mb.name]:E({fieldName:mb.name})})),output_fields:R(r.object({[hb.name]:k({fieldName:hb.name})}))}).optional()}),vb=e=>H(J(mb,e)),yb={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},bb=class extends U{pipeId=gb;payload;payloadSchema=_b;billableOperations=yb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return vb(this.payload.config)}getRawOutputFields(){return{[hb.name]:this.catalogOutput(hb)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},xb=_b,Sb={pipeId:gb,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(gb),label:`Person identity`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their email`,tags:[W.PEOPLE_PROFILES],docPath:q(gb),billableOperations:yb,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:vb(null),defaultPayload:{pipe_id:gb,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},Cb=`person:identity:email:waterfall@1`,wb=g(`email`),Tb=g(`company_domain`),Eb=g(`name`),Db=g(`job_title`),Ob=g(`profile_url`),kb=g(`company_profile_url`),Ab=g(`company_name`),jb=[`findymail`,`hunter`,`crustdata`],Mb=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],Nb=r.object({pipe_id:r.literal(Cb),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:jb,defaultProviders:Mb,sectionKey:`general`}),input_fields:z(r.object({[wb.name]:E({fieldName:wb.name})})),output_fields:R(r.object({[Eb.name]:k({fieldName:Eb.name}),[Ob.name]:k({fieldName:Ob.name}),[Db.name]:k({fieldName:Db.name}),[Tb.name]:k({fieldName:Tb.name}),[Ab.name]:k({fieldName:Ab.name}),[kb.name]:k({fieldName:kb.name})}))}).optional()}),Pb=e=>H(J(wb,e)),Fb={"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`}},Ib=class extends U{pipeId=Cb;payload;payloadSchema=Nb;billableOperations=Fb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Pb(this.payload.config)}getRawOutputFields(){return{[Eb.name]:this.catalogOutput(Eb,{isPrimaryOutput:!0}),[Ob.name]:this.catalogOutput(Ob,{isPrimaryOutput:!0}),[Db.name]:this.catalogOutput(Db,{isPrimaryOutput:!0}),[Ab.name]:this.catalogOutput(Ab,{isPrimaryOutput:!0}),[kb.name]:this.catalogOutput(kb,{isPrimaryOutput:!0}),[Tb.name]:this.catalogOutput(Tb,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Lb=Nb,Rb={pipeId:Cb,basePipe:K(Cb),label:`Person identity from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find identity of a person from their email address.`,tags:[W.EMAIL,W.PEOPLE_PROFILES],docPath:q(Cb),managedProviders:jb,deprecatedProviders:[],allowedUserConnectionProviders:jb,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Fb,defaultInputRequirement:Pb(null),defaultPayload:{pipe_id:Cb,connector:null,run_if:null,config:{providers:Mb,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}}}}},zb=g(`profile_url`),Bb=g(`amplemarket_person_match`),Vb=`person:match:amplemarket@1`,Hb=r.object({pipe_id:r.literal(Vb),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[zb.name]:E({fieldName:zb.name})})),output_fields:R(r.object({[Bb.name]:k({fieldName:Bb.name})}))}).optional()}),Ub=e=>H(J(zb,e)),Wb={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},Gb=class extends U{pipeId=Vb;payload;payloadSchema=Hb;billableOperations=Wb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return Ub(this.payload.config)}getRawOutputFields(){return{[Bb.name]:this.catalogOutput(Bb)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},Kb=Hb,qb={pipeId:Vb,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(Vb),label:`Person match`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their LinkedIn profile URL.`,tags:[W.PEOPLE_PROFILES],docPath:q(Vb),billableOperations:Wb,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:Ub(null),defaultPayload:{pipe_id:Vb,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},Jb=`person:match:role:waterfall@1`,Yb=g(`company_domain`),Xb=g(`role_finder_match`),Zb=[`leadmagic`],Qb=[{provider:`leadmagic`}],$b=r.object({pipe_id:r.literal(Jb),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Qb,availableProviders:Zb}),roles:as({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:z(r.object({[Yb.name]:E({fieldName:Yb.name})})),output_fields:R(r.object({[Xb.name]:k({fieldName:Xb.name})}))})}),ex=e=>uc(J(Yb,e)),tx={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},nx=class extends U{pipeId=Jb;payload;payloadSchema=$b;billableOperations=tx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return ex(this.payload.config)}getSecretRequirements(){return F_(this.payload.config?.roles??[])}getConstantRequirements(){return I_(this.payload.config?.roles??[])}getRawOutputFields(){return{[Xb.name]:this.catalogOutput(Xb,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},rx=$b,ix={pipeId:Jb,basePipe:K(Jb),managedProviders:Zb,deprecatedProviders:[],allowedUserConnectionProviders:Zb,label:`Role finder`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[W.PEOPLE_PROFILES],docPath:q(Jb),billableOperations:tx,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:ex(null),defaultPayload:{pipe_id:Jb,run_if:null,connector:null,config:{roles:[],providers:Qb,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},ax=`person:mobile:profileurl:waterfall@1`,ox=g(`profile_url`),sx=g(`mobile`),cx=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],lx=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],ux=r.object({pipe_id:r.literal(ax),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:lx,availableProviders:cx}),input_fields:z(r.object({[ox.name]:E({fieldName:ox.name})})),output_fields:R(r.object({[sx.name]:k({fieldName:sx.name})}))}).optional()}),dx=e=>H(J(ox,e)),fx={"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`}},px=class extends U{pipeId=ax;payload;payloadSchema=ux;billableOperations=fx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return dx(this.payload.config)}getRawOutputFields(){return{[sx.name]:this.catalogOutput(sx,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},mx=ux,hx={pipeId:ax,basePipe:K(ax),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:q(ax),tags:[W.PHONE,W.WATERFALL],billableOperations:fx,defaultInputRequirement:dx(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:cx,allowedUserConnectionProviders:cx,deprecatedProviders:[],defaultPayload:{pipe_id:ax,connector:null,run_if:null,config:{providers:lx,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},gx=`person:mobile:workemail:waterfall@1`,_x=g(`work_email`),vx=g(`mobile`),yx=[`leadmagic`,`amplemarket`],bx=[{provider:`leadmagic`},{provider:`amplemarket`}],xx=r.object({pipe_id:r.literal(gx),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:yx,defaultProviders:bx}),input_fields:z(r.object({[_x.name]:E({fieldName:_x.name})})),output_fields:R(r.object({[vx.name]:k({fieldName:vx.name})}))}).optional()}),Sx=e=>H(J(_x,e)),Cx={"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`}},wx=class extends U{pipeId=gx;payload;payloadSchema=xx;billableOperations=Cx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Sx(this.payload.config)}getRawOutputFields(){return{[vx.name]:this.catalogOutput(vx,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Tx=xx,Ex={pipeId:gx,basePipe:K(gx),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for a prospect.`,tags:[W.PHONE,W.WATERFALL],docPath:q(gx),billableOperations:Cx,defaultInputRequirement:Sx(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:yx,managedProviders:yx,deprecatedProviders:[],defaultPayload:{pipe_id:gx,connector:null,run_if:null,config:{providers:bx,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Dx=`person:name:join@1`,Ox=g(`first_name`),kx=g(`last_name`),Ax=g(`name`),jx=r.object({pipe_id:r.literal(Dx),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Ox.name]:E({fieldName:Ox.name}),[kx.name]:E({fieldName:kx.name})})),output_fields:R(r.object({[Ax.name]:k({fieldName:Ax.name})}))}).optional()}),Mx=e=>lc(J(Ox,e),J(kx,e)),Nx={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Px=class extends U{pipeId=Dx;payload;payloadSchema=jx;billableOperations=Nx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`person-name-join-v1-pipe0`)}getInputRequirement(){return Mx(this.payload.config)}getRawOutputFields(){return{[Ax.name]:this.catalogOutput(Ax)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Fx=jx,Ix={pipeId:Dx,basePipe:K(Dx),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:[W.NAMES],docPath:q(Dx),billableOperations:Nx,defaultInputRequirement:Mx(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Dx,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},Lx=`person:name:split@1`,Rx=g(`name`),zx=g(`first_name`),Bx=g(`last_name`),Vx=r.object({pipe_id:r.literal(Lx),connector:w(),run_if:x(),config:r.object({input_fields:z(r.object({[Rx.name]:E({fieldName:Rx.name})})),output_fields:R(r.object({[zx.name]:k({fieldName:zx.name}),[Bx.name]:k({fieldName:Bx.name})}))}).optional()}),Hx=e=>H(J(Rx,e)),Ux={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Wx=class extends U{pipeId=Lx;payload;payloadSchema=Vx;billableOperations=Ux;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`person-name-split-v1-pipe0`)}getInputRequirement(){return Hx(this.payload.config)}getRawOutputFields(){return{[zx.name]:this.catalogOutput(zx),[Bx.name]:this.catalogOutput(Bx)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Gx=Vx,Kx={pipeId:Lx,basePipe:K(Lx),label:`Split name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Split a full name into first and last name.`,tags:[W.NAMES],docPath:q(Lx),billableOperations:Ux,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Hx(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Lx,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},qx=`person:personalemail:profileurl:waterfall@1`,Jx=g(`profile_url`),Yx=g(`personal_email`),Xx=g(`alternate_personal_emails`),Zx=[`leadmagic`,`mixrank`],Qx=[{provider:`leadmagic`},{provider:`mixrank`}],$x=r.object({pipe_id:r.literal(qx),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Zx,defaultProviders:Qx}),input_fields:z(r.object({[Jx.name]:E({fieldName:Jx.name})})),output_fields:R(r.object({[Yx.name]:k({fieldName:Yx.name}),[Xx.name]:k({fieldName:Xx.name})}))}).optional()}),eS=e=>H(J(Jx,e)),tS={"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`}},nS=class extends U{pipeId=qx;payload;payloadSchema=$x;billableOperations=tS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return eS(this.payload.config)}getRawOutputFields(){return{[Yx.name]:this.catalogOutput(Yx,{isPrimaryOutput:!0}),[Xx.name]:this.catalogOutput(Xx)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},rS=$x,iS={pipeId:qx,basePipe:K(qx),allowedUserConnectionProviders:Zx,managedProviders:Zx,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:[W.EMAIL,W.PERSONAL_EMAIL],docPath:q(qx),billableOperations:tS,defaultInputRequirement:eS(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:qx,connector:null,run_if:null,config:{providers:Qx,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},aS=g(`profile_url`),oS=g(`post_list_string`),sS=g(`crustdata_post_list`),cS=`person:posts:content:crustdata@1`,lS=r.object({pipe_id:r.literal(cS),run_if:x(),connector:C(),config:r.object({limit:_s({path:`config.limit`,groupPath:`config.general`,max:100,min:1,sectionKey:`general`,info:``,label:`Limit`,legend:`Max. 100`}),input_fields:z(r.object({[aS.name]:E({fieldName:aS.name})})),output_fields:R(r.object({[oS.name]:k({fieldName:oS.name}),[sS.name]:k({fieldName:sS.name})}))}).optional()}),uS=e=>H(J(aS,e)),dS={"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`}},fS=class extends U{pipeId=cS;payload;payloadSchema=lS;billableOperations=dS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return G(e,`person-posts-crustdata-v1-crustdata`)}getInputRequirement(){return uS(this.payload.config)}getRawOutputFields(){return{[oS.name]:this.catalogOutput(oS),[sS.name]:this.catalogOutput(sS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},pS=lS,mS={pipeId:cS,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(cS),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[W.LINKEDIN],docPath:q(cS),billableOperations:dS,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:uS(null),defaultPayload:{pipe_id:cS,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}}}}},hS=`person:profile:waterfall@1`,gS=g(`profile`),_S=g(`profile_url`),vS=[`prospeo`,`icypeas`,`amplemarket`],yS=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],bS=r.object({pipe_id:r.literal(hS),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:vS,defaultProviders:yS}),input_fields:z(r.object({[_S.name]:E({fieldName:_S.name})})),output_fields:R(r.object({[gS.name]:k({fieldName:gS.name})}))}).optional()}),xS=e=>H(J(_S,e)),SS={"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}},CS=class extends U{pipeId=hS;payload;payloadSchema=bS;billableOperations=SS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return xS(this.payload.config)}getRawOutputFields(){return{[gS.name]:this.catalogOutput(gS,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},wS=bS,TS={pipeId:hS,basePipe:K(hS),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:q(hS),tags:[W.LINKEDIN,W.WATERFALL],managedProviders:vS,deprecatedProviders:[],allowedUserConnectionProviders:vS,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:SS,defaultInputRequirement:xS(null),defaultPayload:{pipe_id:hS,run_if:null,connector:null,config:{providers:yS,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},ES=g(`work_email`),DS=g(`crustdata_person_match`),OS=g(`crustdata_profile_match_score`),kS=`person:profile:workemail:crustdata@1`,AS=r.object({pipe_id:r.literal(kS),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[ES.name]:E({fieldName:ES.name})})),output_fields:R(r.object({[DS.name]:k({fieldName:DS.name}),[OS.name]:k({fieldName:OS.name})}))}).optional()}),jS=e=>H(J(ES,e)),MS={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},NS=class extends U{pipeId=kS;payload;payloadSchema=AS;billableOperations=MS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return G(e,`person-profile-workemail-crustdata-v1-crustdata`)}getInputRequirement(){return jS(this.payload.config)}getRawOutputFields(){return{[DS.name]:this.catalogOutput(DS),[OS.name]:this.catalogOutput(OS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},PS=AS,FS={pipeId:kS,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(kS),label:`Profile from work email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find person profile by their work email address.`,tags:[W.EMAIL,W.PEOPLE_PROFILES],docPath:q(kS),billableOperations:MS,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:jS(null),defaultPayload:{pipe_id:kS,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}}}}},IS=`person:profileurl:email:waterfall@1`,LS=g(`email`),RS=g(`work_email`),zS=g(`profile_url`),BS=[`leadmagic`],VS=[{provider:`leadmagic`}],HS=r.object({pipe_id:r.literal(IS),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:VS,availableProviders:BS}),input_fields:z(r.object({[LS.name]:E({fieldName:LS.name}),[RS.name]:E({fieldName:RS.name})})),output_fields:R(r.object({[zS.name]:k({fieldName:zS.name})}))}).optional()}),US=e=>uc(J(LS,e),J(RS,e)),WS={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},GS=class extends U{pipeId=IS;payload;payloadSchema=HS;billableOperations=WS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return US(this.payload.config)}getRawOutputFields(){return{[zS.name]:this.catalogOutput(zS,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},KS=HS,qS={pipeId:IS,basePipe:K(IS),managedProviders:BS,deprecatedProviders:[],allowedUserConnectionProviders:BS,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:[W.LINKEDIN],docPath:q(IS),billableOperations:WS,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:US(null),defaultPayload:{pipe_id:IS,run_if:null,connector:null,config:{providers:VS,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},JS=`person:profileurl:name@1`,YS=g(`name`),XS=g(`company_name`),ZS=g(`location_hint`),QS=g(`profile_url`),$S=r.object({pipe_id:r.literal(JS),connector:w(),run_if:x(),config:r.object({input_fields:z(r.object({[YS.name]:E({fieldName:YS.name}),[XS.name]:E({fieldName:XS.name}),[ZS.name]:E({fieldName:ZS.name})})),output_fields:R(r.object({[QS.name]:k({fieldName:QS.name})}))}).optional()}),eC=e=>lc(H(J(YS,e)),H(J(XS,e)),dc(J(ZS,e))),tC={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},nC=class extends U{pipeId=JS;payload;payloadSchema=$S;billableOperations=tC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`person-profileurl-name-v1-pipe0`)}getInputRequirement(){return eC(this.payload.config)}getRawOutputFields(){return{[QS.name]:this.catalogOutput(QS)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},rC=$S,iC={pipeId:JS,basePipe:K(JS),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:q(JS),tags:[W.LINKEDIN],billableOperations:tC,defaultInputRequirement:eC(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:JS,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},aC=`person:workemail:profileurl:waterfall@1`,oC=g(`profile_url`),sC=g(`work_email`),cC=g(`email_validation_status`),lC=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],uC=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],dC=r.object({pipe_id:r.literal(aC),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:lC,defaultProviders:uC,sectionKey:`general`}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:O({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:z(r.object({[oC.name]:E({fieldName:oC.name})})),output_fields:R(r.object({[sC.name]:k({fieldName:sC.name}),[cC.name]:k({fieldName:cC.name})}))}).optional()}),fC=e=>H(J(oC,e)),pC={"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`}},mC=class extends U{pipeId=aC;payload;payloadSchema=dC;billableOperations=pC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return fC(this.payload.config)}getRawOutputFields(){return{[sC.name]:this.catalogOutput(sC,{isPrimaryOutput:!0}),[cC.name]:this.catalogOutput(cC,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},hC=dC,gC={pipeId:aC,basePipe:K(aC),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses from B2B profile.`,tags:[W.EMAIL,W.WORK_EMAIL,W.WATERFALL],docPath:q(aC),managedProviders:lC,allowedUserConnectionProviders:lC,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:pC,defaultInputRequirement:fC(null),defaultPayload:{pipe_id:aC,connector:null,run_if:null,config:{providers:uC,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}}}}},_C=`person:workemail:waterfall@1`,vC=g(`name`),yC=g(`company_domain`),bC=g(`company_name`),xC=g(`work_email`),SC=g(`email_validation_status`),CC=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],wC=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],TC={"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`}},EC=r.object({pipe_id:r.literal(_C),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:CC,defaultProviders:wC,sectionKey:`general`,providerCredits:bc(TC,CC)}),allow_catch_all_emails:O({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:O({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:z(r.object({[vC.name]:E({fieldName:vC.name}),[yC.name]:E({fieldName:yC.name}),[bC.name]:E({fieldName:bC.name})})),output_fields:R(r.object({[xC.name]:k({fieldName:xC.name}),[SC.name]:k({fieldName:SC.name})}))}).optional()}),DC=e=>lc(H(J(vC,e)),uc(J(yC,e),J(bC,e))),OC=class extends U{pipeId=_C;payload;payloadSchema=EC;billableOperations=TC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return G(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return DC(this.payload.config)}getRawOutputFields(){return{[xC.name]:this.catalogOutput(xC,{isPrimaryOutput:!0}),[SC.name]:this.catalogOutput(SC,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_email_lookup`,icypeas:`icypeas_email_lookup`,findymail:`findymail_email_lookup`,hunter:`hunter_email_finder`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},kC=EC,AC={pipeId:_C,basePipe:K(_C),label:`Work email from name`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses in a waterfall motion.`,tags:[W.EMAIL,W.WORK_EMAIL,W.WATERFALL],docPath:q(_C),managedProviders:CC,deprecatedProviders:[],allowedUserConnectionProviders:CC,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:TC,defaultInputRequirement:DC(null),defaultPayload:{pipe_id:_C,connector:null,run_if:null,config:{providers:wC,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}}}}},jC=`prompt:run@1`,MC=`prompt-run-v1`,NC=Za(MC),PC=r.object({pipe_id:r.literal(jC),connector:C(),run_if:x(),config:r.object({prompt:Ho({sectionKey:`general`,path:`config.prompt`,placeholder:Z(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:hs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:NC})})}),FC=class extends U{pipeId=jC;payload;payloadSchema=PC;billableOperations=NC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return Wa(this.payload.config.model)}estimateBillableOperations(e){return $a(e,{model:this.payload.config.model,prefix:MC,inputTokens:600,outputTokens:800})}getInputRequirement(){return P_([this.payload.config.prompt.template])}getSecretRequirements(){return F_([this.payload.config.prompt.template])}getConstantRequirements(){return I_([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=ia(e)}catch{return n}for(let e of r.outputs){let r=e.type;if(r===`json`){let i=e.schemaRef?t[e.schemaRef]:void 0;n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:{zodSchema:i,exampleValue:null},format:null,isCatalogFIeld:!1,isPrimaryOutput:!1}}else n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:null,format:e.format??null,isCatalogFIeld:!1,isPrimaryOutput:!1}}return n}getConnectionsRequirements(){return Ga(this.payload.config.model)}},IC=PC,LC={pipeId:jC,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:K(jC),label:`AI prompt`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,description:`Executes configurable AI prompts with structured output fields.`,guide:`General-purpose AI prompt runner. Inputs and outputs are fully dynamic β€” defined by the tags in the prompt template. For extracting a value from a JSON / known-schema field, do NOT use this β€” use the deterministic json:extract:multi@1 (JSONata) instead: it's cheaper, reproducible, and runs on a schedule with no model. Reserve prompt:run@1 for genuine judgment or free-text generation (classify, summarize, rewrite).`,tags:[W.AI],docPath:q(jC),defaultInputRequirement:null,billableOperations:NC,allowedUserConnectionProviders:Ka(),managedProviders:Ka(),deprecatedProviders:[],defaultPayload:{pipe_id:jC,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},RC=`row:append:sheet@1`,zC=g(`sheet_record_id`),BC=g(`created_sheet`),VC=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],HC=[{label:`Demo project`,value:`demo-project`},{label:`Sales pipeline`,value:`sales-pipeline`}];function UC(e){let t=e?.config?.project;return typeof t==`string`&&t.length>0?t:void 0}const WC={requires:{connection:`pipe0`},enabledIf:Na(`pipe0`,`Select a pipe0 connection to see project suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?HC:t?(await t.projects.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`}}},GC={requires:{connection:`pipe0`,fields:[`config.project`]},enabledIf:Na(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n,payload:r})=>n===`sandbox`?VC:t?(await t.sheets.list({query:e,projectSlug:UC(r)})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},KC=r.object({pipe_id:r.literal(RC),connector:Go(),run_if:x(),config:r.object({project:S({label:`Project`,info:"Project the destination sheet lives in (its org-unique slug). Pick an existing project or type a new slug β€” a new project is created when `allow_entity_creation` is on.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.project`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:WC}),sheet:S({label:`Sheet ID`,info:'The destination sheet\'s identifier (its slug β€” NOT the display name). Slugs are org-unique: pick an existing sheet to append into it, or type a NEW slug to create one β€” a generic slug (e.g. "results", "companies") is likely to match an unrelated existing sheet, so for a new sheet use a short descriptive slug plus a few random chars (e.g. "ceos-x7k2") that can\'t collide. Type `@` to insert a field reference / `$` for a secret.',groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:GC,enabledIf:e=>e.config?.project?{disabled:!1}:{disabled:!0,message:`Select a project first`}}),run:O({defaultValue:!0,groupPath:`config.advanced`,path:`config.run`,sectionKey:`general`,description:`Auto-run sheet row after append action.`,label:`Run after append`}),allow_entity_creation:O({label:`Allow creating missing entities`,description:`Create missing fields, sheets, and projects as needed (unknown fields become columns; a missing sheet or project is created).`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_entity_creation`,sectionKey:`general`}),included_fields:$o({label:`Fields`,info:`All fields are written if empty.`,groupPath:`config.general`,path:`config.included_fields`,sectionKey:`general`,disableSearch:!0}),output_fields:R(r.object({[zC.name]:k({fieldName:zC.name}),[BC.name]:k({fieldName:BC.name})}))})}),qC={"row-append-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},JC=class extends U{pipeId=RC;payload;payloadSchema=KC;billableOperations=qC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`row-append-sheet-v1-pipe0`)}getInputRequirement(){let e=[P_([this.payload.config.project,this.payload.config.sheet],{expectedType:`string`,expectedFormat:`text`})];if(this.payload.config.included_fields?.length)for(let t of this.payload.config.included_fields)e.push(H({name:t.field_name,resolvedName:t.field_name,label:``,description:``,type:e=>{let n=N_(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 lc(...e)}getSecretRequirements(){return F_([this.payload.config.project,this.payload.config.sheet])}getConstantRequirements(){return I_([this.payload.config.project,this.payload.config.sheet])}getRawOutputFields(){return{[zC.name]:this.catalogOutput(zC),[BC.name]:this.catalogOutput(BC)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},YC=KC,XC={pipeId:RC,basePipe:K(RC),label:`Append row to sheet`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:"Add rows to a pipe0 sheet in a given project. config.project and config.sheet may each be a literal slug or a `{{ field_name }}` tag.",guide:`Append records to another pipe0 sheet. config.project (REQUIRED) is the destination project's org-unique slug β€” when working inside a project, pass THAT project's slug (see CURRENT CONTEXT). config.sheet is the destination sheet's slug; both may be a \`{{ field }}\` tag for a per-row destination. With allow_entity_creation on, a missing project/sheet (and unknown fields) are created; if the sheet slug already exists in a DIFFERENT project the rows fail. Destination slugs are ORG-UNIQUE, so config.sheet addresses a sheet across your whole org: an existing slug REUSES that sheet (appending into it) when it's in config.project, and FAILS when it lives elsewhere β€” so for a genuinely NEW sheet use a short descriptive slug plus 3-4 random alphanumeric chars (e.g. "ceos-x7k2") β€” you cannot see other projects' slugs, so only the random suffix makes a new slug collision-proof; set the display name afterwards with sheet:update@1 config.name. To explode a LIST field into MANY rows (denormalize a 1:N relationship), use row:expandappend:sheet@1 instead. To bulk-copy existing rows across sheets, prefer the rows:copy_to_sheet@1 effect. NON-IDEMPOTENT: each run appends again, so re-running duplicates rows (and you cannot undo rows written to another sheet) β€” dry-run the flow in sandbox first (env:change@1), and to retry after a partial failure adopt the succeeded cells (rows:adopt@1 with adopt_statuses:["completed"]) then rows:enrich@1. Requires a pipe0 connection (list_connections).`,docPath:q(RC),tags:[W.FIELDS],billableOperations:qC,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:RC,connector:{strategy:`first`,connections:[]},run_if:null,config:{project:``,sheet:``,run:!0,allow_entity_creation:!0,included_fields:[],output_fields:{sheet_record_id:{alias:``,enabled:!0},created_sheet:{alias:``,enabled:!0}}}}},ZC=`row:expandappend:sheet@1`,QC=g(`sheet_record_ids`),$C=g(`input_objects`),ew=`expanded_value`,tw=[{label:`Demo project`,value:`demo-project`},{label:`Sales pipeline`,value:`sales-pipeline`}],nw=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}];function rw(e){let t=e?.config?.project;return typeof t==`string`&&t.length>0?t:void 0}const iw={requires:{connection:`pipe0`},enabledIf:Na(`pipe0`,`Select a pipe0 connection to see project suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?tw:t?(await t.projects.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`}}},aw={requires:{connection:`pipe0`,fields:[`config.project`]},enabledIf:Na(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n,payload:r})=>n===`sandbox`?nw:t?(await t.sheets.list({query:e,projectSlug:rw(r)})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},ow=r.object({pipe_id:r.literal(ZC),connector:Go(),run_if:x(),config:r.object({project:S({label:`Project`,info:"Project the destination sheet lives in (its org-unique slug). Pick an existing project or type a new slug β€” a new project is created when `allow_entity_creation` is on.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.project`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:iw}),sheet:S({label:`Sheet ID`,info:`The destination sheet's identifier (its slug β€” NOT the display name). Slugs are org-unique: pick an existing sheet to write into it, or type a NEW slug to create one. A generic slug (e.g. "results", "companies") is likely to match an unrelated existing sheet, so for a new sheet use a short descriptive slug plus a few random chars (e.g. "ceos-x7k2") that can't collide.`,groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:aw,enabledIf:e=>e.config?.project?{disabled:!1}:{disabled:!0,message:`Select a project first`}}),run:O({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_entity_creation:O({label:`Allow creating missing entities`,description:`Create missing entities as needed (a missing sheet or project is created, along with the output column on the destination).`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_entity_creation`,sectionKey:`general`}),...ds({groupPath:`config.destination`,sectionKey:`general`,defaultName:ew,nameInfo:`Name of the field each list item is written to on the destination sheet. Each item is stored as-is (objects/arrays as one json cell); extract flat columns afterwards with json:extract:multi@1.`}),input_fields:z(r.object({[$C.name]:E({fieldName:$C.name})})),output_fields:R(r.object({[QC.name]:k({fieldName:QC.name})}))})}).check(e=>{let t=e.value.config?.destination_field_name;t&&oc(t)&&e.issues.push({code:`custom`,input:t,path:[`config`,`destination_field_name`],message:`'${t}' is reserved and cannot be used as a destination field name.`})}),sw={"row-expandappend-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},cw=e=>H(J($C,e)),lw=class extends U{pipeId=ZC;payload;payloadSchema=ow;billableOperations=sw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`row-expandappend-sheet-v1-pipe0`)}getInputRequirement(){return cw(this.payload.config)}getRawOutputFields(){return{[QC.name]:this.catalogOutput(QC)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},uw=ow,dw={pipeId:ZC,basePipe:K(ZC),label:`Expand list to sheet`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:"Expand a list into sheet rows β€” each item is written as-is to an `expanded_value` column (objects/arrays as json).",guide:`Denormalize a 1:N list into rows on ANOTHER sheet: each item in the input_objects array becomes its own row on config.sheet, inside config.project (REQUIRED β€” the destination project's org-unique slug; when working inside a project pass THAT slug, see CURRENT CONTEXT). Every item is written AS-IS to a single column on the destination β€” an object/array lands as one json cell (its fields are NOT spread into separate columns), a primitive as a scalar. That column is \`expanded_value\` by default; rename/retype it via config.destination_field_name / destination_field_type / destination_field_format / destination_field_label (type/format are inferred from the data when left unset). To get flat columns, run json:extract:multi@1 ON THE DESTINATION sheet afterwards to pull out exactly the values you need. With allow_entity_creation on, a missing project/sheet (and the expanded_value column) are created; a sheet slug that exists in a DIFFERENT project fails the rows. Destination slugs are ORG-UNIQUE, so config.sheet addresses a sheet across your whole org: an existing slug REUSES that sheet (appending into it) when it's in config.project, and FAILS when it lives elsewhere β€” a generic slug like "results"/"companies"/"current-employers" will likely hit an unrelated sheet. When you mean a genuinely NEW sheet, use a short descriptive slug plus 3-4 random alphanumeric chars (e.g. "ceos-x7k2", "prospects-employers-9fq") β€” you cannot see other projects' slugs, so only the random suffix makes a new slug collision-proof; give the sheet its human-readable name afterwards with sheet:update@1 config.name. Use it when a column holds a list you need per-element (e.g. a profile's current employers) BEFORE enriching each element β€” never collapse the list with an LLM. Requires a pipe0 connection (resolve via list_connections). Typical pipeline: json:extract:multi@1 to build the array column β†’ this pipe to explode it into an intermediary sheet β†’ json:extract:multi@1 THERE to flatten the fields you need out of expanded_value β†’ enrich each row (e.g. person:match:role:waterfall@1) β†’ rows:copy_to_sheet@1 to the final sheet. NON-IDEMPOTENT: each run appends again, so re-running duplicates rows (and you cannot undo rows written to another sheet) β€” dry-run the flow in sandbox first (env:change@1), and to retry after a partial failure adopt the succeeded cells (rows:adopt@1 with adopt_statuses:["completed"]) then rows:enrich@1.`,docPath:q(ZC),tags:[W.FIELDS],billableOperations:sw,defaultInputRequirement:cw(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:ZC,connector:{strategy:`first`,connections:[]},run_if:null,config:{project:``,sheet:``,run:!0,allow_entity_creation:!0,destination_field_name:ew,destination_field_type:``,destination_field_format:``,destination_field_label:``,input_fields:{input_objects:{alias:``}},output_fields:{sheet_record_ids:{alias:``,enabled:!0}}}}},fw=`SELECT table_schema, table_name, column_name, data_type FROM information_schema.columns WHERE table_schema NOT IN ('pg_catalog', 'information_schema') ORDER BY table_schema, table_name, ordinal_position`,pw=`table_catalog NOT IN ('system', '__databricks_internal') AND table_schema <> 'information_schema'`,mw=`SELECT table_catalog, table_schema, table_name FROM system.information_schema.tables WHERE ${pw} ORDER BY table_catalog, table_schema, table_name`,hw=`SELECT table_catalog, table_schema, table_name, column_name, data_type FROM system.information_schema.columns WHERE ${pw} ORDER BY table_catalog, table_schema, table_name, ordinal_position`;function gw(e){return typeof e==`string`?e:String(e??``)}function _w(e){let t=new Map;for(let n of e){let e=gw(n.table_schema),r=gw(n.table_name);if(!r)continue;let i=`${e}.${r}`,a=t.get(i);a||(a={schema:e,name:r,columns:[]},t.set(i,a)),a.columns.push({name:gw(n.column_name),type:gw(n.data_type)})}return t}function vw(e){return`${e.catalog?`${e.catalog}.`:``}${e.schema?`${e.schema}.`:``}${e.name}`}function yw(e,t){if(e.length===0)return{summary:`The connected database exposes no tables outside the system schemas β€” nothing to query yet.`,data:{tables:[],truncated:t}};let n=e.map(e=>{if(e.columns.length===0)return`- ${vw(e)} β€” (columns not listed; DESCRIBE or sample to inspect)`;let t=e.columns.slice(0,50),n=e.columns.length-t.length,r=t.map(e=>e.type?`${e.name}:${e.type}`:e.name).join(`, `);return`- ${vw(e)} β€” ${r}${n>0?` (+${n} more)`:``}`}),r=e.some(e=>e.catalog)?` Names are fully qualified (catalog.schema.table) β€” use them VERBATIM in config.query.`:``;return{summary:[`Schema map (${e.length} table${e.length===1?``:`s`}${t?`, truncated β€” the database has more`:``}). Write config.query against these;${r} sample rows free via run_search_oneshot.`,...n].join(`
75
- `),data:{tables:e,truncated:t}}}async function bw(e){let t=await e({query:mw,limit:500}),n=new Map;for(let e of t.rows){let t=gw(e.table_catalog),r=gw(e.table_schema),i=gw(e.table_name);i&&n.set(`${t}.${r}.${i}`,{catalog:t,schema:r,name:i,columns:[]})}let r=await e({query:hw,limit:500});for(let e of r.rows)n.get(`${gw(e.table_catalog)}.${gw(e.table_schema)}.${gw(e.table_name)}`)?.columns.push({name:gw(e.column_name),type:gw(e.data_type)});return yw([...n.values()],t.hasMore||r.hasMore)}async function xw(e){let t=await e({query:`SHOW TABLES`,limit:500}),n=t.rows.map(e=>({schema:gw(e.database??e.namespace),name:gw(e.tableName??e.table_name)})).filter(e=>e.name),r=t.hasMore||n.length>25,i=[];for(let{schema:t,name:r}of n.slice(0,25)){let n=(await e({query:`DESCRIBE TABLE ${t?`${t}.`:``}${r}`,limit:500})).rows.map(e=>({name:gw(e.col_name),type:gw(e.data_type)})).filter(e=>e.name&&!e.name.startsWith(`#`));i.push({schema:t,name:r,columns:n})}return yw(i,r)}async function Sw(e,t){if(t.environment===`sandbox`)return{summary:`Schema exploration needs the real database connection β€” it's read-only and free. Switch to production (env:change@1) to explore the schema, then rehearse the pipeline in sandbox.`};if(!t.runQuery)return{summary:`Live schema exploration isn't available in this context.`};if(e===`databricks`)try{return await bw(t.runQuery)}catch{try{let e=await t.runQuery({query:fw,limit:500});return yw([..._w(e.rows).values()],e.hasMore)}catch{return xw(t.runQuery)}}let n=await t.runQuery({query:fw,limit:500});return yw([..._w(n.rows).values()],n.hasMore)}const Cw=`rows:find:databricks@1`,ww=g(`db_rows_found_count`),Tw=g(`db_found_rows`),Ew=r.object({pipe_id:r.literal(Cw),connector:Go(),run_if:x(),config:r.object({query:Uo({label:`SQL query`,info:`A single read-only SELECT statement, resolved per row β€” use {{ field }} for input refs, {{ SECRETS.X }} / {{ CONSTANTS.X }} for secrets/constants. Do not add your own LIMIT for capping; use the row limit below.`,groupPath:`config.general`,sectionKey:`general`,path:`config.query`,rows:8,required:!0,maxLength:2e4}),limit:_s({label:`Row limit`,info:`Maximum number of rows returned in the matching-rows output. The rows-found count is always the true total.`,groupPath:`config.advanced`,sectionKey:`general`,path:`config.limit`,min:1,max:50}),output_fields:R(r.object({[ww.name]:k({fieldName:ww.name}),[Tw.name]:k({fieldName:Tw.name})}))})}),Dw={"rows-find-databricks-v1-databricks":{provider:`databricks`,allowManagedConnection:!1,mode:null,credits:null,note:`Querying your own Databricks SQL warehouse is free.`}},Ow=class extends U{pipeId=Cw;payload;payloadSchema=Ew;billableOperations=Dw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`databricks`]}estimateBillableOperations(e){return G(e,`rows-find-databricks-v1-databricks`)}getTemplatedFields(){return[this.payload.config.query]}getInputRequirement(){return P_(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return F_(this.getTemplatedFields())}getConstantRequirements(){return I_(this.getTemplatedFields())}getRawOutputFields(){return{[ww.name]:this.catalogOutput(ww),[Tw.name]:this.catalogOutput(Tw)}}getConnectionsRequirements(){return[{provider:`databricks`,rateLimitRatio:1,rateLimitOperation:`databricks_query`,allowManagedConnection:!1}]}async getAgentContext(e){return Sw(`databricks`,e)}},kw=Ew,Aw={pipeId:Cw,basePipe:K(Cw),label:`Find rows in Databricks`,executionMode:`single`,categories:[`tools`],lifecycle:null,allowedUserConnectionProviders:[`databricks`],managedProviders:[],deprecatedProviders:[],description:`Look up rows in your own Databricks SQL warehouse with a read-only SQL query resolved per row. Outputs the total match count and the matching rows.`,guide:"Databricks SQL dialect; config.query must be a single read-only SELECT, resolved per row via Liquid β€” `{{ field }}` input refs, `{{ SECRETS.X }}` / `{{ CONSTANTS.X }}` supported. Resolved values are interpolated as text, so quote them in the SQL (WHERE email = '{{ email }}'). To discover the schema, draft a payload with a placeholder config.query like \"SELECT 1\" and the chosen connection in connector.connections, then call get_provider_context once β€” it returns the workspace-wide table/column map (all Unity catalogs) for free. Always reference tables by their FULLY QUALIFIED three-part name exactly as the map lists them (catalog.schema.table); a bare table name resolves against the warehouse's unpredictable current catalog and usually fails with TABLE_OR_VIEW_NOT_FOUND. Tables under the `samples` catalog (and other built-in demo schemas like `tpch`) are DEMO data, NOT the customer's own β€” never answer from them without confirming. READ-ONLY and idempotent β€” the gateway enforces single-statement SELECT validation. db_found_rows is capped by config.limit and a ~25KB size budget (rows are dropped from the end to fit); db_rows_found_count is always the TRUE total. When nothing matches, db_found_rows resolves to no_result (NOT an empty array) β€” db_rows_found_count (0) still completes, so condition on it to branch on absence. A field resolving to empty renders as an empty string in the SQL β€” guard with run_if if that must not match. Requires a databricks connection (list_connections).",docPath:q(Cw),tags:[W.FIELDS,W.NEW],billableOperations:Dw,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Cw,connector:{strategy:`first`,connections:[]},run_if:null,config:{query:``,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!1},db_found_rows:{alias:``,enabled:!0}}}}},jw=`rows:find:postgres@1`,Mw=g(`db_rows_found_count`),Nw=g(`db_found_rows`),Pw=r.object({pipe_id:r.literal(jw),connector:Go(),run_if:x(),config:r.object({query:Uo({label:`SQL query`,info:`A single read-only SELECT statement, resolved per row β€” use {{ field }} for input refs, {{ SECRETS.X }} / {{ CONSTANTS.X }} for secrets/constants. Do not add your own LIMIT for capping; use the row limit below.`,groupPath:`config.general`,sectionKey:`general`,path:`config.query`,rows:8,required:!0,maxLength:2e4}),limit:_s({label:`Row limit`,info:`Maximum number of rows returned in the matching-rows output. The rows-found count is always the true total.`,groupPath:`config.advanced`,sectionKey:`general`,path:`config.limit`,min:1,max:50}),output_fields:R(r.object({[Mw.name]:k({fieldName:Mw.name}),[Nw.name]:k({fieldName:Nw.name})}))})}),Fw={"rows-find-postgres-v1-postgres":{provider:`postgres`,allowManagedConnection:!1,mode:null,credits:null,note:`Querying your own PostgreSQL database is free.`}},Iw=class extends U{pipeId=jw;payload;payloadSchema=Pw;billableOperations=Fw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`postgres`]}estimateBillableOperations(e){return G(e,`rows-find-postgres-v1-postgres`)}getTemplatedFields(){return[this.payload.config.query]}getInputRequirement(){return P_(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return F_(this.getTemplatedFields())}getConstantRequirements(){return I_(this.getTemplatedFields())}getRawOutputFields(){return{[Mw.name]:this.catalogOutput(Mw),[Nw.name]:this.catalogOutput(Nw)}}getConnectionsRequirements(){return[{provider:`postgres`,rateLimitRatio:1,rateLimitOperation:`postgres_query`,allowManagedConnection:!1}]}async getAgentContext(e){return Sw(`postgres`,e)}},Lw=Pw,Rw={pipeId:jw,basePipe:K(jw),label:`Find rows in Postgres`,executionMode:`single`,categories:[`tools`],lifecycle:null,allowedUserConnectionProviders:[`postgres`],managedProviders:[],deprecatedProviders:[],description:`Look up rows in your own PostgreSQL database with a read-only SQL query resolved per row. Outputs the total match count and the matching rows.`,guide:"PostgreSQL dialect; config.query must be a single read-only SELECT, resolved per row via Liquid β€” `{{ field }}` input refs, `{{ SECRETS.X }}` / `{{ CONSTANTS.X }}` supported. Resolved values are interpolated as text, so quote them in the SQL (WHERE email = '{{ email }}'). To discover the schema, draft a payload with a placeholder config.query like \"SELECT 1\" and the chosen connection in connector.connections, then call get_provider_context once β€” it returns the full table/column map for free. READ-ONLY and idempotent β€” the gateway enforces single-statement SELECT validation and a read-only transaction. db_found_rows is capped by config.limit and a ~25KB size budget (rows are dropped from the end to fit); db_rows_found_count is always the TRUE total. When nothing matches, db_found_rows resolves to no_result (NOT an empty array) β€” db_rows_found_count (0) still completes, so condition on it to branch on absence. A field resolving to empty renders as an empty string in the SQL β€” guard with run_if if that must not match. Requires a postgres connection (list_connections).",docPath:q(jw),tags:[W.FIELDS,W.NEW],billableOperations:Fw,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:jw,connector:{strategy:`first`,connections:[]},run_if:null,config:{query:``,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!1},db_found_rows:{alias:``,enabled:!0}}}}},zw=`rows:find:sheet@1`,Bw=g(`sheet_rows_found_count`),Vw=g(`sheet_found_rows`),Hw=g(`sheet_found_row_ids`),Uw=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],Ww={requires:{connection:`pipe0`},enabledIf:Na(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Uw: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`}}},Gw=r.object({pipe_id:r.literal(zw),connector:Go(),run_if:x(),config:r.object({sheet:S({label:`Sheet ID`,info:"The sheet to search (its org-unique slug β€” NOT the display name). Type `@` to insert a field reference for a per-row sheet.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:Ww}),where:Lo({label:`Match conditions`,info:"Conditions on the target sheet's columns. Column names are literal; in the value, type `/` to insert a field reference (e.g. `{{ email }}`).",groupPath:`config.general`,sectionKey:`general`,path:`config.where`,fieldNamePlaceholder:`email`}),limit:_s({label:`Row limit`,info:`Maximum number of rows returned in the matching-rows output. The rows-found count is always the true total.`,groupPath:`config.advanced`,sectionKey:`general`,path:`config.limit`,min:1,max:100}),output_fields:R(r.object({[Bw.name]:k({fieldName:Bw.name}),[Vw.name]:k({fieldName:Vw.name}),[Hw.name]:k({fieldName:Hw.name})}))})}),Kw={"rows-find-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},qw=class extends U{pipeId=zw;payload;payloadSchema=Gw;billableOperations=Kw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`rows-find-sheet-v1-pipe0`)}getTemplatedFields(){return[this.payload.config.sheet,...(this.payload.config.where?.conditions??[]).map(e=>typeof e.value==`string`?e.value:null)]}getInputRequirement(){return P_(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return F_(this.getTemplatedFields())}getConstantRequirements(){return I_(this.getTemplatedFields())}getRawOutputFields(){return{[Bw.name]:this.catalogOutput(Bw),[Vw.name]:this.catalogOutput(Vw),[Hw.name]:this.catalogOutput(Hw)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},Jw=Gw,Yw={pipeId:zw,basePipe:K(zw),label:`Find rows in sheet`,executionMode:`single`,categories:[`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Look up rows in another pipe0 sheet matching a condition block (and/or over eq, neq, gt, gte, lt, lte, contains, matches). Outputs the total match count, the matching rows, and their record IDs.`,guide:'Find rows in another pipe0 sheet. config.sheet is the target sheet\'s org-unique slug (a literal or a `{{ field }}` tag). config.where is a condition block over the TARGET sheet\'s columns: `logic` "and"/"or" combines value conditions; each condition\'s field_name is a LITERAL column name (never templated, NOT validated against the target sheet β€” a wrong name behaves like a null cell), and its value may be a literal or contain `{{ field }}` tags resolved per row. Operators: eq/neq compare as text (a number cell 42 matches the value "42"; neq ALSO matches rows where the column is missing or null; JSON object/array cells effectively never match); gt/gte/lt/lte compare numerically (non-numeric cells never match; a non-numeric condition value fails the row); contains is case-INsensitive substring; matches is case-SENSITIVE regex (invalid pattern fails the row). A `null` value with eq matches missing/null cells. READ-ONLY and idempotent β€” one query per row, the target sheet is never modified. sheet_found_rows is capped by config.limit and a ~25KB size budget (rows are dropped from the end to fit); sheet_rows_found_count is always the TRUE total. When nothing matches, sheet_found_rows and sheet_found_row_ids resolve to no_result (NOT an empty array) β€” sheet_rows_found_count (0) still completes, so condition on it to branch on absence. String condition values that resolve to an empty string fail the row (a blank field must not match everything) β€” guard with run_if. Requires a pipe0 connection (list_connections).',docPath:q(zw),tags:[W.FIELDS],billableOperations:Kw,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:zw,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,where:null,limit:10,output_fields:{sheet_rows_found_count:{alias:``,enabled:!1},sheet_found_rows:{alias:``,enabled:!0},sheet_found_row_ids:{alias:``,enabled:!1}}}}},Xw=`template:fill@1`,Zw=g(`template_output`),Qw=r.object({pipe_id:r.literal(Xw),connector:C(),run_if:x(),config:r.object({template:Uo({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:Z(`template`),groupPath:`config.general`,required:!0}),output_fields:R(r.object({[Zw.name]:k({fieldName:Zw.name})}))})}),$w={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},eT=class extends U{pipeId=Xw;payload;payloadSchema=Qw;billableOperations=$w;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`template-fill-v1-pipe0`)}getInputRequirement(){return P_([this.payload.config.template])}getSecretRequirements(){return F_([this.payload.config.template])}getConstantRequirements(){return I_([this.payload.config.template])}getRawOutputFields(){return{[Zw.name]:this.catalogOutput(Zw)}}getConnectionsRequirements(){return[]}},tT=Qw,nT={pipeId:Xw,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:K(Xw),label:`Fill a text template`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Replaces template tags like {{ name }} with actual values.`,tags:[W.TEXT],docPath:q(Xw),defaultInputRequirement:null,billableOperations:$w,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Xw,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},rT=`website:extract:firecrawl@1`,iT=g(`website_url`),aT=g(`firecrawl_extract_result`),oT=r.object({pipe_id:r.literal(rT),connector:C(),run_if:x(),config:r.object({json_schema:ys({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}),extraction_prompt:ps({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:O({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:O({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:z(r.object({[iT.name]:E({fieldName:iT.name})})),output_fields:R(r.object({[aT.name]:k({fieldName:aT.name})}))})}),sT=e=>H(J(iT,e)),cT={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},lT=class extends U{pipeId=rT;payload;payloadSchema=oT;billableOperations=cT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return G(e,`website-extract-firecrawl-v1-firecrawl`)}getInputRequirement(){return sT(this.payload.config)}getRawOutputFields(){return{[aT.name]:this.catalogOutput(aT)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},uT=oT,dT={pipeId:rT,basePipe:K(rT),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:[W.SCRAPE],docPath:q(rT),billableOperations:cT,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:sT(null),defaultPayload:{pipe_id:rT,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}}}}},fT=`website:extract:parallel@1`,pT=g(`website_url`),mT=g(`parallel_extract_result`),hT=r.object({pipe_id:r.literal(fT),connector:C(),run_if:x(),config:r.object({objective:ps({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:z(r.object({[pT.name]:E({fieldName:pT.name})})),output_fields:R(r.object({[mT.name]:k({fieldName:mT.name})}))})}),gT=e=>H(J(pT,e)),_T={"website-extract-parallel-v1-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.1},mode:`onSuccess`}},vT=class extends U{pipeId=fT;payload;payloadSchema=hT;billableOperations=_T;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`parallel`]}estimateBillableOperations(e){return G(e,`website-extract-parallel-v1-parallel`)}getInputRequirement(){return gT(this.payload.config)}getRawOutputFields(){return{[mT.name]:this.catalogOutput(mT,{isPrimaryOutput:!0})}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:1,rateLimitOperation:`parallel_extract`,allowManagedConnection:!0}]}},yT=hT,bT={pipeId:fT,basePipe:K(fT),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:[W.SCRAPE],docPath:q(fT),billableOperations:_T,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`parallel`],managedProviders:[`parallel`],deprecatedProviders:[],defaultInputRequirement:gT(null),defaultPayload:{pipe_id:fT,run_if:null,connector:null,config:{objective:``,input_fields:{website_url:{alias:``}},output_fields:{parallel_extract_result:{alias:``,enabled:!0}}}}},xT=`website:maplinks:firecrawl@1`,ST={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},CT=g(`website_url`),wT=g(`mapped_links`),TT=r.object({pipe_id:r.literal(xT),connector:C(),run_if:x(),config:r.object({page_limit:_s({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,path:`config.page_limit`,sectionKey:`general`}).nullish(),sitemap:ms({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:fs({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).nullable().default(``),input_fields:z(r.object({[CT.name]:E({fieldName:CT.name})})),output_fields:R(r.object({[wT.name]:k({fieldName:wT.name})}))}).optional()}),ET=e=>H(J(CT,e)),DT=class extends U{pipeId=xT;payload;payloadSchema=TT;billableOperations=ST;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return G(e,`website-maplinks-firecrawl-v1-firecrawl`)}getInputRequirement(){return ET(this.payload.config)}getRawOutputFields(){return{[wT.name]:this.catalogOutput(wT)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},OT=TT,kT={pipeId:xT,basePipe:K(xT),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:[W.SCRAPE],docPath:q(xT),billableOperations:ST,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:ET(null),defaultPayload:{pipe_id:xT,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},AT=`website:scrape:firecrawl@1`,jT=g(`website_url`),MT=g(`website_markdown`),NT=g(`website_html`),PT=g(`website_links`),FT=r.object({pipe_id:r.literal(AT),connector:C(),run_if:x(),config:r.object({scrape_main_only:O({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:z(r.object({[jT.name]:E({fieldName:jT.name})})),output_fields:R(r.object({[MT.name]:k({fieldName:MT.name}),[NT.name]:k({fieldName:NT.name}),[PT.name]:k({fieldName:PT.name})}))}).optional()}),IT=e=>H(J(jT,e)),LT={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},RT=class extends U{pipeId=AT;payload;payloadSchema=FT;billableOperations=LT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return G(e,`website-scrape-firecrawl-v1-firecrawl`)}getInputRequirement(){return IT(this.payload.config)}getRawOutputFields(){return{[MT.name]:this.catalogOutput(MT),[NT.name]:this.catalogOutput(NT),[PT.name]:this.catalogOutput(PT)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},zT=FT,BT={pipeId:AT,basePipe:K(AT),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[W.SCRAPE],docPath:q(AT),billableOperations:LT,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:IT(null),defaultPayload:{pipe_id:AT,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}}}}},VT=`website:scrapelist:firecrawl@1`,HT={"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.`}},UT=g(`urls`),WT=g(`scrape_list_response`),GT=r.object({pipe_id:r.literal(VT),connector:C(),run_if:x(),config:r.object({scrape_main_only:O({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:gs({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`}).default([]),input_fields:z(r.object({[UT.name]:E({fieldName:UT.name})})),output_fields:R(r.object({[WT.name]:k({fieldName:WT.name})}))}).optional()}),KT=e=>H(J(UT,e)),qT=class extends U{pipeId=VT;payload;payloadSchema=GT;billableOperations=HT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return[{billableOperation:`website-scrapelist-firecrawl-v1-firecrawl`,quantity:e.count*5}]}getInputRequirement(){return KT(this.payload.config)}getRawOutputFields(){return{[WT.name]:this.catalogOutput(WT)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},JT=GT,YT={pipeId:VT,basePipe:K(VT),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[W.SCRAPE],docPath:q(VT),billableOperations:HT,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:KT(null),defaultPayload:{pipe_id:VT,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}}}}},XT=[`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:crustdata@3`,`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`,`posts:content:crustdata@1`],ZT=r.enum(XT);function QT(e,t){let n={name:e,config:t};return Gs.hashObject(n)}var $T=class{estimateBillableOperations(e){let{cost:t,billableOperation:n}=this.billing;return t.allowManagedConnection?[{billableOperation:n,quantity:t.mode===`per_result`?e.count:t.mode===`per_page`?e.count/100:1}]:[]}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}getDedupConfig(){return{match:`any`,fields:[]}}async getAgentContext(e){return null}getHashKey(){return QT(this.searchId,this.payload)}};function eE(e){return e.split(`@`)[0]}function tE(e){return`/docs/search-catalog/${eE(e)}/${e.split(`@`)[1]}`}const nE=`companies:entitysearch:parallel@1`,rE=g(`company_name`),iE=g(`company_domain`),aE=g(`company_description`),oE=g(`company_profile_url`),sE=g(`parallel_company_entity_match`),cE=r.object({search_id:r.literal(nE),connector:Jo(),config:r.object({objective:ks({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:L({path:`config.limit`,min:5,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of entities to return (5–1000).`}).default(100),output_fields:R(r.object({[rE.name]:N({fieldName:rE.name}),[iE.name]:N({fieldName:iE.name}),[aE.name]:N({fieldName:aE.name}),[oE.name]:N({fieldName:oE.name}),[sE.name]:N({fieldName:sE.name})}))})}),lE={match:`any`,fields:[{fieldName:`company_profile_url`}]},uE={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.`},dE=`companies-entitysearch-parallel-v1`,fE=class extends $T{billing={billableOperation:dE,cost:uE};searchId=nE;schema=cE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[rE.name]:this.catalogOutput(rE),[iE.name]:this.catalogOutput(iE),[aE.name]:this.catalogOutput(aE),[oE.name]:this.catalogOutput(oE),[sE.name]:this.catalogOutput(sE)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return lE}},pE=cE,mE={searchId:nE,billableOperation:dE,baseSearch:eE(nE),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:[W.COMPANY_PROFILES],docPath:tE(nE),cost:uE,provider:`parallel`,defaultPayload:{search_id:nE,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 hE(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 gE=`companies:profiles:amplemarket@2`,_E=g(`company_name`),vE=g(`company_domain`),yE=g(`company_description`),bE=g(`company_profile_url`),xE=g(`amplemarket_company_match`),SE=r.object({search_id:r.literal(gE),connector:Jo(),config:r.object({limit:L({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`}).default(100),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:R(r.object({[_E.name]:N({fieldName:_E.name}),[vE.name]:N({fieldName:vE.name}),[yE.name]:N({fieldName:yE.name}),[bE.name]:N({fieldName:bE.name}),[xE.name]:N({fieldName:xE.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Z(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),company_domains:j({sectionKey:`config.filters`,path:`config.filters.company_domains`,label:`Company domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),company_profile_urls:j({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),company_types:P({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}).default([]),investors:F({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:h(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Z(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}).default([]),company_industries:M({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:Re(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),customer_types:P({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`}).default([]),keywords:j({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),revenue_groups:P({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}).default([]),founded_year:Ss({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,description:``}).default({min:null,max:null}),open_position_titles:A({path:`config.filters.open_position_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Z(`title`),suggestionsDef:h(`titles`)}),headcount:P({sectionKey:`config.filters`,path:`config.filters.headcount`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Company sizes`,required:!1,description:``,groupPath:`config.filters.company_size`}).default([]),headcount_growth_l6m_in_percent:Ss({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}).default({min:null,max:null})}).check(e=>{hE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),CE={match:`any`,fields:[{fieldName:`company_profile_url`}]},wE={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},TE=`companies-profiles-amplemarket-v2`,EE=class extends $T{billing={billableOperation:TE,cost:wE};searchId=gE;schema=SE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[_E.name]:this.catalogOutput(_E),[vE.name]:this.catalogOutput(vE),[yE.name]:this.catalogOutput(yE),[bE.name]:this.catalogOutput(bE),[xE.name]:this.catalogOutput(xE)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return CE}},DE=SE,OE={searchId:gE,billableOperation:TE,baseSearch:eE(`companies:profiles:amplemarket@2`),label:`Company search`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],docPath:tE(gE),cost:wE,provider:`amplemarket`,defaultPayload:{search_id:gE,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:[]}}}}},kE=`companies:profiles:crustdata@2`,AE=g(`company_name`),jE=g(`company_domain`),ME=g(`company_description`),NE=g(`company_profile_url`),PE=g(`crustdata_company_match`),FE=r.object({search_id:r.literal(kE),connector:Jo(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}).default(100),cursor:Os({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[AE.name]:N({fieldName:AE.name}),[jE.name]:N({fieldName:jE.name}),[ME.name]:N({fieldName:ME.name}),[NE.name]:N({fieldName:NE.name}),[PE.name]:N({fieldName:PE.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Z(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}).default({include:[],exclude:[]}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}).default({include:[],exclude:[]}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.tracxn_investors.crustdata`)}).default({include:[],exclude:[]}),company_types:M({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),linkedin_categories:I({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`}).default({include:[],exclude:[]}),headcount:M({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}).default({include:[],exclude:[]}),linkedin_headcount_ranges:P({path:`config.filters.linkedin_headcount_ranges`,sectionKey:`config.filters`,label:`Size bracket`,description:`Headcount range a company self-reports on its LinkedIn page.`,options:m(`crustdata.linkedin_headcount_ranges`),placeholder:`2-10`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),headcount_growth_l6m_in_percent:P({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),revenue_in_usd:ws({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:M({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}).default({include:[],exclude:[]}),last_funding_amount:ws({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:P({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}).default([]),follower_growth_l6m_in_percent:P({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:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}).default([]),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Z(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}).default({include:[],exclude:[]}),competitor_domains:j({path:`config.filters.competitor_domains`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domain`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),company_domains:j({path:`config.filters.company_domains`,sectionKey:`config.filters`,maxItems:400,label:`Company domain`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.web_presence`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),company_profile_urls:j({path:`config.filters.company_profile_urls`,sectionKey:`config.filters`,maxItems:400,label:`Company LinkedIn URL`,description:``,placeholder:`https://linkedin.com/company/...`,groupPath:`config.filters.web_presence`}).default({include:[],exclude:[]})}).check(e=>{hE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),IE={match:`any`,fields:[{fieldName:`company_profile_url`}]},LE={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},RE=`companies-profiles-crustdata-v2`,zE=class extends $T{billing={billableOperation:RE,cost:LE};searchId=kE;schema=FE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[AE.name]:this.catalogOutput(AE),[jE.name]:this.catalogOutput(jE),[ME.name]:this.catalogOutput(ME),[NE.name]:this.catalogOutput(NE),[PE.name]:this.catalogOutput(PE)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return IE}},BE=FE,VE={searchId:kE,billableOperation:RE,baseSearch:eE(`companies:profiles:crustdata@2`),label:`Company search`,categories:[`companies`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],docPath:tE(kE),cost:LE,provider:`crustdata`,defaultPayload:{search_id:kE,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:[]},linkedin_headcount_ranges:[],hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[],exclude:[]},company_domains:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]}}}}},HE=`query:databricks@1`,UE=r.object({search_id:r.literal(HE),connector:qo(),config:r.object({query:ks({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:L({path:`config.limit`,min:1,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of rows per page`}).default(100),page_number:L({path:`config.page_number`,min:1,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page`,description:`1-based page index (offset pagination)`}).nullable().default(1)})}),WE={allowManagedConnection:!1,mode:null,credits:null,info:`Querying your own Databricks SQL warehouse is free.`},GE=`data-query-databricks-v1`,KE=class extends $T{billing={billableOperation:GE,cost:WE};searchId=HE;schema=UE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`databricks`,rateLimitOperation:`databricks_query`,rateLimitRatio:1,allowManagedConnection:!1}]}async getAgentContext(e){return Sw(`databricks`,e)}},qE=UE,JE={searchId:HE,billableOperation:GE,baseSearch:eE(HE),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.`,guide:"Databricks SQL dialect; config.query must be a single read-only statement (no self-managed LIMIT/OFFSET β€” pagination is wrapped automatically). To discover the schema, draft a payload with a placeholder config.query like \"SELECT 1\" and the chosen connection in connector.connections, then call get_provider_context once β€” it returns the workspace-wide table/column map (all Unity catalogs) for free. Always reference tables by their FULLY QUALIFIED three-part name exactly as the map lists them (catalog.schema.table, e.g. samples.accuweather.forecast_daily); a bare table name resolves against the warehouse's unpredictable current catalog and usually fails with TABLE_OR_VIEW_NOT_FOUND. Sample actual rows (also free) with run_search_oneshot, then write the real config.query. Tables under the `samples` catalog (and Databricks' other built-in example schemas like `tpch` and `tpcds_*`) are DEMO data shipped to every workspace, NOT the customer's own data. If the user asks about their data and the only match is under `samples`/a demo schema β€” or the map shows only demo tables β€” the connection isn't pointed at their catalog: confirm the intended table with the user before querying, and never answer their question from a demo table.",tags:[W.FIELDS,W.NEW],docPath:tE(HE),cost:WE,provider:`databricks`,defaultPayload:{search_id:HE,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},YE=`query:postgres@1`,XE=r.object({search_id:r.literal(YE),connector:qo(),config:r.object({query:ks({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:L({path:`config.limit`,min:1,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of rows per page`}).default(100),page_number:L({path:`config.page_number`,min:1,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page`,description:`1-based page index (offset pagination)`}).nullable().default(1)})}),ZE={allowManagedConnection:!1,mode:null,credits:null,info:`Querying your own PostgreSQL database is free.`},QE=`data-query-postgres-v1`,$E=class extends $T{billing={billableOperation:QE,cost:ZE};searchId=YE;schema=XE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`postgres`,rateLimitOperation:`postgres_query`,rateLimitRatio:1,allowManagedConnection:!1}]}async getAgentContext(e){return Sw(`postgres`,e)}},eD=XE,tD={searchId:YE,billableOperation:QE,baseSearch:eE(YE),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.`,guide:`PostgreSQL dialect; config.query must be a single read-only SELECT (no self-managed LIMIT/OFFSET β€” pagination is wrapped automatically). To discover the schema, draft a payload with a placeholder config.query like "SELECT 1" and the chosen connection in connector.connections, then call get_provider_context once β€” it returns the full table/column map for free. Sample actual rows (also free) with run_search_oneshot, then write the real config.query.`,tags:[W.FIELDS,W.NEW],docPath:tE(YE),cost:ZE,provider:`postgres`,defaultPayload:{search_id:YE,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},nD=`companies:profiles:amplemarket@1`,rD=g(`company_name`),iD=g(`company_website_url`),aD=g(`company_description`),oD=g(`company_profile_url`),sD=g(`amplemarket_company_match`),cD=r.object({search_id:r.literal(nD),connector:Di.nullable().optional(),config:r.object({limit:L({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:R(r.object({[rD.name]:N({fieldName:rD.name}),[iD.name]:N({fieldName:iD.name}),[aD.name]:N({fieldName:aD.name}),[oD.name]:N({fieldName:oD.name}),[sD.name]:N({fieldName:sD.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Z(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),company_website_urls:j({sectionKey:`config.filters`,path:`config.filters.company_website_urls`,label:`Company domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),company_profile_urls:j({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),company_types:P({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}).default([]),investors:F({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:h(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Z(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}).default([]),company_industries:M({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:Re(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),customer_types:P({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`}).default([]),keywords:j({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),revenue_groups:P({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}).default([]),founded_year:Ss({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,description:``}).default({min:null,max:null}),open_positions_titles:A({path:`config.filters.open_positions_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Z(`title`),suggestionsDef:h(`titles`)}),headcount:P({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}).default([]),headcount_growth_last_6_months_in_percent:Ss({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}).default({min:null,max:null})}).check(e=>{hE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),lD={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},uD=`companies-profiles-amplemarket-v1`,dD=class extends $T{billing={billableOperation:uD,cost:lD};searchId=nD;schema=cD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[rD.name]:this.catalogOutput(rD),[iD.name]:this.catalogOutput(iD),[aD.name]:this.catalogOutput(aD),[oD.name]:this.catalogOutput(oD),[sD.name]:this.catalogOutput(sD)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},fD=cD,pD={searchId:nD,billableOperation:uD,baseSearch:eE(`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:[W.COMPANY_PROFILES],docPath:tE(nD),cost:lD,provider:`amplemarket`,defaultPayload:{search_id:nD,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:[]}}}}},mD=`companies:profiles:crustdata@1`,hD=g(`company_name`),gD=g(`company_website_url`),_D=g(`company_description`),vD=g(`company_profile_url`),yD=g(`crustdata_company_match`),bD=r.object({search_id:r.literal(mD),connector:Di.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:Os({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[hD.name]:N({fieldName:hD.name}),[gD.name]:N({fieldName:hD.name}),[_D.name]:N({fieldName:_D.name}),[vD.name]:N({fieldName:vD.name}),[yD.name]:N({fieldName:yD.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Z(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}).default({include:[],exclude:[]}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}).default({include:[],exclude:[]}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.tracxn_investors.crustdata`)}).default({include:[],exclude:[]}),company_types:M({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),linkedin_categories:I({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`}).default({include:[],exclude:[]}),headcount:M({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}).default({include:[],exclude:[]}),headcount_growth_last_6m_in_percent:P({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),revenue_in_usd:ws({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:M({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}).default({include:[],exclude:[]}),last_funding_amount:ws({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:P({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}).default([]),follower_growth_last_6m_in_percent:P({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:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}).default([]),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Z(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}).default({include:[],exclude:[]}),competitor_websites:j({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]})}).check(e=>{hE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),xD={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},SD=`companies-profiles-crustdata-v1`,CD=class extends $T{billing={billableOperation:SD,cost:xD};searchId=mD;schema=bD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[hD.name]:this.catalogOutput(hD),[gD.name]:this.catalogOutput(gD),[_D.name]:this.catalogOutput(_D),[vD.name]:this.catalogOutput(vD),[yD.name]:this.catalogOutput(yD)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},wD=bD,TD={searchId:mD,billableOperation:SD,baseSearch:eE(`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:[W.COMPANY_PROFILES],docPath:tE(mD),cost:xD,provider:`crustdata`,defaultPayload:{search_id:mD,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{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:[]}}}}},ED=`people:profiles:amplemarket@1`,DD=g(`name`),OD=g(`company_website_url`),kD=g(`profile_url`),AD=g(`job_title`),jD=g(`amplemarket_person_match`),MD=r.object({search_id:r.literal(ED),connector:Di.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:R(r.object({[DD.name]:N({fieldName:DD.name}),[OD.name]:N({fieldName:OD.name}),[kD.name]:N({fieldName:kD.name}),[AD.name]:N({fieldName:AD.name}),[jD.name]:N({fieldName:jD.name})})),filters:r.object({person_names:A({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:I({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:Z(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}),current_seniority_levels:P({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:Z(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_departments:P({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:Z(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_job_functions:P({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:Z(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_employer_locations:I({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:h(`locations`),groupPath:`config.filters.current_company`,placeholder:Z(`location`)}).default({include:[],exclude:[]}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`company_name`),suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),current_employer_website_urls:j({path:`config.filters.current_employer_website_urls`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:Z(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),current_employer_linkedin_industries:P({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`industry`),required:!1,options:m(`linkedin.industries`)}).default([]),current_employer_estimated_revenue:P({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:m(`amplemarket.company_revenue`)}).default([]),current_employer_founded_year:Ss({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,description:``}).default({min:null,max:null}),current_employer_investors:A({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Z(`investor`),description:``}),current_employer_open_positions_titles:A({path:`config.filters.current_employer_open_positions_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`title`),suggestionsDef:h(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]})}).check(e=>{hE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),ND={allowManagedConnection:!0,mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},PD=`people-profiles-amplemarket-v1`,FD=class extends $T{billing={billableOperation:PD,cost:ND};searchId=ED;schema=MD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[DD.name]:this.catalogOutput(DD),[OD.name]:this.catalogOutput(OD),[kD.name]:this.catalogOutput(kD),[AD.name]:this.catalogOutput(AD),[jD.name]:this.catalogOutput(jD)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},ID=MD,LD={searchId:ED,billableOperation:PD,baseSearch:eE(`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:[W.PEOPLE_PROFILES],docPath:tE(ED),cost:ND,provider:`amplemarket`,defaultPayload:{search_id:ED,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:[]}}}},RD=`people:profiles:crustdata@1`,zD=g(`name`),BD=g(`company_website_url`),VD=g(`profile_url`),HD=g(`job_title`),UD=g(`crustdata_person_match`),WD=r.object({search_id:r.literal(RD),connector:Di.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:Os({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[zD.name]:N({fieldName:zD.name}),[BD.name]:N({fieldName:BD.name}),[VD.name]:N({fieldName:VD.name}),[HD.name]:N({fieldName:HD.name}),[UD.name]:N({fieldName:UD.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Z(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Z(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),current_employers:j({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),current_employers_website_urls:j({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Z(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),current_employers_linkedin_industries:I({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Z(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),years_at_current_company:P({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:m(`crustdata.years_of_experience`)}).default([]),previous_employers_website_urls:j({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Z(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Z(`seniority`),disableSearch:!0,optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),previous_employers:j({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Z(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),previous_employers_linkedin_industries:I({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Z(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),profile_headline_keywords:j({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`headline_keywords`)}).default({include:[],exclude:[]}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`profile_keywords`)}).default({include:[],exclude:[]}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Z(`languages`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Z(`languages_1`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Z(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default({include:[],exclude:[]}),years_of_experience:P({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Z(`seniority`),optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`certification`),description:``}).default({include:[],exclude:[]}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`honor`),description:``}).default({include:[],exclude:[]}),recently_changed_jobs:Ds({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:I({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Z(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}).default({include:[],exclude:[]}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Z(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}).default({include:[],exclude:[]}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Z(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)}).default({include:[],exclude:[]})}).check(e=>{hE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),GD={allowManagedConnection:!0,mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},KD=`people-profiles-crustdata-v1`,qD=class extends $T{billing={billableOperation:KD,cost:GD};searchId=RD;schema=WD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[zD.name]:this.catalogOutput(zD),[BD.name]:this.catalogOutput(BD),[VD.name]:this.catalogOutput(VD),[HD.name]:this.catalogOutput(HD),[UD.name]:this.catalogOutput(UD)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},JD=WD,YD={searchId:RD,billableOperation:KD,baseSearch:eE(`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:[W.PEOPLE_PROFILES],docPath:tE(RD),cost:GD,provider:`crustdata`,defaultPayload:{search_id:RD,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:[]}}}}},XD=`people:entitysearch:parallel@1`,ZD=g(`name`),QD=g(`job_title`),$D=g(`profile_url`),eO=g(`parallel_person_entity_match`),tO=r.object({search_id:r.literal(XD),connector:Jo(),config:r.object({objective:ks({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:L({path:`config.limit`,min:5,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of entities to return (5–1000).`}).default(100),output_fields:R(r.object({[ZD.name]:N({fieldName:ZD.name}),[QD.name]:N({fieldName:QD.name}),[$D.name]:N({fieldName:$D.name}),[eO.name]:N({fieldName:eO.name})}))})}),nO={match:`any`,fields:[{fieldName:`profile_url`}]},rO={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.`},iO=`people-entitysearch-parallel-v1`,aO=class extends $T{billing={billableOperation:iO,cost:rO};searchId=XD;schema=tO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[ZD.name]:this.catalogOutput(ZD),[QD.name]:this.catalogOutput(QD),[$D.name]:this.catalogOutput($D),[eO.name]:this.catalogOutput(eO)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return nO}},oO=tO,sO={searchId:XD,billableOperation:iO,baseSearch:eE(XD),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:[W.PEOPLE_PROFILES],docPath:tE(XD),cost:rO,provider:`parallel`,defaultPayload:{search_id:XD,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:``}}}}},cO=`people:eventguests:luma@1`,lO=g(`name`),uO=g(`email`),dO=g(`luma_id`),fO=g(`registered_at`),pO=g(`luma_event_guest_match`),mO=[{label:`Sample Meetup β€” Berlin`,value:`evt-sandbox-1`},{label:`Sample Conference β€” SF`,value:`evt-sandbox-2`}],hO={requires:{connection:`luma`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return mO;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}},gO=r.object({search_id:r.literal(cO),connector:qo(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of guests per page`}).default(100),cursor:Os({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[lO.name]:N({fieldName:lO.name}),[uO.name]:N({fieldName:uO.name}),[dO.name]:N({fieldName:dO.name}),[fO.name]:N({fieldName:fO.name}),[pO.name]:N({fieldName:pO.name})})),filters:r.object({event_id:js({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:Na(`luma`),optionsDef:hO}),approval_status:As({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`}]})})})}),_O={match:`any`,fields:[{fieldName:`luma_id`}]},vO={allowManagedConnection:!0,mode:`per_page`,credits:{default:1},info:`1 page = up to 100 guests.`},yO=`people-eventguests-luma-v1`,bO=class extends $T{billing={billableOperation:yO,cost:vO};searchId=cO;schema=gO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[lO.name]:this.catalogOutput(lO),[uO.name]:this.catalogOutput(uO),[dO.name]:this.catalogOutput(dO),[fO.name]:this.catalogOutput(fO),[pO.name]:this.catalogOutput(pO)}}getConnectionsRequirements(){return[{provider:`luma`,rateLimitOperation:`luma_get_guests`,rateLimitRatio:1,allowManagedConnection:!1}]}getDedupConfig(){return _O}},xO=gO,SO={searchId:cO,billableOperation:yO,baseSearch:eE(cO),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:[W.PEOPLE_PROFILES,W.EVENTS,W.NEW],docPath:tE(cO),cost:vO,provider:`luma`,defaultPayload:{search_id:cO,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:``}}}},CO=`people:profiles:amplemarket@2`,wO=g(`name`),TO=g(`company_domain`),EO=g(`profile_url`),DO=g(`job_title`),OO=g(`amplemarket_person_match`),kO=r.object({search_id:r.literal(CO),connector:Jo(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,label:`Page size`,sectionKey:`pagination`,description:`Max number of search results per page`}).default(50),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:R(r.object({[wO.name]:N({fieldName:wO.name}),[TO.name]:N({fieldName:TO.name}),[EO.name]:N({fieldName:EO.name}),[DO.name]:N({fieldName:DO.name}),[OO.name]:N({fieldName:OO.name})})),filters:r.object({person_names:A({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:I({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:Z(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}),current_seniority_levels:P({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:Z(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_departments:P({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:Z(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_job_functions:P({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:Z(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_employer_locations:I({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:h(`locations`),groupPath:`config.filters.current_company`,placeholder:Z(`location`)}).default({include:[],exclude:[]}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`company_name`),suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),current_employer_domains:j({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:Z(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),current_employer_linkedin_industries:P({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`industry`),required:!1,options:m(`linkedin.industries`)}).default([]),current_employer_estimated_revenue:P({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:m(`amplemarket.company_revenue`)}).default([]),current_employer_founded_year:Ss({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,description:``}).default({min:null,max:null}),current_employer_investors:A({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Z(`investor`),description:``}),current_employer_open_position_titles:A({path:`config.filters.current_employer_open_position_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`title`),suggestionsDef:h(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]})}).check(e=>{hE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),AO={match:`any`,fields:[{fieldName:`profile_url`}]},jO={allowManagedConnection:!0,mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},MO=`people-profiles-amplemarket-v2`,NO=class extends $T{billing={billableOperation:MO,cost:jO};searchId=CO;schema=kO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[wO.name]:this.catalogOutput(wO),[TO.name]:this.catalogOutput(TO),[EO.name]:this.catalogOutput(EO),[DO.name]:this.catalogOutput(DO),[OO.name]:this.catalogOutput(OO)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return AO}},PO=kO,FO={searchId:CO,billableOperation:MO,baseSearch:eE(`people:profiles:amplemarket@2`),paginationType:`page_number`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],docPath:tE(CO),cost:jO,provider:`amplemarket`,defaultPayload:{search_id:CO,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:[]}}}},IO=`people:profiles:crustdata@2`,LO=g(`name`),RO=g(`company_domain`),zO=g(`profile_url`),BO=g(`job_title`),VO=g(`crustdata_person_match`),HO=r.object({search_id:r.literal(IO),connector:Jo(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page size`,description:`Max number of search results per page`}).default(100),cursor:Os({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[LO.name]:N({fieldName:LO.name}),[RO.name]:N({fieldName:RO.name}),[zO.name]:N({fieldName:zO.name}),[BO.name]:N({fieldName:BO.name}),[VO.name]:N({fieldName:VO.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Z(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Z(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),current_employer_domains:j({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Z(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),current_employer_industries:I({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Z(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),years_at_current_company:P({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:m(`crustdata.years_of_experience`)}).default([]),previous_employer_domains:j({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Z(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Z(`seniority`),disableSearch:!0,optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),previous_employer_names:j({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Z(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),previous_employer_industries:I({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Z(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),profile_headline_keywords:j({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`headline_keywords`)}).default({include:[],exclude:[]}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`profile_keywords`)}).default({include:[],exclude:[]}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Z(`languages`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Z(`languages_1`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Z(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default({include:[],exclude:[]}),years_of_experience:P({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Z(`seniority`),optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`certification`),description:``}).default({include:[],exclude:[]}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`honor`),description:``}).default({include:[],exclude:[]}),recently_changed_jobs:Ds({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:I({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Z(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}).default({include:[],exclude:[]}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Z(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}).default({include:[],exclude:[]}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Z(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)}).default({include:[],exclude:[]})}).check(e=>{hE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),UO={match:`any`,fields:[{fieldName:`profile_url`}]},WO={allowManagedConnection:!0,mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},GO=`people-profiles-crustdata-v2`,KO=class extends $T{billing={billableOperation:GO,cost:WO};searchId=IO;schema=HO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[LO.name]:this.catalogOutput(LO),[RO.name]:this.catalogOutput(RO),[zO.name]:this.catalogOutput(zO),[BO.name]:this.catalogOutput(BO),[VO.name]:this.catalogOutput(VO)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return UO}},qO=HO,JO={searchId:IO,billableOperation:GO,baseSearch:eE(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],docPath:tE(IO),cost:WO,provider:`crustdata`,defaultPayload:{search_id:IO,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:[]}}}}},YO=`people:profiles:crustdata@3`,XO=g(`name`),ZO=g(`profile_url`),QO=g(`person_profile_match`),$O=r.object({search_id:r.literal(YO),connector:Jo(),config:r.object({limit:L({path:`config.limit`,min:1,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page size`,description:`Max number of search results per page`}).default(100),cursor:Os({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[XO.name]:N({fieldName:XO.name}),[ZO.name]:N({fieldName:ZO.name}),[QO.name]:N({fieldName:QO.name})})),filters:r.object({recently_changed_jobs:Ds({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`certification`),description:``,suggestionsDef:h(`person.certifications.crustdata`)}).default({include:[],exclude:[]}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`honor`),description:``,suggestionsDef:h(`person.honors.crustdata`)}).default({include:[],exclude:[]}),current_employer_domains:j({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Z(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),current_employer_headcount_brackets:P({path:`config.filters.current_employer_headcount_brackets`,sectionKey:`config.filters`,label:`Headcount`,description:``,placeholder:`1-10`,disableSearch:!0,required:!1,options:m(`crustdata.company_size`),groupPath:`config.filters.current_employer`}).default([]),current_employer_industries:I({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Z(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),current_employment_job_functions:P({path:`config.filters.current_employment_job_functions`,sectionKey:`config.filters`,label:`Function`,groupPath:`config.filters.current_employer`,placeholder:Z(`job_function`),description:``,disableSearch:!0,required:!1,options:m(`employment_function.crustdata`)}).default([]),current_employment_job_titles:j({path:`config.filters.current_employment_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Z(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),current_employment_seniority_levels:P({path:`config.filters.current_employment_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Z(`seniority`),options:Re(`crustdata.person_seniority`).options,required:!1,description:``,groupPath:`config.filters.current_employer`}).default([]),current_employment_tenure_brackets:P({path:`config.filters.current_employment_tenure_brackets`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:m(`crustdata.years_of_experience`)}).default([]),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree`,placeholder:Z(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}).default({include:[],exclude:[]}),fields_of_study:I({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Field of study`,placeholder:Z(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}).default({include:[],exclude:[]}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),previous_employer_domains:j({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Z(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),previous_employer_headcount_brackets:P({path:`config.filters.previous_employer_headcount_brackets`,sectionKey:`config.filters`,label:`Previous employer headcount`,description:``,placeholder:`1-10`,disableSearch:!0,required:!1,options:m(`crustdata.company_size`),groupPath:`config.filters.experience`}).default([]),previous_employer_industries:I({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industry`,placeholder:Z(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),previous_employer_names:j({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer name`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),previous_employment_job_functions:P({path:`config.filters.previous_employment_job_functions`,sectionKey:`config.filters`,label:`Previous function`,groupPath:`config.filters.experience`,placeholder:Z(`job_function`),description:``,disableSearch:!0,required:!1,options:m(`employment_function.crustdata`)}).default([]),previous_employment_job_titles:j({path:`config.filters.previous_employment_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Z(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),previous_employment_seniority_levels:P({path:`config.filters.previous_employment_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Z(`seniority`),disableSearch:!0,options:Re(`crustdata.person_seniority`).options,required:!1,description:``,groupPath:`config.filters.experience`}).default([]),previous_employment_tenure_brackets:P({path:`config.filters.previous_employment_tenure_brackets`,sectionKey:`config.filters`,label:`Years at previous company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,options:m(`crustdata.years_of_experience`)}).default([]),total_years_of_experience_brackets:P({path:`config.filters.total_years_of_experience_brackets`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Z(`languages_1`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Z(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),about_section_keywords:j({path:`config.filters.about_section_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`profile_keywords`)}).default({include:[],exclude:[]}),profile_headline_keywords:j({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`headline_keywords`)}).default({include:[],exclude:[]}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Z(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default({include:[],exclude:[]})}).check(e=>{hE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),ek={match:`any`,fields:[{fieldName:`profile_url`}]},tk={allowManagedConnection:!0,mode:`per_result`,credits:{default:.15,level1:{credits:.07,weight:10}},info:`1 page = 100 records; 200 results = 2 pages`},nk=`people-profiles-crustdata-v3`,rk=class extends $T{billing={billableOperation:nk,cost:tk};searchId=YO;schema=$O;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[XO.name]:this.catalogOutput(XO),[ZO.name]:this.catalogOutput(ZO),[QO.name]:this.catalogOutput(QO)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return ek}},ik=$O,ak={searchId:YO,billableOperation:nk,baseSearch:eE(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],docPath:tE(YO),cost:tk,provider:`crustdata`,defaultPayload:{search_id:YO,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},person_profile_match:{enabled:!0,alias:``}},filters:{recently_changed_jobs:null,certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employer_domains:{include:[],exclude:[]},current_employer_headcount_brackets:[],current_employer_industries:{include:[],exclude:[]},current_employer_names:{include:[],exclude:[]},current_employment_job_functions:[],current_employment_job_titles:{include:[],exclude:[]},current_employment_seniority_levels:[],current_employment_tenure_brackets:[],current_school_names:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},school_names:{include:[],exclude:[]},previous_employer_domains:{include:[],exclude:[]},previous_employer_headcount_brackets:[],previous_employer_industries:{include:[],exclude:[]},previous_employer_names:{include:[],exclude:[]},previous_employment_job_functions:[],previous_employment_job_titles:{include:[],exclude:[]},previous_employment_seniority_levels:[],previous_employment_tenure_brackets:[],total_years_of_experience_brackets:[],languages:{include:[],exclude:[]},locations:{include:[],exclude:[]},about_section_keywords:{include:[],exclude:[]},profile_headline_keywords:{include:[],exclude:[]},skills:{include:[],exclude:[]}}}}},ok=`posts:content:crustdata@1`,sk=g(`post_match`),ck=g(`post_text`),lk=g(`post_id`),uk=r.object({search_id:r.literal(ok),connector:Jo(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page size`,description:`Max number of search results per page`}).default(100),output_fields:R(r.object({[lk.name]:N({fieldName:lk.name}),[sk.name]:N({fieldName:sk.name}),[ck.name]:N({fieldName:ck.name})})),filters:r.object({keywords:A({path:`config.filters.keywords`,sectionKey:`config.filters`,label:`Search keywords`,groupPath:`config.filters.general`,maxItems:6,placeholder:Z(`profile_keywords`),description:``}).default([]),keyword_operator:As({path:`config.filters.keyword_operator`,sectionKey:`config.filters`,label:`Keyword operator`,groupPath:`config.filters.general`,options:[{value:`OR`,label:`Any keyword (OR)`},{value:`AND`,label:`All keywords (AND)`}],required:!0,defaultValue:`OR`,description:`Post must match any or all keywords.`}).default(`OR`),date_posted:As({path:`config.filters.date_posted`,sectionKey:`config.filters`,label:`Date posted`,groupPath:`config.filters.general`,options:Re(`crustdata.post_date_posted`).options,placeholder:`Past 24h, past week, ...`,required:!1,defaultValue:``,description:`Only return posts published within this recency window.`}).default(``),content_types:P({path:`config.filters.content_types`,sectionKey:`config.filters`,label:`Content type`,groupPath:`config.filters.general`,options:m(`crustdata.post_content_type`),disableSearch:!0,required:!1,placeholder:`Photos, jobs, ...`,description:``}).default([]),author_industries:F({path:`config.filters.author_industries`,sectionKey:`config.filters`,label:`Author industry`,groupPath:`config.filters.author`,optionsDef:h(`linkedin_industries.crustdata`),disableSearch:!1,required:!1,maxItems:100,placeholder:Z(`industry`),description:`Only return posts whose author works in one of these industries.`}).default([]),author_company_profile_url:A({path:`config.filters.author_company_profile_url`,sectionKey:`config.filters`,label:`Author company profile URL`,groupPath:`config.filters.author`,maxItems:50,placeholder:`https://linkedin.com/company/..., ...`,description:`Only return posts whose author currently works at these companies (by LinkedIn profile URL).`}).default([]),author_title:A({path:`config.filters.author_title`,sectionKey:`config.filters`,label:`Author title`,groupPath:`config.filters.author`,maxItems:50,suggestionsDef:h(`titles`),placeholder:Z(`title`),description:`Only return posts whose author holds one of these titles.`}).default([]),author_profile_url:A({path:`config.filters.author_profile_url`,sectionKey:`config.filters`,label:`Author profile URL`,groupPath:`config.filters.author`,maxItems:50,placeholder:`https://linkedin.com/in/..., ...`,description:`Only return posts authored by these people (by LinkedIn profile URL).`}).default([]),authoring_company_profile_url:A({path:`config.filters.authoring_company_profile_url`,sectionKey:`config.filters`,label:`Authoring company profile URL`,groupPath:`config.filters.author`,maxItems:50,placeholder:`https://linkedin.com/company/..., ...`,description:`Only return posts authored by these companies (by LinkedIn profile URL).`}).default([]),companies_mentioned_in_post:A({path:`config.filters.companies_mentioned_in_post`,sectionKey:`config.filters`,label:`Companies mentioned in post`,groupPath:`config.filters.mentions`,maxItems:50,placeholder:`https://linkedin.com/company/..., ...`,description:`Only return posts that mention these companies (by LinkedIn profile URL).`}).default([]),people_mentioned_in_post:A({path:`config.filters.people_mentioned_in_post`,sectionKey:`config.filters`,label:`People mentioned in post`,groupPath:`config.filters.mentions`,maxItems:50,placeholder:`https://linkedin.com/in/..., ...`,description:`Only return posts that mention these people (by LinkedIn profile URL).`}).default([])}).check(e=>{let t=e.value,n=t.keywords.some(e=>e.trim()!==``),r=[t.author_industries,t.author_company_profile_url,t.author_title,t.author_profile_url,t.authoring_company_profile_url,t.companies_mentioned_in_post,t.people_mentioned_in_post].some(e=>e.length>0);!n&&!r&&e.issues.push({code:`custom`,message:`Provide a keyword or at least one filter.`,input:e.value,path:[`keywords`]});let i=t.author_industries.length>0||t.author_company_profile_url.length>0||t.author_title.length>0||t.author_profile_url.length>0;t.authoring_company_profile_url.length>0&&i&&e.issues.push({code:`custom`,message:`Authoring company profile URL can't be combined with author profile URL, company name, title, or industry filters.`,input:e.value,path:[`authoring_company_profile_url`]})})})}),dk={match:`any`,fields:[{fieldName:`post_id`}]},fk={allowManagedConnection:!0,mode:`per_result`,credits:{default:2}},pk=`posts-content-crustdata-v1`,mk=class extends $T{billing={billableOperation:pk,cost:fk};searchId=ok;schema=uk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[lk.name]:this.catalogOutput(lk),[sk.name]:this.catalogOutput(sk),[ck.name]:this.catalogOutput(ck)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_social_post_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return dk}},hk=uk,gk={searchId:ok,billableOperation:pk,baseSearch:eE(ok),paginationType:`page_number`,label:`LinkedIn post search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Keyword-based LinkedIn post search.`,tags:[W.LINKEDIN],docPath:tE(ok),cost:fk,provider:`crustdata`,defaultPayload:{search_id:ok,connector:null,config:{limit:100,output_fields:{post_id:{enabled:!0,alias:``},post_text:{enabled:!0,alias:``},post_match:{enabled:!0,alias:``}},filters:{keywords:[],keyword_operator:`OR`,date_posted:``,content_types:[],author_industries:[],author_company_profile_url:[],author_title:[],author_profile_url:[],authoring_company_profile_url:[],companies_mentioned_in_post:[],people_mentioned_in_post:[]}}}},_k=`sheet:rows@1`,vk=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],yk={requires:{connection:`pipe0`},enabledIf:Na(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?vk: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`}}},bk=r.object({search_id:r.literal(_k),connector:qo(),config:r.object({sheet:js({path:`config.sheet`,sectionKey:`general`,groupPath:`config.general`,label:`Sheet`,required:!0,info:`Pick one of your pipe0 sheets; its rows are returned.`,enabledIf:Na(`pipe0`),optionsDef:yk}),limit:L({path:`config.limit`,min:1,max:2e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of rows per page`}).default(100),cursor:Os({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),include_metadata:Es({path:`config.include_metadata`,groupPath:`config.general`,sectionKey:`general`,label:`Include metadata`,description:`Widgets and prevenance tags.`,defaultValue:!1})})}),xk={allowManagedConnection:!0,mode:`per_search`,credits:{default:0},info:`Reading your own pipe0 sheet is free.`},Sk=`sheet-items-v1-pipe0`,Ck=class extends $T{billing={billableOperation:Sk,cost:xk};searchId=_k;schema=bk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0-sheet-operation`,rateLimitRatio:1,allowManagedConnection:!0}]}},wk=bk,Tk={searchId:_k,billableOperation:Sk,baseSearch:eE(_k),outputFieldMode:`dynamic`,paginationType:`cursor`,label:`Read sheet rows`,categories:[`data`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`List rows from a pipe0 sheet.`,tags:[W.FIELDS,W.NEW],docPath:tE(_k),cost:xk,provider:`pipe0`,defaultPayload:{search_id:_k,connector:{strategy:`first`,connections:[]},config:{sheet:``,limit:100,cursor:``,include_metadata:!1}}},Ek={"people:profiles:crustdata@1":qD,"people:profiles:crustdata@2":KO,"people:profiles:crustdata@3":rk,"companies:profiles:crustdata@1":CD,"companies:profiles:crustdata@2":zE,"people:profiles:amplemarket@1":FD,"people:profiles:amplemarket@2":NO,"companies:profiles:amplemarket@1":dD,"companies:profiles:amplemarket@2":EE,"companies:entitysearch:parallel@1":fE,"people:entitysearch:parallel@1":aO,"people:eventguests:luma@1":bO,"posts:content:crustdata@1":mk,"sheet:rows@1":Ck,"query:postgres@1":$E,"query:databricks@1":KE},Dk={"people:profiles:crustdata@1":JD,"people:profiles:crustdata@2":qO,"people:profiles:crustdata@3":ik,"companies:profiles:crustdata@1":wD,"companies:profiles:crustdata@2":BE,"people:profiles:amplemarket@1":ID,"people:profiles:amplemarket@2":PO,"companies:profiles:amplemarket@1":fD,"companies:profiles:amplemarket@2":DE,"companies:entitysearch:parallel@1":pE,"people:entitysearch:parallel@1":oO,"people:eventguests:luma@1":xO,"posts:content:crustdata@1":hk,"sheet:rows@1":wk,"query:postgres@1":eD,"query:databricks@1":qE},Ok={"people:profiles:crustdata@1":YD,"people:profiles:crustdata@2":JO,"people:profiles:crustdata@3":ak,"companies:profiles:crustdata@1":TD,"companies:profiles:crustdata@2":VE,"people:profiles:amplemarket@1":LD,"people:profiles:amplemarket@2":FO,"companies:profiles:amplemarket@1":pD,"companies:profiles:amplemarket@2":OE,"companies:entitysearch:parallel@1":mE,"people:entitysearch:parallel@1":sO,"people:eventguests:luma@1":SO,"posts:content:crustdata@1":gk,"sheet:rows@1":Tk,"query:postgres@1":tD,"query:databricks@1":JE};function kk(e){return Ek[e]}const Ak=t.discriminatedUnion(`search_id`,Object.values(Dk).map(e=>e)).openapi(`SearchPayloadSchema`);function jk(e,t){return Ze(t,Ok[e].defaultPayload)}const Mk=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=jk(e.search_id);return t?{...e,config:Ze(e?.config||{},t.config)}:e},Ak),Nk=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:Mk}).openapi(`SearchRequestSchema`),Pk=ii,Fk=t.object({value:Wr,status:Ur,type:Vr.optional(),format:si.nullable().optional(),resolved_by:pi.nullable().optional(),widgets:ri.optional()}),Ik=t.record(t.string(),Fk.nullable());function Lk(e){return Dk[e]}const Rk=t.enum([`cursor`,`page_number`]),zk=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:ZT,errors:t.array(Pk),results:t.array(Ik),organization_id:t.string(),next_page:Mk.nullable(),pagination_type:Rk.nullable(),total_pages:t.int32().nullable(),field_definitions:li.optional()}).openapi(`SearchResponseSchema`);function Bk(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function Vk(){let e={};for(let t of Object.values(Ok)){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=Bk(e.searchId);return Bk(t.searchId)-n})}),e}function Hk(e){return Ok[e]}const Uk=Vk();function Wk(e){let t=[];for(let[n,r]of Object.entries(Uk)){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:Bk(i.searchId)})}return t}function Gk(e){let t=Ok[e].defaultPayload.config.output_fields;return t?Object.keys(t):[]}function Kk(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 Gk(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:Uk}}function qk(e){let t=Hk(e);return{[t.provider]:t.cost.allowManagedConnection?t.cost.credits.default:0}}const Jk={"prompt:run@1":FC,"company:newssummary:website@1":sf,"company:newssummary:domain@1":eu,"company:techstack:builtwith@1":Yf,"company:techstack:builtwith@2":Du,"company:websiteurl:email@1":ip,"company:domain:workemail@1":Pc,"company:funding:leadmagic@1":$u,"company:funding:leadmagic@2":Jc,"people:workemail:waterfall@1":v_,"person:workemail:waterfall@1":OC,"people:email:iswork@1":pp,"email:iswork@1":D_,"people:name:split@1":Hm,"person:name:split@1":Wx,"people:validate:email:zerobounce@1":Gg,"people:email:validate:zerobounce@2":Mp,"email:validate:zerobounce@1":iv,"people:mobilenumber:workemail:waterfall@1":Mm,"person:name:join@1":Px,"company:overview@1":Sf,"company:overview@2":Rf,"company:overview@3":gu,"json:extract:multi@1":ay,"company:lookalikes:companyenrich@1":Ad,"company:lookalikes:companyenrich@2":wl,"company:match:logodev@1":Zd,"company:match:logodev@2":Gl,"person:posts:content:crustdata@1":fS,"people:profile:workemail:crustdata@1":Cg,"person:profile:workemail:crustdata@1":NS,"people:identity:email:waterfall@1":$p,"person:identity:email:waterfall@1":Ib,"person:identity:amplemarket@1":bb,"email:send:resend@1":J_,"contact:create:resend@1":zu,"lead:enroll:lemlist@1":Dy,"email:send:gmail@1":V_,"email:write@1":mv,"fields:merge@1":Wv,"field:slugify@1":Mv,"field:domainify@1":Cv,"http:request@1":$v,"template:fill@1":eT,"message:send:slack@1":Fy,"message:write@1":Uy,"people:personalemail:profile:waterfall@1":eh,"person:personalemail:profileurl:waterfall@1":nS,"website:scrape:firecrawl@1":RT,"website:scrapelist:firecrawl@1":qT,"website:extract:firecrawl@1":lT,"website:extract:parallel@1":vT,"website:maplinks:firecrawl@1":DT,"row:append:sheet@1":JC,"row:expandappend:sheet@1":lw,"rows:find:sheet@1":qw,"rows:find:postgres@1":Iw,"rows:find:databricks@1":Ow,"people:match:role:waterfall@1":um,"person:match:role:waterfall@1":nx,"company:match:crustdata@1":zd,"company:match:crustdata@2":Nl,"person:match:amplemarket@1":Gb,"company:identity@2":xd,"company:identity@3":al,"company:identity:crustdata@1":hl,"people:phone:profile:waterfall@1":dh,"person:mobile:profileurl:waterfall@1":px,"person:devprofileurl:profileurl:waterfall@1":tb,"people:phone:workemail:waterfall@1":Sh,"person:mobile:workemail:waterfall@1":wx,"people:profile:waterfall@1":pg,"person:profile:waterfall@1":CS,"people:profileurl:email:waterfall@1":Fg,"person:profileurl:email:waterfall@1":GS,"person:profileurl:name@1":nC,"people:email:validate:zerobounce@1":Sp,"person:email:validate:millionverifier@1":db,"people:workemail:profileurl:waterfall@1":i_,"person:workemail:profileurl:waterfall@1":mC,"company:identity@1":ud,"people:professionalprofile:waterfall@1":Nh,"people:professionalprofileurl:name@1":ng,"people:professionalprofileurl:email:waterfall@1":Gh,"people:mobilenumber:professionalprofile:waterfall@1":xm},Yk={"prompt:run@1":IC,"company:newssummary:website@1":cf,"company:newssummary:domain@1":tu,"company:techstack:builtwith@1":Xf,"company:techstack:builtwith@2":Ou,"company:websiteurl:email@1":ap,"company:domain:workemail@1":Fc,"company:funding:leadmagic@1":ed,"company:funding:leadmagic@2":Yc,"people:workemail:waterfall@1":y_,"person:workemail:waterfall@1":kC,"people:email:iswork@1":mp,"email:iswork@1":O_,"people:name:split@1":Um,"person:name:split@1":Gx,"people:validate:email:zerobounce@1":Kg,"people:email:validate:zerobounce@2":Np,"email:validate:zerobounce@1":av,"people:mobilenumber:workemail:waterfall@1":Nm,"person:name:join@1":Fx,"company:overview@1":Cf,"company:overview@2":zf,"company:overview@3":_u,"json:extract:multi@1":oy,"email:write@1":hv,"fields:merge@1":Gv,"field:slugify@1":Nv,"field:domainify@1":wv,"http:request@1":ey,"email:send:resend@1":Y_,"contact:create:resend@1":Bu,"lead:enroll:lemlist@1":Oy,"company:lookalikes:companyenrich@1":jd,"company:lookalikes:companyenrich@2":Tl,"company:match:logodev@1":Qd,"company:match:logodev@2":Kl,"person:posts:content:crustdata@1":pS,"people:profile:workemail:crustdata@1":wg,"person:profile:workemail:crustdata@1":PS,"people:identity:email:waterfall@1":em,"person:identity:email:waterfall@1":Lb,"company:match:crustdata@1":Bd,"company:match:crustdata@2":Pl,"person:identity:amplemarket@1":xb,"message:send:slack@1":Iy,"email:send:gmail@1":H_,"message:write@1":Wy,"template:fill@1":tT,"website:scrape:firecrawl@1":zT,"website:scrapelist:firecrawl@1":JT,"website:extract:firecrawl@1":uT,"website:extract:parallel@1":yT,"website:maplinks:firecrawl@1":OT,"row:append:sheet@1":YC,"row:expandappend:sheet@1":uw,"rows:find:sheet@1":Jw,"rows:find:postgres@1":Lw,"rows:find:databricks@1":kw,"people:match:role:waterfall@1":dm,"person:match:role:waterfall@1":rx,"company:identity@2":Sd,"company:identity@3":ol,"company:identity:crustdata@1":gl,"people:phone:profile:waterfall@1":fh,"person:mobile:profileurl:waterfall@1":mx,"person:devprofileurl:profileurl:waterfall@1":nb,"people:personalemail:profile:waterfall@1":th,"person:personalemail:profileurl:waterfall@1":rS,"people:profile:waterfall@1":mg,"person:profile:waterfall@1":wS,"people:profileurl:email:waterfall@1":Ig,"person:profileurl:email:waterfall@1":KS,"person:profileurl:name@1":rC,"people:email:validate:zerobounce@1":Cp,"person:email:validate:millionverifier@1":fb,"people:phone:workemail:waterfall@1":Ch,"person:mobile:workemail:waterfall@1":Tx,"people:workemail:profileurl:waterfall@1":a_,"person:workemail:profileurl:waterfall@1":hC,"person:match:amplemarket@1":Kb,"company:identity@1":dd,"people:professionalprofile:waterfall@1":Ph,"people:professionalprofileurl:name@1":rg,"people:professionalprofileurl:email:waterfall@1":Kh,"people:mobilenumber:professionalprofile:waterfall@1":Sm},Xk={"prompt:run@1":LC,"company:newssummary:website@1":lf,"company:newssummary:domain@1":nu,"company:techstack:builtwith@1":Zf,"company:techstack:builtwith@2":ku,"company:websiteurl:email@1":op,"company:domain:workemail@1":Ic,"company:funding:leadmagic@1":td,"company:funding:leadmagic@2":Xc,"people:workemail:waterfall@1":b_,"person:workemail:waterfall@1":AC,"people:email:iswork@1":hp,"email:iswork@1":k_,"people:name:split@1":Wm,"person:name:split@1":Kx,"people:validate:email:zerobounce@1":qg,"people:mobilenumber:workemail:waterfall@1":Pm,"person:name:join@1":Ix,"company:overview@1":wf,"company:overview@2":Bf,"company:overview@3":vu,"json:extract:multi@1":sy,"email:send:resend@1":X_,"contact:create:resend@1":Vu,"lead:enroll:lemlist@1":ky,"email:send:gmail@1":U_,"message:send:slack@1":Ly,"message:write@1":Gy,"email:write@1":gv,"template:fill@1":nT,"fields:merge@1":Kv,"field:slugify@1":Pv,"field:domainify@1":Tv,"http:request@1":ty,"row:append:sheet@1":XC,"row:expandappend:sheet@1":dw,"rows:find:sheet@1":Yw,"rows:find:postgres@1":Rw,"rows:find:databricks@1":Aw,"company:lookalikes:companyenrich@1":Md,"company:lookalikes:companyenrich@2":El,"people:match:role:waterfall@1":fm,"person:match:role:waterfall@1":ix,"company:match:logodev@1":$d,"company:match:logodev@2":ql,"person:posts:content:crustdata@1":mS,"people:profile:workemail:crustdata@1":Tg,"person:profile:workemail:crustdata@1":FS,"people:workemail:profileurl:waterfall@1":o_,"person:workemail:profileurl:waterfall@1":gC,"people:identity:email:waterfall@1":tm,"person:identity:email:waterfall@1":Rb,"company:match:crustdata@1":Vd,"company:match:crustdata@2":Fl,"person:identity:amplemarket@1":Sb,"email:validate:zerobounce@1":ov,"person:email:validate:millionverifier@1":pb,"people:personalemail:profile:waterfall@1":nh,"person:personalemail:profileurl:waterfall@1":iS,"people:email:validate:zerobounce@1":wp,"people:email:validate:zerobounce@2":Pp,"people:phone:workemail:waterfall@1":wh,"person:mobile:workemail:waterfall@1":Ex,"website:scrape:firecrawl@1":BT,"website:scrapelist:firecrawl@1":YT,"website:extract:firecrawl@1":dT,"website:extract:parallel@1":bT,"website:maplinks:firecrawl@1":kT,"person:match:amplemarket@1":qb,"company:identity@2":Cd,"company:identity@3":sl,"company:identity:crustdata@1":_l,"people:phone:profile:waterfall@1":ph,"person:mobile:profileurl:waterfall@1":hx,"person:devprofileurl:profileurl:waterfall@1":rb,"people:profile:waterfall@1":hg,"person:profile:waterfall@1":TS,"people:profileurl:email:waterfall@1":Lg,"person:profileurl:email:waterfall@1":qS,"person:profileurl:name@1":iC,"company:identity@1":fd,"people:professionalprofile:waterfall@1":Fh,"people:professionalprofileurl:name@1":ig,"people:professionalprofileurl:email:waterfall@1":qh,"people:mobilenumber:professionalprofile:waterfall@1":Cm};function Zk(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function Qk(e){return Jk[e]}function $k(e){return Xk[e].defaultPayload}function eA(e){return Yk[e]}const tA=r.discriminatedUnion(`pipe_id`,Object.values(Yk)).openapi(`PipePayload`),nA=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=$k(zr.parse(e.pipe_id));return t?{...e,config:Ze(e?.config||{},t.config)}:e}catch{return e}},tA);function rA(e){return Xk[e]}function iA(e,t){let n=rA(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 aA(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function oA(){let e={};for(let t of Object.values(Xk)){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=aA(e.pipeId);return aA(t.pipeId)-n})}),e}const sA=e=>{let t=rA(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},cA=oA();function lA(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(`
76
- `);throw Error(`Catalog has ${r.length} duplicate billable-operation key(s):\n${e}`)}}lA(Xk,Ok);function uA(e){let t=[];for(let[n,r]of Object.entries(cA)){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:aA(i.pipeId)})}return t}function dA(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=sA(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of Zk(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of pc(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:cA}}const fA=r.object({id:r.string(),organization_id:r.string(),order:r.array(Hr),field_definitions:bi,errors:r.array(ii),records:r.record(Hr,_i),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),pA=r.object({environment:Lr.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`),mA=r.object({config:pA.openapi(`PipesRequestConfig`),field_annotations:li.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(tA),input:r.array(gi.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function hA(e){let t=rA(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},{})}function gA(e){let t=[];for(let n of e){if(n instanceof U){t.push(n);continue}let e=nA.parse(n);if(!rA(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(Qk(n.pipe_id))(e);t.push(r)}return t}function _A(e,t){let n=gA(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 vA(e,t){let n=e.dependencyGraph,r=new Set;return n.forEach((e,n)=>e.forEach(e=>{e.index===t&&r.add(n)})),Array.from(r).map(t=>{let n=e.orderedPipeInstances[t];if(!n)throw Error(`Internal: Pipe with index ${t} not found.`);return n.pipeId})}function yA(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 bA(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 xA(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(bA(e))return`https://${e}`;if(!yA(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 SA(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(bA(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!yA(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(yA(i)||bA(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function CA(e){try{return xA(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function wA(e,t){if(t)switch(e){case`website_url`:return CA(t);default:return}}function TA(e){let t;if(EA(e))return TA(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function EA(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&Ur.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&EA(e.value,t++))throw new $([Q.RecursiveExpandedValue()]);return!0}return!1}function DA(e){let t=EA(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function OA(e){return EA(e)?OA(e.value):e}function kA(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=jr(e,n.format)?.getStaticWidgets?.(t),i=wA(n.format,t);return ut(lt(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function AA(e,t,n){if(t==null)return{};try{let r=jr(e,n)?.getStaticWidgets?.(t),i=wA(n,t);return ut(lt(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function jA(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 MA=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}=DA(n),c;c=s&&a.type?a.type:TA(e);let l;Mr(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]=jA(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function NA(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];Object.values(r.getOutputFields()).forEach(e=>{if(t[e.resolvedName])throw new $([Q.AmbiguousDependency({fieldName:e.resolvedName})]);t[e.resolvedName]=n})}return t}function PA(e){let t=NA(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of pc(i.getInputRequirement())){let o=t[n.resolvedName];if(r===o)throw new $([{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 FA({config:e,pipes:t,input:n,field_annotations:r}){try{let i=zA({config:e,pipes:t,input:n,fieldAnnotations:r});return IA(i),i}catch(e){throw e instanceof $?e:new $([Q.ValidationFailed({error:e})])}}function IA(e){for(let t of e.orderedPipeInstances)for(let{field:n}of pc(t.getInputRequirement()))A_({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),j_({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function LA(e,t){if(!e&&!t)throw new $([Q.MustDefineAnnotations()]);return new MA(t||{}).merge(MA.fromInput(e||[]))}function RA(e,t){let n={...t};return e.pipes.forEach((t,r)=>{for(let[i,a]of Object.entries(t.getOutputFields())){if(oc(a.resolvedName))throw new $([Q.ReservedOutputFieldName({pipeId:t.pipeId,outputField:a})]);let i=n[a.resolvedName];if(i&&i.added_by.ref!==`input`)throw new $([Q.DuplicatePipeOutput({pipeId:t.pipeId,outputField:a})]);n[a.resolvedName]={type:A_(e,a.type),added_by:{ref:t.pipeId,config_hash:t.getConfigHashKey(),pipe_index:r},label:i?.label||a.label,format:j_(e,a.format),is_primary_output:a.isPrimaryOutput}}}),n}function zA(e){let t=gA(e.pipes),n=LA(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)}),HA(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]=BA(t,n),u=RA({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 BA(e,t){let n=PA(e),r=VA(n,e,t),i=[],a=[];return r.forEach(t=>{let n=e[t];if(!n)throw new $([Q.FaultyEnrichmentOrder()]);i.push(n.payload),a.push(n)}),[i,a,n]}function VA(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?pc(n.getInputRequirement()).length>0:!1},l=(n,r=[])=>{if(o.has(n)){let e=n,i=r[r.length-1]||0,a={idx:i,pipe_id:t[i]?.pipeId},o={idx:e,pipeId:t[e]?.pipeId};throw new $([Q.CircularDependency({currentPipe:a,circularPipe:o})])}if(a.has(n))return;o.add(n),r.push(n);let s=e[n]||[];for(let e of s)l(e.index,r);r.pop(),o.delete(n),a.add(n),i.push(n)};function u(t){if(a.has(t))return;o.add(t);let n=e[t]||[];for(let e of n){if(!a.has(e.index)&&e.required)throw new $([Q.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 d=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=>{d.add(e.resolvedName)})}for(let[n,r]of t.entries()){let a=r.getInputRequirement();fc(a,d)||s.push(Q.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`)?Q.HardInputDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}):Q.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(!d.has(e))throw new $([Q.ConditionTargetFieldNotFound({fieldName:e,pipeId:r.pipeId,pipeIdx:n})])})}if(s.length>0)throw new $(s);return i}function HA(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 xa(e.connection).provider;e.type}).forEach(e=>{e&&n.delete(e)}),n.size>0))throw new $([Q.MissingCustomConnections({index:t,pipeId:e.pipeId,missingProviders:Array.from(n)})])}}const UA=`fields:deletesparse:input@1`,WA={},GA=r.object({effect_id:r.literal(UA),connector:T(),config:r.object({fields:es({path:`config.fields`,sectionKey:`general`,groupPath:`config.general`,label:`Candidate fields`,minItems:1,description:`Input fields to delete if they turn out sparsely populated.`}),probe_size:Ls({path:`config.probe_size`,sectionKey:`general`,groupPath:`config.general`,label:`Probe size`,description:`How many rows to sample when measuring column density.`,min:100,max:1e4}).default(1e3),threshold_in_percent:Ls({path:`config.threshold_in_percent`,sectionKey:`general`,groupPath:`config.general`,label:`Density threshold (%)`,description:`Candidates populated in strictly fewer than this percent of probed rows are deleted.`,min:1,max:100}).default(25)})}),KA=class extends V{effectId=UA;schema=GA;payload;billableOperations=WA;constructor(e){if(super(),this.payload=this.validatePayload(e),this.payload.config.fields.some(e=>e.field_name===`id`))throw Error(`Cannot list the id field as a deletion candidate.`)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return this.payload.config.fields.map(e=>e.field_name)}evolveSchema(e){let t=structuredClone(e.fieldAnnotations||{});for(let{field_name:e}of this.payload.config.fields)delete t[e];if(Object.keys(t).filter(e=>e!==`id`).length===0&&e.pipes.length===0)throw Error(`fields:deletesparse:input@1 lists every input column as a candidate β€” it refuses to empty the sheet. Keep at least one column off the candidate list, or use fields:remove@1 / sheet:reset@1 to clear the sheet explicitly.`);let n=FA({config:{environment:e.environment},pipes:e.pipes,field_annotations:t});return{next:{environment:e.environment,pipes:e.pipes,fieldAnnotations:t,validationContext:n}}}},qA=GA,JA={effectId:UA,baseEffect:B(UA),label:`Delete sparse input columns`,description:`Probe rows to measure how densely candidate input columns are populated and delete the ones below a density threshold.`,guide:`Conditional column cleanup: list every input column you'd consider dropping as config.fields (typically the sparse leftovers rows:copy_to_sheet@1 imports leave behind) β€” the density check keeps any candidate that turns out well-populated. Probes the first config.probe_size rows (default 1000) and deletes a candidate only when it is populated in strictly fewer than config.threshold_in_percent (default 25) of them. Only listed fields can be deleted; id and pipe-referenced fields cannot be listed (validation error). Static validation treats ALL candidates as removed (aggressive over-approximation), so do not reference a candidate in later steps of the same run β€” re-read get_sheet_schema afterwards to see which columns survived. Deletes columns, never rows. DESTRUCTIVE (approval-gated), reversible via timetravel. To delete named columns unconditionally use fields:remove@1 instead.`,categories:[`data_hygiene`],tags:[W.NEW],lifecycle:null,billableOperations:WA,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,defaultPayload:{effect_id:UA,connector:null,config:{fields:[],probe_size:1e3,threshold_in_percent:25}}};function YA(e,t,n){if(e==null||typeof e==`number`||typeof e==`boolean`)return e;if(typeof e==`string`){let r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),i=new RegExp(r,`g`);return e.replace(i,n)}if(Array.isArray(e))return e.map(e=>YA(e,t,n));if(typeof e==`object`){let r={};for(let i in e)Object.hasOwn(e,i)&&(i.includes(`path`)||[`connector`,`provider`,`pipe_id`,`search_id`].includes(i)?r[i]=e[i]:r[i]=YA(e[i],t,n));return r}return e}function XA(e,t,n){let r={...e};r.config??={};let i=r.config;if(i?.input_fields?.[t]&&(!i.input_fields[t].alias||i.input_fields[t].alias===t)){let e=i.input_fields[t]||{};i.input_fields[t]={...e,alias:n}}return r}function ZA(e,t,n){let r=[];for(let i of e.orderedPipePayloads){let e=YA(i,t,n);r.push(XA(e,t,n))}return r}function QA(e,t,n,r,i){if(!e.orderedPipeInstances[t])throw Error(`Pipe instance at index ${t} is not defined`);let a={...n};if(rA(n.pipe_id).outputFieldMode===`static`){let n=e.resolvedFieldNames[r]?e.resolvedFieldNames[r]:Object.entries(e.resolvedFieldNames).find(([,e])=>e===r)?.[0];if(!n)throw Error(`Unable to find field name ${r} in pipe at idx ${t}`);a.config??={};let o=a.config,s=o.output_fields?.[n]||{};return o.output_fields??={},o.output_fields[n]??={},o.output_fields[n]={...s,alias:i},XA(a,r,i)}return YA(a,r,i)}function $A(e,t,n,r){let i=[];for(let a=0;a<e.orderedPipePayloads.length;a++){let o=e.orderedPipePayloads[a],s=t.added_by.pipe_index;if(typeof s!=`number`)throw Error(`Pipe index must be number.`);a===s?i.push(QA(e,a,o,n,r)):i.push(YA(o,n,r))}return i}function ej(e,t,n){let r=e.fieldDefinitions[t];if(!r)throw Error(`No field definition found for field with name ${t}`);return r?.added_by.ref===`input`?ZA(e,t,n):$A(e,r,t,n)}const tj=`fields:patch@1`,nj={},rj=r.object({effect_id:r.literal(tj),connector:T(),config:r.object({field_name:r.string().min(1),new_name:r.string().min(1).optional(),new_format:si.nullable().optional(),new_type:Vr.optional(),new_label:r.string().optional()})}),ij=class extends V{effectId=tj;schema=rj;payload;billableOperations=nj;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[this.payload.config.field_name]}evolveSchema(e){let{field_name:t,new_name:n,new_label:r,new_format:i,new_type:a}=this.payload.config;if(!e.fieldAnnotations?.[t])throw Error(`Field name ${t} not found in current schema.`);let o=e.validationContext,s=o.fieldDefinitions[t];if(!s)throw Error(`Field definition for field ${t} not found.`);let c={...e.fieldAnnotations},l=!!n&&n!==t,u=[...o.orderedPipePayloads];if(l){u=ej(o,t,n);let e=c[t];if(!e)throw Error(`Unable to find file annotations for field ${t}.`);c[n]=e,delete c[t]}let d=s.added_by.ref===`input`,f=n||t,ee=a||s.type,te=i||s.format;if(a&&a!==s.type){if(!d)throw Error(`Cannot change the type of a pipe output field.`);c[f].type=a,zp[a].length===0&&(c[f].format=null)}if(i&&i!==s.format){if(!d)throw Error(`Cannot change the format of a pipe output field.`);c[f].format=i}if(zp[ee].length&&te&&!zp[ee].includes(te))throw Error(`After applying your updates the field has the type ${ee} but format ${te}. Type and format are not compatible.`);r&&r!==s.label&&(c[f].label=r);let ne=FA({config:{environment:e.environment},pipes:u,field_annotations:c}),p=l?(e,r)=>(e.input[n]=r.input[t]||null,e):void 0;return{next:{environment:e.environment,pipes:ne.orderedPipePayloads,fieldAnnotations:ne.fieldAnnotations.annotations,validationContext:ne},rowMigration:p}}},aj=rj,oj={effectId:tj,baseEffect:B(tj),label:`Edit field`,description:`Rename, retype, reformat, or relabel a field.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:nj,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:tj,connector:null,config:{field_name:``}}},sj=`fields:remove@1`,cj={},lj=r.object({effect_id:r.literal(sj),connector:T(),config:r.object({field_names:r.array(r.string().min(1)).min(1)})}),uj=class extends V{effectId=sj;schema=lj;payload;billableOperations=cj;constructor(e){if(super(),this.payload=this.validatePayload(e),this.payload.config.field_names.includes(`id`))throw Error(`Cannot remove the id field.`)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return this.payload.config.field_names}evolveSchema(e){let t=structuredClone(e.fieldAnnotations||{});for(let e of this.payload.config.field_names)delete t[e];if(Object.keys(t).length===1){let t=FA({config:{environment:e.environment},pipes:[],field_annotations:{}});return{next:{environment:e.environment,pipes:[],fieldAnnotations:{},validationContext:t}}}let n=FA({config:{environment:e.environment},pipes:e.pipes,field_annotations:t});return{next:{environment:e.environment,pipes:e.pipes,fieldAnnotations:t,validationContext:n}}}},dj=lj,fj={effectId:sj,baseEffect:B(sj),label:`Remove fields`,description:`Remove fields (input columns) from the sheet.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:cj,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:sj,connector:null,config:{field_names:[]}}},pj=`pipe:add@1`,mj={},hj=r.object({effect_id:r.literal(pj),connector:T(),config:r.object({pipe_payload:tA.optional()})}),gj=class extends V{effectId=pj;schema=hj;payload;billableOperations=mj;constructor(e){if(super(),this.payload=this.validatePayload(e),!this.payload.config.pipe_payload)throw Error(`pipe:add@1 requires config.pipe_payload`)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}evolveSchema(e){let t=this.payload.config.pipe_payload;if(!t)throw Error(`pipe:add@1 requires config.pipe_payload`);let n=FA({config:{environment:e.environment},pipes:[...e.pipes,t],field_annotations:e.fieldAnnotations||{}});return{next:{environment:e.environment,pipes:n.orderedPipePayloads,fieldAnnotations:n.fieldAnnotations.annotations,validationContext:n}}}},_j=hj,vj={effectId:pj,baseEffect:B(pj),label:`Add pipe`,description:`Append a pipe to the sheet's pipeline.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:mj,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:pj,connector:null,config:{}}},yj=`pipe:remove@1`,bj={},xj=r.object({effect_id:r.literal(yj),connector:T(),config:r.object({config_hash:r.string(),hard:r.boolean().default(!1)})}),Sj=class extends V{effectId=yj;schema=xj;payload;billableOperations=bj;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}evolveSchema(e){let{config_hash:t,hard:n}=this.payload.config,i=gA(e.pipes).findIndex(e=>e.getConfigHashKey()===t);if(i===-1)throw Error(`Pipe with config hash ${t} not found.`);let a=e.validationContext,o=new Set(Object.entries(a.fieldDefinitions).filter(([,e])=>e.added_by.config_hash===t).map(([e])=>e)),s=new MA(e.fieldAnnotations||{});for(let e of o){let t=a.fieldDefinitions[e];if(!t)continue;if(n){s=s.deleteKey(e);continue}let i=Pr(e,t,a),o=Mr(i.fieldName)?g(i.fieldName):null;s=s.merge({[e]:{format:t.format,type:t.type,json_metadata:o?.jsonMeta?{schema:o.jsonMeta.zodSchema?r.toJSONSchema(o.jsonMeta.zodSchema):null,example_value:o.jsonMeta.exampleValue||null}:null,label:t.label}})}let c=e.pipes.slice();c.splice(i,1);let l=FA({config:{environment:e.environment},pipes:c,field_annotations:s.annotations}),u=n?void 0:e=>{let t={...e};for(let e of o){let n=t.input[e];if(!n)continue;let{resolvedInputValue:r}=DA(n);t.input[e]=r}return t};return{next:{environment:e.environment,pipes:c,fieldAnnotations:s.annotations,validationContext:l},rowMigration:u}}},Cj=xj,wj={effectId:yj,baseEffect:B(yj),label:`Remove pipe`,description:`Remove a pipe from the sheet's pipeline, optionally deleting its fields.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:bj,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:yj,connector:null,config:{config_hash:``,hard:!1}}},Tj=`pipe:update@1`,Ej={},Dj=r.object({effect_id:r.literal(Tj),connector:T(),config:r.object({config_hash:r.string().min(1),pipe_payload:tA.optional()})}),Oj=class extends V{effectId=Tj;schema=Dj;payload;billableOperations=Ej;constructor(e){if(super(),this.payload=this.validatePayload(e),!this.payload.config.pipe_payload)throw Error(`pipe:update@1 requires config.pipe_payload`)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}evolveSchema(e){let{config_hash:t,pipe_payload:n}=this.payload.config;if(!n)throw Error(`pipe:update@1 requires config.pipe_payload`);let i=gA(e.pipes).findIndex(e=>e.getConfigHashKey()===t);if(i===-1)throw Error(`Pipe with config hash ${t} not found.`);let a=e.validationContext,o=new Set(Object.entries(a.fieldDefinitions).filter(([,e])=>e.added_by.config_hash===t).map(([e])=>e)),s=[...e.pipes];s.splice(i,1,n);let c=FA({config:{environment:e.environment},pipes:s,field_annotations:e.fieldAnnotations||{}}),l=new(Qk(n.pipe_id))(n),u=new Set(Object.entries(c.fieldDefinitions).filter(([,e])=>e.added_by.config_hash===l.getConfigHashKey()).map(([e])=>e));for(let e of u)o.delete(e);let d=new MA(c.fieldAnnotations.annotations);for(let e of o){let t=a.fieldDefinitions[e];if(!t)throw Error(`Previous field def not found`);if(c.resolvedFieldNames[e])continue;let n=Pr(e,t,a),i=Mr(n.fieldName)?g(n.fieldName):null;d=d.merge({[e]:{format:t.format,type:t.type,json_metadata:i?.jsonMeta?{schema:i.jsonMeta.zodSchema?r.toJSONSchema(i.jsonMeta.zodSchema):null,example_value:i.jsonMeta.exampleValue||null}:null,label:t.label}})}let f=FA({config:{environment:e.environment},pipes:c.orderedPipePayloads,field_annotations:d.annotations});return{next:{environment:e.environment,pipes:c.orderedPipePayloads,fieldAnnotations:d.annotations,validationContext:f},rowMigration:e=>{let t={...e};for(let e of o){let n=t.input[e];if(!n)continue;let{resolvedInputValue:r}=DA(n);t.input[e]=r}return t}}}},kj=Dj,Aj={effectId:Tj,baseEffect:B(Tj),label:`Update pipe`,description:`Replace a pipe in the sheet's pipeline and re-run it.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:Ej,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:Tj,connector:null,config:{config_hash:``}}},jj=`row:update@1`,Mj={},Nj=r.object({effect_id:r.literal(jj),connector:T(),config:r.object({record_id:r.string().min(1),record:gi})}),Pj=class extends V{effectId=jj;schema=Nj;payload;billableOperations=Mj;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},Fj=Nj,Ij={effectId:jj,baseEffect:B(jj),label:`Update row`,description:`Update a single row's values.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:Mj,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`shared`,lockScope:`selection`,catalogVisibility:`hidden`,defaultPayload:{effect_id:jj,connector:null,config:{record_id:``,record:{}}}},Lj=`rows:add@1`,Rj={},zj=r.object({effect_id:r.literal(Lj),connector:T(),config:r.object({records:r.array(gi).min(1).max(100),allow_field_creation:r.boolean().default(!1),allow_empty:r.boolean().default(!1)})}),Bj=class extends V{effectId=Lj;schema=zj;payload;billableOperations=Rj;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){return this.payload.config.allow_field_creation===!0}},Vj=zj,Hj={effectId:Lj,baseEffect:B(Lj),label:`Add rows`,description:`Append records to the sheet.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:Rj,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`hidden`,defaultPayload:{effect_id:Lj,connector:null,config:{records:[],allow_field_creation:!1,allow_empty:!1}}},Uj=r.enum([`pending`,`failed`,`no_result`,`skipped`,`completed`]),Wj=[{value:`pending`,label:`Pending`},{value:`failed`,label:`Failed`},{value:`no_result`,label:`No result`},{value:`skipped`,label:`Skipped`},{value:`completed`,label:`Completed`}],Gj=[`pending`],Kj=[`pending`,`failed`,`skipped`];function qj(e){return{enabled:!0,triggers:{status:e,configHashMismatch:!0,inputHashMismatch:!0}}}const Jj=`rows:adopt@1`,Yj={},Xj=r.object({effect_id:r.literal(Jj),connector:T(),config:r.object({pipes:r.array(tA).default([]),selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target.`,placeholder:`{"type":"all"}`},`both`),adopt_statuses:Is({options:Wj,required:!1,disableSearch:!0,path:`config.adopt_statuses`,sectionKey:`general`,groupPath:`config.general`,label:`Adopt statuses`,description:`Only cells with these statuses are adopted (pinned). Omit to adopt all.`}).optional()})}),Zj=class extends V{effectId=Jj;schema=Xj;payload;billableOperations=Yj;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},Qj=Xj,$j={effectId:Jj,baseEffect:B(Jj),label:`Adopt values`,description:`Pin the selected columns' current values so a config or input change won't regenerate them.`,guide:'Adopt re-stamps each selected cell\'s stored config/input hash to the CURRENT one, so the value is kept as-is instead of being re-run. It never recomputes β€” use `rows:enrich@1` to (re)compute. Adopting all statuses composes with a follow-up `rows:enrich@1` (`run_statuses: ["failed"]`) to rerun only the failures while completed cells stay pinned β€” the safe pattern before running a non-idempotent effect twice.',categories:[`internal`],tags:[],lifecycle:null,billableOperations:Yj,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`selection`,catalogVisibility:`hidden`,defaultPayload:{effect_id:Jj,connector:null,config:{pipes:[]}}},eM=`rows:copy_to_sheet@1`,tM={},nM=r.object({effect_id:r.literal(eM),connector:T(),config:r.object({selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to copy as JSON.`,placeholder:`{"type":"all"}`},`both`),where:Io({path:`config.where`,sectionKey:`general`,groupPath:`config.general`,order:1,label:`Condition (optional)`,description:`Only copy selected rows matching this condition. Leave empty to copy all.`}),target_sheet:Ns({path:`config.target_sheet`,sectionKey:`general`,groupPath:`config.general`,order:2,inputType:`text`,label:`Target sheet`,description:`Slug of the destination sheet. Created if missing (see below). Slugs are org-unique β€” for a NEW sheet use a short descriptive slug plus a few random chars (e.g. "ceos-x7k2") so it can't hit an unrelated existing sheet.`}),create_if_missing:zs({path:`config.create_if_missing`,sectionKey:`general`,groupPath:`config.general`,order:3,label:`Create if missing`,description:`When the target sheet does not exist, create it in this sheet's project. Off β‡’ fail.`,defaultValue:!0})})}),rM=class extends V{effectId=eM;schema=nM;payload;billableOperations=tM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){let e=this.payload.config.where;return e?[...new Set(e.conditions.map(e=>e.field_name))]:[]}},iM=nM,aM={effectId:eM,baseEffect:B(eM),label:`Copy rows to sheet`,description:`Copy selected rows (or every row) into another sheet β€” all of them, or only those matching a condition. Creates the target sheet in this project if it doesn't exist.`,categories:[`data_hygiene`],tags:[W.NEW],lifecycle:null,billableOperations:tM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`visible`,defaultPayload:{effect_id:eM,connector:null,config:{selection:{type:`all`},target_sheet:``,create_if_missing:!0}}},oM=`rows:dedupe@1`,sM={"rows-dedupe-v1-pipe0":{allowManagedConnection:!0,provider:`pipe0`,mode:`always`,credits:{default:0},note:`Deduplicating your own sheet is free.`}},cM=r.object({effect_id:r.literal(oM),connector:T(),config:r.object({selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target as JSON.`,placeholder:`{"type":"all"}`},`both`),fields:es({path:`config.fields`,sectionKey:`general`,groupPath:`config.general`,label:`Match fields`,minItems:1,description:`Rows are duplicates when these fields match.`}),match:Fs({path:`config.match`,sectionKey:`general`,groupPath:`config.general`,label:`Match condition`,required:!0,defaultValue:`all`,options:[{value:`all`,label:`All fields match (AND)`},{value:`any`,label:`Any field matches (OR)`}]}),strategy:Fs({path:`config.strategy`,sectionKey:`general`,groupPath:`config.general`,label:`Which duplicate to keep`,required:!0,defaultValue:`keep_oldest`,options:[{value:`keep_oldest`,label:`Keep oldest`},{value:`keep_newest`,label:`Keep newest`}]})})}),lM=class extends V{effectId=oM;schema=cM;payload;billableOperations=sM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0-sheet-operation`,rateLimitRatio:1,allowManagedConnection:!0}]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`rows-dedupe-v1-pipe0`)}getFieldReferences(){return this.payload.config.fields.map(e=>e.field_name)}},uM=cM,dM={effectId:oM,baseEffect:B(oM),label:`Remove duplicate rows`,description:`Find duplicate rows by matching fields and keep one row per group.`,categories:[`data_hygiene`],tags:[W.NEW],lifecycle:null,billableOperations:sM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`exclusive`,shouldUpgradeSchema:!0,catalogVisibility:`visible`,guide:`Dedupe in ONE run: list every identity field in config.fields and pick config.match β€” "all" (rows are duplicates only when every field matches) or "any" (a match on ANY listed field makes rows duplicates). To dedupe on several alternative keys (e.g. same email OR same profile_url), use match "any" with all keys in one effect β€” never run one dedupe per field; if you must combine dedupe with other cleanup, put the effects in one validated chain so the user approves once. Destructive and approval-gated; reversible via timetravel.`,defaultPayload:{effect_id:oM,connector:null,config:{fields:[],match:`all`,strategy:`keep_oldest`}}},fM=`rows:duplicate@1`,pM={"rows-duplicate-v1-pipe0":{allowManagedConnection:!0,provider:`pipe0`,mode:`always`,credits:{default:0},note:`Duplicating rows in your own sheet is free.`}},mM=r.object({effect_id:r.literal(fM),connector:T(),config:r.object({selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target as JSON.`,placeholder:`{"type":"all"}`},`both`)})}),hM=class extends V{effectId=fM;schema=mM;payload;billableOperations=pM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0-sheet-operation`,rateLimitRatio:1,allowManagedConnection:!0}]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return G(e,`rows-duplicate-v1-pipe0`)}getFieldReferences(){return[]}},gM=mM,_M={effectId:fM,baseEffect:B(fM),label:`Duplicate rows`,description:`Copy the selected rows (or every row). Copies get fresh ids and are appended after the existing rows.`,categories:[`data_hygiene`],tags:[W.NEW],lifecycle:null,billableOperations:pM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`visible`,defaultPayload:{effect_id:fM,connector:null,config:{}}},vM=`rows:enrich@1`,yM={},bM=r.object({effect_id:r.literal(vM),connector:T(),config:r.object({pipes:r.array(tA).default([]),selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target.`,placeholder:`{"type":"all"}`},`both`),run_statuses:Is({options:Wj,required:!1,disableSearch:!0,path:`config.run_statuses`,sectionKey:`general`,groupPath:`config.general`,label:`Run statuses`,description:`Rows with the following statuses will be run.`}).optional()})}),xM=class extends V{effectId=vM;schema=bM;payload;billableOperations=yM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getRecordQueueConfig(e){return qj(this.payload.config.run_statuses??(e?.isScheduled?Gj:Kj))}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},SM=bM,CM={effectId:vM,baseEffect:B(vM),label:`Enrich rows`,description:`Run the sheet's pipes over the selected rows.`,categories:[`enrichment`],tags:[],lifecycle:null,billableOperations:yM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],catalogVisibility:`visible`,selectionMode:`both`,lockingMode:`shared`,lockScope:`selection`,defaultPayload:{effect_id:vM,connector:null,config:{pipes:[]}}},wM=`rows:filter:prompt@1`,TM=`rows-filter-prompt-v1`,EM=Za(TM),DM=r.object({effect_id:r.literal(wM),connector:Zo(),config:r.object({selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target as JSON.`,placeholder:`{"type":"all"}`},`both`),prompt:Ps({path:`config.prompt`,sectionKey:`general`,groupPath:`config.general`,label:`Filter instruction`,rows:4,placeholder:`Only keep rows where the person is a "Head of Growth" at a company doing less than $1M in revenue.`}),model:Vs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.general`,billableOperations:EM}),fields:es({path:`config.fields`,sectionKey:`general`,groupPath:`config.general`,label:`Fields to consider`,info:`If specified, only these fields are shown to the model. This is useful to drop large JSON columns and save tokens.`})})}),OM=class extends V{effectId=wM;schema=DM;payload;billableOperations=EM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return Ga(this.payload.config.model)}getProviderNames(){return Wa(this.payload.config.model)}estimateBillableOperations(e){return $a(e,{model:this.payload.config.model,prefix:TM,inputTokens:600,outputTokens:50})}getFieldReferences(){return(this.payload.config.fields??[]).map(e=>e.field_name)}},kM=DM,AM={effectId:wM,baseEffect:B(wM),label:`AI filter rows`,description:`Keep or remove rows by a natural-language instruction, judged per row by an AI model.`,categories:[`data_hygiene`],tags:[W.NEW,W.AI],lifecycle:null,billableOperations:EM,allowedUserConnectionProviders:Ka(),managedProviders:Ka(),selectionMode:`both`,lockingMode:`exclusive`,shouldUpgradeSchema:!0,catalogVisibility:`visible`,defaultPayload:{effect_id:wM,connector:null,config:{model:`gemini-flash-latest`,prompt:``,fields:[]}}},jM=`rows:import@1`,MM={},NM=r.object({effect_id:r.literal(jM),connector:T(),config:r.object({staging_group_id:r.string().min(1),allow_field_creation:r.boolean().default(!1),event_id:r.string().nullable().default(null)})}),PM=class extends V{effectId=jM;schema=NM;payload;billableOperations=MM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){return this.payload.config.allow_field_creation===!0}},FM=NM,IM={effectId:jM,baseEffect:B(jM),label:`Import rows`,description:`Append records from a staging group (CSV import / search commit).`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:MM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`hidden`,defaultPayload:{effect_id:jM,connector:null,config:{staging_group_id:``,allow_field_creation:!1,event_id:null}}},LM=`rows:remove@1`,RM={},zM=r.object({effect_id:r.literal(LM),connector:T(),config:r.object({selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to delete as JSON.sc`,placeholder:`{"type":"all"}`},`both`),where:Io({path:`config.where`,sectionKey:`general`,groupPath:`config.general`,order:1,label:`Condition (optional)`,description:`Only delete selected rows matching this condition. Leave empty to delete all.`})})}),BM=class extends V{effectId=LM;schema=zM;payload;billableOperations=RM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){let e=this.payload.config.where;return e?[...new Set(e.conditions.map(e=>e.field_name))]:[]}},VM=zM,HM={effectId:LM,baseEffect:B(LM),label:`Delete rows`,description:`Delete selected rows β€” all of them, or only those matching a condition.`,categories:[`data_hygiene`],tags:[],lifecycle:null,billableOperations:RM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`exclusive`,lockScope:`selection`,catalogVisibility:`visible`,guide:`Delete rows matching config.where (omit selection to consider ALL rows; omit where to delete the whole selection). Destructive and approval-gated, so make ONE remove do the whole job: or-combine EVERY drop criterion into a single where (logic "or", one condition per field) instead of running several removes β€” and put the remove in the same validated chain as any fields:remove / rename cleanup so the user approves once. To drop rows whose enrichment yielded nothing, condition on the field's STATUS (property "status", e.g. neq "completed" β€” catches skipped, failed, and no_result at once). Bracketed cell renderings from get_sheet_rows like "[no_result]"/"[skipped]" are status placeholders for EMPTY cells, never stored values β€” a value condition cannot match them. After the run, re-read the sheet ONCE to confirm; if the rows you expected gone are still there, stop and report the discrepancy instead of retrying with variant conditions.`,defaultPayload:{effect_id:LM,connector:null,config:{selection:{type:`rows`,record_ids:[]}}}};function UM(e){if(e instanceof $T)return e;let t=e.search_id,n=kk(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(Mk.parse(e))}const WM=`search:run@1`,GM={},KM=r.object({effect_id:r.literal(WM),connector:T(),config:r.object({search_payload:Hs({path:`config.search_payload`,groupPath:`config.general`,sectionKey:`general`,label:`Search`,description:`Pick and configure the search to run.`},Mk),max_number_of_results:Ls({path:`config.max_number_of_results`,groupPath:`config.general`,sectionKey:`general`,label:`Max results`,description:`Maximum number of items to find across all pages.`,guide:"This is the FETCH budget β€” an upper bound on raw results pulled across all pages (it also caps each page's size). De-duplicated results are NOT re-fetched, so this is not the final row count. When you want EXACTLY N unique rows, do NOT set this to N (you'd get fewer the moment any result is a duplicate): set `stop_at_unique_rows_count` to N and set this to the maximum (1000000) so the unique count is the real stop condition. For a plain bulk fetch with no unique target, set this to the number of rows you want.",max:1e6,min:1}).default(1e3),deduplicate:zs({path:`config.deduplicate`,groupPath:`config.general`,sectionKey:`general`,label:`Unique rows only`,description:`Skip results that already exist in the sheet.`,guide:"Dedup key is the search's own declared key. Discards are NOT topped up with extra pages, so to reliably collect N unique rows pair this with `stop_at_unique_rows_count` and a large `max_number_of_results`.",defaultValue:!0,enabledIf:e=>{let t=e.config?.search_payload;if(!t?.search_id)return{disabled:!0,message:`Configure a search first.`};let n=!1;try{n=UM(t).getDedupConfig().fields.length>0}catch{n=!1}return n?{disabled:!1}:{disabled:!0,message:`This search doesn't support de-duplication.`}}}),stop_at_unique_rows_count:Rs({path:`config.stop_at_unique_rows_count`,groupPath:`config.general`,sectionKey:`general`,label:`Stop at X unique rows`,description:`Stop after this many new rows have been added. Leave empty for no early stop. Bounded by Max results.`,guide:"Set this to the exact unique-row count you want (only works with `deduplicate` on). It paginates full pages until this many NEW rows are added, so set `max_number_of_results` to the maximum (1000000) to give it room β€” `max_number_of_results` then just acts as a safety backstop.",placeholder:`No early stop`,min:1,max:1e5,enabledIf:e=>e.config?.deduplicate===!0?{disabled:!1}:{disabled:!0,message:`Enable β€œUnique rows only” to use this.`}})})}),qM=class extends V{effectId=WM;schema=KM;payload;billableOperations=GM;constructor(e){super(),this.payload=this.validatePayload(e)}getSearch(){let e=this.payload.config.search_payload;if(!e?.search_id)return null;try{return UM(e)}catch{return null}}getConnectionsRequirements(){return[]}getProviderNames(){let e=this.getSearch();return e?[Hk(e.searchId).provider]:[]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){let e=this.getSearch();return e?(Hk(e.searchId).outputFieldMode??`static`)===`dynamic`:!1}},JM=KM,YM={effectId:WM,baseEffect:B(WM),label:`Search`,description:`Run a search and append the results to the sheet.`,categories:[`enrichment`],tags:[W.NEW],lifecycle:null,billableOperations:GM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,defaultPayload:{effect_id:WM,connector:null,config:{search_payload:{search_id:``},max_number_of_results:1e3,deduplicate:!0,stop_at_unique_rows_count:null}}},XM=`sheet:export@1`,ZM={},QM=r.object({effect_id:r.literal(XM),connector:T(),config:r.object({selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to export as JSON β€” {"type":"all"} or {"type":"rows","record_ids":["…"]}.`,placeholder:`{"type":"all"}`},`both`)})}),$M=class extends V{effectId=XM;schema=QM;payload;billableOperations=ZM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},eN=QM,tN={effectId:XM,baseEffect:B(XM),label:`Export sheet`,description:`Export the selected rows to a CSV download.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:ZM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`hidden`,defaultPayload:{effect_id:XM,connector:null,config:{}}},nN=`sheet:reset@1`,rN={},iN=r.object({effect_id:r.literal(nN),connector:T(),config:r.object({})}),aN=class extends V{effectId=nN;schema=iN;payload;billableOperations=rN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}evolveSchema(e){let t=FA({config:{environment:e.environment},pipes:[],field_annotations:{}});return{next:{environment:e.environment,pipes:[],fieldAnnotations:{},validationContext:t}}}},oN=iN,sN={effectId:nN,baseEffect:B(nN),label:`Reset sheet`,description:`Reset the sheet to its initial state β€” remove all pipes, fields, and rows. This cannot be partially applied.`,categories:[`data_hygiene`],tags:[],lifecycle:null,billableOperations:rN,shouldUpgradeSchema:!0,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,defaultPayload:{effect_id:nN,connector:null,config:{}}},cN=`sheet:update@1`,lN={},uN=r.object({effect_id:r.literal(cN),connector:T(),config:r.object({name:r.string().min(4).refine(e=>!e.includes(`/`),`Name cannot contain '/'`).optional(),slug:r.string().regex(/^[A-Za-z0-9]+(?:[-_][A-Za-z0-9]+)*$/).optional()}).refine(e=>e.name!==void 0||e.slug!==void 0,`Provide at least one of name or slug to update.`)}),dN=class extends V{effectId=cN;schema=uN;payload;billableOperations=lN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},fN=uN,pN={effectId:cN,baseEffect:B(cN),label:`Update sheet`,description:`Update sheet basics (rename: name, slug).`,categories:[`internal`],tags:[`rename`,`name`,`title`,`slug`],lifecycle:null,billableOperations:lN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,guide:`Rename the ACTIVE sheet. To give a deliverable the name the user asked for, set config.name ONLY β€” display names need not be unique, so "CEOs" always works. Do NOT also rewrite config.slug: slugs are org-unique and a clean generic slug (e.g. "ceos") is likely taken somewhere you can't see, which fails the whole run; the slug is just an address, so keep the existing (suffixed) one unless the user explicitly asks for a specific slug.`,defaultPayload:{effect_id:cN,connector:null,config:{}}},mN=`timetravel:create@1`,hN={},gN=r.object({effect_id:r.literal(mN),connector:T(),config:r.object({})}),_N=class extends V{effectId=mN;schema=gN;payload;billableOperations=hN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},vN=gN,yN={effectId:mN,baseEffect:B(mN),label:`Create restore point`,description:`Snapshot the current sheet state as a timetravel restore point.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:hN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,shouldUpgradeSchema:!0,catalogVisibility:`hidden`,defaultPayload:{effect_id:mN,connector:null,config:{}}},bN=`timetravel:travel@1`,xN={},SN=r.object({effect_id:r.literal(bN),connector:T(),config:r.object({schema_id:r.string().min(1)})}),CN=class extends V{effectId=bN;schema=SN;payload;billableOperations=xN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){return!0}},wN=SN,TN={effectId:bN,baseEffect:B(bN),label:`Restore to point`,description:`Restore the sheet to a previous point by copying that point's rows into a new schema.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:xN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:bN,connector:null,config:{schema_id:``}}},EN=r.object({reason:r.object({code:r.string(),details:r.string().optional()}),related_record_id:r.string().nullable(),resolved_by:r.object({ref:$e,config_hash:r.string()})}),DN=r.object({value:r.union([r.string(),r.number(),r.boolean(),r.null()])}),ON=EN.extend({fields:r.record(r.string(),DN)}),kN=r.object({added:EN.optional(),updated:ON.optional(),removed:EN.optional()}),AN=r.record(r.string(),kN),jN=r.object({shown:r.number().int(),total:r.number().int(),added:r.number().int(),updated:r.number().int(),removed:r.number().int()}),MN=r.object({effect_id:$e,config_hash:r.string(),status:r.enum([`completed`,`failed`,`skipped`]),error:r.string().optional(),source:r.literal(`run_added_rows`).optional()}),NN={"rows:dedupe@1":lM,"rows:duplicate@1":hM,"rows:enrich@1":xM,"rows:adopt@1":Zj,"rows:add@1":Bj,"rows:import@1":PM,"row:update@1":Pj,"rows:remove@1":BM,"rows:copy_to_sheet@1":rM,"rows:filter:prompt@1":OM,"pipe:add@1":gj,"pipe:update@1":Oj,"pipe:remove@1":Sj,"fields:remove@1":uj,"fields:patch@1":ij,"fields:add@1":nc,"fields:deletesparse:input@1":KA,"env:change@1":Xs,"timetravel:create@1":_N,"timetravel:travel@1":CN,"sheet:export@1":$M,"search:run@1":qM,"sheet:reset@1":aN,"sheet:update@1":dN},PN={"rows:dedupe@1":uM,"rows:duplicate@1":gM,"rows:enrich@1":SM,"rows:adopt@1":Qj,"rows:add@1":Vj,"rows:import@1":FM,"row:update@1":Fj,"rows:remove@1":VM,"rows:copy_to_sheet@1":iM,"rows:filter:prompt@1":kM,"pipe:add@1":_j,"pipe:update@1":kj,"pipe:remove@1":Cj,"fields:remove@1":dj,"fields:patch@1":aj,"fields:add@1":rc,"fields:deletesparse:input@1":qA,"env:change@1":Zs,"timetravel:create@1":vN,"timetravel:travel@1":wN,"sheet:export@1":eN,"search:run@1":JM,"sheet:reset@1":oN,"sheet:update@1":fN},FN={"rows:dedupe@1":dM,"rows:duplicate@1":_M,"rows:enrich@1":CM,"rows:adopt@1":$j,"rows:add@1":Hj,"rows:import@1":IM,"row:update@1":Ij,"rows:remove@1":HM,"rows:copy_to_sheet@1":aM,"rows:filter:prompt@1":AM,"pipe:add@1":vj,"pipe:update@1":Aj,"pipe:remove@1":wj,"fields:remove@1":fj,"fields:patch@1":oj,"fields:add@1":ic,"fields:deletesparse:input@1":JA,"env:change@1":Qs,"timetravel:create@1":yN,"timetravel:travel@1":TN,"sheet:export@1":tN,"search:run@1":YM,"sheet:reset@1":sN,"sheet:update@1":pN};function IN(e){return NN[e]}function LN(e){return FN[e]}function RN(e){return PN[e]}function zN(){return Object.keys(FN).filter(e=>FN[e].agentExposure!==`excluded`)}function BN(e){return FN[e]?.agentExposure!==`excluded`}const VN=t.discriminatedUnion(`effect_id`,Object.values(PN).map(e=>e)).openapi(`EffectPayloadSchema`);function HN(e,t){return Ze(t,FN[e].defaultPayload)}const UN=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`effect_id`in e))return e;let t=HN(e.effect_id);return t?{...e,config:Ze(e?.config||{},t.config)}:e},VN),WN=t.enum([`processing`,`completed`,`failed`,`canceled`,`skipped`]).openapi(`EffectsRunStatus`),GN=t.object({config:t.object({diff:t.object({limit:t.number().int().min(0).max(1e3).default(100).openapi({description:"How many per-record diff entries to keep on the result. `counts` stays exact regardless."})}).optional(),run_added_rows:t.boolean().optional().openapi({description:`When true, after this run's effects complete, run the sheet's pipes over exactly the rows the run appended (the contiguous tail). Off by default. Durable on schedules: a scheduled chain that adds rows then enriches them on every fire.`})}).optional(),effects:t.array(UN).min(1)}).openapi(`EffectsRequest`),KN=t.object({id:t.string(),status:WN,effects:t.array(MN),counts:jN.nullable(),diff:AN.nullable(),after_schema_id:t.string().nullable(),before_schema_id:t.string().nullable(),added:t.object({cursor:t.string().nullable(),count:t.number().int()}).nullable().openapi({description:'Present when the run appended rows. `cursor` is the exclusive window cursor isolating exactly the added tail β€” pass it to a `rows:enrich@1` `{type:"window", cursor, count:null}` selection to run the sheet\'s pipes over the added rows. `count` is how many added rows survive.'})}).openapi(`EffectsResponse`),qN=t.object({effects:t.array(t.unknown()).min(1)}).openapi(`EffectsValidateRequest`),JN=t.object({index:t.number().int(),effect_id:$e,valid:t.boolean(),errors:t.array(t.string())}).openapi(`EffectsValidateStep`),YN=t.object({valid:t.boolean(),errors:t.array(t.string()),steps:t.array(JN).optional()}).openapi(`EffectsValidateResponse`);function XN(e){let t=e.split(`@`)[1];if(!t)throw Error(`No effect version found`);return Number(t)}function ZN(){let e={};for(let t of Object.values(FN)){let{baseEffect:n}=t;e[n]??=[],e[n].push(t)}return Object.entries(e).forEach(([t,n])=>{e[t]=n.sort((e,t)=>{let n=XN(e.effectId);return XN(t.effectId)-n})}),e}const QN=ZN();function $N(){let e=[];for(let[t,n]of Object.entries(QN)){let r=n[0];if(!r)throw Error(`Found empty entry`);r.lifecycle?.deprecatedOn||r.catalogVisibility!==`hidden`&&e.push({...r,baseEffect:t,latestVersion:XN(r.effectId)})}return e}const eP={"rows:dedupe@1":[{effect_id:`rows:dedupe@1`,connector:null,config:{fields:[{field_name:`work_email`}],match:`all`,strategy:`keep_oldest`}}],"rows:duplicate@1":[{effect_id:`rows:duplicate@1`,connector:null,config:{}}],"sheet:reset@1":[{effect_id:`sheet:reset@1`,connector:null,config:{}}],"fields:deletesparse:input@1":[{effect_id:`fields:deletesparse:input@1`,connector:null,config:{fields:[{field_name:`company_raw_address`},{field_name:`company_founded_year`}],probe_size:1e3,threshold_in_percent:25}}]};var tP=class extends Error{errors;constructor(e){super(e.join(`
77
- `)),this.name=`SheetEffectValidationError`,this.errors=e}};function nP({effects:e,validationContext:t,schemaInputs:n}){let r=[],i=[],a=[],o=[];e.some(e=>e.effect_id===`pipe:remove@1`)&&e.length>1&&r.push(`pipe:remove@1 must be the only effect in a run.`);let s={...n,validationContext:t},c=t,l=new Set(Object.keys(t.fieldDefinitions)),u=null;return e.forEach((e,t)=>{let n=[],d=IN(e.effect_id);if(!d){n.push(`unknown effect "${e.effect_id}"`),rP(i,r,t,e.effect_id,n);return}let f;try{f=new d(e)}catch(a){n.push(a.message),rP(i,r,t,e.effect_id,n);return}let ee=f.getFieldReferences().filter(e=>!l.has(e));if(ee.length>0){let e=`references fields that do not exist at this step: ${ee.join(`, `)}`;u&&(e+=`. These may be produced only at run time by "${u}" earlier in this chain β€” commit that effect first, then add the effects that use its columns in a follow-up run.`),n.push(e)}try{let{next:e}=f.evolveSchema(s);s=e,c=e.validationContext,l=new Set(Object.keys(e.validationContext.fieldDefinitions))}catch(e){if(e instanceof $)for(let t of e.appErrors)n.push(t.message);else n.push(e.message)}u===null&&f.producesDynamicFields()&&(u=e.effect_id),a.push(f),o.push(e),rP(i,r,t,e.effect_id,n)}),{valid:r.length===0,steps:i,errors:r,instances:a,payloads:o,resultingFieldDefinitions:c.fieldDefinitions}}function rP(e,t,n,r,i){e.push({index:n,effect_id:r,valid:i.length===0,errors:i});for(let e of i)t.push(`effects[${n}] (${r}): ${e}`)}function iP({effects:e,validationContext:t,schemaInputs:n}){let r=nP({effects:e,validationContext:t,schemaInputs:n});if(!r.valid)throw new tP(r.errors);return{instances:r.instances,payloads:r.payloads}}function aP(e){let t=(e??[]).map(e=>oP(e));if(t.length===0)return{title:`Effect run`,description:`An effect run with no steps.`};let[n]=t;return t.length===1&&n?{title:n.title,description:n.description}:{title:`${t.length} steps: ${t.map(e=>e.title).join(` Β· `)}`,description:t.map(e=>e.description).join(` Β· `)}}function oP(e){let t=e.effect_id,n=B(t),r=e.config??{};switch(n){case`pipe:add`:{let e=sP(r.pipe_payload);return{title:e?`Added pipe ${e}`:`Added pipe`,description:e?`Added the pipe ${e} to the sheet.`:`Added a pipe to the sheet.`}}case`pipe:update`:{let e=sP(r.pipe_payload);return{title:e?`Updated pipe ${e}`:`Updated pipe`,description:e?`Updated the configuration of pipe ${e}.`:`Updated a pipe.`}}case`pipe:remove`:return{title:`Removed pipe`,description:`Removed a pipe from the sheet.`};case`fields:add`:return{title:`Added field`,description:`Added a field to the sheet.`};case`fields:patch`:return{title:`Edited field`,description:`Edited a field on the sheet.`};case`fields:remove`:return{title:`Removed fields`,description:`Removed fields from the sheet.`};case`rows:add`:{let e=Array.isArray(r.records)?r.records.length:void 0;return{title:e==null?`Added rows`:`Added ${e} ${uP(e,`row`)}`,description:e==null?`Added rows to the sheet.`:`Added ${e} ${uP(e,`row`)} to the sheet.`}}case`rows:remove`:return{title:`Removed rows`,description:`Removed rows from the sheet.`};case`rows:dedupe`:return{title:`Removed duplicate rows`,description:`Removed duplicate rows from the sheet.`};case`rows:duplicate`:return{title:`Duplicated rows`,description:`Duplicated rows in the sheet.`};case`rows:enrich`:return{title:`Enriched rows`,description:`Ran enrichment pipes over rows.`};case`rows:filter:prompt`:return{title:`AI-filtered rows`,description:`Filtered rows with an AI prompt.`};case`rows:import`:return{title:`Imported rows`,description:`Imported rows into the sheet.`};case`row:update`:return{title:`Updated row`,description:`Updated a single row.`};case`search:run`:{let e=cP(r.search_payload);return{title:e?`Ran search ${e}`:`Ran search`,description:e?`Ran the search ${e} and appended its results.`:`Ran a search and appended its results.`}}case`sheet:export`:return{title:`Exported sheet`,description:`Exported the sheet.`};case`sheet:reset`:return{title:`Reset sheet`,description:`Reset the sheet to its empty state.`};case`env:change`:return{title:`Changed environment`,description:`Switched the sheet environment.`};case`timetravel:create`:return{title:`Created restore point`,description:`Snapshotted the sheet state.`};case`timetravel:travel`:return{title:`Restored to a previous point`,description:`Restored the sheet to a previous point in time.`};default:{let e=lP(t);return{title:e??t,description:e??t}}}}function sP(e){if(e&&typeof e==`object`){let t=e.pipe_id;if(typeof t==`string`&&t.length>0)return t}}function cP(e){if(e&&typeof e==`object`){let t=e.search_id;if(typeof t==`string`&&t.length>0)return t}}function lP(e){try{return LN(e)?.label}catch{return}}function uP(e,t){return e===1?t:`${t}s`}function dP(e){if(e instanceof V)return e;let t=e.effect_id,n=IN(t);if(!n)throw Error(`Unknown effect: ${e.effect_id}`);return new n(UN.parse(e))}function fP(e){let t=e.normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/[^A-Za-z0-9]+/g,`_`).replace(/^_+|_+$/g,``);return t===``?`column`:/^[0-9]/.test(t)?`_${t}`:t}function pP(e){let t=new Set;return e.map(e=>{let n=e,r=2;for(;t.has(n);)n=`${e}_${r}`,r++;return t.add(n),n})}function mP(e){let t=pP(e.map(fP));return e.map((e,n)=>({name:t[n],label:e}))}const hP={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function gP(e){return hP[e]}const _P=`bachelor.master.mba.phd.ph d.doctor.associate.diploma.b sc.bsc.m sc.msc.b a.m a.b tech.btech.m tech.mtech.b eng.m eng.b com.llb.llm.md.jd.undergraduate.postgraduate.graduate.degree`.split(`.`),vP=[`university`,`college`,`institute of technology`,`polytechnic`,`school of`],yP=e=>` ${e.toLowerCase().replace(/[^a-z ]+/g,` `).replace(/\s+/g,` `).trim()} `,bP=(e,t)=>{if(!e)return!1;let n=yP(e);return t.some(e=>n.includes(` ${e} `))};function xP(e){return bP(e.degree_name,_P)?!0:e.degree_name?!1:bP(e.institution_name,vP)}function SP(e){if(!e.start_date)return 1/0;let t=ee(e.start_date);return Number.isNaN(t.getTime())?1/0:t.getTime()}function CP(e){let t=e.education_history.filter(e=>e.is_current_education===!0&&xP(e)),n=null;for(let e of t)(n===null||SP(e)<SP(n))&&(n=e);return{...e,education_history:e.education_history.map(e=>({...e,is_primary_current_education:e===n}))}}function wP(e,t,n=new Date){if(!e)return{days:null,years:null};let r=ee(e);if(Number.isNaN(r.getTime()))return{days:null,years:null};let i=n;if(t){let e=ee(t);Number.isNaN(e.getTime())||(i=e)}let a=u(i,r);return a<0?{days:null,years:null}:{days:a,years:Math.round(a/365.25*100)/100}}const TP={shared:{}},EP={shared:{}},DP={shared:{paths:{"config.cursor":null,"config.offset":null,"config.page_number":null}}};function OP(e,t){let n=e[t];return{sectionMap:{...e.shared.sections,...n?.sections},groupMap:{...e.shared.groups,...n?.groups},pathMap:{...e.shared.paths,...n?.paths}}}const kP=e=>OP(EP,e),AP=e=>OP(DP,e),jP=e=>OP(TP,e),MP={"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},"config.destination":{order:9,label:`Destination`,description:`Name, type, and format of the field written to the destination sheet.`,iconKey:`output`,defaultExpand:!1}},NP={general:{path:`general`,label:`Behavior`,description:`How this pipe runs and selects providers.`,order:1},pagination:{path:`pagination`,label:`Behavior`,order:2},"config.filters":{path:`config.filters`,label:`I/O & conditions`,order:14},pipe_io:{path:``,label:`I/O & conditions`,order:99}};function PP(e){let t=eA(e),n=[];function i(e){let t=_.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 FP({pipePayload:e,validationContext:t,store:n,formResolvers:r,customization:i}){let a=eA(e.pipe_id),o=gc(e.pipe_id,e.config||{});return Bo({schema:a,extractFromSchema:r=>{let i=_.get(r);if(n.field_options??={},i)return i&&typeof i==`function`?i({validationContext:t,pipePayload:e,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}}):[],pipeEntry:rA(e.pipe_id),hash:o}):i},store:n,formResolvers:r,sectionMap:Ro(NP,i?.sectionMap),groupMap:Ro(MP,i?.groupMap),pathMap:i?.pathMap})}const IP={"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,order:4},"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.author":{label:`Author`,iconKey:`user`,defaultExpand:!1,order:2},"config.filters.mentions":{label:`Mentions`,iconKey:`tags`,defaultExpand:!1,order:3},"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,order:3},"config.filters.current_employer":{label:`Current employment`,iconKey:`briefcase`,defaultExpand:!1,order:2},"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}},LP={general:{path:`general`,label:`General`,description:`Search settings and pagination.`,order:1},pagination:{path:`pagination`,label:`General`,order:2},"config.filters":{path:`config.filters`,label:`Filters`,description:`Narrow the search results.`,order:10},pipe_io:{path:``,label:`Output fields`,order:99}};function RP({searchPayload:e,formContext:t,formResolvers:n,customization:r}){return Bo({schema:Lk(e.search_id),extractFromSchema:n=>{let r=v.get(n);if(t.field_options??={},r)return typeof r==`function`?r({searchPayload:e,searchEntry:Hk(e.search_id),userConnections:`connections`in t.field_options?(t.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},store:t,formResolvers:n,sectionMap:Ro(LP,r?.sectionMap),groupMap:Ro(IP,r?.groupMap),pathMap:r?.pathMap})}function zP(e){let t=Lk(e),n=[];function i(e){let t=v.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 BP={"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:1,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},connector:{order:100,label:`Connections`,iconKey:`plug`,defaultExpand:!1}},VP={general:{path:`general`,label:`General`,description:`How this effect runs.`,order:1},pagination:{path:`pagination`,label:`General`,order:99},"config.filters":{path:`config.filters`,label:`Filters`,order:99},pipe_io:{path:``,label:`Connections`,order:99}};function HP({effectPayload:e,validationContext:t,store:n,formResolvers:r,customization:i}){let a=RN(e.effect_id),o=Ks(e.effect_id,e.config||{});return Bo({schema:a,extractFromSchema:r=>{let i=y.get(r);if(n.field_options??={},i)return typeof i==`function`?i({validationContext:t,effectPayload:e,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}}):[],effectEntry:LN(e.effect_id),hash:o}):i},store:n,formResolvers:r,sectionMap:Ro(VP,i?.sectionMap),groupMap:Ro(BP,i?.groupMap),pathMap:i?.pathMap})}function UP(e){let t=RN(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 WP=new Proxy({},{get:(e,t)=>e=>e.type===t}),GP=`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(`.`),KP=r.enum(GP),qP=r.object({provider_logo:r.object({provider:Ir}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:KP}).optional(),logo_url:r.object({url:r.string(),alt:r.string().optional()}).optional(),pricing:r.object({credits:r.number()}).optional(),token_pricing:r.object({inputPerBlock:r.number(),outputPerBlock:r.number(),blockSize:r.number()}).optional(),field_type:r.object({type:r.string(),format:r.string().optional()}).optional()}),JP=`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(JP);const YP=r.object({value:r.string(),label:r.string(),widgets:qP.optional()}),XP=r.object({field_options:r.record(r.string(),r.object({options:r.array(YP)}))}),ZP=[{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}],QP=new Map(ZP.map(e=>[e.id,e]));function $P(e){return QP.get(e)}function eF(){return ZP}const tF={"company:funding:leadmagic@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:funding:leadmagic@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"company:identity@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@1`}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@2`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@3`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:overview@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@1`}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"people:phone:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:phone:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"person:mobile:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:mobile:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"people:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_website_url:`https://pipe0.com`}]}],"person:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_domain:`pipe0.com`}]}],"company:techstack:builtwith@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:techstack:builtwith@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"prompt:run@1":[{config:{environment:`production`},pipes:[{pipe_id:`prompt:run@1`,config:{model:`openai-gpt-latest`,prompt:{template:`
74
+ }`,inputType:`text`,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`text`,multiline:!0}).nullable(),headers:os({sectionKey:`general`,groupPath:`config.general`,path:`config.headers`,label:`Headers`,info:"In the value column, type `/` to insert a field or secret reference (e.g. `Bearer {{ secret … }}`).",keyLabel:`Header`,valueLabel:`Value`,keyPlaceholder:`Authorization`,valuePlaceholder:`Bearer {{ secret … }}`,maxKeys:50}),expected_response_schema:bs({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).`,allowEmpty:!0}).optional(),output_fields:L(r.object({[ry.name]:O({fieldName:ry.name}),[iy.name]:O({fieldName:iy.name}),[ay.name]:O({fieldName:ay.name})}))})}),sy={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},cy=class extends H{pipeId=ny;payload;payloadSchema=oy;billableOperations=sy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`http-request-v1-pipe0`)}getTemplatedFields(){return[this.payload.config.url,this.payload.config.body,...Object.values(this.payload.config.query_params??{}),...Object.values(this.payload.config.headers??{})]}getInputRequirement(){return wc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Tc(this.getTemplatedFields())}getConstantRequirements(){return Ec(this.getTemplatedFields())}getRawOutputFields(){return{[ry.name]:this.catalogOutput(ry),[iy.name]:this.catalogOutput(iy),[ay.name]:this.catalogOutput(ay)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},ly=oy,uy={pipeId:ny,basePipe:G(ny),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:[W.LOGIC,W.JSON,W.NEW],docPath:K(ny),billableOperations:sy,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:ny,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}}}}},dy=`json:extract:multi@1`,fy=r.object({pipe_id:r.literal(dy),run_if:x(),connector:w(),config:r.object({json_extraction:po()})}),py={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},my=class extends H{pipeId=dy;payload;payloadSchema=fy;billableOperations=py;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`json-extract-multi-v1-pipe0`)}getInputRequirement(){return V({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[]}},hy=fy,gy={pipeId:dy,basePipe:G(dy),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,guide:'Deterministic JSON extraction β€” PREFER this over prompt:run@1 whenever you need a value out of a JSON / known-schema column (no LLM, reproducible, schedulable). config.json_extraction.field_name is the source json column; each extraction has a JSONata `path` plus an output_field. Read the source column\'s JSON schema (get_pipe_schema / get_search_schema output fields, or get_sheet_schema) to author the path. Examples over a profile\'s employment_history array: `employment_history[is_current_employer=true][]` (array of current jobs β†’ output_field.type "json"); `employment_history[is_primary_current_employer=true].company_domain` (scalar β†’ output_field.type "string"). Set output_field.type to "json" for an object/array result, "string" for a scalar. CRITICAL for a list you will fan out (e.g. into row:expandappend:sheet@1): a JSONata filter returns the matched ELEMENT when exactly one row matches but an ARRAY when several do β€” so ALWAYS append the array constructor `[]` to force a consistent array in every row (`employment_history[is_current_employer=true][]`, not `...=true]`). Without it the column is an object in single-match rows and an array in others, and the downstream expand rejects the object rows. To confirm a NEW path resolves the shape you expect before running anything downstream, switch the sheet to SANDBOX (env:change@1) and run just this extraction β€” it runs for REAL in sandbox (no writes, no spend), so you can read the actual result, fix the path, then switch back to production.',docPath:K(dy),tags:[W.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:py,defaultInputRequirement:null,defaultPayload:{pipe_id:dy,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},_y=`lead:enroll:lemlist@1`,vy={"lead-enroll-lemlist-v1-lemlist":{allowManagedConnection:!1,provider:`lemlist`,credits:null,mode:null}},yy=g(`email`),by=g(`name`),xy=g(`first_name`),Sy=g(`last_name`),Cy=g(`company_name`),wy=g(`job_title`),Ty=g(`profile_url`),Ey=g(`phone`),Dy=g(`lemlist_lead_id`),Oy=g(`lemlist_enrollment_result`),ky=new Set([`email`,`firstName`,`lastName`,`name`,`companyName`,`jobTitle`,`linkedinUrl`,`phone`,`companyDomain`,`icebreaker`,`picture`]),Ay=[{label:`Demo Β· Q3 Outbound`,value:`cam_sandbox_1`},{label:`Demo Β· Founder Intros`,value:`cam_sandbox_2`}],jy={requires:{connection:`lemlist`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Ay;if(!t)throw new qu.MissingSecretError({providerName:`lemlist`});let r=await fetch(`https://api.lemlist.com/api/campaigns?limit=100`,{headers:{Authorization:`Basic ${t}`}});if(!r.ok){let e=await r.text();throw new qu.HttpError({msg:e})}let i=await r.json(),a=(Array.isArray(i)?i:i.campaigns??[]).map(e=>({label:e.name,value:e._id}));return e?a.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):a},widgets:{provider_logo:{provider:`lemlist`}}};function My(e){let t=new Set,n=new Set;try{let r=ia(e);for(let[e,i]of Object.entries(r.inputs))(i.required?t:n).add(e)}catch{for(let n of e.matchAll(/\{\{\s*([A-Za-z_][A-Za-z0-9_]*)/g))t.add(n[1])}return{required:[...t],optional:[...n]}}const Ny=r.object({pipe_id:r.literal(_y),connector:Go(),run_if:x(),config:r.object({campaign_id:xs({sectionKey:`general`,required:!0,label:`Campaign`,groupPath:`config.general`,path:`config.campaign_id`,info:`The lemlist campaign to enroll the lead into.`,enabledIf:Na(`lemlist`),optionsDef:jy}),input_fields:R(r.object({[yy.name]:E({fieldName:yy.name}),[by.name]:E({fieldName:by.name}),[xy.name]:E({fieldName:xy.name}),[Sy.name]:E({fieldName:Sy.name}),[Cy.name]:E({fieldName:Cy.name}),[wy.name]:E({fieldName:wy.name}),[Ty.name]:E({fieldName:Ty.name}),[Ey.name]:E({fieldName:Ey.name})})),custom_variables:os({sectionKey:`general`,groupPath:`config.general`,path:`config.custom_variables`,label:`Custom variables`,info:"lemlist custom variables, set on the lead after enrollment. The Variable name must match what your sequence references (e.g. `{{ painPoint }}`) β€” case-sensitive, no spaces. In the Value column, type `/` to insert a field or secret; leave a Value empty to skip that row. Standard fields (company, job title, LinkedIn, phone) are set via the fields above, not here.",keyLabel:`Variable`,valueLabel:`Value`,keyPlaceholder:`painPoint`,valuePlaceholder:`{{ pain_point }}`,maxKeys:50}),output_fields:L(r.object({[Dy.name]:O({fieldName:Dy.name}),[Oy.name]:O({fieldName:Oy.name})}))}).check(e=>{let t=e.value;for(let n of Object.keys(t.custom_variables??{})){let t=n.trim();if(!t)continue;let r=t=>e.issues.push({code:`custom`,input:n,message:t,path:[`custom_variables`,n]});if(t.includes(`{{`)){r("Variable name must be a literal (no `{{ }}` templating).");continue}if(!/^[A-Za-z_][A-Za-z0-9_]*$/.test(t)){r(`Invalid lemlist variable name "${t}" β€” use letters, digits, and underscores; no spaces.`);continue}ky.has(t)&&r(`"${t}" is a standard lemlist field β€” set it via the dedicated field above, not as a custom variable.`)}})}),Py=e=>uc(V(q(yy,e)),dc(V(q(by,e)),uc(V(q(xy,e)),V(q(Sy,e)))),fc(q(Cy,e)),fc(q(wy,e)),fc(q(Ty,e)),fc(q(Ey,e))),Fy=e=>{let t=new Set;for(let n of e)if(n)try{let e=ia(n);for(let n of Object.keys(e.inputs))t.add(n)}catch{}return[...t].map(e=>fc({name:e,resolvedName:e,label:e,description:``,type:t=>Cc(t,e)?.type||`string`,format:`text`}))},Iy=class extends H{pipeId=_y;payload;payloadSchema=Ny;billableOperations=vy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`lemlist`]}estimateBillableOperations(e){return J(e,`lead-enroll-lemlist-v1-lemlist`)}getCustomVariableValueTemplates(){return Object.values(this.payload.config.custom_variables??{})}getInputRequirement(){return uc(Py(this.payload.config),...Fy(this.getCustomVariableValueTemplates()))}getSecretRequirements(){return Tc(this.getCustomVariableValueTemplates())}getConstantRequirements(){return Ec(this.getCustomVariableValueTemplates())}getRawOutputFields(){return{[Dy.name]:this.catalogOutput(Dy),[Oy.name]:this.catalogOutput(Oy)}}getConnectionsRequirements(){return[{provider:`lemlist`,rateLimitRatio:1,rateLimitOperation:`lemlist_create_lead`,allowManagedConnection:!1}]}async getAgentContext({connectionSecrets:e,environment:t}){let n=this.payload.config.campaign_id,r=Array.isArray(n)?n[0]:n;if(!r)return null;if(t===`sandbox`)return{summary:`Sandbox: this sequence references custom variables painPoint and eventLink β€” set each via config.custom_variables.`,data:{required_custom_variables:[`painPoint`,`eventLink`],used_standard_fields:[`firstName`]}};let i=e.lemlist;if(!i)throw new qu.MissingSecretError({providerName:`lemlist`});let a=await fetch(`https://api.lemlist.com/api/campaigns/${encodeURIComponent(r)}/sequences`,{headers:{Authorization:`Basic ${i}`},signal:AbortSignal.timeout(1e4)});if(!a.ok){let e=await a.text();throw new qu.HttpError({msg:e})}let o=await a.json(),s=new Set;for(let e of Object.values(o??{}))for(let t of e?.steps??[])for(let e of[t?.subject,t?.message]){if(!e)continue;let{required:t,optional:n}=My(e);for(let e of[...t,...n])s.add(e)}let c=[...s].filter(e=>ky.has(e)),l=[...s].filter(e=>!ky.has(e));return{summary:l.length===0?`This sequence uses only standard lemlist fields β€” no custom variables to set.`:`This sequence requires these custom variables β€” set each via config.custom_variables (the value is a Liquid template over your sheet columns, e.g. {{ pain_point }}): ${l.join(`, `)}. Standard fields (email, firstName, …) are populated by the input fields above, not here.`,data:{required_custom_variables:l,used_standard_fields:c}}}},Ly=Ny,Ry={pipeId:_y,basePipe:G(_y),label:`Enroll Lead in Campaign`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Add a lead to a lemlist campaign sequence, with custom variables.`,tags:[W.EMAIL],docPath:K(_y),billableOperations:vy,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`lemlist`],defaultInputRequirement:Py(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:_y,connector:{strategy:`first`,connections:[]},run_if:null,config:{campaign_id:``,input_fields:{email:{alias:``},name:{alias:``},first_name:{alias:``},last_name:{alias:``},company_name:{alias:``},job_title:{alias:``},profile_url:{alias:``},phone:{alias:``}},custom_variables:{},output_fields:{lemlist_lead_id:{alias:``,enabled:!0},lemlist_enrollment_result:{alias:``,enabled:!1}}}}},zy=`message:send:slack@1`,By=g(`slack_message_success`),Vy=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],Hy=r.object({pipe_id:r.literal(zy),connector:Go(),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 Vy;if(!t)throw new qu.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 qu.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new qu.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({[By.name]:O({fieldName:By.name})}))})}),Uy={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},Wy=class extends H{pipeId=zy;payload;payloadSchema=Hy;billableOperations=Uy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(e){return J(e,`message-send-slack-v1-slack`)}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return wc(this.getTemplatedFields())}getSecretRequirements(){return Tc(this.getTemplatedFields())}getConstantRequirements(){return Ec(this.getTemplatedFields())}getRawOutputFields(){return{[By.name]:this.catalogOutput(By)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},Gy=Hy,Ky={pipeId:zy,basePipe:G(zy),label:`Send message into channel`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send a Slack message to a channel.`,guide:"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:[W.CHAT],docPath:K(zy),billableOperations:Uy,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:zy,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},qy=`message:write@1`,Jy=g(`message`),Yy=`message-write-v1`,Xy=Za(Yy),Zy=r.object({pipe_id:r.literal(qy),connector:C(),run_if:x(),config:r.object({template:Uo({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:U(`prompt`),groupPath:`config.prompt`,required:!0}),model:gs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Xy}),output_fields:L(r.object({[Jy.name]:O({fieldName:Jy.name})}))})}),Qy=class extends H{pipeId=qy;payload;payloadSchema=Zy;billableOperations=Xy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return Wa(this.payload.config.model)}estimateBillableOperations(e){return $a(e,{model:this.payload.config.model,prefix:Yy,inputTokens:600,outputTokens:800})}getInputRequirement(){return wc([this.payload.config.template])}getSecretRequirements(){return Tc([this.payload.config.template])}getConstantRequirements(){return Ec([this.payload.config.template])}getRawOutputFields(){return{[Jy.name]:this.catalogOutput(Jy)}}getConnectionsRequirements(){return Ga(this.payload.config.model)}},$y=Zy,eb={pipeId:qy,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:G(qy),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.)`,guide:`AI message composer for Slack/Teams/Discord. Outputs: message. Pair with message:send:slack@1 to send.`,tags:[W.AI],docPath:K(qy),defaultInputRequirement:null,billableOperations:Xy,allowedUserConnectionProviders:Ka(),managedProviders:Ka(),deprecatedProviders:[],defaultPayload:{pipe_id:qy,connector:null,run_if:null,config:{model:`openai-high`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},tb=`person:devprofileurl:profileurl:waterfall@1`,nb=g(`profile_url`),rb=g(`developer_profile_url`),ib=g(`alternative_developer_profile_urls`),ab=[`crustdata`],ob=[{provider:`crustdata`}],sb=r.object({pipe_id:r.literal(tb),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:ob,availableProviders:ab}),input_fields:R(r.object({[nb.name]:E({fieldName:nb.name})})),output_fields:L(r.object({[rb.name]:O({fieldName:rb.name}),[ib.name]:O({fieldName:ib.name})}))}).optional()}),cb=e=>V(q(nb,e)),lb={"person-devprofileurl-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1.3,weight:1}},mode:`onSuccess`}},ub=class extends H{pipeId=tb;payload;payloadSchema=sb;billableOperations=lb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return cb(this.payload.config)}getRawOutputFields(){return{[rb.name]:this.catalogOutput(rb,{isPrimaryOutput:!0}),[ib.name]:this.catalogOutput(ib,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},db=sb,fb={pipeId:tb,basePipe:G(tb),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:K(tb),tags:[W.LINKEDIN,W.WATERFALL,W.NEW],billableOperations:lb,defaultInputRequirement:cb(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:ab,allowedUserConnectionProviders:ab,deprecatedProviders:[],defaultPayload:{pipe_id:tb,connector:null,run_if:null,config:{providers:ob,input_fields:{profile_url:{alias:``}},output_fields:{developer_profile_url:{alias:``,enabled:!0},alternative_developer_profile_urls:{alias:``,enabled:!1}}}}},pb=`person:email:validate:millionverifier@1`,mb=g(`email`),hb=g(`email_validation_status`),gb=g(`million_validation_match`),_b=r.object({pipe_id:r.literal(pb),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[mb.name]:E({fieldName:mb.name})})),output_fields:L(r.object({[hb.name]:O({fieldName:hb.name}),[gb.name]:O({fieldName:gb.name})}))}).optional()}),vb=e=>V(q(mb,e)),yb={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},bb=class extends H{pipeId=pb;payload;payloadSchema=_b;billableOperations=yb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(e){return J(e,`person-email-validate-millionverifier-v1-millionverifier`)}getInputRequirement(){return vb(this.payload.config)}getRawOutputFields(){return{[hb.name]:this.catalogOutput(hb),[gb.name]:this.catalogOutput(gb)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},xb=_b,Sb={pipeId:pb,basePipe:G(pb),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[W.EMAIL],docPath:K(pb),billableOperations:yb,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:vb(null),defaultPayload:{pipe_id:pb,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},Cb=g(`email`),wb=g(`amplemarket_person_match`),Tb=`person:identity:amplemarket@1`,Eb=r.object({pipe_id:r.literal(Tb),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Cb.name]:E({fieldName:Cb.name})})),output_fields:L(r.object({[wb.name]:O({fieldName:wb.name})}))}).optional()}),Db=e=>V(q(Cb,e)),Ob={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},kb=class extends H{pipeId=Tb;payload;payloadSchema=Eb;billableOperations=Ob;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return Db(this.payload.config)}getRawOutputFields(){return{[wb.name]:this.catalogOutput(wb)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},Ab=Eb,jb={pipeId:Tb,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Tb),label:`Person identity`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their email`,tags:[W.PEOPLE_PROFILES],docPath:K(Tb),billableOperations:Ob,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:Db(null),defaultPayload:{pipe_id:Tb,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},Mb=`person:identity:email:waterfall@1`,Nb=g(`email`),Pb=g(`company_domain`),Fb=g(`name`),Ib=g(`job_title`),Lb=g(`profile_url`),Rb=g(`company_profile_url`),zb=g(`company_name`),Bb=[`findymail`,`hunter`,`crustdata`],Vb=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],Hb=r.object({pipe_id:r.literal(Mb),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:Bb,defaultProviders:Vb,sectionKey:`general`}),input_fields:R(r.object({[Nb.name]:E({fieldName:Nb.name})})),output_fields:L(r.object({[Fb.name]:O({fieldName:Fb.name}),[Lb.name]:O({fieldName:Lb.name}),[Ib.name]:O({fieldName:Ib.name}),[Pb.name]:O({fieldName:Pb.name}),[zb.name]:O({fieldName:zb.name}),[Rb.name]:O({fieldName:Rb.name})}))}).optional()}),Ub=e=>V(q(Nb,e)),Wb={"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`}},Gb=class extends H{pipeId=Mb;payload;payloadSchema=Hb;billableOperations=Wb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Ub(this.payload.config)}getRawOutputFields(){return{[Fb.name]:this.catalogOutput(Fb,{isPrimaryOutput:!0}),[Lb.name]:this.catalogOutput(Lb,{isPrimaryOutput:!0}),[Ib.name]:this.catalogOutput(Ib,{isPrimaryOutput:!0}),[zb.name]:this.catalogOutput(zb,{isPrimaryOutput:!0}),[Rb.name]:this.catalogOutput(Rb,{isPrimaryOutput:!0}),[Pb.name]:this.catalogOutput(Pb,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Kb=Hb,qb={pipeId:Mb,basePipe:G(Mb),label:`Person identity from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find identity of a person from their email address.`,tags:[W.EMAIL,W.PEOPLE_PROFILES],docPath:K(Mb),managedProviders:Bb,deprecatedProviders:[],allowedUserConnectionProviders:Bb,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Wb,defaultInputRequirement:Ub(null),defaultPayload:{pipe_id:Mb,connector:null,run_if:null,config:{providers:Vb,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}}}}},Jb=g(`profile_url`),Yb=g(`amplemarket_person_match`),Xb=`person:match:amplemarket@1`,Zb=r.object({pipe_id:r.literal(Xb),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Jb.name]:E({fieldName:Jb.name})})),output_fields:L(r.object({[Yb.name]:O({fieldName:Yb.name})}))}).optional()}),Qb=e=>V(q(Jb,e)),$b={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},ex=class extends H{pipeId=Xb;payload;payloadSchema=Zb;billableOperations=$b;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return Qb(this.payload.config)}getRawOutputFields(){return{[Yb.name]:this.catalogOutput(Yb)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},tx=Zb,nx={pipeId:Xb,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Xb),label:`Person match`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their LinkedIn profile URL.`,tags:[W.PEOPLE_PROFILES],docPath:K(Xb),billableOperations:$b,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:Qb(null),defaultPayload:{pipe_id:Xb,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},rx=`person:match:role:waterfall@1`,ix=g(`company_domain`),ax=g(`role_finder_match`),ox=[`leadmagic`],sx=[{provider:`leadmagic`}],cx=r.object({pipe_id:r.literal(rx),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:sx,availableProviders:ox}),roles:as({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({[ix.name]:E({fieldName:ix.name})})),output_fields:L(r.object({[ax.name]:O({fieldName:ax.name})}))})}),lx=e=>dc(q(ix,e)),ux={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},dx=class extends H{pipeId=rx;payload;payloadSchema=cx;billableOperations=ux;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return lx(this.payload.config)}getSecretRequirements(){return Tc(this.payload.config?.roles??[])}getConstantRequirements(){return Ec(this.payload.config?.roles??[])}getRawOutputFields(){return{[ax.name]:this.catalogOutput(ax,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},fx=cx,px={pipeId:rx,basePipe:G(rx),managedProviders:ox,deprecatedProviders:[],allowedUserConnectionProviders:ox,label:`Role finder`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[W.PEOPLE_PROFILES],docPath:K(rx),billableOperations:ux,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:lx(null),defaultPayload:{pipe_id:rx,run_if:null,connector:null,config:{roles:[],providers:sx,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},mx=`person:mobile:profileurl:waterfall@1`,hx=g(`profile_url`),gx=g(`mobile`),_x=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],vx=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],yx=r.object({pipe_id:r.literal(mx),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:vx,availableProviders:_x}),input_fields:R(r.object({[hx.name]:E({fieldName:hx.name})})),output_fields:L(r.object({[gx.name]:O({fieldName:gx.name})}))}).optional()}),bx=e=>V(q(hx,e)),xx={"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`}},Sx=class extends H{pipeId=mx;payload;payloadSchema=yx;billableOperations=xx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return bx(this.payload.config)}getRawOutputFields(){return{[gx.name]:this.catalogOutput(gx,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Cx=yx,wx={pipeId:mx,basePipe:G(mx),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:K(mx),tags:[W.PHONE,W.WATERFALL],billableOperations:xx,defaultInputRequirement:bx(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:_x,allowedUserConnectionProviders:_x,deprecatedProviders:[],defaultPayload:{pipe_id:mx,connector:null,run_if:null,config:{providers:vx,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Tx=`person:mobile:workemail:waterfall@1`,Ex=g(`work_email`),Dx=g(`mobile`),Ox=[`leadmagic`,`amplemarket`],kx=[{provider:`leadmagic`},{provider:`amplemarket`}],Ax=r.object({pipe_id:r.literal(Tx),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Ox,defaultProviders:kx}),input_fields:R(r.object({[Ex.name]:E({fieldName:Ex.name})})),output_fields:L(r.object({[Dx.name]:O({fieldName:Dx.name})}))}).optional()}),jx=e=>V(q(Ex,e)),Mx={"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`}},Nx=class extends H{pipeId=Tx;payload;payloadSchema=Ax;billableOperations=Mx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return jx(this.payload.config)}getRawOutputFields(){return{[Dx.name]:this.catalogOutput(Dx,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Px=Ax,Fx={pipeId:Tx,basePipe:G(Tx),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for a prospect.`,tags:[W.PHONE,W.WATERFALL],docPath:K(Tx),billableOperations:Mx,defaultInputRequirement:jx(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Ox,managedProviders:Ox,deprecatedProviders:[],defaultPayload:{pipe_id:Tx,connector:null,run_if:null,config:{providers:kx,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Ix=`person:name:join@1`,Lx=g(`first_name`),Rx=g(`last_name`),zx=g(`name`),Bx=r.object({pipe_id:r.literal(Ix),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Lx.name]:E({fieldName:Lx.name}),[Rx.name]:E({fieldName:Rx.name})})),output_fields:L(r.object({[zx.name]:O({fieldName:zx.name})}))}).optional()}),Vx=e=>uc(q(Lx,e),q(Rx,e)),Hx={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Ux=class extends H{pipeId=Ix;payload;payloadSchema=Bx;billableOperations=Hx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`person-name-join-v1-pipe0`)}getInputRequirement(){return Vx(this.payload.config)}getRawOutputFields(){return{[zx.name]:this.catalogOutput(zx)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Wx=Bx,Gx={pipeId:Ix,basePipe:G(Ix),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:[W.NAMES],docPath:K(Ix),billableOperations:Hx,defaultInputRequirement:Vx(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ix,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},Kx=`person:name:split@1`,qx=g(`name`),Jx=g(`first_name`),Yx=g(`last_name`),Xx=r.object({pipe_id:r.literal(Kx),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[qx.name]:E({fieldName:qx.name})})),output_fields:L(r.object({[Jx.name]:O({fieldName:Jx.name}),[Yx.name]:O({fieldName:Yx.name})}))}).optional()}),Zx=e=>V(q(qx,e)),Qx={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},$x=class extends H{pipeId=Kx;payload;payloadSchema=Xx;billableOperations=Qx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`person-name-split-v1-pipe0`)}getInputRequirement(){return Zx(this.payload.config)}getRawOutputFields(){return{[Jx.name]:this.catalogOutput(Jx),[Yx.name]:this.catalogOutput(Yx)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},eS=Xx,tS={pipeId:Kx,basePipe:G(Kx),label:`Split name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Split a full name into first and last name.`,tags:[W.NAMES],docPath:K(Kx),billableOperations:Qx,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Zx(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Kx,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},nS=`person:personalemail:profileurl:waterfall@1`,rS=g(`profile_url`),iS=g(`personal_email`),aS=g(`alternate_personal_emails`),oS=[`leadmagic`,`mixrank`],sS=[{provider:`leadmagic`},{provider:`mixrank`}],cS=r.object({pipe_id:r.literal(nS),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:oS,defaultProviders:sS}),input_fields:R(r.object({[rS.name]:E({fieldName:rS.name})})),output_fields:L(r.object({[iS.name]:O({fieldName:iS.name}),[aS.name]:O({fieldName:aS.name})}))}).optional()}),lS=e=>V(q(rS,e)),uS={"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`}},dS=class extends H{pipeId=nS;payload;payloadSchema=cS;billableOperations=uS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return lS(this.payload.config)}getRawOutputFields(){return{[iS.name]:this.catalogOutput(iS,{isPrimaryOutput:!0}),[aS.name]:this.catalogOutput(aS)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},fS=cS,pS={pipeId:nS,basePipe:G(nS),allowedUserConnectionProviders:oS,managedProviders:oS,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:[W.EMAIL,W.PERSONAL_EMAIL],docPath:K(nS),billableOperations:uS,defaultInputRequirement:lS(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:nS,connector:null,run_if:null,config:{providers:sS,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},mS=g(`profile_url`),hS=g(`post_list_string`),gS=g(`crustdata_post_list`),_S=`person:posts:content:crustdata@1`,vS=r.object({pipe_id:r.literal(_S),run_if:x(),connector:C(),config:r.object({limit:vs({path:`config.limit`,groupPath:`config.general`,max:100,min:1,sectionKey:`general`,info:``,label:`Limit`,legend:`Max. 100`}),input_fields:R(r.object({[mS.name]:E({fieldName:mS.name})})),output_fields:L(r.object({[hS.name]:O({fieldName:hS.name}),[gS.name]:O({fieldName:gS.name})}))}).optional()}),yS=e=>V(q(mS,e)),bS={"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`}},xS=class extends H{pipeId=_S;payload;payloadSchema=vS;billableOperations=bS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`person-posts-crustdata-v1-crustdata`)}getInputRequirement(){return yS(this.payload.config)}getRawOutputFields(){return{[hS.name]:this.catalogOutput(hS),[gS.name]:this.catalogOutput(gS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},SS=vS,CS={pipeId:_S,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(_S),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[W.LINKEDIN],docPath:K(_S),billableOperations:bS,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:yS(null),defaultPayload:{pipe_id:_S,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}}}}},wS=`person:profile:waterfall@1`,TS=g(`profile`),ES=g(`profile_url`),DS=[`prospeo`,`icypeas`,`amplemarket`],OS=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],kS=r.object({pipe_id:r.literal(wS),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:DS,defaultProviders:OS}),input_fields:R(r.object({[ES.name]:E({fieldName:ES.name})})),output_fields:L(r.object({[TS.name]:O({fieldName:TS.name})}))}).optional()}),AS=e=>V(q(ES,e)),jS={"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}},MS=class extends H{pipeId=wS;payload;payloadSchema=kS;billableOperations=jS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return AS(this.payload.config)}getRawOutputFields(){return{[TS.name]:this.catalogOutput(TS,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},NS=kS,PS={pipeId:wS,basePipe:G(wS),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:K(wS),tags:[W.LINKEDIN,W.WATERFALL],managedProviders:DS,deprecatedProviders:[],allowedUserConnectionProviders:DS,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:jS,defaultInputRequirement:AS(null),defaultPayload:{pipe_id:wS,run_if:null,connector:null,config:{providers:OS,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},FS=g(`work_email`),IS=g(`crustdata_person_match`),LS=g(`crustdata_profile_match_score`),RS=`person:profile:workemail:crustdata@1`,zS=r.object({pipe_id:r.literal(RS),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[FS.name]:E({fieldName:FS.name})})),output_fields:L(r.object({[IS.name]:O({fieldName:IS.name}),[LS.name]:O({fieldName:LS.name})}))}).optional()}),BS=e=>V(q(FS,e)),VS={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},HS=class extends H{pipeId=RS;payload;payloadSchema=zS;billableOperations=VS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`person-profile-workemail-crustdata-v1-crustdata`)}getInputRequirement(){return BS(this.payload.config)}getRawOutputFields(){return{[IS.name]:this.catalogOutput(IS),[LS.name]:this.catalogOutput(LS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},US=zS,WS={pipeId:RS,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(RS),label:`Profile from work email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find person profile by their work email address.`,tags:[W.EMAIL,W.PEOPLE_PROFILES],docPath:K(RS),billableOperations:VS,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:BS(null),defaultPayload:{pipe_id:RS,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}}}}},GS=`person:profileurl:email:waterfall@1`,KS=g(`email`),qS=g(`work_email`),JS=g(`profile_url`),YS=[`leadmagic`],XS=[{provider:`leadmagic`}],ZS=r.object({pipe_id:r.literal(GS),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:XS,availableProviders:YS}),input_fields:R(r.object({[KS.name]:E({fieldName:KS.name}),[qS.name]:E({fieldName:qS.name})})),output_fields:L(r.object({[JS.name]:O({fieldName:JS.name})}))}).optional()}),QS=e=>dc(q(KS,e),q(qS,e)),$S={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},eC=class extends H{pipeId=GS;payload;payloadSchema=ZS;billableOperations=$S;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return QS(this.payload.config)}getRawOutputFields(){return{[JS.name]:this.catalogOutput(JS,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},tC=ZS,nC={pipeId:GS,basePipe:G(GS),managedProviders:YS,deprecatedProviders:[],allowedUserConnectionProviders:YS,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:[W.LINKEDIN],docPath:K(GS),billableOperations:$S,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:QS(null),defaultPayload:{pipe_id:GS,run_if:null,connector:null,config:{providers:XS,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},rC=`person:profileurl:name@1`,iC=g(`name`),aC=g(`company_name`),oC=g(`location_hint`),sC=g(`profile_url`),cC=r.object({pipe_id:r.literal(rC),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[iC.name]:E({fieldName:iC.name}),[aC.name]:E({fieldName:aC.name}),[oC.name]:E({fieldName:oC.name})})),output_fields:L(r.object({[sC.name]:O({fieldName:sC.name})}))}).optional()}),lC=e=>uc(V(q(iC,e)),V(q(aC,e)),fc(q(oC,e))),uC={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},dC=class extends H{pipeId=rC;payload;payloadSchema=cC;billableOperations=uC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`person-profileurl-name-v1-pipe0`)}getInputRequirement(){return lC(this.payload.config)}getRawOutputFields(){return{[sC.name]:this.catalogOutput(sC)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},fC=cC,pC={pipeId:rC,basePipe:G(rC),label:`LinkedIn URL from name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],description:`Find the LinkedIn profile URL by using the prospect's name as input.`,docPath:K(rC),tags:[W.LINKEDIN],billableOperations:uC,defaultInputRequirement:lC(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:rC,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},mC=`person:workemail:profileurl:waterfall@1`,hC=g(`profile_url`),gC=g(`work_email`),_C=g(`email_validation_status`),vC=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],yC=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],bC=r.object({pipe_id:r.literal(mC),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:vC,defaultProviders:yC,sectionKey:`general`}),allow_catch_all_emails:ds({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:ds({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Higher chance of bouncing or being marked as spam.`,label:`Allow risky emails`}),input_fields:R(r.object({[hC.name]:E({fieldName:hC.name})})),output_fields:L(r.object({[gC.name]:O({fieldName:gC.name}),[_C.name]:O({fieldName:_C.name})}))}).optional()}),xC=e=>V(q(hC,e)),SC={"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`}},CC=class extends H{pipeId=mC;payload;payloadSchema=bC;billableOperations=SC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return xC(this.payload.config)}getRawOutputFields(){return{[gC.name]:this.catalogOutput(gC,{isPrimaryOutput:!0}),[_C.name]:this.catalogOutput(_C,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},wC=bC,TC={pipeId:mC,basePipe:G(mC),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses from B2B profile.`,tags:[W.EMAIL,W.WORK_EMAIL,W.WATERFALL],docPath:K(mC),managedProviders:vC,allowedUserConnectionProviders:vC,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:SC,defaultInputRequirement:xC(null),defaultPayload:{pipe_id:mC,connector:null,run_if:null,config:{providers:yC,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}}}}},EC=`person:workemail:waterfall@1`,DC=g(`name`),OC=g(`company_domain`),kC=g(`company_name`),AC=g(`work_email`),jC=g(`email_validation_status`),MC=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],NC=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],PC={"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`}},FC=r.object({pipe_id:r.literal(EC),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:MC,defaultProviders:NC,sectionKey:`general`,providerCredits:Dc(PC,MC)}),allow_catch_all_emails:ds({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:ds({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({[DC.name]:E({fieldName:DC.name}),[OC.name]:E({fieldName:OC.name}),[kC.name]:E({fieldName:kC.name})})),output_fields:L(r.object({[AC.name]:O({fieldName:AC.name}),[jC.name]:O({fieldName:jC.name})}))}).optional()}),IC=e=>uc(V(q(DC,e)),dc(q(OC,e),q(kC,e))),LC=class extends H{pipeId=EC;payload;payloadSchema=FC;billableOperations=PC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return IC(this.payload.config)}getRawOutputFields(){return{[AC.name]:this.catalogOutput(AC,{isPrimaryOutput:!0}),[jC.name]:this.catalogOutput(jC,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_email_lookup`,icypeas:`icypeas_email_lookup`,findymail:`findymail_email_lookup`,hunter:`hunter_email_finder`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},RC=FC,zC={pipeId:EC,basePipe:G(EC),label:`Work email from name`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses in a waterfall motion.`,tags:[W.EMAIL,W.WORK_EMAIL,W.WATERFALL],docPath:K(EC),managedProviders:MC,deprecatedProviders:[],allowedUserConnectionProviders:MC,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:PC,defaultInputRequirement:IC(null),defaultPayload:{pipe_id:EC,connector:null,run_if:null,config:{providers:NC,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}}}}},BC=`prompt:run@1`,VC=`prompt-run-v1`,HC=Za(VC),UC=r.object({pipe_id:r.literal(BC),connector:C(),run_if:x(),config:r.object({prompt:Ho({sectionKey:`general`,path:`config.prompt`,placeholder:U(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:gs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:HC})})}),WC=class extends H{pipeId=BC;payload;payloadSchema=UC;billableOperations=HC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return Wa(this.payload.config.model)}estimateBillableOperations(e){return $a(e,{model:this.payload.config.model,prefix:VC,inputTokens:600,outputTokens:800})}getInputRequirement(){return wc([this.payload.config.prompt.template])}getSecretRequirements(){return Tc([this.payload.config.prompt.template])}getConstantRequirements(){return Ec([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=ia(e)}catch{return n}for(let e of r.outputs){let r=e.type;if(r===`json`){let i=e.schemaRef?t[e.schemaRef]:void 0;n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:{zodSchema:i,exampleValue:null},format:null,isCatalogFIeld:!1,isPrimaryOutput:!1}}else n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:null,format:e.format??null,isCatalogFIeld:!1,isPrimaryOutput:!1}}return n}getConnectionsRequirements(){return Ga(this.payload.config.model)}},GC=UC,KC={pipeId:BC,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:G(BC),label:`AI prompt`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,description:`Executes configurable AI prompts with structured output fields.`,guide:`General-purpose AI prompt runner. Inputs and outputs are fully dynamic β€” defined by the tags in the prompt template. For extracting a value from a JSON / known-schema field, do NOT use this β€” use the deterministic json:extract:multi@1 (JSONata) instead: it's cheaper, reproducible, and runs on a schedule with no model. Reserve prompt:run@1 for genuine judgment or free-text generation (classify, summarize, rewrite).`,tags:[W.AI],docPath:K(BC),defaultInputRequirement:null,billableOperations:HC,allowedUserConnectionProviders:Ka(),managedProviders:Ka(),deprecatedProviders:[],defaultPayload:{pipe_id:BC,connector:null,run_if:null,config:{model:`openai-high`,prompt:{template:``,json_schemas:{}}}}},qC=`row:append:sheet@1`,JC=g(`sheet_record_id`),YC=g(`created_sheet`),XC=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],ZC=[{label:`Demo project`,value:`demo-project`},{label:`Sales pipeline`,value:`sales-pipeline`}];function QC(e){let t=e?.config?.project;return typeof t==`string`&&t.length>0?t:void 0}const $C={requires:{connection:`pipe0`},enabledIf:Na(`pipe0`,`Select a pipe0 connection to see project suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?ZC:t?(await t.projects.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`}}},ew={requires:{connection:`pipe0`,fields:[`config.project`]},enabledIf:Na(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n,payload:r})=>n===`sandbox`?XC:t?(await t.sheets.list({query:e,projectSlug:QC(r)})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},tw=r.object({pipe_id:r.literal(qC),connector:Go(),run_if:x(),config:r.object({project:S({label:`Project`,info:"Project the destination sheet lives in (its org-unique slug). Pick an existing project or type a new slug β€” a new project is created when `allow_entity_creation` is on.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.project`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:$C}),sheet:S({label:`Sheet ID`,info:'The destination sheet\'s identifier (its slug β€” NOT the display name). Slugs are org-unique: pick an existing sheet to append into it, or type a NEW slug to create one β€” a generic slug (e.g. "results", "companies") is likely to match an unrelated existing sheet, so for a new sheet use a short descriptive slug plus a few random chars (e.g. "ceos-x7k2") that can\'t collide. Type `@` to insert a field reference / `$` for a secret.',groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:ew,enabledIf:e=>e.config?.project?{disabled:!1}:{disabled:!0,message:`Select a project first`}}),run:ds({defaultValue:!0,groupPath:`config.advanced`,path:`config.run`,sectionKey:`general`,description:`Auto-run sheet row after append action.`,label:`Run after append`}),allow_entity_creation:ds({label:`Allow creating missing entities`,description:`Create missing fields, sheets, and projects as needed (unknown fields become columns; a missing sheet or project is created).`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_entity_creation`,sectionKey:`general`}),included_fields:$o({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({[JC.name]:O({fieldName:JC.name}),[YC.name]:O({fieldName:YC.name})}))})}),nw={"row-append-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},rw=class extends H{pipeId=qC;payload;payloadSchema=tw;billableOperations=nw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`row-append-sheet-v1-pipe0`)}getInputRequirement(){let e=[wc([this.payload.config.project,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(V({name:t.field_name,resolvedName:t.field_name,label:``,description:``,type:e=>{let n=Cc(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 uc(...e)}getSecretRequirements(){return Tc([this.payload.config.project,this.payload.config.sheet])}getConstantRequirements(){return Ec([this.payload.config.project,this.payload.config.sheet])}getRawOutputFields(){return{[JC.name]:this.catalogOutput(JC),[YC.name]:this.catalogOutput(YC)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},iw=tw,aw={pipeId:qC,basePipe:G(qC),label:`Append row to sheet`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:"Add rows to a pipe0 sheet in a given project. config.project and config.sheet may each be a literal slug or a `{{ field_name }}` tag.",guide:`Append records to another pipe0 sheet. config.project (REQUIRED) is the destination project's org-unique slug β€” when working inside a project, pass THAT project's slug (see CURRENT CONTEXT). config.sheet is the destination sheet's slug; both may be a \`{{ field }}\` tag for a per-row destination. With allow_entity_creation on, a missing project/sheet (and unknown fields) are created; if the sheet slug already exists in a DIFFERENT project the rows fail. Destination slugs are ORG-UNIQUE, so config.sheet addresses a sheet across your whole org: an existing slug REUSES that sheet (appending into it) when it's in config.project, and FAILS when it lives elsewhere β€” so for a genuinely NEW sheet use a short descriptive slug plus 3-4 random alphanumeric chars (e.g. "ceos-x7k2") β€” you cannot see other projects' slugs, so only the random suffix makes a new slug collision-proof; set the display name afterwards with sheet:update@1 config.name. To explode a LIST field into MANY rows (denormalize a 1:N relationship), use row:expandappend:sheet@1 instead. To bulk-copy existing rows across sheets, prefer the rows:copy_to_sheet@1 effect. NON-IDEMPOTENT: each run appends again, so re-running duplicates rows (and you cannot undo rows written to another sheet) β€” dry-run the flow in sandbox first (env:change@1), and to retry after a partial failure adopt the succeeded cells (rows:adopt@1 with adopt_statuses:["completed"]) then rows:enrich@1. Requires a pipe0 connection (list_connections).`,docPath:K(qC),tags:[W.FIELDS],billableOperations:nw,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:qC,connector:{strategy:`first`,connections:[]},run_if:null,config:{project:``,sheet:``,run:!0,allow_entity_creation:!0,included_fields:[],output_fields:{sheet_record_id:{alias:``,enabled:!0},created_sheet:{alias:``,enabled:!0}}}}},ow=`row:expandappend:sheet@1`,sw=g(`sheet_record_ids`),cw=g(`input_objects`),lw=`expanded_value`,uw=[{label:`Demo project`,value:`demo-project`},{label:`Sales pipeline`,value:`sales-pipeline`}],dw=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}];function fw(e){let t=e?.config?.project;return typeof t==`string`&&t.length>0?t:void 0}const pw={requires:{connection:`pipe0`},enabledIf:Na(`pipe0`,`Select a pipe0 connection to see project suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?uw:t?(await t.projects.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`}}},mw={requires:{connection:`pipe0`,fields:[`config.project`]},enabledIf:Na(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n,payload:r})=>n===`sandbox`?dw:t?(await t.sheets.list({query:e,projectSlug:fw(r)})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},hw=r.object({pipe_id:r.literal(ow),connector:Go(),run_if:x(),config:r.object({project:S({label:`Project`,info:"Project the destination sheet lives in (its org-unique slug). Pick an existing project or type a new slug β€” a new project is created when `allow_entity_creation` is on.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.project`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:pw}),sheet:S({label:`Sheet ID`,info:`The destination sheet's identifier (its slug β€” NOT the display name). Slugs are org-unique: pick an existing sheet to write into it, or type a NEW slug to create one. A generic slug (e.g. "results", "companies") is likely to match an unrelated existing sheet, so for a new sheet use a short descriptive slug plus a few random chars (e.g. "ceos-x7k2") that can't collide.`,groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:mw,enabledIf:e=>e.config?.project?{disabled:!1}:{disabled:!0,message:`Select a project first`}}),run:ds({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_entity_creation:ds({label:`Allow creating missing entities`,description:`Create missing entities as needed (a missing sheet or project is created, along with the output column on the destination).`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_entity_creation`,sectionKey:`general`}),...fs({groupPath:`config.destination`,sectionKey:`general`,defaultName:lw,nameInfo:`Name of the field each list item is written to on the destination sheet. Each item is stored as-is (objects/arrays as one json cell); extract flat columns afterwards with json:extract:multi@1.`}),input_fields:R(r.object({[cw.name]:E({fieldName:cw.name})})),output_fields:L(r.object({[sw.name]:O({fieldName:sw.name})}))})}).check(e=>{let t=e.value.config?.destination_field_name;t&&sc(t)&&e.issues.push({code:`custom`,input:t,path:[`config`,`destination_field_name`],message:`'${t}' is reserved and cannot be used as a destination field name.`})}),gw={"row-expandappend-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},_w=e=>V(q(cw,e)),vw=class extends H{pipeId=ow;payload;payloadSchema=hw;billableOperations=gw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`row-expandappend-sheet-v1-pipe0`)}getInputRequirement(){return _w(this.payload.config)}getRawOutputFields(){return{[sw.name]:this.catalogOutput(sw)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},yw=hw,bw={pipeId:ow,basePipe:G(ow),label:`Expand list to sheet`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:"Expand a list into sheet rows β€” each item is written as-is to an `expanded_value` column (objects/arrays as json).",guide:`Denormalize a 1:N list into rows on ANOTHER sheet: each item in the input_objects array becomes its own row on config.sheet, inside config.project (REQUIRED β€” the destination project's org-unique slug; when working inside a project pass THAT slug, see CURRENT CONTEXT). Every item is written AS-IS to a single column on the destination β€” an object/array lands as one json cell (its fields are NOT spread into separate columns), a primitive as a scalar. That column is \`expanded_value\` by default; rename/retype it via config.destination_field_name / destination_field_type / destination_field_format / destination_field_label (type/format are inferred from the data when left unset). To get flat columns, run json:extract:multi@1 ON THE DESTINATION sheet afterwards to pull out exactly the values you need. With allow_entity_creation on, a missing project/sheet (and the expanded_value column) are created; a sheet slug that exists in a DIFFERENT project fails the rows. Destination slugs are ORG-UNIQUE, so config.sheet addresses a sheet across your whole org: an existing slug REUSES that sheet (appending into it) when it's in config.project, and FAILS when it lives elsewhere β€” a generic slug like "results"/"companies"/"current-employers" will likely hit an unrelated sheet. When you mean a genuinely NEW sheet, use a short descriptive slug plus 3-4 random alphanumeric chars (e.g. "ceos-x7k2", "prospects-employers-9fq") β€” you cannot see other projects' slugs, so only the random suffix makes a new slug collision-proof; give the sheet its human-readable name afterwards with sheet:update@1 config.name. Use it when a column holds a list you need per-element (e.g. a profile's current employers) BEFORE enriching each element β€” never collapse the list with an LLM. Requires a pipe0 connection (resolve via list_connections). Typical pipeline: json:extract:multi@1 to build the array column β†’ this pipe to explode it into an intermediary sheet β†’ json:extract:multi@1 THERE to flatten the fields you need out of expanded_value β†’ enrich each row (e.g. person:match:role:waterfall@1) β†’ rows:copy_to_sheet@1 to the final sheet. NON-IDEMPOTENT: each run appends again, so re-running duplicates rows (and you cannot undo rows written to another sheet) β€” dry-run the flow in sandbox first (env:change@1), and to retry after a partial failure adopt the succeeded cells (rows:adopt@1 with adopt_statuses:["completed"]) then rows:enrich@1.`,docPath:K(ow),tags:[W.FIELDS],billableOperations:gw,defaultInputRequirement:_w(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:ow,connector:{strategy:`first`,connections:[]},run_if:null,config:{project:``,sheet:``,run:!0,allow_entity_creation:!0,destination_field_name:lw,destination_field_type:``,destination_field_format:``,destination_field_label:``,input_fields:{input_objects:{alias:``}},output_fields:{sheet_record_ids:{alias:``,enabled:!0}}}}},xw=`SELECT table_schema, table_name, column_name, data_type FROM information_schema.columns WHERE table_schema NOT IN ('pg_catalog', 'information_schema') ORDER BY table_schema, table_name, ordinal_position`,Sw=`table_catalog NOT IN ('system', '__databricks_internal') AND table_schema <> 'information_schema'`,Cw=`SELECT table_catalog, table_schema, table_name FROM system.information_schema.tables WHERE ${Sw} ORDER BY table_catalog, table_schema, table_name`,ww=`SELECT table_catalog, table_schema, table_name, column_name, data_type FROM system.information_schema.columns WHERE ${Sw} ORDER BY table_catalog, table_schema, table_name, ordinal_position`;function Tw(e){return typeof e==`string`?e:String(e??``)}function Ew(e){let t=new Map;for(let n of e){let e=Tw(n.table_schema),r=Tw(n.table_name);if(!r)continue;let i=`${e}.${r}`,a=t.get(i);a||(a={schema:e,name:r,columns:[]},t.set(i,a)),a.columns.push({name:Tw(n.column_name),type:Tw(n.data_type)})}return t}function Dw(e){return`${e.catalog?`${e.catalog}.`:``}${e.schema?`${e.schema}.`:``}${e.name}`}function Ow(e,t){if(e.length===0)return{summary:`The connected database exposes no tables outside the system schemas β€” nothing to query yet.`,data:{tables:[],truncated:t}};let n=e.map(e=>{if(e.columns.length===0)return`- ${Dw(e)} β€” (columns not listed; DESCRIBE or sample to inspect)`;let t=e.columns.slice(0,50),n=e.columns.length-t.length,r=t.map(e=>e.type?`${e.name}:${e.type}`:e.name).join(`, `);return`- ${Dw(e)} β€” ${r}${n>0?` (+${n} more)`:``}`}),r=e.some(e=>e.catalog)?` Names are fully qualified (catalog.schema.table) β€” use them VERBATIM in config.query.`:``;return{summary:[`Schema map (${e.length} table${e.length===1?``:`s`}${t?`, truncated β€” the database has more`:``}). Write config.query against these;${r} sample rows free via run_search_oneshot.`,...n].join(`
75
+ `),data:{tables:e,truncated:t}}}async function kw(e){let t=await e({query:Cw,limit:500}),n=new Map;for(let e of t.rows){let t=Tw(e.table_catalog),r=Tw(e.table_schema),i=Tw(e.table_name);i&&n.set(`${t}.${r}.${i}`,{catalog:t,schema:r,name:i,columns:[]})}let r=await e({query:ww,limit:500});for(let e of r.rows)n.get(`${Tw(e.table_catalog)}.${Tw(e.table_schema)}.${Tw(e.table_name)}`)?.columns.push({name:Tw(e.column_name),type:Tw(e.data_type)});return Ow([...n.values()],t.hasMore||r.hasMore)}async function Aw(e){let t=await e({query:`SHOW TABLES`,limit:500}),n=t.rows.map(e=>({schema:Tw(e.database??e.namespace),name:Tw(e.tableName??e.table_name)})).filter(e=>e.name),r=t.hasMore||n.length>25,i=[];for(let{schema:t,name:r}of n.slice(0,25)){let n=(await e({query:`DESCRIBE TABLE ${t?`${t}.`:``}${r}`,limit:500})).rows.map(e=>({name:Tw(e.col_name),type:Tw(e.data_type)})).filter(e=>e.name&&!e.name.startsWith(`#`));i.push({schema:t,name:r,columns:n})}return Ow(i,r)}async function jw(e,t){if(t.environment===`sandbox`)return{summary:`Schema exploration needs the real database connection β€” it's read-only and free. Switch to production (env:change@1) to explore the schema, then rehearse the pipeline in sandbox.`};if(!t.runQuery)return{summary:`Live schema exploration isn't available in this context.`};if(e===`databricks`)try{return await kw(t.runQuery)}catch{try{let e=await t.runQuery({query:xw,limit:500});return Ow([...Ew(e.rows).values()],e.hasMore)}catch{return Aw(t.runQuery)}}let n=await t.runQuery({query:xw,limit:500});return Ow([...Ew(n.rows).values()],n.hasMore)}const Mw=`rows:find:databricks@1`,Nw=g(`db_rows_found_count`),Pw=g(`db_found_rows`),Fw=r.object({pipe_id:r.literal(Mw),connector:Go(),run_if:x(),config:r.object({query:Uo({label:`SQL query`,info:`A single read-only SELECT statement, resolved per row β€” use {{ field }} for input refs, {{ SECRETS.X }} / {{ CONSTANTS.X }} for secrets/constants. Do not add your own LIMIT for capping; use the row limit below.`,groupPath:`config.general`,sectionKey:`general`,path:`config.query`,rows:8,required:!0,maxLength:2e4}),limit:vs({label:`Row limit`,info:`Maximum number of rows returned in the matching-rows output. The rows-found count is always the true total.`,groupPath:`config.advanced`,sectionKey:`general`,path:`config.limit`,min:1,max:50}),output_fields:L(r.object({[Nw.name]:O({fieldName:Nw.name}),[Pw.name]:O({fieldName:Pw.name})}))})}),Iw={"rows-find-databricks-v1-databricks":{provider:`databricks`,allowManagedConnection:!1,mode:null,credits:null,note:`Querying your own Databricks SQL warehouse is free.`}},Lw=class extends H{pipeId=Mw;payload;payloadSchema=Fw;billableOperations=Iw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`databricks`]}estimateBillableOperations(e){return J(e,`rows-find-databricks-v1-databricks`)}getTemplatedFields(){return[this.payload.config.query]}getInputRequirement(){return wc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Tc(this.getTemplatedFields())}getConstantRequirements(){return Ec(this.getTemplatedFields())}getRawOutputFields(){return{[Nw.name]:this.catalogOutput(Nw),[Pw.name]:this.catalogOutput(Pw)}}getConnectionsRequirements(){return[{provider:`databricks`,rateLimitRatio:1,rateLimitOperation:`databricks_query`,allowManagedConnection:!1}]}async getAgentContext(e){return jw(`databricks`,e)}},Rw=Fw,zw={pipeId:Mw,basePipe:G(Mw),label:`Find rows in Databricks`,executionMode:`single`,categories:[`tools`],lifecycle:null,allowedUserConnectionProviders:[`databricks`],managedProviders:[],deprecatedProviders:[],description:`Look up rows in your own Databricks SQL warehouse with a read-only SQL query resolved per row. Outputs the total match count and the matching rows.`,guide:"Databricks SQL dialect; config.query must be a single read-only SELECT, resolved per row via Liquid β€” `{{ field }}` input refs, `{{ SECRETS.X }}` / `{{ CONSTANTS.X }}` supported. Resolved values are interpolated as text, so quote them in the SQL (WHERE email = '{{ email }}'). To discover the schema, draft a payload with a placeholder config.query like \"SELECT 1\" and the chosen connection in connector.connections, then call get_provider_context once β€” it returns the workspace-wide table/column map (all Unity catalogs) for free. Always reference tables by their FULLY QUALIFIED three-part name exactly as the map lists them (catalog.schema.table); a bare table name resolves against the warehouse's unpredictable current catalog and usually fails with TABLE_OR_VIEW_NOT_FOUND. Tables under the `samples` catalog (and other built-in demo schemas like `tpch`) are DEMO data, NOT the customer's own β€” never answer from them without confirming. READ-ONLY and idempotent β€” the gateway enforces single-statement SELECT validation. db_found_rows is capped by config.limit and a ~25KB size budget (rows are dropped from the end to fit); db_rows_found_count is always the TRUE total. When nothing matches, db_found_rows resolves to no_result (NOT an empty array) β€” db_rows_found_count (0) still completes, so condition on it to branch on absence. A field resolving to empty renders as an empty string in the SQL β€” guard with run_if if that must not match. Requires a databricks connection (list_connections).",docPath:K(Mw),tags:[W.FIELDS,W.NEW],billableOperations:Iw,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Mw,connector:{strategy:`first`,connections:[]},run_if:null,config:{query:``,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!1},db_found_rows:{alias:``,enabled:!0}}}}},Bw=`rows:find:postgres@1`,Vw=g(`db_rows_found_count`),Hw=g(`db_found_rows`),Uw=r.object({pipe_id:r.literal(Bw),connector:Go(),run_if:x(),config:r.object({query:Uo({label:`SQL query`,info:`A single read-only SELECT statement, resolved per row β€” use {{ field }} for input refs, {{ SECRETS.X }} / {{ CONSTANTS.X }} for secrets/constants. Do not add your own LIMIT for capping; use the row limit below.`,groupPath:`config.general`,sectionKey:`general`,path:`config.query`,rows:8,required:!0,maxLength:2e4}),limit:vs({label:`Row limit`,info:`Maximum number of rows returned in the matching-rows output. The rows-found count is always the true total.`,groupPath:`config.advanced`,sectionKey:`general`,path:`config.limit`,min:1,max:50}),output_fields:L(r.object({[Vw.name]:O({fieldName:Vw.name}),[Hw.name]:O({fieldName:Hw.name})}))})}),Ww={"rows-find-postgres-v1-postgres":{provider:`postgres`,allowManagedConnection:!1,mode:null,credits:null,note:`Querying your own PostgreSQL database is free.`}},Gw=class extends H{pipeId=Bw;payload;payloadSchema=Uw;billableOperations=Ww;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`postgres`]}estimateBillableOperations(e){return J(e,`rows-find-postgres-v1-postgres`)}getTemplatedFields(){return[this.payload.config.query]}getInputRequirement(){return wc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Tc(this.getTemplatedFields())}getConstantRequirements(){return Ec(this.getTemplatedFields())}getRawOutputFields(){return{[Vw.name]:this.catalogOutput(Vw),[Hw.name]:this.catalogOutput(Hw)}}getConnectionsRequirements(){return[{provider:`postgres`,rateLimitRatio:1,rateLimitOperation:`postgres_query`,allowManagedConnection:!1}]}async getAgentContext(e){return jw(`postgres`,e)}},Kw=Uw,qw={pipeId:Bw,basePipe:G(Bw),label:`Find rows in Postgres`,executionMode:`single`,categories:[`tools`],lifecycle:null,allowedUserConnectionProviders:[`postgres`],managedProviders:[],deprecatedProviders:[],description:`Look up rows in your own PostgreSQL database with a read-only SQL query resolved per row. Outputs the total match count and the matching rows.`,guide:"PostgreSQL dialect; config.query must be a single read-only SELECT, resolved per row via Liquid β€” `{{ field }}` input refs, `{{ SECRETS.X }}` / `{{ CONSTANTS.X }}` supported. Resolved values are interpolated as text, so quote them in the SQL (WHERE email = '{{ email }}'). To discover the schema, draft a payload with a placeholder config.query like \"SELECT 1\" and the chosen connection in connector.connections, then call get_provider_context once β€” it returns the full table/column map for free. READ-ONLY and idempotent β€” the gateway enforces single-statement SELECT validation and a read-only transaction. db_found_rows is capped by config.limit and a ~25KB size budget (rows are dropped from the end to fit); db_rows_found_count is always the TRUE total. When nothing matches, db_found_rows resolves to no_result (NOT an empty array) β€” db_rows_found_count (0) still completes, so condition on it to branch on absence. A field resolving to empty renders as an empty string in the SQL β€” guard with run_if if that must not match. Requires a postgres connection (list_connections).",docPath:K(Bw),tags:[W.FIELDS,W.NEW],billableOperations:Ww,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Bw,connector:{strategy:`first`,connections:[]},run_if:null,config:{query:``,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!1},db_found_rows:{alias:``,enabled:!0}}}}},Jw=`rows:find:sheet@1`,Yw=g(`sheet_rows_found_count`),Xw=g(`sheet_found_rows`),Zw=g(`sheet_found_row_ids`),Qw=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],$w={requires:{connection:`pipe0`},enabledIf:Na(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Qw: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`}}},eT=r.object({pipe_id:r.literal(Jw),connector:Go(),run_if:x(),config:r.object({sheet:S({label:`Sheet ID`,info:"The sheet to search (its org-unique slug β€” NOT the display name). Type `@` to insert a field reference for a per-row sheet.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:$w}),where:Lo({label:`Match conditions`,info:"Conditions on the target sheet's columns. Column names are literal; in the value, type `/` to insert a field reference (e.g. `{{ email }}`).",groupPath:`config.general`,sectionKey:`general`,path:`config.where`,fieldNamePlaceholder:`email`}),limit:vs({label:`Row limit`,info:`Maximum number of rows returned in the matching-rows output. The rows-found count is always the true total.`,groupPath:`config.advanced`,sectionKey:`general`,path:`config.limit`,min:1,max:100}),output_fields:L(r.object({[Yw.name]:O({fieldName:Yw.name}),[Xw.name]:O({fieldName:Xw.name}),[Zw.name]:O({fieldName:Zw.name})}))})}),tT={"rows-find-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},nT=class extends H{pipeId=Jw;payload;payloadSchema=eT;billableOperations=tT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`rows-find-sheet-v1-pipe0`)}getTemplatedFields(){return[this.payload.config.sheet,...(this.payload.config.where?.conditions??[]).map(e=>typeof e.value==`string`?e.value:null)]}getInputRequirement(){return wc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Tc(this.getTemplatedFields())}getConstantRequirements(){return Ec(this.getTemplatedFields())}getRawOutputFields(){return{[Yw.name]:this.catalogOutput(Yw),[Xw.name]:this.catalogOutput(Xw),[Zw.name]:this.catalogOutput(Zw)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},rT=eT,iT={pipeId:Jw,basePipe:G(Jw),label:`Find rows in sheet`,executionMode:`single`,categories:[`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Look up rows in another pipe0 sheet matching a condition block (and/or over eq, neq, gt, gte, lt, lte, contains, matches). Outputs the total match count, the matching rows, and their record IDs.`,guide:'Find rows in another pipe0 sheet. config.sheet is the target sheet\'s org-unique slug (a literal or a `{{ field }}` tag). config.where is a condition block over the TARGET sheet\'s columns: `logic` "and"/"or" combines value conditions; each condition\'s field_name is a LITERAL column name (never templated, NOT validated against the target sheet β€” a wrong name behaves like a null cell), and its value may be a literal or contain `{{ field }}` tags resolved per row. Operators: eq/neq compare as text (a number cell 42 matches the value "42"; neq ALSO matches rows where the column is missing or null; JSON object/array cells effectively never match); gt/gte/lt/lte compare numerically (non-numeric cells never match; a non-numeric condition value fails the row); contains is case-INsensitive substring; matches is case-SENSITIVE regex (invalid pattern fails the row). A `null` value with eq matches missing/null cells. READ-ONLY and idempotent β€” one query per row, the target sheet is never modified. sheet_found_rows is capped by config.limit and a ~25KB size budget (rows are dropped from the end to fit); sheet_rows_found_count is always the TRUE total. When nothing matches, sheet_found_rows and sheet_found_row_ids resolve to no_result (NOT an empty array) β€” sheet_rows_found_count (0) still completes, so condition on it to branch on absence. String condition values that resolve to an empty string fail the row (a blank field must not match everything) β€” guard with run_if. Requires a pipe0 connection (list_connections).',docPath:K(Jw),tags:[W.FIELDS],billableOperations:tT,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Jw,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,where:null,limit:10,output_fields:{sheet_rows_found_count:{alias:``,enabled:!1},sheet_found_rows:{alias:``,enabled:!0},sheet_found_row_ids:{alias:``,enabled:!1}}}}},aT=`template:fill@1`,oT=g(`template_output`),sT=r.object({pipe_id:r.literal(aT),connector:C(),run_if:x(),config:r.object({template:Uo({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:U(`template`),groupPath:`config.general`,required:!0}),output_fields:L(r.object({[oT.name]:O({fieldName:oT.name})}))})}),cT={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},lT=class extends H{pipeId=aT;payload;payloadSchema=sT;billableOperations=cT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`template-fill-v1-pipe0`)}getInputRequirement(){return wc([this.payload.config.template])}getSecretRequirements(){return Tc([this.payload.config.template])}getConstantRequirements(){return Ec([this.payload.config.template])}getRawOutputFields(){return{[oT.name]:this.catalogOutput(oT)}}getConnectionsRequirements(){return[]}},uT=sT,dT={pipeId:aT,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:G(aT),label:`Fill a text template`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Replaces template tags like {{ name }} with actual values.`,tags:[W.TEXT],docPath:K(aT),defaultInputRequirement:null,billableOperations:cT,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:aT,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},fT=`website:extract:firecrawl@1`,pT=g(`website_url`),mT=g(`firecrawl_extract_result`),hT=r.object({pipe_id:r.literal(fT),connector:C(),run_if:x(),config:r.object({json_schema:bs({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}),extraction_prompt:ms({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:ds({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:ds({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({[pT.name]:E({fieldName:pT.name})})),output_fields:L(r.object({[mT.name]:O({fieldName:mT.name})}))})}),gT=e=>V(q(pT,e)),_T={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},vT=class extends H{pipeId=fT;payload;payloadSchema=hT;billableOperations=_T;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return J(e,`website-extract-firecrawl-v1-firecrawl`)}getInputRequirement(){return gT(this.payload.config)}getRawOutputFields(){return{[mT.name]:this.catalogOutput(mT)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},yT=hT,bT={pipeId:fT,basePipe:G(fT),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:[W.SCRAPE],docPath:K(fT),billableOperations:_T,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:gT(null),defaultPayload:{pipe_id:fT,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}}}}},xT=`website:extract:parallel@1`,ST=g(`website_url`),CT=g(`parallel_extract_result`),wT=r.object({pipe_id:r.literal(xT),connector:C(),run_if:x(),config:r.object({objective:ms({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({[ST.name]:E({fieldName:ST.name})})),output_fields:L(r.object({[CT.name]:O({fieldName:CT.name})}))})}),TT=e=>V(q(ST,e)),ET={"website-extract-parallel-v1-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.1},mode:`onSuccess`}},DT=class extends H{pipeId=xT;payload;payloadSchema=wT;billableOperations=ET;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`parallel`]}estimateBillableOperations(e){return J(e,`website-extract-parallel-v1-parallel`)}getInputRequirement(){return TT(this.payload.config)}getRawOutputFields(){return{[CT.name]:this.catalogOutput(CT,{isPrimaryOutput:!0})}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:1,rateLimitOperation:`parallel_extract`,allowManagedConnection:!0}]}},OT=wT,kT={pipeId:xT,basePipe:G(xT),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:[W.SCRAPE],docPath:K(xT),billableOperations:ET,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`parallel`],managedProviders:[`parallel`],deprecatedProviders:[],defaultInputRequirement:TT(null),defaultPayload:{pipe_id:xT,run_if:null,connector:null,config:{objective:``,input_fields:{website_url:{alias:``}},output_fields:{parallel_extract_result:{alias:``,enabled:!0}}}}},AT=`website:maplinks:firecrawl@1`,jT={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},MT=g(`website_url`),NT=g(`mapped_links`),PT=r.object({pipe_id:r.literal(AT),connector:C(),run_if:x(),config:r.object({page_limit:vs({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,path:`config.page_limit`,sectionKey:`general`}).nullish(),sitemap:hs({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:ps({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).nullable().default(``),input_fields:R(r.object({[MT.name]:E({fieldName:MT.name})})),output_fields:L(r.object({[NT.name]:O({fieldName:NT.name})}))}).optional()}),FT=e=>V(q(MT,e)),IT=class extends H{pipeId=AT;payload;payloadSchema=PT;billableOperations=jT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return J(e,`website-maplinks-firecrawl-v1-firecrawl`)}getInputRequirement(){return FT(this.payload.config)}getRawOutputFields(){return{[NT.name]:this.catalogOutput(NT)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},LT=PT,RT={pipeId:AT,basePipe:G(AT),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:[W.SCRAPE],docPath:K(AT),billableOperations:jT,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:FT(null),defaultPayload:{pipe_id:AT,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},zT=`website:scrape:firecrawl@1`,BT=g(`website_url`),VT=g(`website_markdown`),HT=g(`website_html`),UT=g(`website_links`),WT=r.object({pipe_id:r.literal(zT),connector:C(),run_if:x(),config:r.object({scrape_main_only:ds({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({[BT.name]:E({fieldName:BT.name})})),output_fields:L(r.object({[VT.name]:O({fieldName:VT.name}),[HT.name]:O({fieldName:HT.name}),[UT.name]:O({fieldName:UT.name})}))}).optional()}),GT=e=>V(q(BT,e)),KT={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},qT=class extends H{pipeId=zT;payload;payloadSchema=WT;billableOperations=KT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return J(e,`website-scrape-firecrawl-v1-firecrawl`)}getInputRequirement(){return GT(this.payload.config)}getRawOutputFields(){return{[VT.name]:this.catalogOutput(VT),[HT.name]:this.catalogOutput(HT),[UT.name]:this.catalogOutput(UT)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},JT=WT,YT={pipeId:zT,basePipe:G(zT),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[W.SCRAPE],docPath:K(zT),billableOperations:KT,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:GT(null),defaultPayload:{pipe_id:zT,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}}}}},XT=`website:scrapelist:firecrawl@1`,ZT={"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.`}},QT=g(`urls`),$T=g(`scrape_list_response`),eE=r.object({pipe_id:r.literal(XT),connector:C(),run_if:x(),config:r.object({scrape_main_only:ds({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:_s({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`}).default([]),input_fields:R(r.object({[QT.name]:E({fieldName:QT.name})})),output_fields:L(r.object({[$T.name]:O({fieldName:$T.name})}))}).optional()}),tE=e=>V(q(QT,e)),nE=class extends H{pipeId=XT;payload;payloadSchema=eE;billableOperations=ZT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return[{billableOperation:`website-scrapelist-firecrawl-v1-firecrawl`,quantity:e.count*5}]}getInputRequirement(){return tE(this.payload.config)}getRawOutputFields(){return{[$T.name]:this.catalogOutput($T)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},rE=eE,iE={pipeId:XT,basePipe:G(XT),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[W.SCRAPE],docPath:K(XT),billableOperations:ZT,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:tE(null),defaultPayload:{pipe_id:XT,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}}}}},aE=[`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:crustdata@3`,`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`,`posts:content:crustdata@1`],oE=r.enum(aE);function sE(e,t){let n={name:e,config:t};return Ks.hashObject(n)}var $=class{estimateBillableOperations(e){let{cost:t,billableOperation:n}=this.billing;return t.allowManagedConnection?[{billableOperation:n,quantity:t.mode===`per_result`?e.count:t.mode===`per_page`?e.count/100:1}]:[]}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}getDedupConfig(){return{match:`any`,fields:[]}}async getAgentContext(e){return null}getHashKey(){return sE(this.searchId,this.payload)}};function cE(e){return e.split(`@`)[0]}function lE(e){return`/docs/search-catalog/${cE(e)}/${e.split(`@`)[1]}`}const uE=`companies:entitysearch:parallel@1`,dE=g(`company_name`),fE=g(`company_domain`),pE=g(`company_description`),mE=g(`company_profile_url`),hE=g(`parallel_company_entity_match`),gE=r.object({search_id:r.literal(uE),connector:Jo(),config:r.object({objective:As({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`,sectionKey:`pagination`,label:`Limit`,description:`Max number of entities to return (5–1000).`}).default(100),output_fields:L(r.object({[dE.name]:M({fieldName:dE.name}),[fE.name]:M({fieldName:fE.name}),[pE.name]:M({fieldName:pE.name}),[mE.name]:M({fieldName:mE.name}),[hE.name]:M({fieldName:hE.name})}))})}),_E={match:`any`,fields:[{fieldName:`company_profile_url`}]},vE={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.`},yE=`companies-entitysearch-parallel-v1`,bE=class extends ${billing={billableOperation:yE,cost:vE};searchId=uE;schema=gE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[dE.name]:this.catalogOutput(dE),[fE.name]:this.catalogOutput(fE),[pE.name]:this.catalogOutput(pE),[mE.name]:this.catalogOutput(mE),[hE.name]:this.catalogOutput(hE)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return _E}},xE=gE,SE={searchId:uE,billableOperation:yE,baseSearch:cE(uE),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:[W.COMPANY_PROFILES],docPath:lE(uE),cost:vE,provider:`parallel`,defaultPayload:{search_id:uE,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 CE(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 wE=`companies:profiles:amplemarket@2`,TE=g(`company_name`),EE=g(`company_domain`),DE=g(`company_description`),OE=g(`company_profile_url`),kE=g(`amplemarket_company_match`),AE=r.object({search_id:r.literal(wE),connector:Jo(),config:r.object({limit:I({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`}).default(100),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:L(r.object({[TE.name]:M({fieldName:TE.name}),[EE.name]:M({fieldName:EE.name}),[DE.name]:M({fieldName:DE.name}),[OE.name]:M({fieldName:OE.name}),[kE.name]:M({fieldName:kE.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:U(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),company_names:A({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:U(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),company_domains:A({sectionKey:`config.filters`,path:`config.filters.company_domains`,label:`Company domains`,description:``,placeholder:U(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),company_profile_urls:A({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}).default([]),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:U(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}).default([]),company_industries:j({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:Re(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:U(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),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`}).default([]),keywords:A({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),revenue_groups:N({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}).default([]),founded_year:Cs({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,description:``}).default({min:null,max:null}),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:U(`title`),suggestionsDef:h(`titles`)}),headcount:N({sectionKey:`config.filters`,path:`config.filters.headcount`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Company sizes`,required:!1,description:``,groupPath:`config.filters.company_size`}).default([]),headcount_growth_l6m_in_percent:Cs({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}).default({min:null,max:null})}).check(e=>{CE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),jE={match:`any`,fields:[{fieldName:`company_profile_url`}]},ME={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},NE=`companies-profiles-amplemarket-v2`,PE=class extends ${billing={billableOperation:NE,cost:ME};searchId=wE;schema=AE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[TE.name]:this.catalogOutput(TE),[EE.name]:this.catalogOutput(EE),[DE.name]:this.catalogOutput(DE),[OE.name]:this.catalogOutput(OE),[kE.name]:this.catalogOutput(kE)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return jE}},FE=AE,IE={searchId:wE,billableOperation:NE,baseSearch:cE(`companies:profiles:amplemarket@2`),label:`Company search`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],docPath:lE(wE),cost:ME,provider:`amplemarket`,defaultPayload:{search_id:wE,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:[]}}}}},LE=`companies:profiles:crustdata@2`,RE=g(`company_name`),zE=g(`company_domain`),BE=g(`company_description`),VE=g(`company_profile_url`),HE=g(`crustdata_company_match`),UE=r.object({search_id:r.literal(LE),connector:Jo(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}).default(100),cursor:ks({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[RE.name]:M({fieldName:RE.name}),[zE.name]:M({fieldName:zE.name}),[BE.name]:M({fieldName:BE.name}),[VE.name]:M({fieldName:VE.name}),[HE.name]:M({fieldName:HE.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:U(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),crunchbase_categories:F({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:U(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}).default({include:[],exclude:[]}),crunchbase_investors:F({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:U(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}).default({include:[],exclude:[]}),tracxn_investors:F({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:U(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.tracxn_investors.crustdata`)}).default({include:[],exclude:[]}),company_types:j({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),linkedin_industries:F({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:U(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),markets:F({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),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`}).default({include:[],exclude:[]}),headcount:j({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}).default({include:[],exclude:[]}),linkedin_headcount_ranges:N({path:`config.filters.linkedin_headcount_ranges`,sectionKey:`config.filters`,label:`Size bracket`,description:`Headcount range a company self-reports on its LinkedIn page.`,options:m(`crustdata.linkedin_headcount_ranges`),placeholder:`2-10`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),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:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),revenue_in_usd:Ts({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:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}).default({include:[],exclude:[]}),last_funding_amount:Ts({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:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}).default([]),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:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}).default([]),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:U(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}).default({include:[],exclude:[]}),competitor_domains:A({path:`config.filters.competitor_domains`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domain`,description:``,placeholder:U(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),company_domains:A({path:`config.filters.company_domains`,sectionKey:`config.filters`,maxItems:400,label:`Company domain`,description:``,placeholder:U(`company_domain`),groupPath:`config.filters.web_presence`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),company_profile_urls:A({path:`config.filters.company_profile_urls`,sectionKey:`config.filters`,maxItems:400,label:`Company LinkedIn URL`,description:``,placeholder:`https://linkedin.com/company/...`,groupPath:`config.filters.web_presence`}).default({include:[],exclude:[]})}).check(e=>{CE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),WE={match:`any`,fields:[{fieldName:`company_profile_url`}]},GE={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},KE=`companies-profiles-crustdata-v2`,qE=class extends ${billing={billableOperation:KE,cost:GE};searchId=LE;schema=UE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[RE.name]:this.catalogOutput(RE),[zE.name]:this.catalogOutput(zE),[BE.name]:this.catalogOutput(BE),[VE.name]:this.catalogOutput(VE),[HE.name]:this.catalogOutput(HE)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return WE}},JE=UE,YE={searchId:LE,billableOperation:KE,baseSearch:cE(`companies:profiles:crustdata@2`),label:`Company search`,categories:[`companies`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],docPath:lE(LE),cost:GE,provider:`crustdata`,defaultPayload:{search_id:LE,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:[]},linkedin_headcount_ranges:[],hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[],exclude:[]},company_domains:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]}}}}},XE=`query:databricks@1`,ZE=r.object({search_id:r.literal(XE),connector:qo(),config:r.object({query:As({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`,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`,sectionKey:`pagination`,label:`Page`,description:`1-based page index (offset pagination)`}).nullable().default(1)})}),QE={allowManagedConnection:!1,mode:null,credits:null,info:`Querying your own Databricks SQL warehouse is free.`},$E=`data-query-databricks-v1`,eD=class extends ${billing={billableOperation:$E,cost:QE};searchId=XE;schema=ZE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`databricks`,rateLimitOperation:`databricks_query`,rateLimitRatio:1,allowManagedConnection:!1}]}async getAgentContext(e){return jw(`databricks`,e)}},tD=ZE,nD={searchId:XE,billableOperation:$E,baseSearch:cE(XE),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.`,guide:"Databricks SQL dialect; config.query must be a single read-only statement (no self-managed LIMIT/OFFSET β€” pagination is wrapped automatically). To discover the schema, draft a payload with a placeholder config.query like \"SELECT 1\" and the chosen connection in connector.connections, then call get_provider_context once β€” it returns the workspace-wide table/column map (all Unity catalogs) for free. Always reference tables by their FULLY QUALIFIED three-part name exactly as the map lists them (catalog.schema.table, e.g. samples.accuweather.forecast_daily); a bare table name resolves against the warehouse's unpredictable current catalog and usually fails with TABLE_OR_VIEW_NOT_FOUND. Sample actual rows (also free) with run_search_oneshot, then write the real config.query. Tables under the `samples` catalog (and Databricks' other built-in example schemas like `tpch` and `tpcds_*`) are DEMO data shipped to every workspace, NOT the customer's own data. If the user asks about their data and the only match is under `samples`/a demo schema β€” or the map shows only demo tables β€” the connection isn't pointed at their catalog: confirm the intended table with the user before querying, and never answer their question from a demo table.",tags:[W.FIELDS,W.NEW],docPath:lE(XE),cost:QE,provider:`databricks`,defaultPayload:{search_id:XE,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},rD=`query:postgres@1`,iD=r.object({search_id:r.literal(rD),connector:qo(),config:r.object({query:As({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`,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`,sectionKey:`pagination`,label:`Page`,description:`1-based page index (offset pagination)`}).nullable().default(1)})}),aD={allowManagedConnection:!1,mode:null,credits:null,info:`Querying your own PostgreSQL database is free.`},oD=`data-query-postgres-v1`,sD=class extends ${billing={billableOperation:oD,cost:aD};searchId=rD;schema=iD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`postgres`,rateLimitOperation:`postgres_query`,rateLimitRatio:1,allowManagedConnection:!1}]}async getAgentContext(e){return jw(`postgres`,e)}},cD=iD,lD={searchId:rD,billableOperation:oD,baseSearch:cE(rD),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.`,guide:`PostgreSQL dialect; config.query must be a single read-only SELECT (no self-managed LIMIT/OFFSET β€” pagination is wrapped automatically). To discover the schema, draft a payload with a placeholder config.query like "SELECT 1" and the chosen connection in connector.connections, then call get_provider_context once β€” it returns the full table/column map for free. Sample actual rows (also free) with run_search_oneshot, then write the real config.query.`,tags:[W.FIELDS,W.NEW],docPath:lE(rD),cost:aD,provider:`postgres`,defaultPayload:{search_id:rD,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},uD=`companies:profiles:amplemarket@1`,dD=g(`company_name`),fD=g(`company_website_url`),pD=g(`company_description`),mD=g(`company_profile_url`),hD=g(`amplemarket_company_match`),gD=r.object({search_id:r.literal(uD),connector:Di.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`,sectionKey:`pagination`}),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:L(r.object({[dD.name]:M({fieldName:dD.name}),[fD.name]:M({fieldName:fD.name}),[pD.name]:M({fieldName:pD.name}),[mD.name]:M({fieldName:mD.name}),[hD.name]:M({fieldName:hD.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:U(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),company_names:A({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:U(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),company_website_urls:A({sectionKey:`config.filters`,path:`config.filters.company_website_urls`,label:`Company domains`,description:``,placeholder:U(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),company_profile_urls:A({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}).default([]),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:U(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}).default([]),company_industries:j({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:Re(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:U(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),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`}).default([]),keywords:A({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),revenue_groups:N({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}).default([]),founded_year:Cs({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,description:``}).default({min:null,max:null}),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:U(`title`),suggestionsDef:h(`titles`)}),headcount:N({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}).default([]),headcount_growth_last_6_months_in_percent:Cs({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}).default({min:null,max:null})}).check(e=>{CE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),_D={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},vD=`companies-profiles-amplemarket-v1`,yD=class extends ${billing={billableOperation:vD,cost:_D};searchId=uD;schema=gD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[dD.name]:this.catalogOutput(dD),[fD.name]:this.catalogOutput(fD),[pD.name]:this.catalogOutput(pD),[mD.name]:this.catalogOutput(mD),[hD.name]:this.catalogOutput(hD)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},bD=gD,xD={searchId:uD,billableOperation:vD,baseSearch:cE(`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:[W.COMPANY_PROFILES],docPath:lE(uD),cost:_D,provider:`amplemarket`,defaultPayload:{search_id:uD,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:[]}}}}},SD=`companies:profiles:crustdata@1`,CD=g(`company_name`),wD=g(`company_website_url`),TD=g(`company_description`),ED=g(`company_profile_url`),DD=g(`crustdata_company_match`),OD=r.object({search_id:r.literal(SD),connector:Di.nullable().optional(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ks({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[CD.name]:M({fieldName:CD.name}),[wD.name]:M({fieldName:CD.name}),[TD.name]:M({fieldName:TD.name}),[ED.name]:M({fieldName:ED.name}),[DD.name]:M({fieldName:DD.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:U(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),crunchbase_categories:F({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:U(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}).default({include:[],exclude:[]}),crunchbase_investors:F({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:U(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}).default({include:[],exclude:[]}),tracxn_investors:F({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:U(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.tracxn_investors.crustdata`)}).default({include:[],exclude:[]}),company_types:j({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),linkedin_industries:F({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:U(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),markets:F({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),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`}).default({include:[],exclude:[]}),headcount:j({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}).default({include:[],exclude:[]}),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:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),revenue_in_usd:Ts({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:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}).default({include:[],exclude:[]}),last_funding_amount:Ts({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:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}).default([]),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:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}).default([]),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:U(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}).default({include:[],exclude:[]}),competitor_websites:A({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:``,placeholder:U(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]})}).check(e=>{CE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),kD={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},AD=`companies-profiles-crustdata-v1`,jD=class extends ${billing={billableOperation:AD,cost:kD};searchId=SD;schema=OD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[CD.name]:this.catalogOutput(CD),[wD.name]:this.catalogOutput(wD),[TD.name]:this.catalogOutput(TD),[ED.name]:this.catalogOutput(ED),[DD.name]:this.catalogOutput(DD)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},MD=OD,ND={searchId:SD,billableOperation:AD,baseSearch:cE(`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:[W.COMPANY_PROFILES],docPath:lE(SD),cost:kD,provider:`crustdata`,defaultPayload:{search_id:SD,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{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:[]}}}}},PD=`people:profiles:amplemarket@1`,FD=g(`name`),ID=g(`company_website_url`),LD=g(`profile_url`),RD=g(`job_title`),zD=g(`amplemarket_person_match`),BD=r.object({search_id:r.literal(PD),connector:Di.nullable().optional(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:L(r.object({[FD.name]:M({fieldName:FD.name}),[ID.name]:M({fieldName:ID.name}),[LD.name]:M({fieldName:LD.name}),[RD.name]:M({fieldName:RD.name}),[zD.name]:M({fieldName:zD.name})})),filters:r.object({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`}).default({include:[],exclude:[]}),current_job_titles:k({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:U(`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:U(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_departments:N({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:U(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_job_functions:N({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:U(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_employer_locations:F({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:h(`locations`),groupPath:`config.filters.current_company`,placeholder:U(`location`)}).default({include:[],exclude:[]}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:U(`company_name`),suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),current_employer_website_urls:A({path:`config.filters.current_employer_website_urls`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:U(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),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:U(`industry`),required:!1,options:m(`linkedin.industries`)}).default([]),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:m(`amplemarket.company_revenue`)}).default([]),current_employer_founded_year:Cs({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,description:``}).default({min:null,max:null}),current_employer_investors:k({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:U(`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:U(`title`),suggestionsDef:h(`titles`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]})}).check(e=>{CE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),VD={allowManagedConnection:!0,mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},HD=`people-profiles-amplemarket-v1`,UD=class extends ${billing={billableOperation:HD,cost:VD};searchId=PD;schema=BD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[FD.name]:this.catalogOutput(FD),[ID.name]:this.catalogOutput(ID),[LD.name]:this.catalogOutput(LD),[RD.name]:this.catalogOutput(RD),[zD.name]:this.catalogOutput(zD)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},WD=BD,GD={searchId:PD,billableOperation:HD,baseSearch:cE(`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:[W.PEOPLE_PROFILES],docPath:lE(PD),cost:VD,provider:`amplemarket`,defaultPayload:{search_id:PD,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:[]}}}},KD=`people:profiles:crustdata@1`,qD=g(`name`),JD=g(`company_website_url`),YD=g(`profile_url`),XD=g(`job_title`),ZD=g(`crustdata_person_match`),QD=r.object({search_id:r.literal(KD),connector:Di.nullable().optional(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ks({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[qD.name]:M({fieldName:qD.name}),[JD.name]:M({fieldName:JD.name}),[YD.name]:M({fieldName:YD.name}),[XD.name]:M({fieldName:XD.name}),[ZD.name]:M({fieldName:ZD.name})})),filters:r.object({locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:U(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:U(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),current_employers:A({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),current_employers_website_urls:A({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Company domain`,placeholder:U(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),current_employers_linkedin_industries:F({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:U(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),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:m(`crustdata.years_of_experience`)}).default([]),previous_employers_website_urls:A({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:U(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),previous_seniority_levels:j({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:U(`seniority`),disableSearch:!0,optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),previous_employers:A({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),previous_job_titles:A({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:U(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),previous_employers_linkedin_industries:F({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:U(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),profile_headline_keywords:A({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`headline_keywords`)}).default({include:[],exclude:[]}),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:U(`profile_keywords`)}).default({include:[],exclude:[]}),profile_languages:j({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:U(`languages`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),languages:j({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:U(`languages_1`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:U(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default({include:[],exclude:[]}),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:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),current_seniority_levels:j({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:U(`seniority`),optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:U(`certification`),description:``}).default({include:[],exclude:[]}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:U(`honor`),description:``}).default({include:[],exclude:[]}),recently_changed_jobs:Os({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:U(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}).default({include:[],exclude:[]}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:U(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}).default({include:[],exclude:[]}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),current_school_names:F({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),extracurricular_activities:A({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:U(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)}).default({include:[],exclude:[]})}).check(e=>{CE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),$D={allowManagedConnection:!0,mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},eO=`people-profiles-crustdata-v1`,tO=class extends ${billing={billableOperation:eO,cost:$D};searchId=KD;schema=QD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[qD.name]:this.catalogOutput(qD),[JD.name]:this.catalogOutput(JD),[YD.name]:this.catalogOutput(YD),[XD.name]:this.catalogOutput(XD),[ZD.name]:this.catalogOutput(ZD)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},nO=QD,rO={searchId:KD,billableOperation:eO,baseSearch:cE(`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:[W.PEOPLE_PROFILES],docPath:lE(KD),cost:$D,provider:`crustdata`,defaultPayload:{search_id:KD,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:[]}}}}},iO=`people:entitysearch:parallel@1`,aO=g(`name`),oO=g(`job_title`),sO=g(`profile_url`),cO=g(`parallel_person_entity_match`),lO=r.object({search_id:r.literal(iO),connector:Jo(),config:r.object({objective:As({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`,sectionKey:`pagination`,label:`Limit`,description:`Max number of entities to return (5–1000).`}).default(100),output_fields:L(r.object({[aO.name]:M({fieldName:aO.name}),[oO.name]:M({fieldName:oO.name}),[sO.name]:M({fieldName:sO.name}),[cO.name]:M({fieldName:cO.name})}))})}),uO={match:`any`,fields:[{fieldName:`profile_url`}]},dO={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.`},fO=`people-entitysearch-parallel-v1`,pO=class extends ${billing={billableOperation:fO,cost:dO};searchId=iO;schema=lO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[aO.name]:this.catalogOutput(aO),[oO.name]:this.catalogOutput(oO),[sO.name]:this.catalogOutput(sO),[cO.name]:this.catalogOutput(cO)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return uO}},mO=lO,hO={searchId:iO,billableOperation:fO,baseSearch:cE(iO),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:[W.PEOPLE_PROFILES],docPath:lE(iO),cost:dO,provider:`parallel`,defaultPayload:{search_id:iO,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:``}}}}},gO=`people:eventguests:luma@1`,_O=g(`name`),vO=g(`email`),yO=g(`luma_id`),bO=g(`registered_at`),xO=g(`luma_event_guest_match`),SO=[{label:`Sample Meetup β€” Berlin`,value:`evt-sandbox-1`},{label:`Sample Conference β€” SF`,value:`evt-sandbox-2`}],CO={requires:{connection:`luma`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return SO;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}},wO=r.object({search_id:r.literal(gO),connector:qo(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of guests per page`}).default(100),cursor:ks({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[_O.name]:M({fieldName:_O.name}),[vO.name]:M({fieldName:vO.name}),[yO.name]:M({fieldName:yO.name}),[bO.name]:M({fieldName:bO.name}),[xO.name]:M({fieldName:xO.name})})),filters:r.object({event_id:Ms({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:Na(`luma`),optionsDef:CO}),approval_status:js({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`}]})})})}),TO={match:`any`,fields:[{fieldName:`luma_id`}]},EO={allowManagedConnection:!0,mode:`per_page`,credits:{default:1},info:`1 page = up to 100 guests.`},DO=`people-eventguests-luma-v1`,OO=class extends ${billing={billableOperation:DO,cost:EO};searchId=gO;schema=wO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[_O.name]:this.catalogOutput(_O),[vO.name]:this.catalogOutput(vO),[yO.name]:this.catalogOutput(yO),[bO.name]:this.catalogOutput(bO),[xO.name]:this.catalogOutput(xO)}}getConnectionsRequirements(){return[{provider:`luma`,rateLimitOperation:`luma_get_guests`,rateLimitRatio:1,allowManagedConnection:!1}]}getDedupConfig(){return TO}},kO=wO,AO={searchId:gO,billableOperation:DO,baseSearch:cE(gO),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:[W.PEOPLE_PROFILES,W.EVENTS,W.NEW],docPath:lE(gO),cost:EO,provider:`luma`,defaultPayload:{search_id:gO,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:``}}}},jO=`people:profiles:amplemarket@2`,MO=g(`name`),NO=g(`company_domain`),PO=g(`profile_url`),FO=g(`job_title`),IO=g(`amplemarket_person_match`),LO=r.object({search_id:r.literal(jO),connector:Jo(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,label:`Page size`,sectionKey:`pagination`,description:`Max number of search results per page`}).default(50),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:L(r.object({[MO.name]:M({fieldName:MO.name}),[NO.name]:M({fieldName:NO.name}),[PO.name]:M({fieldName:PO.name}),[FO.name]:M({fieldName:FO.name}),[IO.name]:M({fieldName:IO.name})})),filters:r.object({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`}).default({include:[],exclude:[]}),current_job_titles:k({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:U(`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:U(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_departments:N({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:U(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_job_functions:N({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:U(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_employer_locations:F({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:h(`locations`),groupPath:`config.filters.current_company`,placeholder:U(`location`)}).default({include:[],exclude:[]}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:U(`company_name`),suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),current_employer_domains:A({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:U(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),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:U(`industry`),required:!1,options:m(`linkedin.industries`)}).default([]),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:m(`amplemarket.company_revenue`)}).default([]),current_employer_founded_year:Cs({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,description:``}).default({min:null,max:null}),current_employer_investors:k({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:U(`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:U(`title`),suggestionsDef:h(`titles`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]})}).check(e=>{CE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),RO={match:`any`,fields:[{fieldName:`profile_url`}]},zO={allowManagedConnection:!0,mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},BO=`people-profiles-amplemarket-v2`,VO=class extends ${billing={billableOperation:BO,cost:zO};searchId=jO;schema=LO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[MO.name]:this.catalogOutput(MO),[NO.name]:this.catalogOutput(NO),[PO.name]:this.catalogOutput(PO),[FO.name]:this.catalogOutput(FO),[IO.name]:this.catalogOutput(IO)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return RO}},HO=LO,UO={searchId:jO,billableOperation:BO,baseSearch:cE(`people:profiles:amplemarket@2`),paginationType:`page_number`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],docPath:lE(jO),cost:zO,provider:`amplemarket`,defaultPayload:{search_id:jO,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:[]}}}},WO=`people:profiles:crustdata@2`,GO=g(`name`),KO=g(`company_domain`),qO=g(`profile_url`),JO=g(`job_title`),YO=g(`crustdata_person_match`),XO=r.object({search_id:r.literal(WO),connector:Jo(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page size`,description:`Max number of search results per page`}).default(100),cursor:ks({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[GO.name]:M({fieldName:GO.name}),[KO.name]:M({fieldName:KO.name}),[qO.name]:M({fieldName:qO.name}),[JO.name]:M({fieldName:JO.name}),[YO.name]:M({fieldName:YO.name})})),filters:r.object({locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:U(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:U(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),current_employer_domains:A({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:U(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),current_employer_industries:F({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:U(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),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:m(`crustdata.years_of_experience`)}).default([]),previous_employer_domains:A({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:U(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),previous_seniority_levels:j({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:U(`seniority`),disableSearch:!0,optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),previous_employer_names:A({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),previous_job_titles:A({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:U(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),previous_employer_industries:F({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:U(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),profile_headline_keywords:A({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`headline_keywords`)}).default({include:[],exclude:[]}),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:U(`profile_keywords`)}).default({include:[],exclude:[]}),profile_languages:j({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:U(`languages`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),languages:j({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:U(`languages_1`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:U(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default({include:[],exclude:[]}),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:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),current_seniority_levels:j({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:U(`seniority`),optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:U(`certification`),description:``}).default({include:[],exclude:[]}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:U(`honor`),description:``}).default({include:[],exclude:[]}),recently_changed_jobs:Os({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:U(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}).default({include:[],exclude:[]}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:U(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}).default({include:[],exclude:[]}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),current_school_names:F({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),extracurricular_activities:A({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:U(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)}).default({include:[],exclude:[]})}).check(e=>{CE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),ZO={match:`any`,fields:[{fieldName:`profile_url`}]},QO={allowManagedConnection:!0,mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},$O=`people-profiles-crustdata-v2`,ek=class extends ${billing={billableOperation:$O,cost:QO};searchId=WO;schema=XO;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),[YO.name]:this.catalogOutput(YO)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return ZO}},tk=XO,nk={searchId:WO,billableOperation:$O,baseSearch:cE(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],docPath:lE(WO),cost:QO,provider:`crustdata`,defaultPayload:{search_id:WO,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:[]}}}}},rk=`people:profiles:crustdata@3`,ik=g(`name`),ak=g(`profile_url`),ok=g(`person_profile_match`),sk=r.object({search_id:r.literal(rk),connector:Jo(),config:r.object({limit:I({path:`config.limit`,min:1,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page size`,description:`Max number of search results per page`}).default(100),cursor:ks({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[ik.name]:M({fieldName:ik.name}),[ak.name]:M({fieldName:ak.name}),[ok.name]:M({fieldName:ok.name})})),filters:r.object({recently_changed_jobs:Os({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:U(`certification`),description:``,suggestionsDef:h(`person.certifications.crustdata`)}).default({include:[],exclude:[]}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:U(`honor`),description:``,suggestionsDef:h(`person.honors.crustdata`)}).default({include:[],exclude:[]}),current_employer_domains:A({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:U(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),current_employer_headcount_brackets:N({path:`config.filters.current_employer_headcount_brackets`,sectionKey:`config.filters`,label:`Headcount`,description:``,placeholder:`1-10`,disableSearch:!0,required:!1,options:m(`crustdata.company_size`),groupPath:`config.filters.current_employer`}).default([]),current_employer_industries:F({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:U(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),current_employment_job_functions:N({path:`config.filters.current_employment_job_functions`,sectionKey:`config.filters`,label:`Function`,groupPath:`config.filters.current_employer`,placeholder:U(`job_function`),description:``,disableSearch:!0,required:!1,options:m(`employment_function.crustdata`)}).default([]),current_employment_job_titles:A({path:`config.filters.current_employment_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:U(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),current_employment_seniority_levels:N({path:`config.filters.current_employment_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:U(`seniority`),options:Re(`crustdata.person_seniority`).options,required:!1,description:``,groupPath:`config.filters.current_employer`}).default([]),current_employment_tenure_brackets:N({path:`config.filters.current_employment_tenure_brackets`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:m(`crustdata.years_of_experience`)}).default([]),current_school_names:F({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree`,placeholder:U(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}).default({include:[],exclude:[]}),fields_of_study:F({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Field of study`,placeholder:U(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}).default({include:[],exclude:[]}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),previous_employer_domains:A({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:U(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:at(e.value)}})})}).default({include:[],exclude:[]}),previous_employer_headcount_brackets:N({path:`config.filters.previous_employer_headcount_brackets`,sectionKey:`config.filters`,label:`Previous employer headcount`,description:``,placeholder:`1-10`,disableSearch:!0,required:!1,options:m(`crustdata.company_size`),groupPath:`config.filters.experience`}).default([]),previous_employer_industries:F({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industry`,placeholder:U(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),previous_employer_names:A({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer name`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),previous_employment_job_functions:N({path:`config.filters.previous_employment_job_functions`,sectionKey:`config.filters`,label:`Previous function`,groupPath:`config.filters.experience`,placeholder:U(`job_function`),description:``,disableSearch:!0,required:!1,options:m(`employment_function.crustdata`)}).default([]),previous_employment_job_titles:A({path:`config.filters.previous_employment_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:U(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),previous_employment_seniority_levels:N({path:`config.filters.previous_employment_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:U(`seniority`),disableSearch:!0,options:Re(`crustdata.person_seniority`).options,required:!1,description:``,groupPath:`config.filters.experience`}).default([]),previous_employment_tenure_brackets:N({path:`config.filters.previous_employment_tenure_brackets`,sectionKey:`config.filters`,label:`Years at previous company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,options:m(`crustdata.years_of_experience`)}).default([]),total_years_of_experience_brackets:N({path:`config.filters.total_years_of_experience_brackets`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),languages:j({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:U(`languages_1`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:U(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),about_section_keywords:A({path:`config.filters.about_section_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`profile_keywords`)}).default({include:[],exclude:[]}),profile_headline_keywords:A({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`headline_keywords`)}).default({include:[],exclude:[]}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:U(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default({include:[],exclude:[]})}).check(e=>{CE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),ck={match:`any`,fields:[{fieldName:`profile_url`}]},lk={allowManagedConnection:!0,mode:`per_result`,credits:{default:.15,level1:{credits:.07,weight:10}},info:`1 page = 100 records; 200 results = 2 pages`},uk=`people-profiles-crustdata-v3`,dk=class extends ${billing={billableOperation:uk,cost:lk};searchId=rk;schema=sk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[ik.name]:this.catalogOutput(ik),[ak.name]:this.catalogOutput(ak),[ok.name]:this.catalogOutput(ok)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return ck}},fk=sk,pk={searchId:rk,billableOperation:uk,baseSearch:cE(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],docPath:lE(rk),cost:lk,provider:`crustdata`,defaultPayload:{search_id:rk,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},person_profile_match:{enabled:!0,alias:``}},filters:{recently_changed_jobs:null,certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employer_domains:{include:[],exclude:[]},current_employer_headcount_brackets:[],current_employer_industries:{include:[],exclude:[]},current_employer_names:{include:[],exclude:[]},current_employment_job_functions:[],current_employment_job_titles:{include:[],exclude:[]},current_employment_seniority_levels:[],current_employment_tenure_brackets:[],current_school_names:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},school_names:{include:[],exclude:[]},previous_employer_domains:{include:[],exclude:[]},previous_employer_headcount_brackets:[],previous_employer_industries:{include:[],exclude:[]},previous_employer_names:{include:[],exclude:[]},previous_employment_job_functions:[],previous_employment_job_titles:{include:[],exclude:[]},previous_employment_seniority_levels:[],previous_employment_tenure_brackets:[],total_years_of_experience_brackets:[],languages:{include:[],exclude:[]},locations:{include:[],exclude:[]},about_section_keywords:{include:[],exclude:[]},profile_headline_keywords:{include:[],exclude:[]},skills:{include:[],exclude:[]}}}}},mk=`posts:content:crustdata@1`,hk=g(`post_match`),gk=g(`post_text`),_k=g(`post_id`),vk=r.object({search_id:r.literal(mk),connector:Jo(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page size`,description:`Max number of search results per page`}).default(100),output_fields:L(r.object({[_k.name]:M({fieldName:_k.name}),[hk.name]:M({fieldName:hk.name}),[gk.name]:M({fieldName:gk.name})})),filters:r.object({keywords:k({path:`config.filters.keywords`,sectionKey:`config.filters`,label:`Search keywords`,groupPath:`config.filters.general`,maxItems:6,placeholder:U(`profile_keywords`),description:``}).default([]),keyword_operator:js({path:`config.filters.keyword_operator`,sectionKey:`config.filters`,label:`Keyword operator`,groupPath:`config.filters.general`,options:[{value:`OR`,label:`Any keyword (OR)`},{value:`AND`,label:`All keywords (AND)`}],required:!0,defaultValue:`OR`,description:`Post must match any or all keywords.`}).default(`OR`),date_posted:js({path:`config.filters.date_posted`,sectionKey:`config.filters`,label:`Date posted`,groupPath:`config.filters.general`,options:Re(`crustdata.post_date_posted`).options,placeholder:`Past 24h, past week, ...`,required:!1,defaultValue:``,description:`Only return posts published within this recency window.`}).default(``),content_types:N({path:`config.filters.content_types`,sectionKey:`config.filters`,label:`Content type`,groupPath:`config.filters.general`,options:m(`crustdata.post_content_type`),disableSearch:!0,required:!1,placeholder:`Photos, jobs, ...`,description:``}).default([]),author_industries:P({path:`config.filters.author_industries`,sectionKey:`config.filters`,label:`Author industry`,groupPath:`config.filters.author`,optionsDef:h(`linkedin_industries.crustdata`),disableSearch:!1,required:!1,maxItems:100,placeholder:U(`industry`),description:`Only return posts whose author works in one of these industries.`}).default([]),author_company_profile_url:k({path:`config.filters.author_company_profile_url`,sectionKey:`config.filters`,label:`Author company profile URL`,groupPath:`config.filters.author`,maxItems:50,placeholder:`https://linkedin.com/company/..., ...`,description:`Only return posts whose author currently works at these companies (by LinkedIn profile URL).`}).default([]),author_title:k({path:`config.filters.author_title`,sectionKey:`config.filters`,label:`Author title`,groupPath:`config.filters.author`,maxItems:50,suggestionsDef:h(`titles`),placeholder:U(`title`),description:`Only return posts whose author holds one of these titles.`}).default([]),author_profile_url:k({path:`config.filters.author_profile_url`,sectionKey:`config.filters`,label:`Author profile URL`,groupPath:`config.filters.author`,maxItems:50,placeholder:`https://linkedin.com/in/..., ...`,description:`Only return posts authored by these people (by LinkedIn profile URL).`}).default([]),authoring_company_profile_url:k({path:`config.filters.authoring_company_profile_url`,sectionKey:`config.filters`,label:`Authoring company profile URL`,groupPath:`config.filters.author`,maxItems:50,placeholder:`https://linkedin.com/company/..., ...`,description:`Only return posts authored by these companies (by LinkedIn profile URL).`}).default([]),companies_mentioned_in_post:k({path:`config.filters.companies_mentioned_in_post`,sectionKey:`config.filters`,label:`Companies mentioned in post`,groupPath:`config.filters.mentions`,maxItems:50,placeholder:`https://linkedin.com/company/..., ...`,description:`Only return posts that mention these companies (by LinkedIn profile URL).`}).default([]),people_mentioned_in_post:k({path:`config.filters.people_mentioned_in_post`,sectionKey:`config.filters`,label:`People mentioned in post`,groupPath:`config.filters.mentions`,maxItems:50,placeholder:`https://linkedin.com/in/..., ...`,description:`Only return posts that mention these people (by LinkedIn profile URL).`}).default([])}).check(e=>{let t=e.value,n=t.keywords.some(e=>e.trim()!==``),r=[t.author_industries,t.author_company_profile_url,t.author_title,t.author_profile_url,t.authoring_company_profile_url,t.companies_mentioned_in_post,t.people_mentioned_in_post].some(e=>e.length>0);!n&&!r&&e.issues.push({code:`custom`,message:`Provide a keyword or at least one filter.`,input:e.value,path:[`keywords`]});let i=t.author_industries.length>0||t.author_company_profile_url.length>0||t.author_title.length>0||t.author_profile_url.length>0;t.authoring_company_profile_url.length>0&&i&&e.issues.push({code:`custom`,message:`Authoring company profile URL can't be combined with author profile URL, company name, title, or industry filters.`,input:e.value,path:[`authoring_company_profile_url`]})})})}),yk={match:`any`,fields:[{fieldName:`post_id`}]},bk={allowManagedConnection:!0,mode:`per_result`,credits:{default:2}},xk=`posts-content-crustdata-v1`,Sk=class extends ${billing={billableOperation:xk,cost:bk};searchId=mk;schema=vk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[_k.name]:this.catalogOutput(_k),[hk.name]:this.catalogOutput(hk),[gk.name]:this.catalogOutput(gk)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_social_post_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return yk}},Ck=vk,wk={searchId:mk,billableOperation:xk,baseSearch:cE(mk),paginationType:`page_number`,label:`LinkedIn post search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Keyword-based LinkedIn post search.`,tags:[W.LINKEDIN],docPath:lE(mk),cost:bk,provider:`crustdata`,defaultPayload:{search_id:mk,connector:null,config:{limit:100,output_fields:{post_id:{enabled:!0,alias:``},post_text:{enabled:!0,alias:``},post_match:{enabled:!0,alias:``}},filters:{keywords:[],keyword_operator:`OR`,date_posted:``,content_types:[],author_industries:[],author_company_profile_url:[],author_title:[],author_profile_url:[],authoring_company_profile_url:[],companies_mentioned_in_post:[],people_mentioned_in_post:[]}}}},Tk=`sheet:rows@1`,Ek=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],Dk={requires:{connection:`pipe0`},enabledIf:Na(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Ek: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`}}},Ok=r.object({search_id:r.literal(Tk),connector:qo(),config:r.object({sheet:Ms({path:`config.sheet`,sectionKey:`general`,groupPath:`config.general`,label:`Sheet`,required:!0,info:`Pick one of your pipe0 sheets; its rows are returned.`,enabledIf:Na(`pipe0`),optionsDef:Dk}),limit:I({path:`config.limit`,min:1,max:2e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of rows per page`}).default(100),cursor:ks({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),include_metadata:Ds({path:`config.include_metadata`,groupPath:`config.general`,sectionKey:`general`,label:`Include metadata`,description:`Widgets and prevenance tags.`,defaultValue:!1})})}),kk={allowManagedConnection:!0,mode:`per_search`,credits:{default:0},info:`Reading your own pipe0 sheet is free.`},Ak=`sheet-items-v1-pipe0`,jk=class extends ${billing={billableOperation:Ak,cost:kk};searchId=Tk;schema=Ok;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0-sheet-operation`,rateLimitRatio:1,allowManagedConnection:!0}]}},Mk=Ok,Nk={searchId:Tk,billableOperation:Ak,baseSearch:cE(Tk),outputFieldMode:`dynamic`,paginationType:`cursor`,label:`Read sheet rows`,categories:[`data`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`List rows from a pipe0 sheet.`,tags:[W.FIELDS,W.NEW],docPath:lE(Tk),cost:kk,provider:`pipe0`,defaultPayload:{search_id:Tk,connector:{strategy:`first`,connections:[]},config:{sheet:``,limit:100,cursor:``,include_metadata:!1}}},Pk={"people:profiles:crustdata@1":tO,"people:profiles:crustdata@2":ek,"people:profiles:crustdata@3":dk,"companies:profiles:crustdata@1":jD,"companies:profiles:crustdata@2":qE,"people:profiles:amplemarket@1":UD,"people:profiles:amplemarket@2":VO,"companies:profiles:amplemarket@1":yD,"companies:profiles:amplemarket@2":PE,"companies:entitysearch:parallel@1":bE,"people:entitysearch:parallel@1":pO,"people:eventguests:luma@1":OO,"posts:content:crustdata@1":Sk,"sheet:rows@1":jk,"query:postgres@1":sD,"query:databricks@1":eD},Fk={"people:profiles:crustdata@1":nO,"people:profiles:crustdata@2":tk,"people:profiles:crustdata@3":fk,"companies:profiles:crustdata@1":MD,"companies:profiles:crustdata@2":JE,"people:profiles:amplemarket@1":WD,"people:profiles:amplemarket@2":HO,"companies:profiles:amplemarket@1":bD,"companies:profiles:amplemarket@2":FE,"companies:entitysearch:parallel@1":xE,"people:entitysearch:parallel@1":mO,"people:eventguests:luma@1":kO,"posts:content:crustdata@1":Ck,"sheet:rows@1":Mk,"query:postgres@1":cD,"query:databricks@1":tD},Ik={"people:profiles:crustdata@1":rO,"people:profiles:crustdata@2":nk,"people:profiles:crustdata@3":pk,"companies:profiles:crustdata@1":ND,"companies:profiles:crustdata@2":YE,"people:profiles:amplemarket@1":GD,"people:profiles:amplemarket@2":UO,"companies:profiles:amplemarket@1":xD,"companies:profiles:amplemarket@2":IE,"companies:entitysearch:parallel@1":SE,"people:entitysearch:parallel@1":hO,"people:eventguests:luma@1":AO,"posts:content:crustdata@1":wk,"sheet:rows@1":Nk,"query:postgres@1":lD,"query:databricks@1":nD};function Lk(e){return Pk[e]}const Rk=t.discriminatedUnion(`search_id`,Object.values(Fk).map(e=>e)).openapi(`SearchPayloadSchema`);function zk(e,t){return Ze(t,Ik[e].defaultPayload)}const Bk=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=zk(e.search_id);return t?{...e,config:Ze(e?.config||{},t.config)}:e},Rk),Vk=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:Bk}).openapi(`SearchRequestSchema`),Hk=ii,Uk=t.object({value:Wr,status:Ur,type:Vr.optional(),format:si.nullable().optional(),resolved_by:pi.nullable().optional(),widgets:ri.optional()}),Wk=t.record(t.string(),Uk.nullable());function Gk(e){return Fk[e]}const Kk=t.enum([`cursor`,`page_number`]),qk=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:oE,errors:t.array(Hk),results:t.array(Wk),organization_id:t.string(),next_page:Bk.nullable(),pagination_type:Kk.nullable(),total_pages:t.int32().nullable(),field_definitions:li.optional()}).openapi(`SearchResponseSchema`);function Jk(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function Yk(){let e={};for(let t of Object.values(Ik)){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=Jk(e.searchId);return Jk(t.searchId)-n})}),e}function Xk(e){return Ik[e]}const Zk=Yk();function Qk(e){let t=[];for(let[n,r]of Object.entries(Zk)){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:Jk(i.searchId)})}return t}function $k(e){let t=Ik[e].defaultPayload.config.output_fields;return t?Object.keys(t):[]}function eA(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 $k(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:Zk}}function tA(e){let t=Xk(e);return{[t.provider]:t.cost.allowManagedConnection?t.cost.credits.default:0}}const nA={"prompt:run@1":WC,"agent:run@1":Bc,"company:newssummary:website@1":wf,"company:newssummary:domain@1":_u,"company:techstack:builtwith@1":fp,"company:techstack:builtwith@2":Wu,"company:websiteurl:email@1":xp,"company:domain:workemail@1":Zc,"company:funding:leadmagic@1":gd,"company:funding:leadmagic@2":dl,"people:workemail:waterfall@1":F_,"person:workemail:waterfall@1":LC,"people:email:iswork@1":Ap,"email:iswork@1":W_,"people:name:split@1":ah,"person:name:split@1":$x,"people:validate:email:zerobounce@1":c_,"people:email:validate:zerobounce@2":Yp,"email:validate:zerobounce@1":mv,"people:mobilenumber:workemail:waterfall@1":Ym,"person:name:join@1":Ux,"company:overview@1":zf,"company:overview@2":tp,"company:overview@3":Nu,"json:extract:multi@1":my,"company:lookalikes:companyenrich@1":qd,"company:lookalikes:companyenrich@2":Vl,"company:match:logodev@1":hf,"company:match:logodev@2":cu,"person:posts:content:crustdata@1":xS,"people:profile:workemail:crustdata@1":Bg,"person:profile:workemail:crustdata@1":HS,"people:identity:email:waterfall@1":gm,"person:identity:email:waterfall@1":Gb,"person:identity:amplemarket@1":kb,"email:send:resend@1":iv,"contact:create:resend@1":nd,"lead:enroll:lemlist@1":Iy,"email:send:gmail@1":Z_,"email:write@1":Cv,"fields:merge@1":$v,"field:slugify@1":Vv,"field:domainify@1":Mv,"http:request@1":cy,"template:fill@1":lT,"message:send:slack@1":Wy,"message:write@1":Qy,"people:personalemail:profile:waterfall@1":_h,"person:personalemail:profileurl:waterfall@1":dS,"website:scrape:firecrawl@1":qT,"website:scrapelist:firecrawl@1":nE,"website:extract:firecrawl@1":vT,"website:extract:parallel@1":DT,"website:maplinks:firecrawl@1":IT,"row:append:sheet@1":rw,"row:expandappend:sheet@1":vw,"rows:find:sheet@1":nT,"rows:find:postgres@1":Gw,"rows:find:databricks@1":Lw,"people:match:role:waterfall@1":Dm,"person:match:role:waterfall@1":dx,"company:match:crustdata@1":nf,"company:match:crustdata@2":Xl,"person:match:amplemarket@1":ex,"company:identity@2":Rd,"company:identity@3":Sl,"company:identity:crustdata@1":Ml,"people:phone:profile:waterfall@1":Oh,"person:mobile:profileurl:waterfall@1":Sx,"person:devprofileurl:profileurl:waterfall@1":ub,"people:phone:workemail:waterfall@1":zh,"person:mobile:workemail:waterfall@1":Nx,"people:profile:waterfall@1":Ag,"person:profile:waterfall@1":MS,"people:profileurl:email:waterfall@1":Qg,"person:profileurl:email:waterfall@1":eC,"person:profileurl:name@1":dC,"people:email:validate:zerobounce@1":zp,"person:email:validate:millionverifier@1":bb,"people:workemail:profileurl:waterfall@1":x_,"person:workemail:profileurl:waterfall@1":CC,"company:identity@1":Dd,"people:professionalprofile:waterfall@1":Xh,"people:professionalprofileurl:name@1":yg,"people:professionalprofileurl:email:waterfall@1":cg,"people:mobilenumber:professionalprofile:waterfall@1":Rm},rA={"prompt:run@1":GC,"agent:run@1":Vc,"company:newssummary:website@1":Tf,"company:newssummary:domain@1":vu,"company:techstack:builtwith@1":pp,"company:techstack:builtwith@2":Gu,"company:websiteurl:email@1":Sp,"company:domain:workemail@1":Qc,"company:funding:leadmagic@1":_d,"company:funding:leadmagic@2":fl,"people:workemail:waterfall@1":I_,"person:workemail:waterfall@1":RC,"people:email:iswork@1":jp,"email:iswork@1":G_,"people:name:split@1":oh,"person:name:split@1":eS,"people:validate:email:zerobounce@1":l_,"people:email:validate:zerobounce@2":Xp,"email:validate:zerobounce@1":hv,"people:mobilenumber:workemail:waterfall@1":Xm,"person:name:join@1":Wx,"company:overview@1":Bf,"company:overview@2":np,"company:overview@3":Pu,"json:extract:multi@1":hy,"email:write@1":wv,"fields:merge@1":ey,"field:slugify@1":Hv,"field:domainify@1":Nv,"http:request@1":ly,"email:send:resend@1":av,"contact:create:resend@1":rd,"lead:enroll:lemlist@1":Ly,"company:lookalikes:companyenrich@1":Jd,"company:lookalikes:companyenrich@2":Hl,"company:match:logodev@1":gf,"company:match:logodev@2":lu,"person:posts:content:crustdata@1":SS,"people:profile:workemail:crustdata@1":Vg,"person:profile:workemail:crustdata@1":US,"people:identity:email:waterfall@1":_m,"person:identity:email:waterfall@1":Kb,"company:match:crustdata@1":rf,"company:match:crustdata@2":Zl,"person:identity:amplemarket@1":Ab,"message:send:slack@1":Gy,"email:send:gmail@1":Q_,"message:write@1":$y,"template:fill@1":uT,"website:scrape:firecrawl@1":JT,"website:scrapelist:firecrawl@1":rE,"website:extract:firecrawl@1":yT,"website:extract:parallel@1":OT,"website:maplinks:firecrawl@1":LT,"row:append:sheet@1":iw,"row:expandappend:sheet@1":yw,"rows:find:sheet@1":rT,"rows:find:postgres@1":Kw,"rows:find:databricks@1":Rw,"people:match:role:waterfall@1":Om,"person:match:role:waterfall@1":fx,"company:identity@2":zd,"company:identity@3":Cl,"company:identity:crustdata@1":Nl,"people:phone:profile:waterfall@1":kh,"person:mobile:profileurl:waterfall@1":Cx,"person:devprofileurl:profileurl:waterfall@1":db,"people:personalemail:profile:waterfall@1":vh,"person:personalemail:profileurl:waterfall@1":fS,"people:profile:waterfall@1":jg,"person:profile:waterfall@1":NS,"people:profileurl:email:waterfall@1":$g,"person:profileurl:email:waterfall@1":tC,"person:profileurl:name@1":fC,"people:email:validate:zerobounce@1":Bp,"person:email:validate:millionverifier@1":xb,"people:phone:workemail:waterfall@1":Bh,"person:mobile:workemail:waterfall@1":Px,"people:workemail:profileurl:waterfall@1":S_,"person:workemail:profileurl:waterfall@1":wC,"person:match:amplemarket@1":tx,"company:identity@1":Od,"people:professionalprofile:waterfall@1":Zh,"people:professionalprofileurl:name@1":bg,"people:professionalprofileurl:email:waterfall@1":lg,"people:mobilenumber:professionalprofile:waterfall@1":zm},iA={"prompt:run@1":KC,"agent:run@1":Hc,"company:newssummary:website@1":Ef,"company:newssummary:domain@1":yu,"company:techstack:builtwith@1":mp,"company:techstack:builtwith@2":Ku,"company:websiteurl:email@1":Cp,"company:domain:workemail@1":$c,"company:funding:leadmagic@1":vd,"company:funding:leadmagic@2":pl,"people:workemail:waterfall@1":L_,"person:workemail:waterfall@1":zC,"people:email:iswork@1":Mp,"email:iswork@1":K_,"people:name:split@1":sh,"person:name:split@1":tS,"people:validate:email:zerobounce@1":u_,"people:mobilenumber:workemail:waterfall@1":Zm,"person:name:join@1":Gx,"company:overview@1":Vf,"company:overview@2":rp,"company:overview@3":Fu,"json:extract:multi@1":gy,"email:send:resend@1":ov,"contact:create:resend@1":id,"lead:enroll:lemlist@1":Ry,"email:send:gmail@1":$_,"message:send:slack@1":Ky,"message:write@1":eb,"email:write@1":Tv,"template:fill@1":dT,"fields:merge@1":ty,"field:slugify@1":Uv,"field:domainify@1":Pv,"http:request@1":uy,"row:append:sheet@1":aw,"row:expandappend:sheet@1":bw,"rows:find:sheet@1":iT,"rows:find:postgres@1":qw,"rows:find:databricks@1":zw,"company:lookalikes:companyenrich@1":Yd,"company:lookalikes:companyenrich@2":Ul,"people:match:role:waterfall@1":km,"person:match:role:waterfall@1":px,"company:match:logodev@1":_f,"company:match:logodev@2":uu,"person:posts:content:crustdata@1":CS,"people:profile:workemail:crustdata@1":Hg,"person:profile:workemail:crustdata@1":WS,"people:workemail:profileurl:waterfall@1":C_,"person:workemail:profileurl:waterfall@1":TC,"people:identity:email:waterfall@1":vm,"person:identity:email:waterfall@1":qb,"company:match:crustdata@1":af,"company:match:crustdata@2":Ql,"person:identity:amplemarket@1":jb,"email:validate:zerobounce@1":gv,"person:email:validate:millionverifier@1":Sb,"people:personalemail:profile:waterfall@1":yh,"person:personalemail:profileurl:waterfall@1":pS,"people:email:validate:zerobounce@1":Vp,"people:email:validate:zerobounce@2":Zp,"people:phone:workemail:waterfall@1":Vh,"person:mobile:workemail:waterfall@1":Fx,"website:scrape:firecrawl@1":YT,"website:scrapelist:firecrawl@1":iE,"website:extract:firecrawl@1":bT,"website:extract:parallel@1":kT,"website:maplinks:firecrawl@1":RT,"person:match:amplemarket@1":nx,"company:identity@2":Bd,"company:identity@3":wl,"company:identity:crustdata@1":Pl,"people:phone:profile:waterfall@1":Ah,"person:mobile:profileurl:waterfall@1":wx,"person:devprofileurl:profileurl:waterfall@1":fb,"people:profile:waterfall@1":Mg,"person:profile:waterfall@1":PS,"people:profileurl:email:waterfall@1":e_,"person:profileurl:email:waterfall@1":nC,"person:profileurl:name@1":pC,"company:identity@1":kd,"people:professionalprofile:waterfall@1":Qh,"people:professionalprofileurl:name@1":xg,"people:professionalprofileurl:email:waterfall@1":ug,"people:mobilenumber:professionalprofile:waterfall@1":Bm};function aA(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function oA(e){return nA[e]}function sA(e){return iA[e].defaultPayload}function cA(e){return rA[e]}const lA=r.discriminatedUnion(`pipe_id`,Object.values(rA)).openapi(`PipePayload`),uA=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=sA(zr.parse(e.pipe_id));return t?{...e,config:Ze(e?.config||{},t.config)}:e}catch{return e}},lA);function dA(e){return iA[e]}function fA(e,t){let n=dA(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 pA(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function mA(){let e={};for(let t of Object.values(iA)){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=pA(e.pipeId);return pA(t.pipeId)-n})}),e}const hA=e=>{let t=dA(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},gA=mA();function _A(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(`
76
+ `);throw Error(`Catalog has ${r.length} duplicate billable-operation key(s):\n${e}`)}}_A(iA,Ik);function vA(e){let t=[];for(let[n,r]of Object.entries(gA)){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:pA(i.pipeId)})}return t}function yA(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=hA(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of aA(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of mc(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:gA}}const bA=r.object({id:r.string(),organization_id:r.string(),order:r.array(Hr),field_definitions:bi,errors:r.array(ii),records:r.record(Hr,_i),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),xA=r.object({environment:Lr.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`),SA=r.object({config:xA.openapi(`PipesRequestConfig`),field_annotations:li.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(lA),input:r.array(gi.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function CA(e){let t=dA(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},{})}function wA(e){let t=[];for(let n of e){if(n instanceof H){t.push(n);continue}let e=uA.parse(n);if(!dA(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(oA(n.pipe_id))(e);t.push(r)}return t}function TA(e,t){let n=wA(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 EA(e,t){let n=e.dependencyGraph,r=new Set;return n.forEach((e,n)=>e.forEach(e=>{e.index===t&&r.add(n)})),Array.from(r).map(t=>{let n=e.orderedPipeInstances[t];if(!n)throw Error(`Internal: Pipe with index ${t} not found.`);return n.pipeId})}function DA(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 OA(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 kA(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(OA(e))return`https://${e}`;if(!DA(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 AA(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(OA(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!DA(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(DA(i)||OA(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function jA(e){try{return kA(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function MA(e,t){if(t)switch(e){case`website_url`:return jA(t);default:return}}function NA(e){let t;if(PA(e))return NA(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function PA(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&Ur.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&PA(e.value,t++))throw new Q([Z.RecursiveExpandedValue()]);return!0}return!1}function FA(e){let t=PA(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function IA(e){return PA(e)?IA(e.value):e}function LA(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=jr(e,n.format)?.getStaticWidgets?.(t),i=MA(n.format,t);return ut(lt(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function RA(e,t,n){if(t==null)return{};try{let r=jr(e,n)?.getStaticWidgets?.(t),i=MA(n,t);return ut(lt(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function zA(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 BA=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}=FA(n),c;c=s&&a.type?a.type:NA(e);let l;Mr(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]=zA(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function VA(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];Object.values(r.getOutputFields()).forEach(e=>{if(t[e.resolvedName])throw new Q([Z.AmbiguousDependency({fieldName:e.resolvedName})]);t[e.resolvedName]=n})}return t}function HA(e){let t=VA(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of mc(i.getInputRequirement())){let o=t[n.resolvedName];if(r===o)throw new Q([{code:`SelfReference`,message:`Pipe '${i.pipeId} has an input requirement that points to a field that is produced by itself.'`}]);if(o==null)continue;let s=e.find(e=>e.index===o);s?(s.reason??=[],s.reason=Array.from(new Set([...s.reason,`input`])),s.required=a||s.required):e.push({index:o,required:a,reason:[`input`]})}if(i.payload.run_if){let n=i.payload.run_if.when.conditions.map(e=>e.field_name);for(let r of n){let n=t[r];if(n==null)continue;let i=e.find(e=>e.index===n);i?(i.reason??=[],i.reason=Array.from(new Set([...i.reason,`input`])),i.required=!0):e.push({index:n,required:!0,reason:[`input`]})}}n.push(e)}return n}function UA({config:e,pipes:t,input:n,field_annotations:r}){try{let i=qA({config:e,pipes:t,input:n,fieldAnnotations:r});return WA(i),i}catch(e){throw e instanceof Q?e:new Q([Z.ValidationFailed({error:e})])}}function WA(e){for(let t of e.orderedPipeInstances)for(let{field:n}of mc(t.getInputRequirement()))bc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),xc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function GA(e,t){if(!e&&!t)throw new Q([Z.MustDefineAnnotations()]);return new BA(t||{}).merge(BA.fromInput(e||[]))}function KA(e,t){let n={...t};return e.pipes.forEach((t,r)=>{for(let[i,a]of Object.entries(t.getOutputFields())){if(sc(a.resolvedName))throw new Q([Z.ReservedOutputFieldName({pipeId:t.pipeId,outputField:a})]);let i=n[a.resolvedName];if(i&&i.added_by.ref!==`input`)throw new Q([Z.DuplicatePipeOutput({pipeId:t.pipeId,outputField:a})]);n[a.resolvedName]={type:bc(e,a.type),added_by:{ref:t.pipeId,config_hash:t.getConfigHashKey(),pipe_index:r},label:i?.label||a.label,format:xc(e,a.format),is_primary_output:a.isPrimaryOutput}}}),n}function qA(e){let t=wA(e.pipes),n=GA(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)}),XA(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]=JA(t,n),u=KA({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 JA(e,t){let n=HA(e),r=YA(n,e,t),i=[],a=[];return r.forEach(t=>{let n=e[t];if(!n)throw new Q([Z.FaultyEnrichmentOrder()]);i.push(n.payload),a.push(n)}),[i,a,n]}function YA(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?mc(n.getInputRequirement()).length>0:!1},l=(n,r=[])=>{if(o.has(n)){let e=n,i=r[r.length-1]||0,a={idx:i,pipe_id:t[i]?.pipeId},o={idx:e,pipeId:t[e]?.pipeId};throw new Q([Z.CircularDependency({currentPipe:a,circularPipe:o})])}if(a.has(n))return;o.add(n),r.push(n);let s=e[n]||[];for(let e of s)l(e.index,r);r.pop(),o.delete(n),a.add(n),i.push(n)};function u(t){if(a.has(t))return;o.add(t);let n=e[t]||[];for(let e of n){if(!a.has(e.index)&&e.required)throw new Q([Z.UnresolvableDependency({index:t,dependencyIndex:e.index})]);!o.has(e.index)&&!e.required&&u(e.index)}o.delete(t),a.add(t),i.push(t)}for(let e=0;e<r;e++)c(e)&&l(e);for(let e=0;e<r;e++)c(e)||l(e);for(let e=0;e<r;e++)u(e);let d=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=>{d.add(e.resolvedName)})}for(let[n,r]of t.entries()){let a=r.getInputRequirement();pc(a,d)||s.push(Z.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`)?Z.HardInputDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}):Z.HardConditionDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}))}r.payload.run_if&&r.payload.run_if.when.conditions.map(e=>e.field_name).forEach(e=>{if(!d.has(e))throw new Q([Z.ConditionTargetFieldNotFound({fieldName:e,pipeId:r.pipeId,pipeIdx:n})])})}if(s.length>0)throw new Q(s);return i}function XA(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 xa(e.connection).provider;e.type}).forEach(e=>{e&&n.delete(e)}),n.size>0))throw new Q([Z.MissingCustomConnections({index:t,pipeId:e.pipeId,missingProviders:Array.from(n)})])}}const ZA=`fields:deletesparse:input@1`,QA={},$A=r.object({effect_id:r.literal(ZA),connector:T(),config:r.object({fields:es({path:`config.fields`,sectionKey:`general`,groupPath:`config.general`,label:`Candidate fields`,minItems:1,description:`Input fields to delete if they turn out sparsely populated.`}),probe_size:Rs({path:`config.probe_size`,sectionKey:`general`,groupPath:`config.general`,label:`Probe size`,description:`How many rows to sample when measuring column density.`,min:100,max:1e4}).default(1e3),threshold_in_percent:Rs({path:`config.threshold_in_percent`,sectionKey:`general`,groupPath:`config.general`,label:`Density threshold (%)`,description:`Candidates populated in strictly fewer than this percent of probed rows are deleted.`,min:1,max:100}).default(25)})}),ej=class extends B{effectId=ZA;schema=$A;payload;billableOperations=QA;constructor(e){if(super(),this.payload=this.validatePayload(e),this.payload.config.fields.some(e=>e.field_name===`id`))throw Error(`Cannot list the id field as a deletion candidate.`)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return this.payload.config.fields.map(e=>e.field_name)}evolveSchema(e){let t=structuredClone(e.fieldAnnotations||{});for(let{field_name:e}of this.payload.config.fields)delete t[e];if(Object.keys(t).filter(e=>e!==`id`).length===0&&e.pipes.length===0)throw Error(`fields:deletesparse:input@1 lists every input column as a candidate β€” it refuses to empty the sheet. Keep at least one column off the candidate list, or use fields:remove@1 / sheet:reset@1 to clear the sheet explicitly.`);let n=UA({config:{environment:e.environment},pipes:e.pipes,field_annotations:t});return{next:{environment:e.environment,pipes:e.pipes,fieldAnnotations:t,validationContext:n}}}},tj=$A,nj={effectId:ZA,baseEffect:z(ZA),label:`Delete sparse input columns`,description:`Probe rows to measure how densely candidate input columns are populated and delete the ones below a density threshold.`,guide:`Conditional column cleanup: list every input column you'd consider dropping as config.fields (typically the sparse leftovers rows:copy_to_sheet@1 imports leave behind) β€” the density check keeps any candidate that turns out well-populated. Probes the first config.probe_size rows (default 1000) and deletes a candidate only when it is populated in strictly fewer than config.threshold_in_percent (default 25) of them. Only listed fields can be deleted; id and pipe-referenced fields cannot be listed (validation error). Static validation treats ALL candidates as removed (aggressive over-approximation), so do not reference a candidate in later steps of the same run β€” re-read get_sheet_schema afterwards to see which columns survived. Deletes columns, never rows. DESTRUCTIVE (approval-gated), reversible via timetravel. To delete named columns unconditionally use fields:remove@1 instead.`,categories:[`data_hygiene`],tags:[W.NEW],lifecycle:null,billableOperations:QA,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,defaultPayload:{effect_id:ZA,connector:null,config:{fields:[],probe_size:1e3,threshold_in_percent:25}}};function rj(e,t,n){if(e==null||typeof e==`number`||typeof e==`boolean`)return e;if(typeof e==`string`){let r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),i=new RegExp(r,`g`);return e.replace(i,n)}if(Array.isArray(e))return e.map(e=>rj(e,t,n));if(typeof e==`object`){let r={};for(let i in e)Object.hasOwn(e,i)&&(i.includes(`path`)||[`connector`,`provider`,`pipe_id`,`search_id`].includes(i)?r[i]=e[i]:r[i]=rj(e[i],t,n));return r}return e}function ij(e,t,n){let r={...e};r.config??={};let i=r.config;if(i?.input_fields?.[t]&&(!i.input_fields[t].alias||i.input_fields[t].alias===t)){let e=i.input_fields[t]||{};i.input_fields[t]={...e,alias:n}}return r}function aj(e,t,n){let r=[];for(let i of e.orderedPipePayloads){let e=rj(i,t,n);r.push(ij(e,t,n))}return r}function oj(e,t,n,r,i){if(!e.orderedPipeInstances[t])throw Error(`Pipe instance at index ${t} is not defined`);let a={...n};if(dA(n.pipe_id).outputFieldMode===`static`){let n=e.resolvedFieldNames[r]?e.resolvedFieldNames[r]:Object.entries(e.resolvedFieldNames).find(([,e])=>e===r)?.[0];if(!n)throw Error(`Unable to find field name ${r} in pipe at idx ${t}`);a.config??={};let o=a.config,s=o.output_fields?.[n]||{};return o.output_fields??={},o.output_fields[n]??={},o.output_fields[n]={...s,alias:i},ij(a,r,i)}return rj(a,r,i)}function sj(e,t,n,r){let i=[];for(let a=0;a<e.orderedPipePayloads.length;a++){let o=e.orderedPipePayloads[a],s=t.added_by.pipe_index;if(typeof s!=`number`)throw Error(`Pipe index must be number.`);a===s?i.push(oj(e,a,o,n,r)):i.push(rj(o,n,r))}return i}function cj(e,t,n){let r=e.fieldDefinitions[t];if(!r)throw Error(`No field definition found for field with name ${t}`);return r?.added_by.ref===`input`?aj(e,t,n):sj(e,r,t,n)}const lj=`fields:patch@1`,uj={},dj=r.object({effect_id:r.literal(lj),connector:T(),config:r.object({field_name:r.string().min(1),new_name:r.string().min(1).optional(),new_format:si.nullable().optional(),new_type:Vr.optional(),new_label:r.string().optional()})}),fj=class extends B{effectId=lj;schema=dj;payload;billableOperations=uj;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[this.payload.config.field_name]}evolveSchema(e){let{field_name:t,new_name:n,new_label:r,new_format:i,new_type:a}=this.payload.config;if(!e.fieldAnnotations?.[t])throw Error(`Field name ${t} not found in current schema.`);let o=e.validationContext,s=o.fieldDefinitions[t];if(!s)throw Error(`Field definition for field ${t} not found.`);let c={...e.fieldAnnotations},l=!!n&&n!==t,u=[...o.orderedPipePayloads];if(l){u=cj(o,t,n);let e=c[t];if(!e)throw Error(`Unable to find file annotations for field ${t}.`);c[n]=e,delete c[t]}let d=s.added_by.ref===`input`,f=n||t,ee=a||s.type,te=i||s.format;if(a&&a!==s.type){if(!d)throw Error(`Cannot change the type of a pipe output field.`);c[f].type=a,nm[a].length===0&&(c[f].format=null)}if(i&&i!==s.format){if(!d)throw Error(`Cannot change the format of a pipe output field.`);c[f].format=i}if(nm[ee].length&&te&&!nm[ee].includes(te))throw Error(`After applying your updates the field has the type ${ee} but format ${te}. Type and format are not compatible.`);r&&r!==s.label&&(c[f].label=r);let ne=UA({config:{environment:e.environment},pipes:u,field_annotations:c}),p=l?(e,r)=>(e.input[n]=r.input[t]||null,e):void 0;return{next:{environment:e.environment,pipes:ne.orderedPipePayloads,fieldAnnotations:ne.fieldAnnotations.annotations,validationContext:ne},rowMigration:p}}},pj=dj,mj={effectId:lj,baseEffect:z(lj),label:`Edit field`,description:`Rename, retype, reformat, or relabel a field.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:uj,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:lj,connector:null,config:{field_name:``}}},hj=`fields:remove@1`,gj={},_j=r.object({effect_id:r.literal(hj),connector:T(),config:r.object({field_names:r.array(r.string().min(1)).min(1)})}),vj=class extends B{effectId=hj;schema=_j;payload;billableOperations=gj;constructor(e){if(super(),this.payload=this.validatePayload(e),this.payload.config.field_names.includes(`id`))throw Error(`Cannot remove the id field.`)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return this.payload.config.field_names}evolveSchema(e){let t=structuredClone(e.fieldAnnotations||{});for(let e of this.payload.config.field_names)delete t[e];if(Object.keys(t).length===1){let t=UA({config:{environment:e.environment},pipes:[],field_annotations:{}});return{next:{environment:e.environment,pipes:[],fieldAnnotations:{},validationContext:t}}}let n=UA({config:{environment:e.environment},pipes:e.pipes,field_annotations:t});return{next:{environment:e.environment,pipes:e.pipes,fieldAnnotations:t,validationContext:n}}}},yj=_j,bj={effectId:hj,baseEffect:z(hj),label:`Remove fields`,description:`Remove fields (input columns) from the sheet.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:gj,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:hj,connector:null,config:{field_names:[]}}},xj=`pipe:add@1`,Sj={},Cj=r.object({effect_id:r.literal(xj),connector:T(),config:r.object({pipe_payload:lA.optional()})}),wj=class extends B{effectId=xj;schema=Cj;payload;billableOperations=Sj;constructor(e){if(super(),this.payload=this.validatePayload(e),!this.payload.config.pipe_payload)throw Error(`pipe:add@1 requires config.pipe_payload`)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}evolveSchema(e){let t=this.payload.config.pipe_payload;if(!t)throw Error(`pipe:add@1 requires config.pipe_payload`);let n=UA({config:{environment:e.environment},pipes:[...e.pipes,t],field_annotations:e.fieldAnnotations||{}});return{next:{environment:e.environment,pipes:n.orderedPipePayloads,fieldAnnotations:n.fieldAnnotations.annotations,validationContext:n}}}},Tj=Cj,Ej={effectId:xj,baseEffect:z(xj),label:`Add pipe`,description:`Append a pipe to the sheet's pipeline.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:Sj,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:xj,connector:null,config:{}}},Dj=`pipe:remove@1`,Oj={},kj=r.object({effect_id:r.literal(Dj),connector:T(),config:r.object({config_hash:r.string(),hard:r.boolean().default(!1)})}),Aj=class extends B{effectId=Dj;schema=kj;payload;billableOperations=Oj;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}evolveSchema(e){let{config_hash:t,hard:n}=this.payload.config,i=wA(e.pipes).findIndex(e=>e.getConfigHashKey()===t);if(i===-1)throw Error(`Pipe with config hash ${t} not found.`);let a=e.validationContext,o=new Set(Object.entries(a.fieldDefinitions).filter(([,e])=>e.added_by.config_hash===t).map(([e])=>e)),s=new BA(e.fieldAnnotations||{});for(let e of o){let t=a.fieldDefinitions[e];if(!t)continue;if(n){s=s.deleteKey(e);continue}let i=Pr(e,t,a),o=Mr(i.fieldName)?g(i.fieldName):null;s=s.merge({[e]:{format:t.format,type:t.type,json_metadata:o?.jsonMeta?{schema:o.jsonMeta.zodSchema?r.toJSONSchema(o.jsonMeta.zodSchema):null,example_value:o.jsonMeta.exampleValue||null}:null,label:t.label}})}let c=e.pipes.slice();c.splice(i,1);let l=UA({config:{environment:e.environment},pipes:c,field_annotations:s.annotations}),u=n?void 0:e=>{let t={...e};for(let e of o){let n=t.input[e];if(!n)continue;let{resolvedInputValue:r}=FA(n);t.input[e]=r}return t};return{next:{environment:e.environment,pipes:c,fieldAnnotations:s.annotations,validationContext:l},rowMigration:u}}},jj=kj,Mj={effectId:Dj,baseEffect:z(Dj),label:`Remove pipe`,description:`Remove a pipe from the sheet's pipeline, optionally deleting its fields.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:Oj,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:Dj,connector:null,config:{config_hash:``,hard:!1}}},Nj=`pipe:update@1`,Pj={},Fj=r.object({effect_id:r.literal(Nj),connector:T(),config:r.object({config_hash:r.string().min(1),pipe_payload:lA.optional()})}),Ij=class extends B{effectId=Nj;schema=Fj;payload;billableOperations=Pj;constructor(e){if(super(),this.payload=this.validatePayload(e),!this.payload.config.pipe_payload)throw Error(`pipe:update@1 requires config.pipe_payload`)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}evolveSchema(e){let{config_hash:t,pipe_payload:n}=this.payload.config;if(!n)throw Error(`pipe:update@1 requires config.pipe_payload`);let i=wA(e.pipes).findIndex(e=>e.getConfigHashKey()===t);if(i===-1)throw Error(`Pipe with config hash ${t} not found.`);let a=e.validationContext,o=new Set(Object.entries(a.fieldDefinitions).filter(([,e])=>e.added_by.config_hash===t).map(([e])=>e)),s=[...e.pipes];s.splice(i,1,n);let c=UA({config:{environment:e.environment},pipes:s,field_annotations:e.fieldAnnotations||{}}),l=new(oA(n.pipe_id))(n),u=new Set(Object.entries(c.fieldDefinitions).filter(([,e])=>e.added_by.config_hash===l.getConfigHashKey()).map(([e])=>e));for(let e of u)o.delete(e);let d=new BA(c.fieldAnnotations.annotations);for(let e of o){let t=a.fieldDefinitions[e];if(!t)throw Error(`Previous field def not found`);if(c.resolvedFieldNames[e])continue;let n=Pr(e,t,a),i=Mr(n.fieldName)?g(n.fieldName):null;d=d.merge({[e]:{format:t.format,type:t.type,json_metadata:i?.jsonMeta?{schema:i.jsonMeta.zodSchema?r.toJSONSchema(i.jsonMeta.zodSchema):null,example_value:i.jsonMeta.exampleValue||null}:null,label:t.label}})}let f=UA({config:{environment:e.environment},pipes:c.orderedPipePayloads,field_annotations:d.annotations});return{next:{environment:e.environment,pipes:c.orderedPipePayloads,fieldAnnotations:d.annotations,validationContext:f},rowMigration:e=>{let t={...e};for(let e of o){let n=t.input[e];if(!n)continue;let{resolvedInputValue:r}=FA(n);t.input[e]=r}return t}}}},Lj=Fj,Rj={effectId:Nj,baseEffect:z(Nj),label:`Update pipe`,description:`Replace a pipe in the sheet's pipeline and re-run it.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:Pj,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:Nj,connector:null,config:{config_hash:``}}},zj=`row:update@1`,Bj={},Vj=r.object({effect_id:r.literal(zj),connector:T(),config:r.object({record_id:r.string().min(1),record:gi})}),Hj=class extends B{effectId=zj;schema=Vj;payload;billableOperations=Bj;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},Uj=Vj,Wj={effectId:zj,baseEffect:z(zj),label:`Update row`,description:`Update a single row's values.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:Bj,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`shared`,lockScope:`selection`,catalogVisibility:`hidden`,defaultPayload:{effect_id:zj,connector:null,config:{record_id:``,record:{}}}},Gj=`rows:add@1`,Kj={},qj=r.object({effect_id:r.literal(Gj),connector:T(),config:r.object({records:r.array(gi).min(1).max(100),allow_field_creation:r.boolean().default(!1),allow_empty:r.boolean().default(!1)})}),Jj=class extends B{effectId=Gj;schema=qj;payload;billableOperations=Kj;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){return this.payload.config.allow_field_creation===!0}},Yj=qj,Xj={effectId:Gj,baseEffect:z(Gj),label:`Add rows`,description:`Append records to the sheet.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:Kj,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`hidden`,defaultPayload:{effect_id:Gj,connector:null,config:{records:[],allow_field_creation:!1,allow_empty:!1}}},Zj=r.enum([`pending`,`failed`,`no_result`,`skipped`,`completed`]),Qj=[{value:`pending`,label:`Pending`},{value:`failed`,label:`Failed`},{value:`no_result`,label:`No result`},{value:`skipped`,label:`Skipped`},{value:`completed`,label:`Completed`}],$j=[`pending`],eM=[`pending`,`failed`,`skipped`];function tM(e){return{enabled:!0,triggers:{status:e,configHashMismatch:!0,inputHashMismatch:!0}}}const nM=`rows:adopt@1`,rM={},iM=r.object({effect_id:r.literal(nM),connector:T(),config:r.object({pipes:r.array(lA).default([]),selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target.`,placeholder:`{"type":"all"}`},`both`),adopt_statuses:Ls({options:Qj,required:!1,disableSearch:!0,path:`config.adopt_statuses`,sectionKey:`general`,groupPath:`config.general`,label:`Adopt statuses`,description:`Only cells with these statuses are adopted (pinned). Omit to adopt all.`}).optional()})}),aM=class extends B{effectId=nM;schema=iM;payload;billableOperations=rM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},oM=iM,sM={effectId:nM,baseEffect:z(nM),label:`Adopt values`,description:`Pin the selected columns' current values so a config or input change won't regenerate them.`,guide:'Adopt re-stamps each selected cell\'s stored config/input hash to the CURRENT one, so the value is kept as-is instead of being re-run. It never recomputes β€” use `rows:enrich@1` to (re)compute. Adopting all statuses composes with a follow-up `rows:enrich@1` (`run_statuses: ["failed"]`) to rerun only the failures while completed cells stay pinned β€” the safe pattern before running a non-idempotent effect twice.',categories:[`internal`],tags:[],lifecycle:null,billableOperations:rM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`selection`,catalogVisibility:`hidden`,defaultPayload:{effect_id:nM,connector:null,config:{pipes:[]}}},cM=`rows:copy_to_sheet@1`,lM={},uM=r.object({effect_id:r.literal(cM),connector:T(),config:r.object({selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to copy as JSON.`,placeholder:`{"type":"all"}`},`both`),where:Io({path:`config.where`,sectionKey:`general`,groupPath:`config.general`,order:1,label:`Condition (optional)`,description:`Only copy selected rows matching this condition. Leave empty to copy all.`}),target_sheet:Ps({path:`config.target_sheet`,sectionKey:`general`,groupPath:`config.general`,order:2,inputType:`text`,label:`Target sheet`,description:`Slug of the destination sheet. Created if missing (see below). Slugs are org-unique β€” for a NEW sheet use a short descriptive slug plus a few random chars (e.g. "ceos-x7k2") so it can't hit an unrelated existing sheet.`}),create_if_missing:Bs({path:`config.create_if_missing`,sectionKey:`general`,groupPath:`config.general`,order:3,label:`Create if missing`,description:`When the target sheet does not exist, create it in this sheet's project. Off β‡’ fail.`,defaultValue:!0})})}),dM=class extends B{effectId=cM;schema=uM;payload;billableOperations=lM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){let e=this.payload.config.where;return e?[...new Set(e.conditions.map(e=>e.field_name))]:[]}},fM=uM,pM={effectId:cM,baseEffect:z(cM),label:`Copy rows to sheet`,description:`Copy selected rows (or every row) into another sheet β€” all of them, or only those matching a condition. Creates the target sheet in this project if it doesn't exist.`,categories:[`data_hygiene`],tags:[W.NEW],lifecycle:null,billableOperations:lM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`visible`,defaultPayload:{effect_id:cM,connector:null,config:{selection:{type:`all`},target_sheet:``,create_if_missing:!0}}},mM=`rows:dedupe@1`,hM={"rows-dedupe-v1-pipe0":{allowManagedConnection:!0,provider:`pipe0`,mode:`always`,credits:{default:0},note:`Deduplicating your own sheet is free.`}},gM=r.object({effect_id:r.literal(mM),connector:T(),config:r.object({selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target as JSON.`,placeholder:`{"type":"all"}`},`both`),fields:es({path:`config.fields`,sectionKey:`general`,groupPath:`config.general`,label:`Match fields`,minItems:1,description:`Rows are duplicates when these fields match.`}),match:Is({path:`config.match`,sectionKey:`general`,groupPath:`config.general`,label:`Match condition`,required:!0,defaultValue:`all`,options:[{value:`all`,label:`All fields match (AND)`},{value:`any`,label:`Any field matches (OR)`}]}),strategy:Is({path:`config.strategy`,sectionKey:`general`,groupPath:`config.general`,label:`Which duplicate to keep`,required:!0,defaultValue:`keep_oldest`,options:[{value:`keep_oldest`,label:`Keep oldest`},{value:`keep_newest`,label:`Keep newest`}]})})}),_M=class extends B{effectId=mM;schema=gM;payload;billableOperations=hM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0-sheet-operation`,rateLimitRatio:1,allowManagedConnection:!0}]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`rows-dedupe-v1-pipe0`)}getFieldReferences(){return this.payload.config.fields.map(e=>e.field_name)}},vM=gM,yM={effectId:mM,baseEffect:z(mM),label:`Remove duplicate rows`,description:`Find duplicate rows by matching fields and keep one row per group.`,categories:[`data_hygiene`],tags:[W.NEW],lifecycle:null,billableOperations:hM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`exclusive`,shouldUpgradeSchema:!0,catalogVisibility:`visible`,guide:`Dedupe in ONE run: list every identity field in config.fields and pick config.match β€” "all" (rows are duplicates only when every field matches) or "any" (a match on ANY listed field makes rows duplicates). To dedupe on several alternative keys (e.g. same email OR same profile_url), use match "any" with all keys in one effect β€” never run one dedupe per field; if you must combine dedupe with other cleanup, put the effects in one validated chain so the user approves once. Destructive and approval-gated; reversible via timetravel.`,defaultPayload:{effect_id:mM,connector:null,config:{fields:[],match:`all`,strategy:`keep_oldest`}}},bM=`rows:duplicate@1`,xM={"rows-duplicate-v1-pipe0":{allowManagedConnection:!0,provider:`pipe0`,mode:`always`,credits:{default:0},note:`Duplicating rows in your own sheet is free.`}},SM=r.object({effect_id:r.literal(bM),connector:T(),config:r.object({selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target as JSON.`,placeholder:`{"type":"all"}`},`both`)})}),CM=class extends B{effectId=bM;schema=SM;payload;billableOperations=xM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0-sheet-operation`,rateLimitRatio:1,allowManagedConnection:!0}]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`rows-duplicate-v1-pipe0`)}getFieldReferences(){return[]}},wM=SM,TM={effectId:bM,baseEffect:z(bM),label:`Duplicate rows`,description:`Copy the selected rows (or every row). Copies get fresh ids and are appended after the existing rows.`,categories:[`data_hygiene`],tags:[W.NEW],lifecycle:null,billableOperations:xM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`visible`,defaultPayload:{effect_id:bM,connector:null,config:{}}},EM=`rows:enrich@1`,DM={},OM=r.object({effect_id:r.literal(EM),connector:T(),config:r.object({pipes:r.array(lA).default([]),selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target.`,placeholder:`{"type":"all"}`},`both`),run_statuses:Ls({options:Qj,required:!1,disableSearch:!0,path:`config.run_statuses`,sectionKey:`general`,groupPath:`config.general`,label:`Run statuses`,description:`Rows with the following statuses will be run.`}).optional()})}),kM=class extends B{effectId=EM;schema=OM;payload;billableOperations=DM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getRecordQueueConfig(e){return tM(this.payload.config.run_statuses??(e?.isScheduled?$j:eM))}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},AM=OM,jM={effectId:EM,baseEffect:z(EM),label:`Enrich rows`,description:`Run the sheet's pipes over the selected rows.`,categories:[`enrichment`],tags:[],lifecycle:null,billableOperations:DM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],catalogVisibility:`visible`,selectionMode:`both`,lockingMode:`shared`,lockScope:`selection`,defaultPayload:{effect_id:EM,connector:null,config:{pipes:[]}}},MM=`rows:filter:prompt@1`,NM=`rows-filter-prompt-v1`,PM=Za(NM),FM=r.object({effect_id:r.literal(MM),connector:Zo(),config:r.object({selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target as JSON.`,placeholder:`{"type":"all"}`},`both`),prompt:Fs({path:`config.prompt`,sectionKey:`general`,groupPath:`config.general`,label:`Filter instruction`,rows:4,placeholder:`Only keep rows where the person is a "Head of Growth" at a company doing less than $1M in revenue.`}),model:Hs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.general`,billableOperations:PM}),fields:es({path:`config.fields`,sectionKey:`general`,groupPath:`config.general`,label:`Fields to consider`,info:`If specified, only these fields are shown to the model. This is useful to drop large JSON columns and save tokens.`})})}),IM=class extends B{effectId=MM;schema=FM;payload;billableOperations=PM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return Ga(this.payload.config.model)}getProviderNames(){return Wa(this.payload.config.model)}estimateBillableOperations(e){return $a(e,{model:this.payload.config.model,prefix:NM,inputTokens:600,outputTokens:50})}getFieldReferences(){return(this.payload.config.fields??[]).map(e=>e.field_name)}},LM=FM,RM={effectId:MM,baseEffect:z(MM),label:`AI filter rows`,description:`Keep or remove rows by a natural-language instruction, judged per row by an AI model.`,categories:[`data_hygiene`],tags:[W.NEW,W.AI],lifecycle:null,billableOperations:PM,allowedUserConnectionProviders:Ka(),managedProviders:Ka(),selectionMode:`both`,lockingMode:`exclusive`,shouldUpgradeSchema:!0,catalogVisibility:`visible`,defaultPayload:{effect_id:MM,connector:null,config:{model:`google-low`,prompt:``,fields:[]}}},zM=`rows:import@1`,BM={},VM=r.object({effect_id:r.literal(zM),connector:T(),config:r.object({staging_group_id:r.string().min(1),allow_field_creation:r.boolean().default(!1),event_id:r.string().nullable().default(null)})}),HM=class extends B{effectId=zM;schema=VM;payload;billableOperations=BM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){return this.payload.config.allow_field_creation===!0}},UM=VM,WM={effectId:zM,baseEffect:z(zM),label:`Import rows`,description:`Append records from a staging group (CSV import / search commit).`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:BM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`hidden`,defaultPayload:{effect_id:zM,connector:null,config:{staging_group_id:``,allow_field_creation:!1,event_id:null}}},GM=`rows:remove@1`,KM={},qM=r.object({effect_id:r.literal(GM),connector:T(),config:r.object({selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to delete as JSON.sc`,placeholder:`{"type":"all"}`},`both`),where:Io({path:`config.where`,sectionKey:`general`,groupPath:`config.general`,order:1,label:`Condition (optional)`,description:`Only delete selected rows matching this condition. Leave empty to delete all.`})})}),JM=class extends B{effectId=GM;schema=qM;payload;billableOperations=KM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){let e=this.payload.config.where;return e?[...new Set(e.conditions.map(e=>e.field_name))]:[]}},YM=qM,XM={effectId:GM,baseEffect:z(GM),label:`Delete rows`,description:`Delete selected rows β€” all of them, or only those matching a condition.`,categories:[`data_hygiene`],tags:[],lifecycle:null,billableOperations:KM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`exclusive`,lockScope:`selection`,catalogVisibility:`visible`,guide:`Delete rows matching config.where (omit selection to consider ALL rows; omit where to delete the whole selection). Destructive and approval-gated, so make ONE remove do the whole job: or-combine EVERY drop criterion into a single where (logic "or", one condition per field) instead of running several removes β€” and put the remove in the same validated chain as any fields:remove / rename cleanup so the user approves once. To drop rows whose enrichment yielded nothing, condition on the field's STATUS (property "status", e.g. neq "completed" β€” catches skipped, failed, and no_result at once). Bracketed cell renderings from get_sheet_rows like "[no_result]"/"[skipped]" are status placeholders for EMPTY cells, never stored values β€” a value condition cannot match them. After the run, re-read the sheet ONCE to confirm; if the rows you expected gone are still there, stop and report the discrepancy instead of retrying with variant conditions.`,defaultPayload:{effect_id:GM,connector:null,config:{selection:{type:`rows`,record_ids:[]}}}};function ZM(e){if(e instanceof $)return e;let t=e.search_id,n=Lk(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(Bk.parse(e))}const QM=`search:run@1`,$M={},eN=r.object({effect_id:r.literal(QM),connector:T(),config:r.object({search_payload:Us({path:`config.search_payload`,groupPath:`config.general`,sectionKey:`general`,label:`Search`,description:`Pick and configure the search to run.`},Bk),max_number_of_results:Rs({path:`config.max_number_of_results`,groupPath:`config.general`,sectionKey:`general`,label:`Max results`,description:`Maximum number of items to find across all pages.`,guide:"This is the FETCH budget β€” an upper bound on raw results pulled across all pages (it also caps each page's size). De-duplicated results are NOT re-fetched, so this is not the final row count. When you want EXACTLY N unique rows, do NOT set this to N (you'd get fewer the moment any result is a duplicate): set `stop_at_unique_rows_count` to N and set this to the maximum (1000000) so the unique count is the real stop condition. For a plain bulk fetch with no unique target, set this to the number of rows you want.",max:1e6,min:1}).default(1e3),deduplicate:Bs({path:`config.deduplicate`,groupPath:`config.general`,sectionKey:`general`,label:`Unique rows only`,description:`Skip results that already exist in the sheet.`,guide:"Dedup key is the search's own declared key. Discards are NOT topped up with extra pages, so to reliably collect N unique rows pair this with `stop_at_unique_rows_count` and a large `max_number_of_results`.",defaultValue:!0,enabledIf:e=>{let t=e.config?.search_payload;if(!t?.search_id)return{disabled:!0,message:`Configure a search first.`};let n=!1;try{n=ZM(t).getDedupConfig().fields.length>0}catch{n=!1}return n?{disabled:!1}:{disabled:!0,message:`This search doesn't support de-duplication.`}}}),stop_at_unique_rows_count:zs({path:`config.stop_at_unique_rows_count`,groupPath:`config.general`,sectionKey:`general`,label:`Stop at X unique rows`,description:`Stop after this many new rows have been added. Leave empty for no early stop. Bounded by Max results.`,guide:"Set this to the exact unique-row count you want (only works with `deduplicate` on). It paginates full pages until this many NEW rows are added, so set `max_number_of_results` to the maximum (1000000) to give it room β€” `max_number_of_results` then just acts as a safety backstop.",placeholder:`No early stop`,min:1,max:1e5,enabledIf:e=>e.config?.deduplicate===!0?{disabled:!1}:{disabled:!0,message:`Enable β€œUnique rows only” to use this.`}})})}),tN=class extends B{effectId=QM;schema=eN;payload;billableOperations=$M;constructor(e){super(),this.payload=this.validatePayload(e)}getSearch(){let e=this.payload.config.search_payload;if(!e?.search_id)return null;try{return ZM(e)}catch{return null}}getConnectionsRequirements(){return[]}getProviderNames(){let e=this.getSearch();return e?[Xk(e.searchId).provider]:[]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){let e=this.getSearch();return e?(Xk(e.searchId).outputFieldMode??`static`)===`dynamic`:!1}},nN=eN,rN={effectId:QM,baseEffect:z(QM),label:`Search`,description:`Run a search and append the results to the sheet.`,categories:[`enrichment`],tags:[W.NEW],lifecycle:null,billableOperations:$M,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,defaultPayload:{effect_id:QM,connector:null,config:{search_payload:{search_id:``},max_number_of_results:1e3,deduplicate:!0,stop_at_unique_rows_count:null}}},iN=`sheet:export@1`,aN={},oN=r.object({effect_id:r.literal(iN),connector:T(),config:r.object({selection:ts({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to export as JSON β€” {"type":"all"} or {"type":"rows","record_ids":["…"]}.`,placeholder:`{"type":"all"}`},`both`)})}),sN=class extends B{effectId=iN;schema=oN;payload;billableOperations=aN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},cN=oN,lN={effectId:iN,baseEffect:z(iN),label:`Export sheet`,description:`Export the selected rows to a CSV download.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:aN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`hidden`,defaultPayload:{effect_id:iN,connector:null,config:{}}},uN=`sheet:reset@1`,dN={},fN=r.object({effect_id:r.literal(uN),connector:T(),config:r.object({})}),pN=class extends B{effectId=uN;schema=fN;payload;billableOperations=dN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}evolveSchema(e){let t=UA({config:{environment:e.environment},pipes:[],field_annotations:{}});return{next:{environment:e.environment,pipes:[],fieldAnnotations:{},validationContext:t}}}},mN=fN,hN={effectId:uN,baseEffect:z(uN),label:`Reset sheet`,description:`Reset the sheet to its initial state β€” remove all pipes, fields, and rows. This cannot be partially applied.`,categories:[`data_hygiene`],tags:[],lifecycle:null,billableOperations:dN,shouldUpgradeSchema:!0,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,defaultPayload:{effect_id:uN,connector:null,config:{}}},gN=`sheet:update@1`,_N={},vN=r.object({effect_id:r.literal(gN),connector:T(),config:r.object({name:r.string().min(4).refine(e=>!e.includes(`/`),`Name cannot contain '/'`).optional(),slug:r.string().regex(/^[A-Za-z0-9]+(?:[-_][A-Za-z0-9]+)*$/).optional()}).refine(e=>e.name!==void 0||e.slug!==void 0,`Provide at least one of name or slug to update.`)}),yN=class extends B{effectId=gN;schema=vN;payload;billableOperations=_N;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},bN=vN,xN={effectId:gN,baseEffect:z(gN),label:`Update sheet`,description:`Update sheet basics (rename: name, slug).`,categories:[`internal`],tags:[`rename`,`name`,`title`,`slug`],lifecycle:null,billableOperations:_N,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,guide:`Rename the ACTIVE sheet. To give a deliverable the name the user asked for, set config.name ONLY β€” display names need not be unique, so "CEOs" always works. Do NOT also rewrite config.slug: slugs are org-unique and a clean generic slug (e.g. "ceos") is likely taken somewhere you can't see, which fails the whole run; the slug is just an address, so keep the existing (suffixed) one unless the user explicitly asks for a specific slug.`,defaultPayload:{effect_id:gN,connector:null,config:{}}},SN=`timetravel:create@1`,CN={},wN=r.object({effect_id:r.literal(SN),connector:T(),config:r.object({})}),TN=class extends B{effectId=SN;schema=wN;payload;billableOperations=CN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},EN=wN,DN={effectId:SN,baseEffect:z(SN),label:`Create restore point`,description:`Snapshot the current sheet state as a timetravel restore point.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:CN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,shouldUpgradeSchema:!0,catalogVisibility:`hidden`,defaultPayload:{effect_id:SN,connector:null,config:{}}},ON=`timetravel:travel@1`,kN={},AN=r.object({effect_id:r.literal(ON),connector:T(),config:r.object({schema_id:r.string().min(1)})}),jN=class extends B{effectId=ON;schema=AN;payload;billableOperations=kN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){return!0}},MN=AN,NN={effectId:ON,baseEffect:z(ON),label:`Restore to point`,description:`Restore the sheet to a previous point by copying that point's rows into a new schema.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:kN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:ON,connector:null,config:{schema_id:``}}},PN=r.object({reason:r.object({code:r.string(),details:r.string().optional()}),related_record_id:r.string().nullable(),resolved_by:r.object({ref:$e,config_hash:r.string()})}),FN=r.object({value:r.union([r.string(),r.number(),r.boolean(),r.null()])}),IN=PN.extend({fields:r.record(r.string(),FN)}),LN=r.object({added:PN.optional(),updated:IN.optional(),removed:PN.optional()}),RN=r.record(r.string(),LN),zN=r.object({shown:r.number().int(),total:r.number().int(),added:r.number().int(),updated:r.number().int(),removed:r.number().int()}),BN=r.object({effect_id:$e,config_hash:r.string(),status:r.enum([`completed`,`failed`,`skipped`]),error:r.string().optional(),source:r.literal(`run_added_rows`).optional()}),VN={"rows:dedupe@1":_M,"rows:duplicate@1":CM,"rows:enrich@1":kM,"rows:adopt@1":aM,"rows:add@1":Jj,"rows:import@1":HM,"row:update@1":Hj,"rows:remove@1":JM,"rows:copy_to_sheet@1":dM,"rows:filter:prompt@1":IM,"pipe:add@1":wj,"pipe:update@1":Ij,"pipe:remove@1":Aj,"fields:remove@1":vj,"fields:patch@1":fj,"fields:add@1":rc,"fields:deletesparse:input@1":ej,"env:change@1":Zs,"timetravel:create@1":TN,"timetravel:travel@1":jN,"sheet:export@1":sN,"search:run@1":tN,"sheet:reset@1":pN,"sheet:update@1":yN},HN={"rows:dedupe@1":vM,"rows:duplicate@1":wM,"rows:enrich@1":AM,"rows:adopt@1":oM,"rows:add@1":Yj,"rows:import@1":UM,"row:update@1":Uj,"rows:remove@1":YM,"rows:copy_to_sheet@1":fM,"rows:filter:prompt@1":LM,"pipe:add@1":Tj,"pipe:update@1":Lj,"pipe:remove@1":jj,"fields:remove@1":yj,"fields:patch@1":pj,"fields:add@1":ic,"fields:deletesparse:input@1":tj,"env:change@1":Qs,"timetravel:create@1":EN,"timetravel:travel@1":MN,"sheet:export@1":cN,"search:run@1":nN,"sheet:reset@1":mN,"sheet:update@1":bN},UN={"rows:dedupe@1":yM,"rows:duplicate@1":TM,"rows:enrich@1":jM,"rows:adopt@1":sM,"rows:add@1":Xj,"rows:import@1":WM,"row:update@1":Wj,"rows:remove@1":XM,"rows:copy_to_sheet@1":pM,"rows:filter:prompt@1":RM,"pipe:add@1":Ej,"pipe:update@1":Rj,"pipe:remove@1":Mj,"fields:remove@1":bj,"fields:patch@1":mj,"fields:add@1":ac,"fields:deletesparse:input@1":nj,"env:change@1":$s,"timetravel:create@1":DN,"timetravel:travel@1":NN,"sheet:export@1":lN,"search:run@1":rN,"sheet:reset@1":hN,"sheet:update@1":xN};function WN(e){return VN[e]}function GN(e){return UN[e]}function KN(e){return HN[e]}function qN(){return Object.keys(UN).filter(e=>UN[e].agentExposure!==`excluded`)}function JN(e){return UN[e]?.agentExposure!==`excluded`}const YN=t.discriminatedUnion(`effect_id`,Object.values(HN).map(e=>e)).openapi(`EffectPayloadSchema`);function XN(e,t){return Ze(t,UN[e].defaultPayload)}const ZN=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`effect_id`in e))return e;let t=XN(e.effect_id);return t?{...e,config:Ze(e?.config||{},t.config)}:e},YN),QN=t.enum([`processing`,`completed`,`failed`,`canceled`,`skipped`]).openapi(`EffectsRunStatus`),$N=t.object({config:t.object({diff:t.object({limit:t.number().int().min(0).max(1e3).default(100).openapi({description:"How many per-record diff entries to keep on the result. `counts` stays exact regardless."})}).optional(),run_added_rows:t.boolean().optional().openapi({description:`When true, after this run's effects complete, run the sheet's pipes over exactly the rows the run appended (the contiguous tail). Off by default. Durable on schedules: a scheduled chain that adds rows then enriches them on every fire.`})}).optional(),effects:t.array(ZN).min(1)}).openapi(`EffectsRequest`),eP=t.object({id:t.string(),status:QN,effects:t.array(BN),counts:zN.nullable(),diff:RN.nullable(),after_schema_id:t.string().nullable(),before_schema_id:t.string().nullable(),added:t.object({cursor:t.string().nullable(),count:t.number().int()}).nullable().openapi({description:'Present when the run appended rows. `cursor` is the exclusive window cursor isolating exactly the added tail β€” pass it to a `rows:enrich@1` `{type:"window", cursor, count:null}` selection to run the sheet\'s pipes over the added rows. `count` is how many added rows survive.'})}).openapi(`EffectsResponse`),tP=t.object({effects:t.array(t.unknown()).min(1)}).openapi(`EffectsValidateRequest`),nP=t.object({index:t.number().int(),effect_id:$e,valid:t.boolean(),errors:t.array(t.string())}).openapi(`EffectsValidateStep`),rP=t.object({valid:t.boolean(),errors:t.array(t.string()),steps:t.array(nP).optional()}).openapi(`EffectsValidateResponse`);function iP(e){let t=e.split(`@`)[1];if(!t)throw Error(`No effect version found`);return Number(t)}function aP(){let e={};for(let t of Object.values(UN)){let{baseEffect:n}=t;e[n]??=[],e[n].push(t)}return Object.entries(e).forEach(([t,n])=>{e[t]=n.sort((e,t)=>{let n=iP(e.effectId);return iP(t.effectId)-n})}),e}const oP=aP();function sP(){let e=[];for(let[t,n]of Object.entries(oP)){let r=n[0];if(!r)throw Error(`Found empty entry`);r.lifecycle?.deprecatedOn||r.catalogVisibility!==`hidden`&&e.push({...r,baseEffect:t,latestVersion:iP(r.effectId)})}return e}const cP={"rows:dedupe@1":[{effect_id:`rows:dedupe@1`,connector:null,config:{fields:[{field_name:`work_email`}],match:`all`,strategy:`keep_oldest`}}],"rows:duplicate@1":[{effect_id:`rows:duplicate@1`,connector:null,config:{}}],"sheet:reset@1":[{effect_id:`sheet:reset@1`,connector:null,config:{}}],"fields:deletesparse:input@1":[{effect_id:`fields:deletesparse:input@1`,connector:null,config:{fields:[{field_name:`company_raw_address`},{field_name:`company_founded_year`}],probe_size:1e3,threshold_in_percent:25}}]};var lP=class extends Error{errors;constructor(e){super(e.join(`
77
+ `)),this.name=`SheetEffectValidationError`,this.errors=e}};function uP({effects:e,validationContext:t,schemaInputs:n}){let r=[],i=[],a=[],o=[];e.some(e=>e.effect_id===`pipe:remove@1`)&&e.length>1&&r.push(`pipe:remove@1 must be the only effect in a run.`);let s={...n,validationContext:t},c=t,l=new Set(Object.keys(t.fieldDefinitions)),u=null;return e.forEach((e,t)=>{let n=[],d=WN(e.effect_id);if(!d){n.push(`unknown effect "${e.effect_id}"`),dP(i,r,t,e.effect_id,n);return}let f;try{f=new d(e)}catch(a){n.push(a.message),dP(i,r,t,e.effect_id,n);return}let ee=f.getFieldReferences().filter(e=>!l.has(e));if(ee.length>0){let e=`references fields that do not exist at this step: ${ee.join(`, `)}`;u&&(e+=`. These may be produced only at run time by "${u}" earlier in this chain β€” commit that effect first, then add the effects that use its columns in a follow-up run.`),n.push(e)}try{let{next:e}=f.evolveSchema(s);s=e,c=e.validationContext,l=new Set(Object.keys(e.validationContext.fieldDefinitions))}catch(e){if(e instanceof Q)for(let t of e.appErrors)n.push(t.message);else n.push(e.message)}u===null&&f.producesDynamicFields()&&(u=e.effect_id),a.push(f),o.push(e),dP(i,r,t,e.effect_id,n)}),{valid:r.length===0,steps:i,errors:r,instances:a,payloads:o,resultingFieldDefinitions:c.fieldDefinitions}}function dP(e,t,n,r,i){e.push({index:n,effect_id:r,valid:i.length===0,errors:i});for(let e of i)t.push(`effects[${n}] (${r}): ${e}`)}function fP({effects:e,validationContext:t,schemaInputs:n}){let r=uP({effects:e,validationContext:t,schemaInputs:n});if(!r.valid)throw new lP(r.errors);return{instances:r.instances,payloads:r.payloads}}function pP(e){let t=(e??[]).map(e=>mP(e));if(t.length===0)return{title:`Effect run`,description:`An effect run with no steps.`};let[n]=t;return t.length===1&&n?{title:n.title,description:n.description}:{title:`${t.length} steps: ${t.map(e=>e.title).join(` Β· `)}`,description:t.map(e=>e.description).join(` Β· `)}}function mP(e){let t=e.effect_id,n=z(t),r=e.config??{};switch(n){case`pipe:add`:{let e=hP(r.pipe_payload);return{title:e?`Added pipe ${e}`:`Added pipe`,description:e?`Added the pipe ${e} to the sheet.`:`Added a pipe to the sheet.`}}case`pipe:update`:{let e=hP(r.pipe_payload);return{title:e?`Updated pipe ${e}`:`Updated pipe`,description:e?`Updated the configuration of pipe ${e}.`:`Updated a pipe.`}}case`pipe:remove`:return{title:`Removed pipe`,description:`Removed a pipe from the sheet.`};case`fields:add`:return{title:`Added field`,description:`Added a field to the sheet.`};case`fields:patch`:return{title:`Edited field`,description:`Edited a field on the sheet.`};case`fields:remove`:return{title:`Removed fields`,description:`Removed fields from the sheet.`};case`rows:add`:{let e=Array.isArray(r.records)?r.records.length:void 0;return{title:e==null?`Added rows`:`Added ${e} ${vP(e,`row`)}`,description:e==null?`Added rows to the sheet.`:`Added ${e} ${vP(e,`row`)} to the sheet.`}}case`rows:remove`:return{title:`Removed rows`,description:`Removed rows from the sheet.`};case`rows:dedupe`:return{title:`Removed duplicate rows`,description:`Removed duplicate rows from the sheet.`};case`rows:duplicate`:return{title:`Duplicated rows`,description:`Duplicated rows in the sheet.`};case`rows:enrich`:return{title:`Enriched rows`,description:`Ran enrichment pipes over rows.`};case`rows:filter:prompt`:return{title:`AI-filtered rows`,description:`Filtered rows with an AI prompt.`};case`rows:import`:return{title:`Imported rows`,description:`Imported rows into the sheet.`};case`row:update`:return{title:`Updated row`,description:`Updated a single row.`};case`search:run`:{let e=gP(r.search_payload);return{title:e?`Ran search ${e}`:`Ran search`,description:e?`Ran the search ${e} and appended its results.`:`Ran a search and appended its results.`}}case`sheet:export`:return{title:`Exported sheet`,description:`Exported the sheet.`};case`sheet:reset`:return{title:`Reset sheet`,description:`Reset the sheet to its empty state.`};case`env:change`:return{title:`Changed environment`,description:`Switched the sheet environment.`};case`timetravel:create`:return{title:`Created restore point`,description:`Snapshotted the sheet state.`};case`timetravel:travel`:return{title:`Restored to a previous point`,description:`Restored the sheet to a previous point in time.`};default:{let e=_P(t);return{title:e??t,description:e??t}}}}function hP(e){if(e&&typeof e==`object`){let t=e.pipe_id;if(typeof t==`string`&&t.length>0)return t}}function gP(e){if(e&&typeof e==`object`){let t=e.search_id;if(typeof t==`string`&&t.length>0)return t}}function _P(e){try{return GN(e)?.label}catch{return}}function vP(e,t){return e===1?t:`${t}s`}function yP(e){if(e instanceof B)return e;let t=e.effect_id,n=WN(t);if(!n)throw Error(`Unknown effect: ${e.effect_id}`);return new n(ZN.parse(e))}function bP(e){let t=e.normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/[^A-Za-z0-9]+/g,`_`).replace(/^_+|_+$/g,``);return t===``?`column`:/^[0-9]/.test(t)?`_${t}`:t}function xP(e){let t=new Set;return e.map(e=>{let n=e,r=2;for(;t.has(n);)n=`${e}_${r}`,r++;return t.add(n),n})}function SP(e){let t=xP(e.map(bP));return e.map((e,n)=>({name:t[n],label:e}))}const CP={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function wP(e){return CP[e]}const TP=`bachelor.master.mba.phd.ph d.doctor.associate.diploma.b sc.bsc.m sc.msc.b a.m a.b tech.btech.m tech.mtech.b eng.m eng.b com.llb.llm.md.jd.undergraduate.postgraduate.graduate.degree`.split(`.`),EP=[`university`,`college`,`institute of technology`,`polytechnic`,`school of`],DP=e=>` ${e.toLowerCase().replace(/[^a-z ]+/g,` `).replace(/\s+/g,` `).trim()} `,OP=(e,t)=>{if(!e)return!1;let n=DP(e);return t.some(e=>n.includes(` ${e} `))};function kP(e){return OP(e.degree_name,TP)?!0:e.degree_name?!1:OP(e.institution_name,EP)}function AP(e){if(!e.start_date)return 1/0;let t=ee(e.start_date);return Number.isNaN(t.getTime())?1/0:t.getTime()}function jP(e){let t=e.education_history.filter(e=>e.is_current_education===!0&&kP(e)),n=null;for(let e of t)(n===null||AP(e)<AP(n))&&(n=e);return{...e,education_history:e.education_history.map(e=>({...e,is_primary_current_education:e===n}))}}function MP(e,t,n=new Date){if(!e)return{days:null,years:null};let r=ee(e);if(Number.isNaN(r.getTime()))return{days:null,years:null};let i=n;if(t){let e=ee(t);Number.isNaN(e.getTime())||(i=e)}let a=u(i,r);return a<0?{days:null,years:null}:{days:a,years:Math.round(a/365.25*100)/100}}const NP={shared:{}},PP={shared:{}},FP={shared:{paths:{"config.cursor":null,"config.offset":null,"config.page_number":null}}};function IP(e,t){let n=e[t];return{sectionMap:{...e.shared.sections,...n?.sections},groupMap:{...e.shared.groups,...n?.groups},pathMap:{...e.shared.paths,...n?.paths}}}const LP=e=>IP(PP,e),RP=e=>IP(FP,e),zP=e=>IP(NP,e),BP={"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},"config.destination":{order:9,label:`Destination`,description:`Name, type, and format of the field written to the destination sheet.`,iconKey:`output`,defaultExpand:!1}},VP={general:{path:`general`,label:`Behavior`,description:`How this pipe runs and selects providers.`,order:1},pagination:{path:`pagination`,label:`Behavior`,order:2},"config.filters":{path:`config.filters`,label:`I/O & conditions`,order:14},pipe_io:{path:``,label:`I/O & conditions`,order:99}};function HP(e){let t=cA(e),n=[];function i(e){let t=_.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 UP({pipePayload:e,validationContext:t,store:n,formResolvers:r,customization:i}){let a=cA(e.pipe_id),o=_c(e.pipe_id,e.config||{});return Bo({schema:a,extractFromSchema:r=>{let i=_.get(r);if(n.field_options??={},i)return i&&typeof i==`function`?i({validationContext:t,pipePayload:e,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}}):[],pipeEntry:dA(e.pipe_id),hash:o}):i},store:n,formResolvers:r,sectionMap:Ro(VP,i?.sectionMap),groupMap:Ro(BP,i?.groupMap),pathMap:i?.pathMap})}const WP={"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,order:4},"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.author":{label:`Author`,iconKey:`user`,defaultExpand:!1,order:2},"config.filters.mentions":{label:`Mentions`,iconKey:`tags`,defaultExpand:!1,order:3},"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,order:3},"config.filters.current_employer":{label:`Current employment`,iconKey:`briefcase`,defaultExpand:!1,order:2},"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}},GP={general:{path:`general`,label:`General`,description:`Search settings and pagination.`,order:1},pagination:{path:`pagination`,label:`General`,order:2},"config.filters":{path:`config.filters`,label:`Filters`,description:`Narrow the search results.`,order:10},pipe_io:{path:``,label:`Output fields`,order:99}};function KP({searchPayload:e,formContext:t,formResolvers:n,customization:r}){return Bo({schema:Gk(e.search_id),extractFromSchema:n=>{let r=v.get(n);if(t.field_options??={},r)return typeof r==`function`?r({searchPayload:e,searchEntry:Xk(e.search_id),userConnections:`connections`in t.field_options?(t.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},store:t,formResolvers:n,sectionMap:Ro(GP,r?.sectionMap),groupMap:Ro(WP,r?.groupMap),pathMap:r?.pathMap})}function qP(e){let t=Gk(e),n=[];function i(e){let t=v.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 JP={"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:1,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},connector:{order:100,label:`Connections`,iconKey:`plug`,defaultExpand:!1}},YP={general:{path:`general`,label:`General`,description:`How this effect runs.`,order:1},pagination:{path:`pagination`,label:`General`,order:99},"config.filters":{path:`config.filters`,label:`Filters`,order:99},pipe_io:{path:``,label:`Connections`,order:99}};function XP({effectPayload:e,validationContext:t,store:n,formResolvers:r,customization:i}){let a=KN(e.effect_id),o=qs(e.effect_id,e.config||{});return Bo({schema:a,extractFromSchema:r=>{let i=y.get(r);if(n.field_options??={},i)return typeof i==`function`?i({validationContext:t,effectPayload:e,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}}):[],effectEntry:GN(e.effect_id),hash:o}):i},store:n,formResolvers:r,sectionMap:Ro(YP,i?.sectionMap),groupMap:Ro(JP,i?.groupMap),pathMap:i?.pathMap})}function ZP(e){let t=KN(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 QP=new Proxy({},{get:(e,t)=>e=>e.type===t}),$P=`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(`.`),eF=r.enum($P),tF=r.object({provider_logo:r.object({provider:Ir}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:eF}).optional(),logo_url:r.object({url:r.string(),alt:r.string().optional()}).optional(),pricing:r.object({credits:r.number()}).optional(),token_pricing:r.object({inputPerBlock:r.number(),outputPerBlock:r.number(),blockSize:r.number()}).optional(),field_type:r.object({type:r.string(),format:r.string().optional()}).optional()}),nF=`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(nF);const rF=r.object({value:r.string(),label:r.string(),widgets:tF.optional()}),iF=r.object({field_options:r.record(r.string(),r.object({options:r.array(rF)}))}),aF=[{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}],oF=new Map(aF.map(e=>[e.id,e]));function sF(e){return oF.get(e)}function cF(){return aF}const lF={"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`}]}],"agent:run@1":[{config:{environment:`production`},pipes:[{pipe_id:`agent:run@1`,config:{agent_type:`web_researcher`,model:`openai-high`,prompt:{template:`
78
+ Determine if the company {{ company_name }} (domain: {{ company_domain | default: "" }}) has ever raised outside funding.
79
+
80
+ Research the web for funding announcements, press releases, and investor databases before answering.
81
+
82
+ {% output has_raised_funding, type: "boolean", description: "True if the company has ever raised outside capital" %}
83
+
84
+ {% output funding_summary, type: "string", description: "A short summary of the funding history, including round names and source URLs" %}
85
+ `,json_schemas:{}}}}],input:[{id:`1`,company_name:`Anthropic`,company_domain:`anthropic.com`},{id:`2`,company_name:`Basecamp`}]}],"prompt:run@1":[{config:{environment:`production`},pipes:[{pipe_id:`prompt:run@1`,config:{model:`openai-high`,prompt:{template:`
78
86
  Tell me if {{ name }} fits the ICP criteria for my company <YOUR_COMPANY_NAME>.
79
87
 
80
88
  My company, <YOUR_COMPANY_NAME>, can be described as follows: <ADD_COMPANY_DESCRIPTION>.
@@ -92,7 +100,7 @@ How do you...`]}},crustdata_post_list:{label:`Crustdata Post list`,type:`json`,f
92
100
  {% output reason, type: "string", description: "A text explanation of your decision process" %}
93
101
 
94
102
  {% output json_summary, type: "json", schema: "summary", description: "A JSON object that combines both fields" %}
95
- `,json_schemas:{summary:{type:`object`,properties:{is_icp_fit:{type:`boolean`,description:`A boolean flag indicating if the user is a good ICP fit for us`},reason:{type:`string`,description:`A text explanation of the decision process`}},required:[`is_icp_fit`,`reason`]}}}}}],input:[{id:`1`,name:`John Doe`,job_title:`Founder`},{id:`2`,name:`Jane Doe`,job_title:`CTO`,profile_headline:`CTO for a big tech company.`}]}],"people:email:iswork@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:email:iswork@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"email:iswork@1":[{config:{environment:`production`},pipes:[{pipe_id:`email:iswork@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"people:name:split@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:name:split@1`}],input:[{id:`1`,name:`John Doe`}]}],"person:name:split@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:name:split@1`}],input:[{id:`1`,name:`John Doe`}]}],"person:name:join@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:name:join@1`}],input:[{id:`1`,first_name:`John`,last_name:`Doe`}]}],"people:personalemail:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:personalemail:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/in/jane-doe-uth6-dk`}]}],"person:personalemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:personalemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/in/jane-doe-uth6-dk`}]}],"people:email:validate:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:email:validate:zerobounce@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"people:email:validate:zerobounce@2":[{config:{environment:`production`},pipes:[{pipe_id:`people:email:validate:zerobounce@2`}],input:[{id:`1`,email:`jane@pipe0.com`}]}],"email:validate:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`email:validate:zerobounce@1`}],input:[{id:`1`,email:`jane@pipe0.com`}]}],"people:phone:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:phone:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"person:mobile:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:mobile:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"person:devprofileurl:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:devprofileurl:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"people:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"person:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"company:newssummary:website@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:newssummary:website@1`,config:{}}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:newssummary:domain@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:newssummary:domain@1`,config:{}}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"company:websiteurl:email@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:websiteurl:email@1`}],input:[{id:`1`,email:`https://pipe0.com`}]}],"company:domain:workemail@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:domain:workemail@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"json:extract:multi@1":[{config:{environment:`production`},pipes:[{pipe_id:`json:extract:multi@1`,config:{json_extraction:{field_name:`example_json`,extractions:[{path:`name`,output_field:{format:null,name:`extracted_name`,label:`Simple Example Using Jsonata Path`,type:`string`}},{path:`{ "fullName": name, "count": $count(nested) }`,output_field:{format:null,name:`reshaped_object`,label:`Complex Transformation Using Jasonata`,type:`json`}}]}}}],input:[{id:`1`,example_json:{name:`John Doe`,nested:[1,2,3]}}]}],"message:write@1":[{config:{environment:`production`},pipes:[{pipe_id:`message:write@1`,config:{model:`openai-gpt-latest`,template:`
103
+ `,json_schemas:{summary:{type:`object`,properties:{is_icp_fit:{type:`boolean`,description:`A boolean flag indicating if the user is a good ICP fit for us`},reason:{type:`string`,description:`A text explanation of the decision process`}},required:[`is_icp_fit`,`reason`]}}}}}],input:[{id:`1`,name:`John Doe`,job_title:`Founder`},{id:`2`,name:`Jane Doe`,job_title:`CTO`,profile_headline:`CTO for a big tech company.`}]}],"people:email:iswork@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:email:iswork@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"email:iswork@1":[{config:{environment:`production`},pipes:[{pipe_id:`email:iswork@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"people:name:split@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:name:split@1`}],input:[{id:`1`,name:`John Doe`}]}],"person:name:split@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:name:split@1`}],input:[{id:`1`,name:`John Doe`}]}],"person:name:join@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:name:join@1`}],input:[{id:`1`,first_name:`John`,last_name:`Doe`}]}],"people:personalemail:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:personalemail:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/in/jane-doe-uth6-dk`}]}],"person:personalemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:personalemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/in/jane-doe-uth6-dk`}]}],"people:email:validate:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:email:validate:zerobounce@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"people:email:validate:zerobounce@2":[{config:{environment:`production`},pipes:[{pipe_id:`people:email:validate:zerobounce@2`}],input:[{id:`1`,email:`jane@pipe0.com`}]}],"email:validate:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`email:validate:zerobounce@1`}],input:[{id:`1`,email:`jane@pipe0.com`}]}],"people:phone:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:phone:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"person:mobile:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:mobile:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"person:devprofileurl:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:devprofileurl:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"people:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"person:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"company:newssummary:website@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:newssummary:website@1`,config:{}}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:newssummary:domain@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:newssummary:domain@1`,config:{}}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"company:websiteurl:email@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:websiteurl:email@1`}],input:[{id:`1`,email:`https://pipe0.com`}]}],"company:domain:workemail@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:domain:workemail@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"json:extract:multi@1":[{config:{environment:`production`},pipes:[{pipe_id:`json:extract:multi@1`,config:{json_extraction:{field_name:`example_json`,extractions:[{path:`name`,output_field:{format:null,name:`extracted_name`,label:`Simple Example Using Jsonata Path`,type:`string`}},{path:`{ "fullName": name, "count": $count(nested) }`,output_field:{format:null,name:`reshaped_object`,label:`Complex Transformation Using Jasonata`,type:`json`}}]}}}],input:[{id:`1`,example_json:{name:`John Doe`,nested:[1,2,3]}}]}],"message:write@1":[{config:{environment:`production`},pipes:[{pipe_id:`message:write@1`,config:{model:`openai-high`,template:`
96
104
  Write an internal slack message that notifies the team about a high value signup
97
105
  that customer success should reach out to personally.
98
106
 
@@ -103,7 +111,7 @@ Include the name of the new signup in your message:
103
111
  As well as the company name they work for:
104
112
 
105
113
  {{ company_name }}
106
- `}}],input:[{id:`1`,name:`https://pipe0.com`,company_name:`Pipe0`}]}],"email:write@1":[{config:{environment:`production`},pipes:[{pipe_id:`email:write@1`,config:{model:`openai-gpt-latest`,persona:`customer_success`,signature:`
114
+ `}}],input:[{id:`1`,name:`https://pipe0.com`,company_name:`Pipe0`}]}],"email:write@1":[{config:{environment:`production`},pipes:[{pipe_id:`email:write@1`,config:{model:`openai-high`,persona:`customer_success`,signature:`
107
115
  John Doe
108
116
  Head of Customer Success
109
117
  [LinkedIn](https://https://linkedin.com/li/john-doe)
@@ -119,4 +127,4 @@ Customize the message using the name of the user: {{ name }}.
119
127
  `}}],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:
120
128
  **Name**: {{ name }}
121
129
  **Email**: {{ email }}
122
- `}}],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`}]}],"lead:enroll:lemlist@1":[{config:{environment:`production`},pipes:[{pipe_id:`lead:enroll:lemlist@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`lemlist_123`}]},config:{campaign_id:`cam_bSn8EORHQxbWPjHvu`,custom_variables:{painPoint:`{{ pain_point }}`}}}],input:[{id:`1`,email:`prospect@example.com`,first_name:`Jane`,last_name:`Doe`,company_name:`Acme Corp`,job_title:`VP Sales`,pain_point:`slow onboarding`}]}],"row:append:sheet@1":[{config:{environment:`production`},pipes:[{pipe_id:`row:append:sheet@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{project:`project_id`,sheet:`sheet_id`,run:!0,allow_entity_creation:!0,included_fields:[{field_name:`field_name`}]}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"rows:find:sheet@1":[{config:{environment:`production`},pipes:[{pipe_id:`rows:find:sheet@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`crm-leads`,where:{logic:`and`,conditions:[{property:`value`,field_name:`email`,operator:`eq`,value:`{{ email }}`}]},limit:10,output_fields:{sheet_rows_found_count:{alias:``,enabled:!0},sheet_found_rows:{alias:``,enabled:!0},sheet_found_row_ids:{alias:``,enabled:!1}}}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"rows:find:postgres@1":[{config:{environment:`production`},pipes:[{pipe_id:`rows:find:postgres@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`postgres_123`}]},config:{query:`SELECT id, email, plan, created_at FROM users WHERE email = '{{ email }}'`,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!0},db_found_rows:{alias:``,enabled:!0}}}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"rows:find:databricks@1":[{config:{environment:`production`},pipes:[{pipe_id:`rows:find:databricks@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`databricks_123`}]},config:{query:`SELECT id, email, plan, created_at FROM main.crm.users WHERE email = '{{ email }}'`,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!0},db_found_rows:{alias:``,enabled:!0}}}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"row:expandappend:sheet@1":[{config:{environment:`production`},pipes:[{pipe_id:`row:expandappend:sheet@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{project:`project_id`,sheet:`sheet_id`,run:!0,allow_entity_creation:!0,destination_field_name:`expanded_value`,destination_field_type:``,destination_field_format:``,destination_field_label:``}}],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:content:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:posts:content: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:{limit:`10`},body:``,headers:{Authorization:`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`}]}]},nF=.1,rF=[`level1`,`level2`,`level3`];function iF(e,t){let n=rF[t-1];if(n)return e[n]}function aF(e,t){for(let n=t;n>=1;n--){let t=iF(e,n);if(t)return{level:n,tier:t}}}function oF(e){let t=[];for(let n=1;n<=3;n++){let r=iF(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function sF(e){if(e.default<.1)return!1;let t=oF(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 cF(){let e=new Map;for(let t of Object.values(Xk))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!sF(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:oF(i.credits),usedBy:[o]})}for(let t of Object.values(Ok)){let{cost:n}=t;if(!n.allowManagedConnection||!sF(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:oF(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function lF(e,t){switch(e.kind){case`field`:case`optional`:{let n=t[e.field.name];return n?{...e,field:{...e.field,resolvedName:n}}:e}case`all`:case`any`:return{...e,of:e.of.map(e=>lF(e,t))}}}function uF(e){switch(e.kind){case`field`:return e.field.resolvedName;case`optional`:return`${e.field.resolvedName} (optional)`;case`all`:return e.of.map(uF).join(` AND `);case`any`:return`(${e.of.map(uF).join(` OR `)})`}}function dF(e,t){let n=2,r=`${e}_${n}`;for(;t.has(r);)n++,r=`${e}_${n}`;return r}function fF({pipeId:e,availableFields:t,inputFieldAliases:n}){let r=Xk[e];if(!r)throw Error(`Unknown pipe_id: "${e}"`);let i=new Set(t),a=r.defaultInputRequirement,o=a&&n&&Object.keys(n).length>0?lF(a,n):a,s=o?fc(o,i):!0,c=o?pc(o).filter(e=>e.required).map(e=>({name:e.field.name,resolved_name:e.field.resolvedName,present:i.has(e.field.resolvedName)})):[],l=s?[]:c.filter(e=>!e.present).map(e=>e.resolved_name),u=new Set(i),d=[],f=[];for(let e of Zk(r)){let t=i.has(e),n;t?(n=dF(e,u),u.add(n),f.push({name:e,resolved_name:e,suggested_alias:n})):u.add(e),d.push({name:e,resolved_name:e,collides:t,suggested_alias:n})}return{pipe_id:e,runnable:s,requirement_description:o?uF(o):`(no inputs required)`,required_fields:c,missing_fields:l,output_fields:d,output_collisions:f}}const pF=[`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`],mF=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],hF=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})}),gF=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 _F(e){return!isNaN(e.getTime())}const vF=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of pF){let n=f(t,e,new Date(0));if(_F(n))return d(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),yF=r.coerce.string().trim().transform(e=>{for(let t of mF){let n=f(e,t,new Date(0));if(_F(n))return d(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),bF=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`}),xF=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()),SF=r.preprocess(e=>{if(typeof e!=`object`||!e)return e;try{return JSON.stringify(e)}catch{return e}},r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`}));function CF(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return hF.parse(e);case`email`:return gF.parse(e);case`datetime`:return vF.parse(e);case`date`:return yF.parse(e);case`decimal`:return bF.parse(e);case`int`:return xF.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return SF.parse(e);case`website_url`:return hF.parse(e);case`profile_url`:return hF.parse(e);case`zip_code`:return SF.parse(e);case`markdown`:case`phone`:case`text`:return SF.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 ${Lp(e)} into format ${t}: ${r.message}`):r}}function wF(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(EA(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:CF(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 TF(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];if(!i)throw Error(`Input object undefined`);let a=i.id;a!=null&&EA(a)&&(i.id=a.value),i.id||=crypto.randomUUID();let{id:o}=i;if(typeof o!=`string`&&typeof o!=`number`){n.errors.push(Q.InvalidId());continue}if(n.records[o]){n.errors.push(Q.IDConflict({index:r,id:o}));continue}n.order.push(o),n.records[o]={id:o,fields:wF(e,n,i)}}}function EF({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{TF(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=DF(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,OF(e,r,n?.queue?.enabled),PF(e,r),r.errors.length>0)throw new $(r.errors);return r}catch(e){throw e instanceof $?e:new $([Q.ResponseGenerationFailed({error:e})])}}function DF(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(Q.UnknownResolver({pipeId:s.pipe_id,index:o}));continue}let{queuedRecordIds:l,adoptedRecordIds:u}=NF(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function OF(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 ${Fv(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 ${Fv(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(Q.UnknownResolver({pipeId:i.pipe_id,index:n}));continue}Object.values(t.records).forEach(e=>{let{valid:t,failedPipeInputField:n,failedRecordField:i}=mc(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function kF({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 AF({status:e,config:t}){return t.queue?.enabled?t.queue.triggers?.status?.includes(e)??!1:!1}function jF({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return kF({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||AF({status:n.status,config:r})}function MF({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 NF(e,t,n,r,i){let a=Object.entries(r.records),o=[],s=[];for(let c=0;c<a.length;c++){let l=a[c];if(!l)throw Error(`Required arr not present`);let[u,d]=l;for(let a of Object.values(n.getOutputFields())){let{resolvedName:l,type:u}=a,f=A_({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},u),ee=j_({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:te,isExpanded:ne,expandedValue:p}=DA(t[c]?.[l]??null),re=d.fields[l],ie=n.getConfigHashKey(),ae=n.getInputHashKey(d),oe={type:f,format:ee,claimed_by:{ref:n.pipeId,config_hash:ie}};if(r.errors.length>0&&te===null){let t=r.errors[0];if(!t)throw Error(`firstError undefined.`);d.fields[l]={...oe,value:null,status:`failed`,reason:{summary:`Validation error`,...t},resolved_by:{ref:`system`,environment:e.environment,config_hash:null,input_hash:null},widgets:{}};continue}let se=TA(te);if(se!==`unknown`&&se!==f){let t=i.queue?.triggers?.outputFieldTypeError&&i.queue.enabled;d.fields[l]={...oe,value:t?null:te,status:t?`queued`:`completed`,reason:null,resolved_by:t?{environment:e.environment,ref:`system`,config_hash:ie,input_hash:ae}:{environment:e.environment,ref:`input`,config_hash:null,input_hash:null},widgets:t?{}:p?.widgets||re?.widgets||{},format:t?ee:p?.format||ee};continue}if(te==null){let t=ne&&i.queue?.enabled&&p.status===`pending`,n=ne&&!t;if(ne&&i.adopt?.enabled===!0&&(!i.adopt.statuses||i.adopt.statuses.includes(p.status))){let{didAdopt:e}=MF({inputHashKey:ae,configHashKey:ie,expandedValue:p});e&&s.push(d.id)}if(ne&&p.status!==`pending`&&jF({inputHashKey:ae,configHashKey:ie,config:i,expandedValue:p})&&i.queue?.enabled)o.push(d.id),d.fields[l]={...oe,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:ie,input_hash:ae},widgets:{}};else if(n)d.fields[l]={...oe,value:null,status:p.status,type:p.type||f,reason:p.reason||null,resolved_by:p.resolved_by||null,widgets:p.widgets||{},format:p.format||ee};else{let t=i.queue?.triggers?.status?.includes(`pending`)??!0,n=i.queue?.enabled&&t?`queued`:`pending`;n===`queued`&&o.push(d.id),d.fields[l]={...oe,value:null,status:n,reason:null,resolved_by:n===`queued`?{environment:e.environment,ref:`system`,config_hash:ie,input_hash:ae}:null,widgets:{}}}continue}if(ne){if(ne&&i.adopt?.enabled===!0&&(!i.adopt.statuses||i.adopt.statuses.includes(p.status))){let{didAdopt:e}=MF({inputHashKey:ae,configHashKey:ie,expandedValue:p});e&&s.push(d.id)}jF({inputHashKey:ae,configHashKey:ie,expandedValue:p,config:i})&&r.errors.length===0?(o.push(d.id),d.fields[l]={...oe,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:null,input_hash:null},widgets:{}}):d.fields[l]={...oe,value:te,status:`completed`,type:p.type||f,reason:p.reason||null,resolved_by:p.resolved_by||{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:p.widgets||re?.widgets||{},format:p.format||ee}}else try{let e=CF(te,ee);d.fields[l]={...oe,value:e,status:`completed`,reason:null,resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:re?.widgets||{}}}catch{let t=i.queue?.enabled?`queued`:`failed`;t===`queued`&&o.push(d.id),d.fields[l]={...oe,value:te,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:ie,input_hash:ae},widgets:{}}}}}return{queuedRecordIds:o,adoptedRecordIds:s}}function PF(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=kA(i,r.value,r);r.widgets=lt(dt(r.widgets),e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function FF(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,widgets:dt(a.widgets)}:i[t]=a.value;return i}function IF(e,t={}){return Object.values(e).map(e=>FF(e.fields,t))}function LF(e,t={}){return e.map(e=>FF(e.fields,t))}function RF(e,t={}){return FF(e.fields,t)}function zF(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=DA(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function BF(e){let t=Ri[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const VF=[`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`],HF=r.enum(VF);function UF(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 WF(e,t){let n={name:e,config:t};return Gs.hashObject(n)}var GF=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 WF(this.searchId,this.payload)}};function KF(e){return e.split(`@`)[0]}function qF(e){return`/docs/search-catalog/${KF(e)}/${e.split(`@`)[1]}`}const JF=`companies:profiles:crustdata@1`,YF=g(`company_name`),XF=g(`company_website_url`),ZF=g(`company_description`),QF=g(`company_profile_url`),$F=g(`crustdata_company_match`),eI=r.object({search_id:r.literal(JF),connector:Di.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),cursor:Os({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}).nullable(),output_fields:R(r.object({[YF.name]:N({fieldName:YF.name}),[XF.name]:N({fieldName:YF.name}),[ZF.name]:N({fieldName:ZF.name}),[QF.name]:N({fieldName:QF.name}),[$F.name]:N({fieldName:$F.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default([]),crunchbase_categories:F({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`)}).default([]),crunchbase_investors:F({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`)}).default([]),tracxn_investors:F({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`)}).default([]),company_types:P({sectionKey:`config.filters`,path:`config.filters.company_types`,options:m(`crustdata.company_types`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}).default([]),linkedin_industries:F({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}).default([]),markets:F({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),label:`Markets`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}).default([]),linkedin_categories:F({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`}).default([]),headcount:P({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,required:!1,options:m(`crustdata.company_size`),groupPath:`config.filters.company_size`}).default([]),headcount_growth_last_6m_in_percent:P({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),revenue_in_usd:ws({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:P({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,disableSearch:!0,required:!1,options:m(`crustdata.funding_rounds`),description:``,groupPath:`config.filters.financials`}).default([]),last_funding_amount:ws({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:P({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}).default([]),follower_growth_last_6m_in_percent:P({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:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}).default([]),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,description:``,groupPath:`config.filters.keywords`}),competitor_websites:A({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:`Ex. 'google.com'`,groupPath:`config.filters.competitors`})}).check(e=>{UF(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),tI={default:{input:[{fields:[]}]}},nI=class extends GF{searchId=JF;schema=eI;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[YF.name]:this.catalogOutput(YF),[XF.name]:this.catalogOutput(XF),[ZF.name]:this.catalogOutput(ZF),[QF.name]:this.catalogOutput(QF),[$F.name]:this.catalogOutput($F)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return tI}},rI=eI,iI={searchId:JF,billableOperation:`companies-profiles-crustdata`,baseSearch:KF(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],docPath:qF(JF),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:JF,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:[]}}}},aI=`companies:profiles:exa@1`,oI=g(`company_name`),sI=g(`company_website_url`),cI=g(`company_description`),lI=g(`company_industry`),uI=g(`headcount`),dI=g(`exa_match_evaluation`),fI=r.object({search_id:r.literal(aI),connector:Di.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,path:`config.limit`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:R(r.object({[oI.name]:N({fieldName:oI.name}),[sI.name]:N({fieldName:oI.name}),[cI.name]:N({fieldName:cI.name}),[lI.name]:N({fieldName:lI.name}),[uI.name]:N({fieldName:uI.name}),[dI.name]:N({fieldName:dI.name})})),filters:r.object({query:ks({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})})})}),pI={default:{input:[{fields:[]}]}},mI=class extends GF{searchId=aI;schema=fI;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[oI.name]:this.catalogOutput(oI),[sI.name]:this.catalogOutput(sI),[cI.name]:this.catalogOutput(cI),[lI.name]:this.catalogOutput(lI),[uI.name]:this.catalogOutput(uI),[dI.name]:this.catalogOutput(dI)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return pI}},hI=fI,gI={searchId:aI,billableOperation:`companies-profiles-exa`,baseSearch:KF(`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:[W.COMPANY_PROFILES],docPath:qF(aI),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:aI,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:``}}}},_I=`companies:profiles:icypeas@1`,vI=g(`company_industry`),yI=g(`company_name`),bI=g(`company_description`),xI=g(`company_website_url`),SI=g(`headcount`),CI=g(`company_region`),wI=g(`company_profile_url`),TI=g(`icypeas_company_match`),EI=r.object({search_id:r.literal(_I),connector:Di.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,max:5e4,min:1,path:`config.limit`,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:R(r.object({company_name:N({fieldName:yI.name}),company_industry:N({fieldName:vI.name}),company_description:N({fieldName:bI.name}),company_website_url:N({fieldName:xI.name}),headcount:N({fieldName:SI.name}),company_region:N({fieldName:CI.name}),company_profile_url:N({fieldName:wI.name}),icypeas_company_match:N({fieldName:TI.name})})),filters:r.object({name:j({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:M({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:M({path:`config.filters.industry`,sectionKey:`config.filters`,optionsDef:Re(`linkedin.industries`),includeLabel:`Industries to include`,excludeLabel:`Industries to exclude`,description:``,placeholder:``,groupPath:`config.filters.industry`,maxItems:50}).optional(),location:j({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:ws({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:j({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:j({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=>{UF(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),DI={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},OI=class extends GF{searchId=_I;schema=EI;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[yI.name]:this.catalogOutput(yI),[vI.name]:this.catalogOutput(vI),[wI.name]:this.catalogOutput(wI),[xI.name]:this.catalogOutput(xI),[bI.name]:this.catalogOutput(bI),[SI.name]:this.catalogOutput(SI),[CI.name]:this.catalogOutput(CI),[TI.name]:this.catalogOutput(TI)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return DI}},kI=EI,AI={searchId:_I,billableOperation:`companies-profiles-icypeas`,baseSearch:KF(`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:[W.COMPANY_PROFILES],docPath:qF(_I),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:_I,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:[]}}}}},jI=`people:profiles:clado@1`,MI=g(`name`),NI=g(`job_title`),PI=g(`company_name`),FI=g(`company_profile_url`),II=g(`profile_url`),LI=g(`clado_person_match`),RI=r.object({search_id:r.literal(jI),connector:Di.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,path:`config.limit`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(20),output_fields:R(r.object({[MI.name]:N({fieldName:MI.name}),[NI.name]:N({fieldName:NI.name}),[FI.name]:N({fieldName:FI.name}),[PI.name]:N({fieldName:PI.name}),[II.name]:N({fieldName:II.name}),[LI.name]:N({fieldName:LI.name})})),filters:r.object({query:ks({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})})})}),zI={default:{input:[{fields:[{outputField:`profile_url`}]}]}},BI=class extends GF{searchId=jI;schema=RI;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[MI.name]:this.catalogOutput(MI),[NI.name]:this.catalogOutput(NI),[PI.name]:this.catalogOutput(PI),[II.name]:this.catalogOutput(II),[FI.name]:this.catalogOutput(FI),[LI.name]:this.catalogOutput(LI)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return zI}},VI=RI,HI={searchId:jI,billableOperation:`people-profiles-clado`,baseSearch:An(`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:[W.PEOPLE_PROFILES],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_search`,creditsPerSearch:3},provider:`clado`,defaultPayload:{search_id:jI,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:``}}}},UI=`people:profiles:clado@2`,WI=g(`name`),GI=g(`job_title`),KI=g(`company_name`),qI=g(`company_profile_url`),JI=g(`profile_url`),YI=g(`clado_person_match_v2`),XI=r.object({search_id:r.literal(UI),connector:Di.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,path:`config.limit`,max:1e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),search_id:Os({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`}).nullable().default(``),offset:L({sectionKey:`general`,path:`config.offset`,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.`}).nullish(),output_fields:R(r.object({[WI.name]:N({fieldName:WI.name}),[GI.name]:N({fieldName:GI.name}),[qI.name]:N({fieldName:qI.name}),[KI.name]:N({fieldName:KI.name}),[JI.name]:N({fieldName:JI.name}),[YI.name]:N({fieldName:YI.name})})),filters:r.object({query:ks({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`]})}),ZI={default:{input:[{fields:[{outputField:`profile_url`}]}]}},QI=class extends GF{searchId=UI;schema=XI;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[WI.name]:this.catalogOutput(WI),[GI.name]:this.catalogOutput(GI),[KI.name]:this.catalogOutput(KI),[JI.name]:this.catalogOutput(JI),[qI.name]:this.catalogOutput(qI),[YI.name]:this.catalogOutput(YI)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return ZI}},$I=XI,eL={searchId:UI,billableOperation:`people-profiles-clado`,baseSearch:An(`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:UI,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:``}}}},tL=`people:employees:leadmagic@1`,nL=g(`name`),rL=g(`job_title`),iL=g(`company_website_url`),aL=g(`company_name`),oL=r.object({search_id:r.literal(tL),connector:Di.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,max:500,min:1,path:`config.limit`,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(50),output_fields:R(r.object({[nL.name]:N({fieldName:nL.name}),[aL.name]:N({fieldName:aL.name}),[iL.name]:N({fieldName:iL.name}),[rL.name]:N({fieldName:rL.name})})),filters:r.object({company_website_url:Os({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`}).nullable()})})}),sL={default:{input:[{fields:[{outputField:iL.name}]}]}},cL=class extends GF{searchId=tL;schema=oL;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[nL.name]:this.catalogOutput(nL),[rL.name]:this.catalogOutput(rL),[iL.name]:this.catalogOutput(iL),[aL.name]:this.catalogOutput(aL)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return sL}},lL=oL,uL={searchId:tL,billableOperation:`people-employees-leadmagic`,baseSearch:KF(`people:employees:leadmagic@1`),label:`Employee finder`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search for employees of a company.`,tags:[W.PEOPLE_PROFILES],docPath:qF(tL),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:tL,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:``}}}},dL=`people:profiles:crustdata@1`,fL=g(`name`),pL=g(`company_website_url`),mL=g(`profile_url`),hL=g(`job_title`),gL=g(`crustdata_person_match`),_L=r.object({search_id:r.literal(dL),connector:Di.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of results`}).default(100),cursor:Os({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}).nullable(),output_fields:R(r.object({[fL.name]:N({fieldName:fL.name}),[pL.name]:N({fieldName:pL.name}),[mL.name]:N({fieldName:mL.name}),[hL.name]:N({fieldName:hL.name}),[gL.name]:N({fieldName:gL.name})})),filters:r.object({locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Locations`,disableSearch:!1,required:!1,optionsDef:h(`locations`),groupPath:`config.filters.general`}).default([]),profile_headline_keywords:xs({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:xs({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_languages:P({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile languages`,disableSearch:!1,required:!1,options:m(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}).default([]),languages:P({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken languages`,disableSearch:!1,required:!1,options:m(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}).default([]),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,placeholder:`.NET, PMO, ...`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default([]),years_of_experience:P({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),current_employers:A({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:A({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Current employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),current_job_titles:A({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:F({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`)}).default([]),years_at_current_company:P({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:m(`crustdata.years_of_experience`)}).default([]),previous_employers_website_urls:A({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,disableSearch:!0,optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),previous_employers:A({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:A({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:F({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`)}).default([]),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,description:``}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,description:``}),recently_changed_jobs:Ds({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`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}).default([]),degree_names:F({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`)}).default([]),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default([]),current_school_names:F({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`)}).default([]),extracurricular_activities:A({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)})}).check(e=>{UF(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),vL={default:{input:[{fields:[]}]}},yL=class extends GF{searchId=dL;schema=_L;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[fL.name]:this.catalogOutput(fL),[pL.name]:this.catalogOutput(pL),[mL.name]:this.catalogOutput(mL),[hL.name]:this.catalogOutput(hL),[gL.name]:this.catalogOutput(gL)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return vL}},bL=_L,xL={searchId:dL,billableOperation:`people-profiles-crustdata`,baseSearch:KF(`people:profiles:crustdata@1`),label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],docPath:qF(dL),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:dL,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:[]}}}},SL=`people:profiles:exa@1`,CL=g(`name`),wL=g(`profile_url`),TL=g(`job_title`),EL=g(`company_name`),DL=g(`company_region`),OL=g(`exa_match_evaluation`),kL=r.object({search_id:r.literal(SL),connector:Di.nullable().optional(),config:r.object({limit:L({path:`config.limit`,sectionKey:`general`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:R(r.object({[CL.name]:N({fieldName:CL.name}),[wL.name]:N({fieldName:wL.name}),[TL.name]:N({fieldName:TL.name}),[EL.name]:N({fieldName:EL.name}),[DL.name]:N({fieldName:DL.name}),[OL.name]:N({fieldName:OL.name})})),filters:r.object({query:ks({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})})})}),AL={default:{input:[{fields:[]}]}},jL=class extends GF{searchId=SL;schema=kL;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[CL.name]:this.catalogOutput(CL),[wL.name]:this.catalogOutput(wL),[TL.name]:this.catalogOutput(TL),[EL.name]:this.catalogOutput(EL),[DL.name]:this.catalogOutput(DL),[OL.name]:this.catalogOutput(OL)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return AL}},ML=kL,NL={searchId:SL,billableOperation:`people-profiles-exa`,baseSearch:KF(`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:[W.COMPANY_PROFILES],docPath:qF(SL),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:SL,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:``}}}},PL=`people:profiles:icypeas@1`,FL=g(`name`),IL=g(`job_title`),LL=g(`profile_headline`),RL=g(`company_website_url`),zL=g(`company_profile_url`),BL=g(`profile_url`),VL=g(`icypeas_person_match`),HL=r.object({search_id:r.literal(PL),connector:Di.nullable().optional(),config:r.object({limit:L({path:`config.limit`,sectionKey:`general`,max:5e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:R(r.object({[FL.name]:N({fieldName:FL.name}),[IL.name]:N({fieldName:IL.name}),[LL.name]:N({fieldName:LL.name}),[RL.name]:N({fieldName:RL.name}),[zL.name]:N({fieldName:zL.name}),[BL.name]:N({fieldName:BL.name}),[VL.name]:N({fieldName:VL.name})})),filters:r.object({firstname:j({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:j({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:j({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:j({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:j({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:j({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:j({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:j({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:j({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:j({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:j({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:j({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:j({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=>{UF(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),UL={default:{input:[{fields:[{outputField:`profile_url`}]}]}},WL=class extends GF{searchId=PL;schema=HL;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[FL.name]:this.catalogOutput(FL),[IL.name]:this.catalogOutput(IL),[LL.name]:this.catalogOutput(LL),[RL.name]:this.catalogOutput(RL),[zL.name]:this.catalogOutput(zL),[BL.name]:this.catalogOutput(BL),[VL.name]:this.catalogOutput(VL)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return UL}},GL=HL,KL={searchId:PL,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:KF(PL),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:[W.PEOPLE_PROFILES],docPath:qF(PL),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:PL,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:[]}}}}},qL={"people:profiles:crustdata@1":yL,"companies:profiles:crustdata@1":nI,"companies:profiles:exa@1":mI,"people:profiles:exa@1":jL,"people:profiles:icypeas@1":WL,"companies:profiles:icypeas@1":OI,"people:employees:leadmagic@1":cL,"people:profiles:clado@1":BI,"people:profiles:clado@2":QI},JL={"people:profiles:crustdata@1":bL,"companies:profiles:crustdata@1":rI,"companies:profiles:exa@1":hI,"people:profiles:exa@1":ML,"people:profiles:icypeas@1":GL,"companies:profiles:icypeas@1":kI,"people:employees:leadmagic@1":lL,"people:profiles:clado@1":VI,"people:profiles:clado@2":$I},YL={"people:profiles:crustdata@1":xL,"companies:profiles:crustdata@1":iI,"companies:profiles:exa@1":gI,"people:profiles:exa@1":NL,"people:profiles:icypeas@1":KL,"companies:profiles:icypeas@1":AI,"people:employees:leadmagic@1":uL,"people:profiles:clado@1":HI,"people:profiles:clado@2":eL};function XL(e){return qL[e]}function ZL(e){return JL[e]}function QL(e){return YL[e].defaultPayload}const $L=t.discriminatedUnion(`search_id`,Object.values(JL).map(e=>e)),eR=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=QL(e.search_id);return t?{...e,config:Ze(e?.config||{},t.config)}:e},$L);function tR(e){return Object.keys(YL[e].defaultPayload.config.output_fields)}const nR=ii,rR=t.object({value:Wr,status:Ur,type:Vr.optional(),format:si.nullable().optional(),resolved_by:pi.nullable().optional(),widgets:ri.optional()}),iR=t.record(t.string(),rR.nullable()),aR=t.object({search:t.object({ref:HF}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(nR),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()})}),oR=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(iR),search_statuses:t.array(aR),organizationId:t.string()}).openapi(`SearchesResponseSchema`),sR=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),cR=sR.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),lR=t.object({config:cR.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(eR)}).openapi(`SearchesRequestSchema`);function uR(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function dR(){let e={};for(let t of Object.values(YL)){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=uR(e.searchId);return uR(t.searchId)-n})}),e}const fR=dR();function pR(e){let t=[];for(let[n,r]of Object.entries(fR)){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:uR(i.searchId)})}return t}function mR(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 tR(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:fR}}function hR(e){return YL[e]}function gR(e){let t=hR(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function _R(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e}))}function vR(e){return _R(rA(e).allowedUserConnectionProviders)}function yR(e){return _R([Hk(e).provider])}function bR(e){return _R([hR(e).provider])}const xR=[{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}],SR=new Map(xR.map(e=>[e.id,e]));function CR(e){return SR.get(e)}function wR(){return xR}const TR={"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:[]}}}}],"people:profiles:crustdata@3":[{search_id:`people:profiles:crustdata@3`,config:{cursor:``,limit:10,filters:{locations:{include:[`Berlin, Germany`],exclude:[]},profile_headline_keywords:{include:[`Marketing`],exclude:[]},skills:{include:[`Python`,`Data Analysis`],exclude:[]},languages:{include:[`English`],exclude:[]},current_employment_job_titles:{include:[`Software Engineer`],exclude:[]},current_employment_job_functions:[`Engineering`],current_employment_seniority_levels:[`Senior`,`Director`],current_employer_headcount_brackets:[`51-200`],current_employment_tenure_brackets:[`1 to 2 years`],total_years_of_experience_brackets:[`3 to 5 years`]}}}],"posts:content:crustdata@1":[{search_id:`posts:content:crustdata@1`,config:{limit:10,filters:{keywords:[`LLM Evaluation`,`RAG`],keyword_operator:`OR`,date_posted:`past-month`,content_types:[`videos`],author_industries:[`Software Development`]}}}],"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 ER(e,t,n){if(t==null)return{};try{let r=jr(e,n)?.getStaticWidgets?.(t),i=wA(n,t);return ut(lt(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}var DR=class extends zv{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function OR(e){let t=[];for(let n of e){if(n instanceof GF){t.push(n);continue}let e=n.search_id,r=XL(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(eR.parse(n));t.push(i)}return t}function kR(e){try{return OR(e.searches)}catch(e){throw e instanceof DR?e:new $([Q.ValidationFailed({error:e})])}}const AR=/[\\^$.+()|[\]{}]/g,jR=new Map;function MR(e){let t=jR.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(AR,`\\$&`)}let r=RegExp(`^${n}$`);return jR.set(e,r),r}function NR(e,t){return MR(t).test(e)}function PR(e,t){if(!t||t.length===0)return!1;for(let n of t)if(NR(e,n))return!0;return!1}function FR(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!PR(e,n)||r&&r.length>0&&PR(e,r))}function IR(e,t){return FR(e,t?.providers)}function LR(e,t){if(!t)return!0;if(!FR(e,t.pipes))return!1;if(t.providers){let n=sA(e);if(n.length===0)return!0;if(!n.some(e=>IR(e,t)))return!1}return!0}function RR(e,t,n){return t?!(!FR(e,t.searches)||n!==void 0&&!IR(n,t)):!0}function zR(e,t,n){return t?!(!FR(e,t.searchesMulti)||n!==void 0&&!IR(n,t)):!0}function BR(e,t){return t?e.filter(e=>LR(e.pipeId,t)):e.slice()}function VR(e,t){return t?e.filter(e=>RR(e.searchId,t,e.provider)):e.slice()}function HR(e,t){return t?e.filter(e=>zR(e.searchId,t,e.provider)):e.slice()}function UR(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function WR(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function GR(e){return e.cost.allowManagedConnection?e.cost.credits.default:0}function KR(e){let t=Object.values(e.billableOperations).map(e=>e?.allowManagedConnection?e.credits.default:0);return t.length?Math.min(...t):0}function qR(e,t){let n=Math.max(1,t.minItems),r=Math.max(n,t.maxItems),i=[],a=[],o=0;for(let s of e){a.push(s),o+=t.sizeOf(s);let e=a.length>=r,c=o>=t.targetSize&&a.length>=n;(e||c)&&(i.push(a),a=[],o=0)}return a.length>0&&i.push(a),i}function JR(e){let t=SA(e);if(!t)return``;try{return te(t)||new URL(t).hostname}catch{return``}}const YR=[`http://`,`https://`,`mailto:`],XR=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function ZR(e){return e?QR(e):[]}function QR(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&&XR.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=$R(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=$R(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:QR(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=$R(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:QR(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=$R(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:QR(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=$R(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=$R(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(YR.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:QR(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function $R(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(ez(e,r,n))return r;r+=1}return-1}function ez(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{La as AI_MODELS,Ra as AI_MODEL_CATALOG,Ua as AI_MODEL_RAW_USD,rr as B2BPostMatchSchema,za as CREDIT_USD_VALUE,vi as CatalogSchemaRefSchema,DN as ConciseFieldValueSchema,Fi as ConditionBlockSchema,Be as ConditionEvaluationError,ze as ConditionFieldNotFoundError,Si as ConditionOperatorsSchema,tt as EffectAllSelectionSchema,et as EffectRowsSelectionSchema,rt as EffectSelectionSchema,nt as EffectWindowSelectionSchema,GN as EffectsRequestSchema,KN as EffectsResponseSchema,WN as EffectsRunStatusSchema,qN as EffectsValidateRequestSchema,YN as EffectsValidateResponseSchema,JN as EffectsValidateStepSchema,hi as ExpandedFieldValueSchema,sv as FIELD_PLACEHOLDERS,ci as FieldAnnotationSchema,MA as FieldAnnotations,li as FieldAnnotationsSchema,Fr as FieldNameSchema,ai as FieldReasonSchema,Wr as FieldValueSchema,XP as FormStoreSchema,nF as HIGH_VOLUME_PRICING_MIN_CREDITS,xi as JSONExtractSchema,Gr as JSONMetaSchema,Ba as MANAGED_TOKEN_MARGIN,Kj as MANUAL_DEFAULT,ki as NoConnectorSchema,Gs as ObjectHasher,Di as OptionalConnectorSchema,Rr as PIPE_IDS,Rk as PaginationTypeSchema,tr as PersonProfileFieldSchema,AC as PersonWorkemailWaterfall1Entry,kC as PersonWorkemailWaterfall1PayloadSchema,OC as PersonWorkemailWaterfall1PipeClass,U as Pipe,zv as Pipe0Error,zr as PipeIdSchema,tA as PipePayloadSchema,Li as PipeRunIfSchema,$ as PipelineValidationError,Lr as PipesEnvironmentSchema,ii as PipesErrorSchema,yi as PipesFieldDefinitionSchema,bi as PipesFieldDefinitionsSchema,gi as PipesInputSchema,pA as PipesRequestConfigSchema,mA as PipesRequestSchema,fA as PipesResponseSchema,nA as ProcessedPipePayloadSchema,Mk as ProcessedSearchPayloadSchema,eR as ProcessedSearchesPayloadSchema,UN as ProcessedSheetEffectPayloadSchema,Ir as ProviderNameSchema,oi as RECORD_FIELD_FORMATS,Br as RECORD_FIELD_TYPES,ac as RESERVED_FIELD_NAMES,Ci as RUN_IF_OPERATOR_LABELS,Ti as RUN_IF_STATUS_OPERATORS,wi as RUN_IF_VALUE_OPERATORS,Wj as RUN_STATUS_OPTIONS,EN as RecordActionDetailSchema,fi as RecordClaimedBySchema,kN as RecordDiffEntrySchema,si as RecordFieldFormatSchema,mi as RecordFieldSchema,Ur as RecordFieldStatusSchema,Vr as RecordFieldTypeSchema,Hr as RecordIdSchema,pi as RecordResolvedBySchema,_i as RecordSchema,Rv as RequestValidationError,Oi as RequiredConnectorSchema,ji as RunIfStatusOperatorsSchema,Mi as RunIfStatusValueSchema,Ai as RunIfValueOperatorsSchema,Uj as RunStatusSchema,Gj as SCHEDULED_DEFAULT,VF as SEARCHES_IDS,XT as SEARCH_IDS,Fn as SENIORITY_LEVELS,Qe as SHEET_EFFECT_IDS,$T as Search,Pk as SearchErrorSchema,ZT as SearchIdSchema,Ak as SearchPayloadSchema,Nk as SearchRequestSchema,zk as SearchResponseSchema,Fk as SearchResultFieldSchema,Ik as SearchResultSchema,nR as SearchesErrorSchema,HF as SearchesIdSchema,$L as SearchesPayloadSchema,sR as SearchesRequestBaseConfigSchema,lR as SearchesRequestSchema,oR as SearchesResponseSchema,rR as SearchesResultFieldSchema,iR as SearchesResultSchema,GF as SearchesSearch,aR as SearchesStatusSchema,V as SheetEffect,$e as SheetEffectIdSchema,VN as SheetEffectPayloadSchema,MN as SheetEffectStepSummarySchema,tP as SheetEffectValidationError,jN as SheetEffectsCountsSchema,AN as SheetEffectsDiffSchema,Va as TOKEN_BLOCK_SIZE_INPUT,Ha as TOKEN_BLOCK_SIZE_OUTPUT,zp as TYPES_TO_FORMATS,eo as TokenBlockAccumulator,ON as UpdatedActionDetailSchema,Ii as ValueConditionBlockSchema,qP as WidgetsByKindSchema,ri as WidgetsSchema,lc as all,ia as analyzeLiquidTemplate,fF as analyzePipeFit,Fa as and,uc as any,lA as assertUniqueBillableOperations,h as autocomplete,ir as b2bPostMatchExample,Za as buildAiModelTokenBillableOperations,PA as buildDependencyGraph,P_ as buildInputRequirementFromTemplates,mP as buildResultColumns,Xa as buildTokenNote,J as catalogInput,qR as chunkBySize,Us as cleanObject,SA as cleanUrl,xA as cleanWebsiteUrl,I_ as collectConstantReferencesFromTemplates,PP as collectPipeContextSelectFields,pc as collectRequirementFields,zP as collectSearchContextSelectFields,F_ as collectSecretReferencesFromTemplates,UP as collectSheetEffectContextSelectFields,MR as compilePattern,wP as computeTenure,Ze as configDefaults,Ja as creditsPerBlock,pP as dedupeColumnNames,Iv as describeRequirement,ct as entityLogoFavicon,st as entityLogoProfessionalProfileUrl,yc as estimateGuardCredits,Ke as evaluateConditionBlock,Bo as extractFormMetadata,H as field,Ar as fieldBehaviorCatalog,kr as fieldCatalog,Fv as fieldNameStr,TA as fieldTypeFromValue,FF as fieldsToObject,BR as filterPipeEntries,VR as filterSearchEntries,HR as filterSearchesEntries,zN as getAgentAllowedEffectIds,Ga as getAiModelConnectionRequirements,Wa as getAiModelProviders,Qa as getAiModelTokenBillingKeys,Ya as getAiModelTokenCredits,Ka as getAllAiModelProviders,K as getBasePipeName,B as getBaseSheetEffectName,Zk as getDefaultOutputFields,sA as getDefaultPipeProviders,Gk as getDefaultSearchOutputFields,tR as getDefaultSearchesOutputFields,_A as getDependentPipeNamesForInputProperty,vA as getDependentPipeNamesForPipe,JR as getDomain,DA as getExpansionState,at as getFaviconUrlGoogle,g as getField,jr as getFieldBehavior,Fp as getFieldDisplayLabel,kA as getFieldWidgets,Wk as getInitialSearchTableData,pR as getInitialSearchesTableData,$N as getInitialSheetEffectTableData,uA as getInitialTableData,_c as getInputHash,no as getJsonMetaForFieldDef,GR as getLoweestSearchCreditAmount,WR as getLoweestSearchesCreditAmount,UR as getLowestPipeCreditAmount,KR as getLowestSheetEffectCreditAmount,Pr as getOutputFieldInfoFromDef,iA as getPipeBillableOperationDef,eF as getPipeCategoryEntries,$P as getPipeCategoryEntry,Qk as getPipeClass,gc as getPipeConfigHash,$k as getPipeDefaultPayload,q as getPipeDocsURI,rA as getPipeEntry,kP as getPipeFormMask,gA as getPipeInstances,FP as getPipePayloadFormConfig,eA as getPipePayloadSchema,aA as getPipeVersion,X as getProviderBillableOperation,bc as getProviderCreditsFromBillableOperations,BF as getProviderEntry,gP as getReadableFieldStatus,_R as getSandboxConnections,vR as getSandboxConnectionsForPipe,yR as getSandboxConnectionsForSearch,bR as getSandboxConnectionsForSearches,wR as getSearchCategoryEntries,CR as getSearchCategoryEntry,kk as getSearchClass,jk as getSearchDefaultPayload,Hk as getSearchEntry,ER as getSearchFieldWidgets,AP as getSearchFormMask,UM as getSearchInstance,RP as getSearchPayloadFormConfig,Lk as getSearchPayloadSchema,Kk as getSearchTableDataAggregates,Bk as getSearchVersion,XL as getSearchesClass,QL as getSearchesDefaultPayload,hR as getSearchesEntry,AA as getSearchesFieldWidgets,OR as getSearchesInstances,ZL as getSearchesPayloadSchema,mR as getSearchesTableDataAggregates,uR as getSearchesVersion,er as getSeniorityEmojiFromTitle,$n as getSeniorityLevelFromTitle,Xe as getSheetEffectCategoryEntries,Ye as getSheetEffectCategoryEntry,IN as getSheetEffectClass,Ks as getSheetEffectConfigHash,HN as getSheetEffectDefaultPayload,LN as getSheetEffectEntry,jP as getSheetEffectFormMask,dP as getSheetEffectInstance,HP as getSheetEffectPayloadFormConfig,RN as getSheetEffectPayloadSchema,hA as getStartingCostPerPipesProvider,qk as getStartingCostPerSearchProvider,gR as getStartingCostPerSearchesProvider,dA as getTableDataAggregates,iF as getTier,OA as getUnexpandedValue,ot as ifDefined,z as inputFields,RF as inputFromRecord,LF as inputFromRecordArr,IF as inputFromRecords,WP as inputGuards,BN as isAgentAllowedEffect,Nr as isCatalogField,kn as isEmptyValue,Mr as isFieldName,sF as isHighVolumeEligible,LR as isPipeAllowed,IR as isProviderAllowed,fc as isRequirementMet,mc as isRequirementSatisfiedByRecord,oc as isReservedFieldName,RR as isSearchAllowed,zR as isSearchesAllowed,qa as isTokenBilledOperations,Sa as joinConnectionString,cF as listHighVolumeEligibleOperations,oF as listTiers,vc as managedDefaultCreditOf,Sc as markRecordFieldAsComplete,Tc as markRecordFieldAsFailed,wc as markRecordFieldAsNoResult,Cc as markRecordFieldAsPending,Dc as markRecordFieldAsProcessing,Ec as markRecordFieldAsSkipped,PR as matchesAny,NR as matchesPattern,Ro as mergeFormConfig,lt as mergeWidgets,w as noConnectorInput,fP as normalizeColumnName,dc as optional,C as optionalConnectorInput,Ia as or,R as outputFields,ra as parseLiquidTemplate,Zi as parseOutputTagArgs,CF as parseRecordValueOrError,Ea as parseRelaxedObject,ZR as parseRichText,G as perUnit,nr as personProfileMatchExample1,Xk as pipeCatalog,ZP as pipeCategoryCatalog,Jk as pipeClassCatalog,Yk as pipePayloadSchemaCatalog,cs as pipesAsyncIncludeExcludeSelectInput,Lo as pipesConditionInput,bs as pipesContextSelectInput,us as pipesDateRangeInput,ds as pipesDestinationFieldConfig,$o as pipesFieldsSelectInput,ns as pipesIncludeExcludeInput,ss as pipesIncludeExcludeSelectInput,E as pipesInputField,_s as pipesIntInput,po as pipesJsonExtractionInput,ys as pipesJsonSchemaField,hs as pipesLLMSelectInput,os as pipesLooseObjectInput,rs as pipesMultiCreateInput,gs as pipesMultiSelectInput,vs as pipesNumberInput,O as pipesOptionalBooleanInput,is as pipesOrderedMultiCreateInput,k as pipesOutputField,_ as pipesPayloadRegistry,Ho as pipesPromptInput,D as pipesProviderInput,ls as pipesRangeInput,x as pipesRunIfInput,ms as pipesSelectInput,tF as pipesSnippetCatalog,as as pipesTaggedOrderedMultiCreateInput,S as pipesTaggedTextInput,Uo as pipesTemplateInput,fs as pipesTextInput,ps as pipesTextareaInput,Z as placeholder,zF as processInputObjects,Ri as providerCatalog,Y as rateLimitRatioFallingProgression,ej as renameFieldInPipePayloads,ta as renderLiquidTemplate,na as renderLiquidTemplateSync,Go as requiredConnectorInput,xc as requirementToInputFields,Lv as requirementUnmetMessage,Na as requiresConnection,Pa as requiresField,OP as resolveFormMask,nP as runSheetEffectsValidation,qj as runStatusesToQueueConfig,Ok as searchCatalog,xR as searchCategoryCatalog,Ek as searchClassCatalog,Dk as searchPayloadSchemaCatalog,TR as searchSnippetCatalog,I as searchesAsyncIncludeExcludeSelectInput,F as searchesAsyncMultiSelectInput,YL as searchesCatalog,qL as searchesClassCatalog,js as searchesContextSelectInput,Ts as searchesDateRangeInput,Cs as searchesExactRangeInput,j as searchesIncludeExcludeInput,M as searchesIncludeExcludeSelectInput,L as searchesIntInput,Ss as searchesMinMaxIntInput,A as searchesMultiCreateInput,P as searchesMultiSelectInput,Ms as searchesNumberField,Es as searchesOptionalBooleanInput,Jo as searchesOptionalConnectorInput,Ds as searchesOptionalNullableBooleanInput,xs as searchesOrderedMultiCreateInput,N as searchesOutputField,v as searchesPayloadRegistry,JL as searchesPayloadSchemaCatalog,ws as searchesRangeInput,qo as searchesRequiredConnectorInput,As as searchesSelectInput,Os as searchesTextInput,ks as searchesTextareaField,In as seniorityLevelSchema,FN as sheetEffectCatalog,qe as sheetEffectCategoryCatalog,NN as sheetEffectClassCatalog,PN as sheetEffectPayloadSchemaCatalog,eP as sheetEffectSnippetCatalog,Io as sheetEffectsConditionInput,Bs as sheetEffectsContextSelectInput,es as sheetEffectsFieldsSelectInput,Ls as sheetEffectsIntInput,Vs as sheetEffectsLLMSelectInput,Is as sheetEffectsMultiSelectInput,T as sheetEffectsNoConnectorInput,zs as sheetEffectsOptionalBooleanInput,Zo as sheetEffectsOptionalConnectorInput,Rs as sheetEffectsOptionalIntInput,y as sheetEffectsPayloadRegistry,Xo as sheetEffectsRequiredConnectorInput,Hs as sheetEffectsSearchPayloadInput,Fs as sheetEffectsSelectInput,ts as sheetEffectsSelectionInput,Ns as sheetEffectsTextInput,Ps as sheetEffectsTextareaInput,Rp as sortObjectKeys,oA as sortPipeCatalogByBasePipe,Vk as sortSearchCatalogByBaseSearch,dR as sortSearchesCatalogByBaseSearch,ZN as sortSheetEffectCatalogByBaseEffect,xa as splitConnectionString,Re as staticAutocomplete,m as staticOptions,Lp as stringify,dt as stripStaticWidgets,aP as summarizeEffectRun,CP as tagPrimaryCurrentEducation,ut as tagStaticWidgets,Ip as testPrint,aF as tierAtOrBelow,$a as tokenEstimate,EF as transformIntoResponse,Da as tryParseRelaxedObject,FA as validatePipesOrError,kR as validateSearches,iP as validateSheetEffectsOrError,Q as validationErrorMessages};
130
+ `}}],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`}]}],"lead:enroll:lemlist@1":[{config:{environment:`production`},pipes:[{pipe_id:`lead:enroll:lemlist@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`lemlist_123`}]},config:{campaign_id:`cam_bSn8EORHQxbWPjHvu`,custom_variables:{painPoint:`{{ pain_point }}`}}}],input:[{id:`1`,email:`prospect@example.com`,first_name:`Jane`,last_name:`Doe`,company_name:`Acme Corp`,job_title:`VP Sales`,pain_point:`slow onboarding`}]}],"row:append:sheet@1":[{config:{environment:`production`},pipes:[{pipe_id:`row:append:sheet@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{project:`project_id`,sheet:`sheet_id`,run:!0,allow_entity_creation:!0,included_fields:[{field_name:`field_name`}]}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"rows:find:sheet@1":[{config:{environment:`production`},pipes:[{pipe_id:`rows:find:sheet@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`crm-leads`,where:{logic:`and`,conditions:[{property:`value`,field_name:`email`,operator:`eq`,value:`{{ email }}`}]},limit:10,output_fields:{sheet_rows_found_count:{alias:``,enabled:!0},sheet_found_rows:{alias:``,enabled:!0},sheet_found_row_ids:{alias:``,enabled:!1}}}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"rows:find:postgres@1":[{config:{environment:`production`},pipes:[{pipe_id:`rows:find:postgres@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`postgres_123`}]},config:{query:`SELECT id, email, plan, created_at FROM users WHERE email = '{{ email }}'`,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!0},db_found_rows:{alias:``,enabled:!0}}}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"rows:find:databricks@1":[{config:{environment:`production`},pipes:[{pipe_id:`rows:find:databricks@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`databricks_123`}]},config:{query:`SELECT id, email, plan, created_at FROM main.crm.users WHERE email = '{{ email }}'`,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!0},db_found_rows:{alias:``,enabled:!0}}}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"row:expandappend:sheet@1":[{config:{environment:`production`},pipes:[{pipe_id:`row:expandappend:sheet@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{project:`project_id`,sheet:`sheet_id`,run:!0,allow_entity_creation:!0,destination_field_name:`expanded_value`,destination_field_type:``,destination_field_format:``,destination_field_label:``}}],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:content:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:posts:content: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:{limit:`10`},body:``,headers:{Authorization:`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`}]}]},uF=.1,dF=[`level1`,`level2`,`level3`];function fF(e,t){let n=dF[t-1];if(n)return e[n]}function pF(e,t){for(let n=t;n>=1;n--){let t=fF(e,n);if(t)return{level:n,tier:t}}}function mF(e){let t=[];for(let n=1;n<=3;n++){let r=fF(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function hF(e){if(e.default<.1)return!1;let t=mF(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 gF(){let e=new Map;for(let t of Object.values(iA))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!hF(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:mF(i.credits),usedBy:[o]})}for(let t of Object.values(Ik)){let{cost:n}=t;if(!n.allowManagedConnection||!hF(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:mF(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function _F(e,t){switch(e.kind){case`field`:case`optional`:{let n=t[e.field.name];return n?{...e,field:{...e.field,resolvedName:n}}:e}case`all`:case`any`:return{...e,of:e.of.map(e=>_F(e,t))}}}function vF(e){switch(e.kind){case`field`:return e.field.resolvedName;case`optional`:return`${e.field.resolvedName} (optional)`;case`all`:return e.of.map(vF).join(` AND `);case`any`:return`(${e.of.map(vF).join(` OR `)})`}}function yF(e,t){let n=2,r=`${e}_${n}`;for(;t.has(r);)n++,r=`${e}_${n}`;return r}function bF({pipeId:e,availableFields:t,inputFieldAliases:n}){let r=iA[e];if(!r)throw Error(`Unknown pipe_id: "${e}"`);let i=new Set(t),a=r.defaultInputRequirement,o=a&&n&&Object.keys(n).length>0?_F(a,n):a,s=o?pc(o,i):!0,c=o?mc(o).filter(e=>e.required).map(e=>({name:e.field.name,resolved_name:e.field.resolvedName,present:i.has(e.field.resolvedName)})):[],l=s?[]:c.filter(e=>!e.present).map(e=>e.resolved_name),u=new Set(i),d=[],f=[];for(let e of aA(r)){let t=i.has(e),n;t?(n=yF(e,u),u.add(n),f.push({name:e,resolved_name:e,suggested_alias:n})):u.add(e),d.push({name:e,resolved_name:e,collides:t,suggested_alias:n})}return{pipe_id:e,runnable:s,requirement_description:o?vF(o):`(no inputs required)`,required_fields:c,missing_fields:l,output_fields:d,output_collisions:f}}const xF=[`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`],SF=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],CF=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})}),wF=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 TF(e){return!isNaN(e.getTime())}const EF=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of xF){let n=f(t,e,new Date(0));if(TF(n))return d(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),DF=r.coerce.string().trim().transform(e=>{for(let t of SF){let n=f(e,t,new Date(0));if(TF(n))return d(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),OF=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`}),kF=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()),AF=r.preprocess(e=>{if(typeof e!=`object`||!e)return e;try{return JSON.stringify(e)}catch{return e}},r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`}));function jF(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return CF.parse(e);case`email`:return wF.parse(e);case`datetime`:return EF.parse(e);case`date`:return DF.parse(e);case`decimal`:return OF.parse(e);case`int`:return kF.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return AF.parse(e);case`website_url`:return CF.parse(e);case`profile_url`:return CF.parse(e);case`zip_code`:return AF.parse(e);case`markdown`:case`phone`:case`text`:return AF.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 ${em(e)} into format ${t}: ${r.message}`):r}}function MF(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(PA(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:jF(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 NF(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];if(!i)throw Error(`Input object undefined`);let a=i.id;a!=null&&PA(a)&&(i.id=a.value),i.id||=crypto.randomUUID();let{id:o}=i;if(typeof o!=`string`&&typeof o!=`number`){n.errors.push(Z.InvalidId());continue}if(n.records[o]){n.errors.push(Z.IDConflict({index:r,id:o}));continue}n.order.push(o),n.records[o]={id:o,fields:MF(e,n,i)}}}function PF({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{NF(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=FF(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,IF(e,r,n?.queue?.enabled),HF(e,r),r.errors.length>0)throw new Q(r.errors);return r}catch(e){throw e instanceof Q?e:new Q([Z.ResponseGenerationFailed({error:e})])}}function FF(e,t,n,r){let i=[],a=[];for(let o=0;o<e.orderedPipePayloads.length;o++){let s=e.orderedPipePayloads[o],c=e.orderedPipeInstances[o];if(!c){n.errors.push(Z.UnknownResolver({pipeId:s.pipe_id,index:o}));continue}let{queuedRecordIds:l,adoptedRecordIds:u}=VF(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function IF(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 ${Wv(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 ${Wv(n)} is missing but required (${r.value?`the value is`:`it has status`}: '${r.value?r.value:r.status}').`,summary:`Missing input`})})};for(let n=0;n<e.orderedPipePayloads.length;n++){let i=e.orderedPipePayloads[n],a=e.orderedPipeInstances[n];if(!a){t.errors.push(Z.UnknownResolver({pipeId:i.pipe_id,index:n}));continue}Object.values(t.records).forEach(e=>{let{valid:t,failedPipeInputField:n,failedRecordField:i}=hc(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function LF({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 RF({status:e,config:t}){return t.queue?.enabled?t.queue.triggers?.status?.includes(e)??!1:!1}function zF({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return LF({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||RF({status:n.status,config:r})}function BF({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 VF(e,t,n,r,i){let a=Object.entries(r.records),o=[],s=[];for(let c=0;c<a.length;c++){let l=a[c];if(!l)throw Error(`Required arr not present`);let[u,d]=l;for(let a of Object.values(n.getOutputFields())){let{resolvedName:l,type:u}=a,f=bc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},u),ee=xc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:te,isExpanded:ne,expandedValue:p}=FA(t[c]?.[l]??null),re=d.fields[l],ie=n.getConfigHashKey(),ae=n.getInputHashKey(d),oe={type:f,format:ee,claimed_by:{ref:n.pipeId,config_hash:ie}};if(r.errors.length>0&&te===null){let t=r.errors[0];if(!t)throw Error(`firstError undefined.`);d.fields[l]={...oe,value:null,status:`failed`,reason:{summary:`Validation error`,...t},resolved_by:{ref:`system`,environment:e.environment,config_hash:null,input_hash:null},widgets:{}};continue}let se=NA(te);if(se!==`unknown`&&se!==f){let t=i.queue?.triggers?.outputFieldTypeError&&i.queue.enabled;d.fields[l]={...oe,value:t?null:te,status:t?`queued`:`completed`,reason:null,resolved_by:t?{environment:e.environment,ref:`system`,config_hash:ie,input_hash:ae}:{environment:e.environment,ref:`input`,config_hash:null,input_hash:null},widgets:t?{}:p?.widgets||re?.widgets||{},format:t?ee:p?.format||ee};continue}if(te==null){let t=ne&&i.queue?.enabled&&p.status===`pending`,n=ne&&!t;if(ne&&i.adopt?.enabled===!0&&(!i.adopt.statuses||i.adopt.statuses.includes(p.status))){let{didAdopt:e}=BF({inputHashKey:ae,configHashKey:ie,expandedValue:p});e&&s.push(d.id)}if(ne&&p.status!==`pending`&&zF({inputHashKey:ae,configHashKey:ie,config:i,expandedValue:p})&&i.queue?.enabled)o.push(d.id),d.fields[l]={...oe,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:ie,input_hash:ae},widgets:{}};else if(n)d.fields[l]={...oe,value:null,status:p.status,type:p.type||f,reason:p.reason||null,resolved_by:p.resolved_by||null,widgets:p.widgets||{},format:p.format||ee};else{let t=i.queue?.triggers?.status?.includes(`pending`)??!0,n=i.queue?.enabled&&t?`queued`:`pending`;n===`queued`&&o.push(d.id),d.fields[l]={...oe,value:null,status:n,reason:null,resolved_by:n===`queued`?{environment:e.environment,ref:`system`,config_hash:ie,input_hash:ae}:null,widgets:{}}}continue}if(ne){if(ne&&i.adopt?.enabled===!0&&(!i.adopt.statuses||i.adopt.statuses.includes(p.status))){let{didAdopt:e}=BF({inputHashKey:ae,configHashKey:ie,expandedValue:p});e&&s.push(d.id)}zF({inputHashKey:ae,configHashKey:ie,expandedValue:p,config:i})&&r.errors.length===0?(o.push(d.id),d.fields[l]={...oe,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:null,input_hash:null},widgets:{}}):d.fields[l]={...oe,value:te,status:`completed`,type:p.type||f,reason:p.reason||null,resolved_by:p.resolved_by||{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:p.widgets||re?.widgets||{},format:p.format||ee}}else try{let e=jF(te,ee);d.fields[l]={...oe,value:e,status:`completed`,reason:null,resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:re?.widgets||{}}}catch{let t=i.queue?.enabled?`queued`:`failed`;t===`queued`&&o.push(d.id),d.fields[l]={...oe,value:te,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:ie,input_hash:ae},widgets:{}}}}}return{queuedRecordIds:o,adoptedRecordIds:s}}function HF(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=LA(i,r.value,r);r.widgets=lt(dt(r.widgets),e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function UF(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,widgets:dt(a.widgets)}:i[t]=a.value;return i}function WF(e,t={}){return Object.values(e).map(e=>UF(e.fields,t))}function GF(e,t={}){return e.map(e=>UF(e.fields,t))}function KF(e,t={}){return UF(e.fields,t)}function qF(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=FA(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function JF(e){let t=Ri[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const YF=[`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`],XF=r.enum(YF);function ZF(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 QF(e,t){let n={name:e,config:t};return Ks.hashObject(n)}var $F=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 QF(this.searchId,this.payload)}};function eI(e){return e.split(`@`)[0]}function tI(e){return`/docs/search-catalog/${eI(e)}/${e.split(`@`)[1]}`}const nI=`companies:profiles:crustdata@1`,rI=g(`company_name`),iI=g(`company_website_url`),aI=g(`company_description`),oI=g(`company_profile_url`),sI=g(`crustdata_company_match`),cI=r.object({search_id:r.literal(nI),connector:Di.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),cursor:ks({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}).nullable(),output_fields:L(r.object({[rI.name]:M({fieldName:rI.name}),[iI.name]:M({fieldName:rI.name}),[aI.name]:M({fieldName:aI.name}),[oI.name]:M({fieldName:oI.name}),[sI.name]:M({fieldName:sI.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`)}).default([]),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`)}).default([]),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`)}).default([]),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`)}).default([]),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,options:m(`crustdata.company_types`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}).default([]),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`}).default([]),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`}).default([]),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`}).default([]),headcount:N({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,required:!1,options:m(`crustdata.company_size`),groupPath:`config.filters.company_size`}).default([]),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:m(`crustdata.headcount_growth`),disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),revenue_in_usd:Ts({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:m(`crustdata.funding_rounds`),description:``,groupPath:`config.filters.financials`}).default([]),last_funding_amount:Ts({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:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}).default([]),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:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}).default([]),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=>{ZF(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),lI={default:{input:[{fields:[]}]}},uI=class extends $F{searchId=nI;schema=cI;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[rI.name]:this.catalogOutput(rI),[iI.name]:this.catalogOutput(iI),[aI.name]:this.catalogOutput(aI),[oI.name]:this.catalogOutput(oI),[sI.name]:this.catalogOutput(sI)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return lI}},dI=cI,fI={searchId:nI,billableOperation:`companies-profiles-crustdata`,baseSearch:eI(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],docPath:tI(nI),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:nI,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:[]}}}},pI=`companies:profiles:exa@1`,mI=g(`company_name`),hI=g(`company_website_url`),gI=g(`company_description`),_I=g(`company_industry`),vI=g(`headcount`),yI=g(`exa_match_evaluation`),bI=r.object({search_id:r.literal(pI),connector:Di.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:L(r.object({[mI.name]:M({fieldName:mI.name}),[hI.name]:M({fieldName:mI.name}),[gI.name]:M({fieldName:gI.name}),[_I.name]:M({fieldName:_I.name}),[vI.name]:M({fieldName:vI.name}),[yI.name]:M({fieldName:yI.name})})),filters:r.object({query:As({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})})})}),xI={default:{input:[{fields:[]}]}},SI=class extends $F{searchId=pI;schema=bI;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[mI.name]:this.catalogOutput(mI),[hI.name]:this.catalogOutput(hI),[gI.name]:this.catalogOutput(gI),[_I.name]:this.catalogOutput(_I),[vI.name]:this.catalogOutput(vI),[yI.name]:this.catalogOutput(yI)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return xI}},CI=bI,wI={searchId:pI,billableOperation:`companies-profiles-exa`,baseSearch:eI(`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:[W.COMPANY_PROFILES],docPath:tI(pI),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:pI,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:``}}}},TI=`companies:profiles:icypeas@1`,EI=g(`company_industry`),DI=g(`company_name`),OI=g(`company_description`),kI=g(`company_website_url`),AI=g(`headcount`),jI=g(`company_region`),MI=g(`company_profile_url`),NI=g(`icypeas_company_match`),PI=r.object({search_id:r.literal(TI),connector:Di.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,max:5e4,min:1,path:`config.limit`,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:L(r.object({company_name:M({fieldName:DI.name}),company_industry:M({fieldName:EI.name}),company_description:M({fieldName:OI.name}),company_website_url:M({fieldName:kI.name}),headcount:M({fieldName:AI.name}),company_region:M({fieldName:jI.name}),company_profile_url:M({fieldName:MI.name}),icypeas_company_match:M({fieldName:NI.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:Re(`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:Ts({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=>{ZF(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),FI={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},II=class extends $F{searchId=TI;schema=PI;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[DI.name]:this.catalogOutput(DI),[EI.name]:this.catalogOutput(EI),[MI.name]:this.catalogOutput(MI),[kI.name]:this.catalogOutput(kI),[OI.name]:this.catalogOutput(OI),[AI.name]:this.catalogOutput(AI),[jI.name]:this.catalogOutput(jI),[NI.name]:this.catalogOutput(NI)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return FI}},LI=PI,RI={searchId:TI,billableOperation:`companies-profiles-icypeas`,baseSearch:eI(`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:[W.COMPANY_PROFILES],docPath:tI(TI),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:TI,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:[]}}}}},zI=`people:profiles:clado@1`,BI=g(`name`),VI=g(`job_title`),HI=g(`company_name`),UI=g(`company_profile_url`),WI=g(`profile_url`),GI=g(`clado_person_match`),KI=r.object({search_id:r.literal(zI),connector:Di.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(20),output_fields:L(r.object({[BI.name]:M({fieldName:BI.name}),[VI.name]:M({fieldName:VI.name}),[UI.name]:M({fieldName:UI.name}),[HI.name]:M({fieldName:HI.name}),[WI.name]:M({fieldName:WI.name}),[GI.name]:M({fieldName:GI.name})})),filters:r.object({query:As({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})})})}),qI={default:{input:[{fields:[{outputField:`profile_url`}]}]}},JI=class extends $F{searchId=zI;schema=KI;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[BI.name]:this.catalogOutput(BI),[VI.name]:this.catalogOutput(VI),[HI.name]:this.catalogOutput(HI),[WI.name]:this.catalogOutput(WI),[UI.name]:this.catalogOutput(UI),[GI.name]:this.catalogOutput(GI)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return qI}},YI=KI,XI={searchId:zI,billableOperation:`people-profiles-clado`,baseSearch:An(`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:[W.PEOPLE_PROFILES],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_search`,creditsPerSearch:3},provider:`clado`,defaultPayload:{search_id:zI,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:``}}}},ZI=`people:profiles:clado@2`,QI=g(`name`),$I=g(`job_title`),eL=g(`company_name`),tL=g(`company_profile_url`),nL=g(`profile_url`),rL=g(`clado_person_match_v2`),iL=r.object({search_id:r.literal(ZI),connector:Di.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,max:1e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),search_id:ks({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`}).nullable().default(``),offset:I({sectionKey:`general`,path:`config.offset`,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.`}).nullish(),output_fields:L(r.object({[QI.name]:M({fieldName:QI.name}),[$I.name]:M({fieldName:$I.name}),[tL.name]:M({fieldName:tL.name}),[eL.name]:M({fieldName:eL.name}),[nL.name]:M({fieldName:nL.name}),[rL.name]:M({fieldName:rL.name})})),filters:r.object({query:As({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`]})}),aL={default:{input:[{fields:[{outputField:`profile_url`}]}]}},oL=class extends $F{searchId=ZI;schema=iL;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[QI.name]:this.catalogOutput(QI),[$I.name]:this.catalogOutput($I),[eL.name]:this.catalogOutput(eL),[nL.name]:this.catalogOutput(nL),[tL.name]:this.catalogOutput(tL),[rL.name]:this.catalogOutput(rL)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return aL}},sL=iL,cL={searchId:ZI,billableOperation:`people-profiles-clado`,baseSearch:An(`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:ZI,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:``}}}},lL=`people:employees:leadmagic@1`,uL=g(`name`),dL=g(`job_title`),fL=g(`company_website_url`),pL=g(`company_name`),mL=r.object({search_id:r.literal(lL),connector:Di.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,max:500,min:1,path:`config.limit`,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(50),output_fields:L(r.object({[uL.name]:M({fieldName:uL.name}),[pL.name]:M({fieldName:pL.name}),[fL.name]:M({fieldName:fL.name}),[dL.name]:M({fieldName:dL.name})})),filters:r.object({company_website_url:ks({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`}).nullable()})})}),hL={default:{input:[{fields:[{outputField:fL.name}]}]}},gL=class extends $F{searchId=lL;schema=mL;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[uL.name]:this.catalogOutput(uL),[dL.name]:this.catalogOutput(dL),[fL.name]:this.catalogOutput(fL),[pL.name]:this.catalogOutput(pL)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return hL}},_L=mL,vL={searchId:lL,billableOperation:`people-employees-leadmagic`,baseSearch:eI(`people:employees:leadmagic@1`),label:`Employee finder`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search for employees of a company.`,tags:[W.PEOPLE_PROFILES],docPath:tI(lL),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:lL,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:``}}}},yL=`people:profiles:crustdata@1`,bL=g(`name`),xL=g(`company_website_url`),SL=g(`profile_url`),CL=g(`job_title`),wL=g(`crustdata_person_match`),TL=r.object({search_id:r.literal(yL),connector:Di.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of results`}).default(100),cursor:ks({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}).nullable(),output_fields:L(r.object({[bL.name]:M({fieldName:bL.name}),[xL.name]:M({fieldName:xL.name}),[SL.name]:M({fieldName:SL.name}),[CL.name]:M({fieldName:CL.name}),[wL.name]:M({fieldName:wL.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`}).default([]),profile_headline_keywords:Ss({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:Ss({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:m(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}).default([]),languages:N({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken languages`,disableSearch:!1,required:!1,options:m(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}).default([]),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`)}).default([]),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:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),current_seniority_levels:j({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),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`)}).default([]),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:m(`crustdata.years_of_experience`)}).default([]),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:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),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`)}).default([]),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:Os({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`)}).default([]),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`)}).default([]),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`)}).default([]),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`)}).default([]),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=>{ZF(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),EL={default:{input:[{fields:[]}]}},DL=class extends $F{searchId=yL;schema=TL;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[bL.name]:this.catalogOutput(bL),[xL.name]:this.catalogOutput(xL),[SL.name]:this.catalogOutput(SL),[CL.name]:this.catalogOutput(CL),[wL.name]:this.catalogOutput(wL)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return EL}},OL=TL,kL={searchId:yL,billableOperation:`people-profiles-crustdata`,baseSearch:eI(`people:profiles:crustdata@1`),label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],docPath:tI(yL),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:yL,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:[]}}}},AL=`people:profiles:exa@1`,jL=g(`name`),ML=g(`profile_url`),NL=g(`job_title`),PL=g(`company_name`),FL=g(`company_region`),IL=g(`exa_match_evaluation`),LL=r.object({search_id:r.literal(AL),connector:Di.nullable().optional(),config:r.object({limit:I({path:`config.limit`,sectionKey:`general`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:L(r.object({[jL.name]:M({fieldName:jL.name}),[ML.name]:M({fieldName:ML.name}),[NL.name]:M({fieldName:NL.name}),[PL.name]:M({fieldName:PL.name}),[FL.name]:M({fieldName:FL.name}),[IL.name]:M({fieldName:IL.name})})),filters:r.object({query:As({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})})})}),RL={default:{input:[{fields:[]}]}},zL=class extends $F{searchId=AL;schema=LL;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[jL.name]:this.catalogOutput(jL),[ML.name]:this.catalogOutput(ML),[NL.name]:this.catalogOutput(NL),[PL.name]:this.catalogOutput(PL),[FL.name]:this.catalogOutput(FL),[IL.name]:this.catalogOutput(IL)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return RL}},BL=LL,VL={searchId:AL,billableOperation:`people-profiles-exa`,baseSearch:eI(`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:[W.COMPANY_PROFILES],docPath:tI(AL),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:AL,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:``}}}},HL=`people:profiles:icypeas@1`,UL=g(`name`),WL=g(`job_title`),GL=g(`profile_headline`),KL=g(`company_website_url`),qL=g(`company_profile_url`),JL=g(`profile_url`),YL=g(`icypeas_person_match`),XL=r.object({search_id:r.literal(HL),connector:Di.nullable().optional(),config:r.object({limit:I({path:`config.limit`,sectionKey:`general`,max:5e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:L(r.object({[UL.name]:M({fieldName:UL.name}),[WL.name]:M({fieldName:WL.name}),[GL.name]:M({fieldName:GL.name}),[KL.name]:M({fieldName:KL.name}),[qL.name]:M({fieldName:qL.name}),[JL.name]:M({fieldName:JL.name}),[YL.name]:M({fieldName:YL.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=>{ZF(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),ZL={default:{input:[{fields:[{outputField:`profile_url`}]}]}},QL=class extends $F{searchId=HL;schema=XL;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[UL.name]:this.catalogOutput(UL),[WL.name]:this.catalogOutput(WL),[GL.name]:this.catalogOutput(GL),[KL.name]:this.catalogOutput(KL),[qL.name]:this.catalogOutput(qL),[JL.name]:this.catalogOutput(JL),[YL.name]:this.catalogOutput(YL)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return ZL}},$L=XL,eR={searchId:HL,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:eI(HL),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:[W.PEOPLE_PROFILES],docPath:tI(HL),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:HL,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:[]}}}}},tR={"people:profiles:crustdata@1":DL,"companies:profiles:crustdata@1":uI,"companies:profiles:exa@1":SI,"people:profiles:exa@1":zL,"people:profiles:icypeas@1":QL,"companies:profiles:icypeas@1":II,"people:employees:leadmagic@1":gL,"people:profiles:clado@1":JI,"people:profiles:clado@2":oL},nR={"people:profiles:crustdata@1":OL,"companies:profiles:crustdata@1":dI,"companies:profiles:exa@1":CI,"people:profiles:exa@1":BL,"people:profiles:icypeas@1":$L,"companies:profiles:icypeas@1":LI,"people:employees:leadmagic@1":_L,"people:profiles:clado@1":YI,"people:profiles:clado@2":sL},rR={"people:profiles:crustdata@1":kL,"companies:profiles:crustdata@1":fI,"companies:profiles:exa@1":wI,"people:profiles:exa@1":VL,"people:profiles:icypeas@1":eR,"companies:profiles:icypeas@1":RI,"people:employees:leadmagic@1":vL,"people:profiles:clado@1":XI,"people:profiles:clado@2":cL};function iR(e){return tR[e]}function aR(e){return nR[e]}function oR(e){return rR[e].defaultPayload}const sR=t.discriminatedUnion(`search_id`,Object.values(nR).map(e=>e)),cR=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=oR(e.search_id);return t?{...e,config:Ze(e?.config||{},t.config)}:e},sR);function lR(e){return Object.keys(rR[e].defaultPayload.config.output_fields)}const uR=ii,dR=t.object({value:Wr,status:Ur,type:Vr.optional(),format:si.nullable().optional(),resolved_by:pi.nullable().optional(),widgets:ri.optional()}),fR=t.record(t.string(),dR.nullable()),pR=t.object({search:t.object({ref:XF}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(uR),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()})}),mR=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(fR),search_statuses:t.array(pR),organizationId:t.string()}).openapi(`SearchesResponseSchema`),hR=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),gR=hR.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),_R=t.object({config:gR.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(cR)}).openapi(`SearchesRequestSchema`);function vR(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function yR(){let e={};for(let t of Object.values(rR)){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=vR(e.searchId);return vR(t.searchId)-n})}),e}const bR=yR();function xR(e){let t=[];for(let[n,r]of Object.entries(bR)){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:vR(i.searchId)})}return t}function SR(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 lR(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:bR}}function CR(e){return rR[e]}function wR(e){let t=CR(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function TR(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e}))}function ER(e){return TR(dA(e).allowedUserConnectionProviders)}function DR(e){return TR([Xk(e).provider])}function OR(e){return TR([CR(e).provider])}const kR=[{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}],AR=new Map(kR.map(e=>[e.id,e]));function jR(e){return AR.get(e)}function MR(){return kR}const NR={"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:[]}}}}],"people:profiles:crustdata@3":[{search_id:`people:profiles:crustdata@3`,config:{cursor:``,limit:10,filters:{locations:{include:[`Berlin, Germany`],exclude:[]},profile_headline_keywords:{include:[`Marketing`],exclude:[]},skills:{include:[`Python`,`Data Analysis`],exclude:[]},languages:{include:[`English`],exclude:[]},current_employment_job_titles:{include:[`Software Engineer`],exclude:[]},current_employment_job_functions:[`Engineering`],current_employment_seniority_levels:[`Senior`,`Director`],current_employer_headcount_brackets:[`51-200`],current_employment_tenure_brackets:[`1 to 2 years`],total_years_of_experience_brackets:[`3 to 5 years`]}}}],"posts:content:crustdata@1":[{search_id:`posts:content:crustdata@1`,config:{limit:10,filters:{keywords:[`LLM Evaluation`,`RAG`],keyword_operator:`OR`,date_posted:`past-month`,content_types:[`videos`],author_industries:[`Software Development`]}}}],"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 PR(e,t,n){if(t==null)return{};try{let r=jr(e,n)?.getStaticWidgets?.(t),i=MA(n,t);return ut(lt(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}var FR=class extends Jv{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function IR(e){let t=[];for(let n of e){if(n instanceof $F){t.push(n);continue}let e=n.search_id,r=iR(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(cR.parse(n));t.push(i)}return t}function LR(e){try{return IR(e.searches)}catch(e){throw e instanceof FR?e:new Q([Z.ValidationFailed({error:e})])}}const RR=/[\\^$.+()|[\]{}]/g,zR=new Map;function BR(e){let t=zR.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(RR,`\\$&`)}let r=RegExp(`^${n}$`);return zR.set(e,r),r}function VR(e,t){return BR(t).test(e)}function HR(e,t){if(!t||t.length===0)return!1;for(let n of t)if(VR(e,n))return!0;return!1}function UR(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!HR(e,n)||r&&r.length>0&&HR(e,r))}function WR(e,t){return UR(e,t?.providers)}function GR(e,t){if(!t)return!0;if(!UR(e,t.pipes))return!1;if(t.providers){let n=hA(e);if(n.length===0)return!0;if(!n.some(e=>WR(e,t)))return!1}return!0}function KR(e,t,n){return t?!(!UR(e,t.searches)||n!==void 0&&!WR(n,t)):!0}function qR(e,t,n){return t?!(!UR(e,t.searchesMulti)||n!==void 0&&!WR(n,t)):!0}function JR(e,t){return t?e.filter(e=>GR(e.pipeId,t)):e.slice()}function YR(e,t){return t?e.filter(e=>KR(e.searchId,t,e.provider)):e.slice()}function XR(e,t){return t?e.filter(e=>qR(e.searchId,t,e.provider)):e.slice()}function ZR(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function QR(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function $R(e){return e.cost.allowManagedConnection?e.cost.credits.default:0}function ez(e){let t=Object.values(e.billableOperations).map(e=>e?.allowManagedConnection?e.credits.default:0);return t.length?Math.min(...t):0}function tz(e,t){let n=Math.max(1,t.minItems),r=Math.max(n,t.maxItems),i=[],a=[],o=0;for(let s of e){a.push(s),o+=t.sizeOf(s);let e=a.length>=r,c=o>=t.targetSize&&a.length>=n;(e||c)&&(i.push(a),a=[],o=0)}return a.length>0&&i.push(a),i}function nz(e){let t=AA(e);if(!t)return``;try{return te(t)||new URL(t).hostname}catch{return``}}const rz=[`http://`,`https://`,`mailto:`],iz=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function az(e){return e?oz(e):[]}function oz(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&&iz.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=sz(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=sz(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:oz(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=sz(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:oz(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=sz(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:oz(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=sz(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=sz(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(rz.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:oz(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function sz(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(cz(e,r,n))return r;r+=1}return-1}function cz(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{La as AI_MODELS,Ra as AI_MODEL_CATALOG,Ua as AI_MODEL_RAW_USD,rr as B2BPostMatchSchema,za as CREDIT_USD_VALUE,vi as CatalogSchemaRefSchema,FN as ConciseFieldValueSchema,Fi as ConditionBlockSchema,Be as ConditionEvaluationError,ze as ConditionFieldNotFoundError,Si as ConditionOperatorsSchema,tt as EffectAllSelectionSchema,et as EffectRowsSelectionSchema,rt as EffectSelectionSchema,nt as EffectWindowSelectionSchema,$N as EffectsRequestSchema,eP as EffectsResponseSchema,QN as EffectsRunStatusSchema,tP as EffectsValidateRequestSchema,rP as EffectsValidateResponseSchema,nP as EffectsValidateStepSchema,hi as ExpandedFieldValueSchema,yc as FIELD_PLACEHOLDERS,ci as FieldAnnotationSchema,BA as FieldAnnotations,li as FieldAnnotationsSchema,Fr as FieldNameSchema,ai as FieldReasonSchema,Wr as FieldValueSchema,iF as FormStoreSchema,uF as HIGH_VOLUME_PRICING_MIN_CREDITS,xi as JSONExtractSchema,Gr as JSONMetaSchema,Ba as MANAGED_TOKEN_MARGIN,eM as MANUAL_DEFAULT,ki as NoConnectorSchema,Ks as ObjectHasher,Di as OptionalConnectorSchema,Rr as PIPE_IDS,Kk as PaginationTypeSchema,tr as PersonProfileFieldSchema,zC as PersonWorkemailWaterfall1Entry,RC as PersonWorkemailWaterfall1PayloadSchema,LC as PersonWorkemailWaterfall1PipeClass,H as Pipe,Jv as Pipe0Error,zr as PipeIdSchema,lA as PipePayloadSchema,Li as PipeRunIfSchema,Q as PipelineValidationError,Lr as PipesEnvironmentSchema,ii as PipesErrorSchema,yi as PipesFieldDefinitionSchema,bi as PipesFieldDefinitionsSchema,gi as PipesInputSchema,xA as PipesRequestConfigSchema,SA as PipesRequestSchema,bA as PipesResponseSchema,uA as ProcessedPipePayloadSchema,Bk as ProcessedSearchPayloadSchema,cR as ProcessedSearchesPayloadSchema,ZN as ProcessedSheetEffectPayloadSchema,Ir as ProviderNameSchema,oi as RECORD_FIELD_FORMATS,Br as RECORD_FIELD_TYPES,oc as RESERVED_FIELD_NAMES,Ci as RUN_IF_OPERATOR_LABELS,Ti as RUN_IF_STATUS_OPERATORS,wi as RUN_IF_VALUE_OPERATORS,Qj as RUN_STATUS_OPTIONS,PN as RecordActionDetailSchema,fi as RecordClaimedBySchema,LN as RecordDiffEntrySchema,si as RecordFieldFormatSchema,mi as RecordFieldSchema,Ur as RecordFieldStatusSchema,Vr as RecordFieldTypeSchema,Hr as RecordIdSchema,pi as RecordResolvedBySchema,_i as RecordSchema,qv as RequestValidationError,Oi as RequiredConnectorSchema,ji as RunIfStatusOperatorsSchema,Mi as RunIfStatusValueSchema,Ai as RunIfValueOperatorsSchema,Zj as RunStatusSchema,$j as SCHEDULED_DEFAULT,YF as SEARCHES_IDS,aE as SEARCH_IDS,Fn as SENIORITY_LEVELS,Qe as SHEET_EFFECT_IDS,$ as Search,Hk as SearchErrorSchema,oE as SearchIdSchema,Rk as SearchPayloadSchema,Vk as SearchRequestSchema,qk as SearchResponseSchema,Uk as SearchResultFieldSchema,Wk as SearchResultSchema,uR as SearchesErrorSchema,XF as SearchesIdSchema,sR as SearchesPayloadSchema,hR as SearchesRequestBaseConfigSchema,_R as SearchesRequestSchema,mR as SearchesResponseSchema,dR as SearchesResultFieldSchema,fR as SearchesResultSchema,$F as SearchesSearch,pR as SearchesStatusSchema,B as SheetEffect,$e as SheetEffectIdSchema,YN as SheetEffectPayloadSchema,BN as SheetEffectStepSummarySchema,lP as SheetEffectValidationError,zN as SheetEffectsCountsSchema,RN as SheetEffectsDiffSchema,Va as TOKEN_BLOCK_SIZE_INPUT,Ha as TOKEN_BLOCK_SIZE_OUTPUT,nm as TYPES_TO_FORMATS,eo as TokenBlockAccumulator,IN as UpdatedActionDetailSchema,Ii as ValueConditionBlockSchema,tF as WidgetsByKindSchema,ri as WidgetsSchema,uc as all,ia as analyzeLiquidTemplate,bF as analyzePipeFit,Fa as and,dc as any,_A as assertUniqueBillableOperations,h as autocomplete,ir as b2bPostMatchExample,Za as buildAiModelTokenBillableOperations,HA as buildDependencyGraph,wc as buildInputRequirementFromTemplates,SP as buildResultColumns,Xa as buildTokenNote,q as catalogInput,tz as chunkBySize,Ws as cleanObject,AA as cleanUrl,kA as cleanWebsiteUrl,Ec as collectConstantReferencesFromTemplates,HP as collectPipeContextSelectFields,mc as collectRequirementFields,qP as collectSearchContextSelectFields,Tc as collectSecretReferencesFromTemplates,ZP as collectSheetEffectContextSelectFields,BR as compilePattern,MP as computeTenure,Ze as configDefaults,Ja as creditsPerBlock,xP as dedupeColumnNames,Gv as describeRequirement,ct as entityLogoFavicon,st as entityLogoProfessionalProfileUrl,Wc as estimateGuardCredits,Ke as evaluateConditionBlock,Bo as extractFormMetadata,V as field,Ar as fieldBehaviorCatalog,kr as fieldCatalog,Wv as fieldNameStr,NA as fieldTypeFromValue,UF as fieldsToObject,JR as filterPipeEntries,YR as filterSearchEntries,XR as filterSearchesEntries,qN as getAgentAllowedEffectIds,Ga as getAiModelConnectionRequirements,Wa as getAiModelProviders,Qa as getAiModelTokenBillingKeys,Ya as getAiModelTokenCredits,Ka as getAllAiModelProviders,G as getBasePipeName,z as getBaseSheetEffectName,aA as getDefaultOutputFields,hA as getDefaultPipeProviders,$k as getDefaultSearchOutputFields,lR as getDefaultSearchesOutputFields,TA as getDependentPipeNamesForInputProperty,EA as getDependentPipeNamesForPipe,nz as getDomain,FA as getExpansionState,at as getFaviconUrlGoogle,g as getField,jr as getFieldBehavior,Qp as getFieldDisplayLabel,LA as getFieldWidgets,Qk as getInitialSearchTableData,xR as getInitialSearchesTableData,sP as getInitialSheetEffectTableData,vA as getInitialTableData,vc as getInputHash,no as getJsonMetaForFieldDef,$R as getLoweestSearchCreditAmount,QR as getLoweestSearchesCreditAmount,ZR as getLowestPipeCreditAmount,ez as getLowestSheetEffectCreditAmount,Pr as getOutputFieldInfoFromDef,fA as getPipeBillableOperationDef,cF as getPipeCategoryEntries,sF as getPipeCategoryEntry,oA as getPipeClass,_c as getPipeConfigHash,sA as getPipeDefaultPayload,K as getPipeDocsURI,dA as getPipeEntry,LP as getPipeFormMask,wA as getPipeInstances,UP as getPipePayloadFormConfig,cA as getPipePayloadSchema,pA as getPipeVersion,X as getProviderBillableOperation,Dc as getProviderCreditsFromBillableOperations,JF as getProviderEntry,wP as getReadableFieldStatus,TR as getSandboxConnections,ER as getSandboxConnectionsForPipe,DR as getSandboxConnectionsForSearch,OR as getSandboxConnectionsForSearches,MR as getSearchCategoryEntries,jR as getSearchCategoryEntry,Lk as getSearchClass,zk as getSearchDefaultPayload,Xk as getSearchEntry,PR as getSearchFieldWidgets,RP as getSearchFormMask,ZM as getSearchInstance,KP as getSearchPayloadFormConfig,Gk as getSearchPayloadSchema,eA as getSearchTableDataAggregates,Jk as getSearchVersion,iR as getSearchesClass,oR as getSearchesDefaultPayload,CR as getSearchesEntry,RA as getSearchesFieldWidgets,IR as getSearchesInstances,aR as getSearchesPayloadSchema,SR as getSearchesTableDataAggregates,vR as getSearchesVersion,er as getSeniorityEmojiFromTitle,$n as getSeniorityLevelFromTitle,Xe as getSheetEffectCategoryEntries,Ye as getSheetEffectCategoryEntry,WN as getSheetEffectClass,qs as getSheetEffectConfigHash,XN as getSheetEffectDefaultPayload,GN as getSheetEffectEntry,zP as getSheetEffectFormMask,yP as getSheetEffectInstance,XP as getSheetEffectPayloadFormConfig,KN as getSheetEffectPayloadSchema,CA as getStartingCostPerPipesProvider,tA as getStartingCostPerSearchProvider,wR as getStartingCostPerSearchesProvider,yA as getTableDataAggregates,fF as getTier,IA as getUnexpandedValue,ot as ifDefined,R as inputFields,KF as inputFromRecord,GF as inputFromRecordArr,WF as inputFromRecords,QP as inputGuards,JN as isAgentAllowedEffect,Nr as isCatalogField,kn as isEmptyValue,Mr as isFieldName,hF as isHighVolumeEligible,GR as isPipeAllowed,WR as isProviderAllowed,pc as isRequirementMet,hc as isRequirementSatisfiedByRecord,sc as isReservedFieldName,KR as isSearchAllowed,qR as isSearchesAllowed,qa as isTokenBilledOperations,Sa as joinConnectionString,gF as listHighVolumeEligibleOperations,mF as listTiers,Uc as managedDefaultCreditOf,kc as markRecordFieldAsComplete,Mc as markRecordFieldAsFailed,jc as markRecordFieldAsNoResult,Ac as markRecordFieldAsPending,Pc as markRecordFieldAsProcessing,Nc as markRecordFieldAsSkipped,HR as matchesAny,VR as matchesPattern,Ro as mergeFormConfig,lt as mergeWidgets,w as noConnectorInput,bP as normalizeColumnName,fc as optional,C as optionalConnectorInput,Ia as or,L as outputFields,ra as parseLiquidTemplate,Zi as parseOutputTagArgs,jF as parseRecordValueOrError,Ea as parseRelaxedObject,az as parseRichText,J as perUnit,nr as personProfileMatchExample1,iA as pipeCatalog,aF as pipeCategoryCatalog,nA as pipeClassCatalog,rA as pipePayloadSchemaCatalog,cs as pipesAsyncIncludeExcludeSelectInput,Lo as pipesConditionInput,xs as pipesContextSelectInput,us as pipesDateRangeInput,fs as pipesDestinationFieldConfig,$o as pipesFieldsSelectInput,ns as pipesIncludeExcludeInput,ss as pipesIncludeExcludeSelectInput,E as pipesInputField,vs as pipesIntInput,po as pipesJsonExtractionInput,bs as pipesJsonSchemaField,gs as pipesLLMSelectInput,os as pipesLooseObjectInput,rs as pipesMultiCreateInput,_s as pipesMultiSelectInput,ys as pipesNumberInput,ds as pipesOptionalBooleanInput,is as pipesOrderedMultiCreateInput,O as pipesOutputField,_ as pipesPayloadRegistry,Ho as pipesPromptInput,D as pipesProviderInput,ls as pipesRangeInput,x as pipesRunIfInput,hs as pipesSelectInput,lF as pipesSnippetCatalog,as as pipesTaggedOrderedMultiCreateInput,S as pipesTaggedTextInput,Uo as pipesTemplateInput,ps as pipesTextInput,ms as pipesTextareaInput,U as placeholder,qF as processInputObjects,Ri as providerCatalog,Y as rateLimitRatioFallingProgression,cj as renameFieldInPipePayloads,ta as renderLiquidTemplate,na as renderLiquidTemplateSync,Go as requiredConnectorInput,Oc as requirementToInputFields,Kv as requirementUnmetMessage,Na as requiresConnection,Pa as requiresField,IP as resolveFormMask,uP as runSheetEffectsValidation,tM as runStatusesToQueueConfig,Ik as searchCatalog,kR as searchCategoryCatalog,Pk as searchClassCatalog,Fk as searchPayloadSchemaCatalog,NR as searchSnippetCatalog,F as searchesAsyncIncludeExcludeSelectInput,P as searchesAsyncMultiSelectInput,rR as searchesCatalog,tR as searchesClassCatalog,Ms as searchesContextSelectInput,Es as searchesDateRangeInput,ws as searchesExactRangeInput,A as searchesIncludeExcludeInput,j as searchesIncludeExcludeSelectInput,I as searchesIntInput,Cs as searchesMinMaxIntInput,k as searchesMultiCreateInput,N as searchesMultiSelectInput,Ns as searchesNumberField,Ds as searchesOptionalBooleanInput,Jo as searchesOptionalConnectorInput,Os as searchesOptionalNullableBooleanInput,Ss as searchesOrderedMultiCreateInput,M as searchesOutputField,v as searchesPayloadRegistry,nR as searchesPayloadSchemaCatalog,Ts as searchesRangeInput,qo as searchesRequiredConnectorInput,js as searchesSelectInput,ks as searchesTextInput,As as searchesTextareaField,In as seniorityLevelSchema,UN as sheetEffectCatalog,qe as sheetEffectCategoryCatalog,VN as sheetEffectClassCatalog,HN as sheetEffectPayloadSchemaCatalog,cP as sheetEffectSnippetCatalog,Io as sheetEffectsConditionInput,Vs as sheetEffectsContextSelectInput,es as sheetEffectsFieldsSelectInput,Rs as sheetEffectsIntInput,Hs as sheetEffectsLLMSelectInput,Ls as sheetEffectsMultiSelectInput,T as sheetEffectsNoConnectorInput,Bs as sheetEffectsOptionalBooleanInput,Zo as sheetEffectsOptionalConnectorInput,zs as sheetEffectsOptionalIntInput,y as sheetEffectsPayloadRegistry,Xo as sheetEffectsRequiredConnectorInput,Us as sheetEffectsSearchPayloadInput,Is as sheetEffectsSelectInput,ts as sheetEffectsSelectionInput,Ps as sheetEffectsTextInput,Fs as sheetEffectsTextareaInput,tm as sortObjectKeys,mA as sortPipeCatalogByBasePipe,Yk as sortSearchCatalogByBaseSearch,yR as sortSearchesCatalogByBaseSearch,aP as sortSheetEffectCatalogByBaseEffect,xa as splitConnectionString,Re as staticAutocomplete,m as staticOptions,em as stringify,dt as stripStaticWidgets,pP as summarizeEffectRun,jP as tagPrimaryCurrentEducation,ut as tagStaticWidgets,$p as testPrint,pF as tierAtOrBelow,$a as tokenEstimate,PF as transformIntoResponse,Da as tryParseRelaxedObject,UA as validatePipesOrError,LR as validateSearches,fP as validateSheetEffectsOrError,Z as validationErrorMessages};