@pipe0/base 0.5.5 β 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/index.d.mts +4680 -1435
- package/dist/index.mjs +9 -9
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -64,17 +64,17 @@ 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:pn,exampleValue:mn}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:Or,exampleValue:kr}},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:Ft,exampleValue:It}},amplemarket_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Company match object as returned by Amplemarket`,jsonMeta:{zodSchema:Nt,exampleValue:Pt}},companyenrich_matches:{label:`CompanyEnrich matches`,type:`json`,format:`json_object`,description:`CompanyEnrich response list.`,jsonMeta:{zodSchema:r.array(nn),exampleValue:[rn]}},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:In,zodSchema:Fn}},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:Er,exampleValue:Dr},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},Zr={is_claim_successful:{},bucket_counter:{},found_in_bucket:{},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=qr(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:Et(e)}}:{}}},company_name:{},first_name:{},addressee_name:{},address_line_1:{},address_line_2:{},job_title:{getStaticWidgets(e){return typeof e==`string`?{emoji:{value:xr(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=Yr(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=Yr(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=Yr(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:Tt.linkedin}}}},crustdata_post_list:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:Tt.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{...Xr[e],name:e}}function Qr(e,t){if(ei(e,t))return Zr[e]}function $r(e){return e in Xr}function ei(e,t){return e in Xr?Xr[e].format===t:!1}function ti(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 ni=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.is_claim_successful.bucket_counter.found_in_bucket.professional_profile_url.professional_profile.company_social_url.mobile_number`.split(`.`)),ri=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(`.`)),ii=r.enum([`production`,`sandbox`]),ai=`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.bucket:claim@1.bucket:count@1.bucket:check@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(`.`),oi=r.enum(ai),si=[`string`,`number`,`boolean`,`json`,`unknown`],ci=r.enum(si),li=r.union([r.number(),r.string()]),ui=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),di=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),fi=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),pi=r.object({type:r.literal(`static`).optional()}),mi=pi.extend({image_url:r.url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),hi=pi.extend({emoji:r.string().describe(`Country flag emoji.`)}),gi=pi.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),_i=pi.extend({attempted_providers:r.array(r.object({provider:ri})),available_providers:r.array(ri),successful_provider:ri.optional()}),vi=r.enum([`linkedin`,`job`]),yi=pi.extend({key:vi}).optional(),bi=pi.extend({result_status:r.enum([`completed`,`failed`])}).optional(),xi=pi.extend({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),Si=pi.extend({numeric:r.int().min(1).max(5)}).optional(),Ci=pi.extend({value:r.string().min(1)}).optional(),wi=r.object({display_value:pi.extend({label:r.string().optional()}),entity_logo:mi.optional(),location_indicator:hi.optional(),avatar:gi.optional(),waterfall:_i.optional(),icon:yi,action_summary:bi,sources:xi,confidence:Si,emoji:Ci}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),Ti=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),Ei=r.object({code:r.string(),summary:r.string(),message:r.string()}),Di=[`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`],Oi=r.enum(Di);Oi.nullable();const ki=r.object({type:ci,label:r.string().nullable().optional(),format:Oi.nullable().optional(),json_metadata:fi.nullable().optional()}),Ai=r.record(r.string(),ki),ji=r.enum([...ai,`input`]).nullable(),Mi=r.enum([...ai,`input`,`system`]).nullable(),Ni=r.object({ref:ji,config_hash:r.string().nullable()}),Pi=r.object({ref:Mi,environment:ii.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),Fi=r.object({value:di,status:ui,type:ci,reason:Ei.nullable(),claimed_by:Ni,resolved_by:Pi.nullable(),widgets:wi.optional(),format:Oi.nullable()}),Ii=r.object({value:di,status:ui,reason:Ei.nullable().optional(),type:ci.optional(),format:Oi.nullable().optional(),claimed_by:Ni.optional(),resolved_by:Pi.nullable().optional(),widgets:wi.optional()}),Li=r.record(r.string(),r.union([di,Ii])).openapi(`PipesInput`),Ri=r.object({id:li,fields:r.record(li,Fi)}),zi=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),Bi=r.object({type:ci,label:r.string(),added_by:r.object({ref:r.union([oi,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:Oi.nullable(),is_primary_output:r.boolean()}),Vi=r.record(r.string(),Bi),Hi=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:Oi.nullable().default(null),label:r.string().optional(),type:ci})})).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)})})}),Ui=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`,`matches`]),Wi={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`},Gi=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`,`matches`],Ki=[`eq`,`neq`],qi=r.object({type:r.literal(`vault`),connection:r.string().refine(e=>{let t=e.split(`_`)[0];return t!=null&&ri.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.`})}),Ji=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(qi)}).nullable().optional(),Yi=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(qi).min(1,{message:`Provide your own credentials to use this object.`})},{error:`Provide your own credentials to use this object.`}),Xi=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(),Zi=r.enum(Gi),Qi=r.enum(Ki),$i=r.enum([`failed`,`no_result`,`completed`,`skipped`]),ea=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:Zi.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.`})})}),ta=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:Qi.describe(`Status comparison operator: "eq" or "neq".`),value:$i.describe(`Field status to compare against: "completed", "no_result", "failed", or "skipped".`)}),na=r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(r.discriminatedUnion(`property`,[ea,ta])).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).`),ra=r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(ea).min(1).describe(`Array of value conditions to evaluate.`)}).describe(`Condition block. All conditions are combined with the chosen logic (and/or).`),ia=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:na}).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" }] } }`),aa={pipe0:{name:`pipe0`,label:`pipe0`,description:`A framework for lead and company data enrichment.`,url:`https://pipe0.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,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}},oa=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],sa=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],ca=/^[A-Z][A-Z0-9_]*$/,la=/^[A-Z][A-Z0-9_]*$/,ua=/^[a-zA-Z_][a-zA-Z0-9_]*$/,da=`SECRETS`,fa=`CONSTANTS`,pa=new Set(oa),ma=new Set(sa),ha=e=>`{${e}}`;var ga=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!ca.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]}},_a=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!la.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 va(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(!ua.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 ya(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=va(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(ha(n.name))}});for(let t of Object.keys(e.tags))pa.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))ma.has(t)||delete e.filters[t];return e}let ba=null;function xa(){return ba||=ya(),ba}async function Sa(e,t,n={}){let r=xa(),i=n.renderLimitMs??250,a={...t.inputs??{},[da]:new ga(t.secrets??{}),[fa]:new _a(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 Ca(e,t,n={}){let r=xa(),i=n.renderLimitMs??250,a={...t.inputs??{},[da]:new ga(t.secrets??{}),[fa]:new _a(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function wa(e){return xa().parse(e)}function Ta(e){let t=xa().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};Ea(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 Ea(e,t){for(let n of e)Da(n,t)}function Da(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){Ma(n.value,t,!1);return}if(typeof n.name==`string`){Oa(n,t);return}}function Oa(e,t){switch(e.name){case`for`:ka(e,t);return;case`if`:case`unless`:Aa(e,t);return;case`output`:ja(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function ka(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&&Na(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),Ea(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),Ea(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function Aa(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=Ia(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&Ma(i,t,!1),Ea(r.templates,t),a&&t.guardStack.pop()}Ea(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function ja(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=va(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 Ma(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)La(n)&&Fa(n,t,i);for(let n of e.filters)for(let e of n.args)Pa(e,t)}function Na(e,t,n){La(e)&&Fa(e,t,n)}function Pa(e,t){if(Array.isArray(e)){let n=e[1];n&&Na(n,t,!1)}else Na(e,t,!1)}function Fa(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!Ra(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!Ra(e))throw Error(`Invalid SECRETS reference β expected SECRETS.KEY (got ${Va(r)}).`);let n=e.content;if(!ca.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||!Ra(e))throw Error(`Invalid CONSTANTS reference β expected CONSTANTS.KEY (got ${Va(r)}).`);let n=e.content;if(!la.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 Ia(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&La(t)&&t.props.length===1){let e=t.props[0];if(e&&Ra(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&La(t)&&t.props.length===1){let e=t.props[0];if(e&&Ra(e)&&za(n)&&Ba(r,[`==`,`!=`]))return e.content}}return null}function La(e){return e.kind===o.PropertyAccess}function Ra(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function za(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function Ba(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function Va(e){let t=[];for(let n of e)n&&Ra(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}const Ha=`default`,Ua=`pipe0_default`;function Wa(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:ri.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function Ga(e){return`${e.provider}_${e.id}`}const Ka=new s;function qa(e){return Ka.validateSchema(e)}function Ja(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 Ya(e){try{return JSON.parse(e)}catch{}return JSON.parse(eo(e))}function Xa(e){try{return Ya(e)}catch{return}}const Za=/[A-Za-z_$]/,Qa=/[\w$]/,$a=/\s/;function eo(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(to(o));continue}if(Za.test(i)){let i=n;for(;i<r&&Qa.test(e[i]);)i++;let a=e.slice(n,i),o=i;for(;o<r&&$a.test(e[o]);)o++;t+=e[o]===`:`?JSON.stringify(a):a,n=i;continue}if(i===`,`){let t=n+1;for(;t<r&&$a.test(e[t]);)t++;if(e[t]===`}`||e[t]===`]`){n++;continue}}t+=i,n++}return t}function to(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 no=(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},ro=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},io=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},ao=(...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},oo=[`google-low`,`openai-high`,`anthropic-high`],so={"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`}},co=.03,lo=.3,uo=100,fo=100,po={"google-low":{inputPer1M:1.5,outputPer1M:9},"openai-high":{inputPer1M:5,outputPer1M:30},"anthropic-high":{inputPer1M:5,outputPer1M:25}};function mo(e){let t=so[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function ho(e){let t=so[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function go(){let e=new Set;for(let t of oo)e.add(so[t].provider);return[...e]}function _o(e){return Object.keys(e).some(e=>oo.some(t=>e.endsWith(`-in-${t}`)||e.endsWith(`-out-${t}`)))}function vo(e,t){return e/1e6*(1+lo)/co*t}function yo(e){let t=po[e];if(!t)throw Error(`Unknown AI model: ${e}`);return{in:vo(t.inputPer1M,100),out:vo(t.outputPer1M,100)}}function bo(e,t){let n=Math.round(lo*100);return`Billed per 100 ${e} tokens at ${Number(t.toPrecision(4))} credits/block (managed keys include a ${n}% margin over provider cost).`}function xo(e){let t={};for(let n of oo){let r=so[n],i=yo(n);t[`${e}-in-${n}`]={credits:{default:i.in},allowManagedConnection:!0,provider:r.provider,mode:r.billingMode,note:bo(`input`,i.in)},t[`${e}-out-${n}`]={credits:{default:i.out},allowManagedConnection:!0,provider:r.provider,mode:r.billingMode,note:bo(`output`,i.out)}}return t}function So(e,t){return{input:`${t}-in-${e}`,output:`${t}-out-${e}`}}function Co(e,t){let n=So(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 wo=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(no(e.requires.connection));for(let n of e.requires.fields??[])t.push(ro(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]:io(...t)}function Eo(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=ti(e,n,t),s=$r(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 Do=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()})},Oo=(e,t,n)=>{let r=[t.description||n,t.guide].filter(Boolean).join(` `);return r?e.describe(r):e},ko=(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},Ao=(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},jo=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,Mo=/\{\{|\{%/,No=(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=jo.test(e),i=Mo.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},Po=(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])=>{us({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=Oo(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},Io=()=>{let e=Hi;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}=Eo(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},Lo=(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:aa[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},Ro=(e,t)=>{let n=e.maxItems||200,r=Oo(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},zo=(e,t)=>{let n=Oo(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},Bo=(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=Oo(i,e);return t.add(a,{type:`range_input`,...e}),a},Vo=(e,t)=>{let n=Oo(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},Ho=(e,t)=>{let n=Oo(b.boolean_input.default(e.defaultValue),e);return t.add(n,{...e,required:!1,type:`boolean_input`}),n},Uo=(e,t)=>{let n=Oo(b.nullable_boolean_input.default(e.defaultValue),e);return t.add(n,{...e,required:!1,type:`nullable_boolean_input`,defaultValue:e.defaultValue}),n},Wo=(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=Oo(n,e);return t.add(r,{type:`text_input`,...e}),r},Go=(e,t)=>{let n=b.textarea_input;e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength));let r=Oo(n,e);return t.add(r,{type:`textarea_input`,...e}),r},Ko=(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})},qo=(e,t)=>r.unknown().check(e=>{t(e.value)&&e.issues.push({code:`custom`,input:e.value,message:`Required`})}).pipe(e),Jo=(e,t)=>{let n=Oo(qo(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},Yo=(e,t)=>{let n=Oo(qo(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},Xo=(e,t)=>{let n=b.json_schema_input;return n.check(e=>{qa(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(n=n.check(e=>{Ja(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},Zo=(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=Oo(e.defaultValue?i.default(e.defaultValue):i,e);return t.add(a,{type:`select_input`,...e}),a},Qo=(e,t,n)=>{let r=Oo(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},$o=({billableOperations:e,...t},n)=>{let i=r.enum(oo).default(t.defaultValue||`google-low`);return n.add(i,{type:`select_input`,options:oo.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:so[t].label,value:t,widgets:{logo:{url:aa[so[t].provider].logoUrl},token_pricing:{inputPerBlock:i.credits.default,outputPerBlock:a.credits.default,blockSize:100}}}}),required:!0,description:``,label:`AI Models`,...t}),i},es=(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},ts=(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},ns=(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},rs=(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},is=(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=ia.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},as=e=>{let t=na.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},os=e=>{let t=Oo(ra.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`&&us({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 ss(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 cs({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 ls=({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=cs({fieldMetadata:r,store:n,formResolvers:i});e&&o.fields.push(e)}else{let e=cs({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 us(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=Ta(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 ds=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:Oo(r.string().min(10).check(e=>us(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},fs=e=>{let t=r.string();e.required&&(t=t.min(1)),e.maxLength&&(t=t.max(e.maxLength));let n=Oo(t.check(e=>us(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=>us(e,!1,[])),n=Oo(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 ps(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:Ga({id:e.public_id,provider:e.provider})}))}})}const ms=()=>{let e=Yi;return ps(e,`required`),e},C=()=>{let e=Ji;return ps(e,`optional`),e},w=()=>{let e=Xi;return ps(e,`disabled`),e};function hs(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:Ga({id:e.public_id,provider:e.provider})}))}})}const gs=()=>{let e=Yi;return hs(e,`required`),e},_s=()=>{let e=Ji;return hs(e,`optional`),e};function vs(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:Ga({id:e.public_id,provider:e.provider})}))}})}const ys=()=>{let e=Yi;return vs(e,`required`),e},bs=()=>{let e=Ji;return vs(e,`optional`),e},T=()=>{let e=Xi;return vs(e,`disabled`),e};function xs(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:xs(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=>Lo(e,_),Ss=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},Cs=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},ws=(e,t)=>{let n=t===`selection`?xt:t===`sheet`?St:wt,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=Xa(t);return n===void 0?e:n},n).optional();return y.add(s,{type:`textarea_input`,rows:3,language:`json`,quickOptions:o,...e}),s},Ts=e=>Fo(e,_),Es=e=>ko(e,_),Ds=e=>Ao(e,_),Os=e=>No(e,_),ks=e=>Po(e,_),As=e=>Ro(e,_),js=e=>is(e,_),Ms=e=>zo(e,_),Ns=e=>Vo(e,_),O=e=>Ho(e,_),k=e=>Ko(e,_),Ps=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:Ls({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:si.filter(e=>e!==`unknown`).map(e=>({value:e,label:e}))}).default(``),destination_field_format:Ls({label:`Format`,info:`Optional display format for the field.`,path:`config.destination_field_format`,groupPath:t,sectionKey:n,required:!1,options:Di.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=>Wo(e,_),Is=e=>Go(e,_),Ls=e=>Zo(e,_),Rs=e=>$o(e,_),zs=e=>es(e,_),Bs=e=>Jo(e,_),Vs=e=>Yo(e,_),Hs=e=>Xo(e,_),Us=e=>ts(e,_),A=e=>ko(e,v),Ws=e=>Ao(e,v),Gs=e=>ns(e,v),j=e=>Fo(e,v),M=e=>Ro(e,v),Ks=e=>zo(e,v),qs=e=>Bo(e,v),Js=e=>Vo(e,v),Ys=e=>Ho(e,v),Xs=e=>Uo(e,v),N=e=>Ko(e,v,`pipe_io`),Zs=e=>Wo(e,v),Qs=e=>Go(e,v),$s=e=>Zo(e,v),ec=e=>ts(e,v),P=e=>es(e,v),F=e=>rs(e,v),I=e=>is(e,v),L=e=>Jo(e,v),tc=e=>Yo(e,v),nc=e=>Wo(e,Do(y)),rc=e=>Go(e,Do(y)),ic=e=>Zo(e,Do(y)),ac=e=>es(e,Do(y)),oc=e=>Jo(e,Do(y)),sc=e=>Jo(e,Do(y)).nullish(),cc=e=>Ho(e,Do(y)),lc=e=>ts(e,Do(y)),uc=e=>$o(e,Do(y)),dc=(e,t)=>Qo(e,Do(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 fc(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(fc).filter(e=>!Xn(e));let t={};for(let[n,r]of Object.entries(e)){let e=fc(r);Xn(e)||(t[n]=e)}return t}const pc=await l();var mc=class e{static hashObject(t){if(!pc)throw Error(`HashAPI not initialized`);let{h64ToString:n}=pc,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 hc(e,t){let n={effectId:e,config:fc(t)};return mc.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 hc(this.payload.effect_id,this.payload.config||{})}producesDynamicFields(){return!1}evolveSchema(e){return{next:e}}getRecordQueueConfig(e){return null}};const gc=`env:change@1`,_c={},vc=r.object({effect_id:r.literal(gc),connector:T(),config:r.object({environment:ii})}),yc=class extends V{effectId=gc;schema=vc;payload;billableOperations=_c;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},bc=vc,xc={effectId:gc,baseEffect:B(gc),label:`Change environment`,description:`Switch the sheet between production and sandbox.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:_c,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:gc,connector:null,config:{environment:`production`}}},Sc=`fields:add@1`,Cc={},wc=r.object({effect_id:r.literal(Sc),connector:T(),config:r.object({})}),Tc=class extends V{effectId=Sc;schema=wc;payload;billableOperations=Cc;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},Ec=wc,Dc={effectId:Sc,baseEffect:B(Sc),label:`Add field`,description:`Add a new empty field to the sheet.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:Cc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:Sc,connector:null,config:{}}},Oc=[`id`],kc=e=>Oc.includes(e.trim().toLowerCase()),Ac=e=>typeof e.kind==`string`,jc=e=>Ac(e)?e:{kind:`field`,field:e},H=e=>({kind:`field`,field:e}),Mc=(...e)=>({kind:`all`,of:e.map(jc)}),Nc=(...e)=>({kind:`any`,of:e.map(jc)}),Pc=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 Ic(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(Ic)}}function Lc(e,t){let n=Rc(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function Rc(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=Rc(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=Rc(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function zc(e,t){let n={pipeId:e,config:fc(t)};return mc.hashObject(n)}function Bc(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:mc.hashObject(fc(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[]}getBucketRequirements(){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 Ic(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return zc(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return Bc(e,this.inputFields)}};const Vc={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 W(e){return Vc[e]}function Hc(e,t){return typeof t==`string`?t:t(e)}function Uc(e,t){return typeof t==`string`||t===null?t:t(e)}function Wc(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:Hc(e,a[r].type),format:Uc(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 Gc(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:Hc(e,r[t].type),format:Uc(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function Kc(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=Ta(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=>Gc(t,e)?.type||n,format:r};a.push(t.required?H(i):Pc(i))}return Mc(...a)}function qc(e){let t=new Set;for(let n of e)if(n)try{let e=Ta(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function Jc(e){let t=new Set;for(let n of e)if(n)try{let e=Ta(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const G={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 Yc(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 Ic(e).map(({field:e})=>e)}function Zc({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function Qc({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function $c({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 el(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 tl(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function nl(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 rl=`agent:run@1`,il=`agent-run-v1`,al=[{value:`web_researcher`,label:`Web researcher`,widgets:{emoji:{char:`π`}}}],ol={...xo(il),"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.`}},sl=r.object({pipe_id:r.literal(rl),connector:C(),run_if:x(),config:r.object({agent_type:Ls({sectionKey:`general`,groupPath:`config.prompt`,path:`config.agent_type`,label:`Agent type`,defaultValue:`web_researcher`,options:[...al],required:!0}),prompt:ds({sectionKey:`general`,path:`config.prompt`,placeholder:W(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:Rs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:ol})})}),cl=class extends U{pipeId=rl;payload;payloadSchema=sl;billableOperations=ol;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[...mo(this.payload.config.model),`parallel`]}estimateBillableOperations(e){return[...Co(e,{model:this.payload.config.model,prefix:il,inputTokens:2e4,outputTokens:1500}),{billableOperation:`agent-run-v1-search-parallel`,quantity:e.count*4},{billableOperation:`agent-run-v1-extract-parallel`,quantity:e.count*1}]}getInputRequirement(){return Kc([this.payload.config.prompt.template])}getSecretRequirements(){return qc([this.payload.config.prompt.template])}getConstantRequirements(){return Jc([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=Ta(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[...ho(this.payload.config.model),{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`parallel`,rateLimitRatio:1,rateLimitOperation:`parallel_extract`,allowManagedConnection:!0}]}},ll=sl,ul={pipeId:rl,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:K(rl),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:[G.AI],docPath:q(rl),defaultInputRequirement:null,billableOperations:ol,allowedUserConnectionProviders:[...go(),`parallel`],managedProviders:[...go(),`parallel`],deprecatedProviders:[],defaultPayload:{pipe_id:rl,connector:null,run_if:null,config:{agent_type:`web_researcher`,model:`google-low`,prompt:{template:``,json_schemas:{}}}}};function Y(e,...t){return t.map(t=>({billableOperation:t,quantity:e.count}))}function dl(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 fl(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 pl=`company:domain:workemail@1`,ml=g(`company_domain`),hl=g(`work_email`),gl=r.object({pipe_id:r.literal(pl),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[hl.name]:E({fieldName:hl.name})})),output_fields:R(r.object({[ml.name]:k({fieldName:ml.name})}))}).optional()}),_l=e=>H(J(hl,e)),vl={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},yl=class extends U{pipeId=pl;payload;payloadSchema=gl;billableOperations=vl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-domain-workemail-v1-pipe0`)}getInputRequirement(){return _l(this.payload.config)}getRawOutputFields(){return{[ml.name]:this.catalogOutput(ml)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},bl=gl,xl={pipeId:pl,basePipe:K(pl),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:[G.EMAIL,G.WORK_EMAIL,G.WEBSITE],docPath:q(pl),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:vl,defaultInputRequirement:_l(null),defaultPayload:{pipe_id:pl,connector:null,run_if:null,config:{input_fields:{[hl.name]:{alias:``}},output_fields:{[ml.name]:{alias:``,enabled:!0}}}}},Sl=`company:funding:leadmagic@2`,Cl=g(`company_name`),wl=g(`company_domain`),Tl=g(`funding_history`),El=g(`funding_total_usd`),Dl=g(`leadmagic_competitor_list`),Ol=g(`leadmagic_acquisition_history`),kl=g(`leadmagic_company_news_list`),Al=r.object({pipe_id:r.literal(Sl),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[Cl.name]:E({fieldName:Cl.name}),[wl.name]:E({fieldName:wl.name})})),output_fields:R(r.object({[Tl.name]:k({fieldName:Tl.name}),[El.name]:k({fieldName:El.name}),[Dl.name]:k({fieldName:Dl.name}),[Ol.name]:k({fieldName:Ol.name}),[kl.name]:k({fieldName:kl.name})}))}).optional()}),jl=e=>Nc(J(Cl,e),J(wl,e)),Ml={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Nl=class extends U{pipeId=Sl;payload;payloadSchema=Al;billableOperations=Ml;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(e){return Y(e,`company-funding-leadmagic-v2-leadmagic`)}getInputRequirement(){return jl(this.payload.config)}getRawOutputFields(){return{[Tl.name]:this.catalogOutput(Tl),[El.name]:this.catalogOutput(El),[Ol.name]:this.catalogOutput(Ol),[kl.name]:this.catalogOutput(kl),[Dl.name]:this.catalogOutput(Dl)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},Pl=Al,Fl={pipeId:Sl,basePipe:K(Sl),label:`Funding history`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[G.FINANCIAL_DATA],docPath:q(Sl),billableOperations:Ml,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:jl(null),defaultPayload:{pipe_id:Sl,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:``}}}}},Il=g(`company_name`),Ll=g(`company_profile_url`),Rl=g(`company_domain`),zl=g(`cleaned_company_name`),Bl=`company:identity@3`,Vl=r.object({pipe_id:r.literal(Bl),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Il.name]:E({fieldName:Il.name})})),output_fields:R(r.object({[Ll.name]:k({fieldName:Ll.name}),[zl.name]:k({fieldName:zl.name}),[Rl.name]:k({fieldName:Rl.name})}))}).optional()}),Hl=e=>H(J(Il,e)),Ul={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3,level1:{credits:.2,weight:1}},mode:`always`,provider:`pipe0`}},Wl=class extends U{pipeId=Bl;payload;payloadSchema=Vl;billableOperations=Ul;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-identity-v3-pipe0`)}getInputRequirement(){return Hl(this.payload.config)}getRawOutputFields(){return{[Ll.name]:this.catalogOutput(Ll),[Rl.name]:this.catalogOutput(Rl),[zl.name]:this.catalogOutput(zl)}}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}]}},Gl=Vl,Kl={pipeId:Bl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(Bl),label:`Company identity`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[G.WEBSITE,G.LINKEDIN],docPath:q(Bl),billableOperations:Ul,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Hl(null),defaultPayload:{pipe_id:Bl,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}}}}},ql=g(`company_domain`),Jl=g(`company_name`),Yl=g(`crustdata_company_identity_matches`),Xl=`company:identity:crustdata@1`,Zl=r.object({pipe_id:r.literal(Xl),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[ql.name]:E({fieldName:ql.name}),[Jl.name]:E({fieldName:Jl.name})})),output_fields:R(r.object({[Yl.name]:k({fieldName:Yl.name})}))}).optional()}),Ql=e=>Nc(J(ql,e),J(Jl,e)),$l={"company-identity-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:.001},mode:`onSuccess`,provider:`crustdata`}},eu=class extends U{pipeId=Xl;payload;payloadSchema=Zl;billableOperations=$l;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return Y(e,`company-identity-crustdata-v1-crustdata`)}getInputRequirement(){return Ql(this.payload.config)}getRawOutputFields(){return{[Yl.name]:this.catalogOutput(Yl)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_identify`,allowManagedConnection:!0}]}},tu=Zl,nu={pipeId:Xl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(Xl),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:[G.WEBSITE,G.LINKEDIN],docPath:q(Xl),billableOperations:$l,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Ql(null),defaultPayload:{pipe_id:Xl,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``},company_name:{alias:``}},output_fields:{crustdata_company_identity_matches:{alias:``,enabled:!0}}}}},ru=g(`company_domain`),iu=g(`companyenrich_matches`),au=`company:lookalikes:companyenrich@2`,ou=r.object({pipe_id:r.literal(au),run_if:x(),connector:C(),config:r.object({limit:Bs({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({[ru.name]:E({fieldName:ru.name})})),output_fields:R(r.object({[iu.name]:k({fieldName:iu.name})}))}).optional()}),su=e=>H(J(ru,e)),cu={"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`}},lu=class extends U{pipeId=au;payload;payloadSchema=ou;billableOperations=cu;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 su(this.payload.config)}getRawOutputFields(){return{[iu.name]:this.catalogOutput(iu)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},uu=ou,du={pipeId:au,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(au),label:`Find company lookalikes`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find companies similar to the company you provide as input.`,tags:[G.COMPANY_PROFILES],docPath:q(au),billableOperations:cu,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:su(null),defaultPayload:{pipe_id:au,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},fu=g(`company_domain`),pu=g(`crustdata_companyenrich_match`),mu=`company:match:crustdata@2`,hu=r.object({pipe_id:r.literal(mu),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[fu.name]:E({fieldName:fu.name})})),output_fields:R(r.object({[pu.name]:k({fieldName:pu.name})}))}).optional()}),gu=e=>H(J(fu,e)),_u={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.2,weight:1}},mode:`onSuccess`,provider:`crustdata`}},vu=class extends U{pipeId=mu;payload;payloadSchema=hu;billableOperations=_u;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return Y(e,`company-match-crustdata-v2-crustdata`)}getInputRequirement(){return gu(this.payload.config)}getRawOutputFields(){return{[pu.name]:this.catalogOutput(pu)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},yu=hu,bu={pipeId:mu,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(mu),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[G.WEBSITE,G.LINKEDIN],docPath:q(mu),billableOperations:_u,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:gu(null),defaultPayload:{pipe_id:mu,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},xu=g(`company_domain`),Su=g(`company_name`),Cu=g(`company_profile_url`),wu=g(`logodev_describe_match`),Tu=g(`logo_url`),Eu=`company:match:logodev@2`,Du=r.object({pipe_id:r.literal(Eu),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[xu.name]:E({fieldName:xu.name})})),output_fields:R(r.object({[Cu.name]:k({fieldName:Cu.name}),[Tu.name]:k({fieldName:Tu.name}),[Su.name]:k({fieldName:Su.name}),[wu.name]:k({fieldName:wu.name})}))}).optional()}),Ou=e=>H(J(xu,e)),ku={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},Au=class extends U{pipeId=Eu;payload;payloadSchema=Du;billableOperations=ku;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(e){return Y(e,`company-match-logodev-v2-logodev`)}getInputRequirement(){return Ou(this.payload.config)}getRawOutputFields(){return{[Cu.name]:this.catalogOutput(Cu),[Su.name]:this.catalogOutput(Su),[Tu.name]:this.catalogOutput(Tu),[wu.name]:this.catalogOutput(wu)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},ju=Du,Mu={pipeId:Eu,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(Eu),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:[G.WEBSITE,G.LINKEDIN],docPath:q(Eu),billableOperations:ku,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Ou(null),defaultPayload:{pipe_id:Eu,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}}}}},Nu=`company:newssummary:domain@1`,Pu=g(`company_news_summary`),Fu=g(`company_domain`),Iu=r.object({pipe_id:r.literal(Nu),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[Fu.name]:E({fieldName:Fu.name})})),output_fields:R(r.object({[Pu.name]:k({fieldName:Pu.name})}))}).optional()}),Lu=e=>H(J(Fu,e)),Ru={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:2},mode:`always`,provider:`pipe0`}},zu=class extends U{pipeId=Nu;payloadSchema=Iu;billableOperations=Ru;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-newssummary-domain-v1-pipe0`)}getInputRequirement(){return Lu(this.payload.config)}getRawOutputFields(){return{[Pu.name]:this.catalogOutput(Pu)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0}]}},Bu=Iu,Vu={pipeId:Nu,basePipe:K(Nu),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:[G.NEWS],docPath:q(Nu),billableOperations:Ru,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Lu(null),defaultPayload:{pipe_id:Nu,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Hu=g(`company_domain`),Uu=g(`company_profile_url`),Wu=g(`company_description`),Gu=g(`company_industry`),Ku=g(`company_region`),qu=g(`headcount`),Ju=g(`estimated_revenue`),Yu=g(`founded_year`),Xu=g(`company_name`),Zu=`company:overview@3`,Qu=r.object({pipe_id:r.literal(Zu),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Hu.name]:E({fieldName:Hu.name}),[Uu.name]:E({fieldName:Uu.name})})),output_fields:R(r.object({[Wu.name]:k({fieldName:Wu.name}),[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}),[Xu.name]:k({fieldName:Xu.name})}))}).optional()}),$u=e=>Nc(J(Hu,e),J(Uu,e)),ed={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`always`}},td=class extends U{pipeId=Zu;payloadSchema=Qu;billableOperations=ed;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-overview-v3-pipe0`)}getInputRequirement(){return $u(this.payload.config)}getRawOutputFields(){return{[Wu.name]:this.catalogOutput(Wu),[Gu.name]:this.catalogOutput(Gu),[Ku.name]:this.catalogOutput(Ku),[qu.name]:this.catalogOutput(qu),[Ju.name]:this.catalogOutput(Ju),[Yu.name]:this.catalogOutput(Yu),[Xu.name]:this.catalogOutput(Xu)}}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}]}},nd=Qu,rd={pipeId:Zu,basePipe:K(Zu),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:q(Zu),tags:[G.WEBSITE,G.LINKEDIN,G.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:ed,defaultInputRequirement:$u(null),defaultPayload:{pipe_id:Zu,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}}}}},id=g(`company_domain`),ad=g(`technology_list`),od=g(`spending_trend`),sd=g(`technology_match_builtwith`),cd=`company:techstack:builtwith@2`,ld=r.object({pipe_id:r.literal(cd),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[id.name]:E({fieldName:id.name})})),output_fields:R(r.object({[ad.name]:k({fieldName:ad.name}),[sd.name]:k({fieldName:sd.name}),[od.name]:k({fieldName:od.name})}))}).optional()}),ud=e=>H(J(id,e)),dd={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},fd=class extends U{pipeId=cd;payload;payloadSchema=ld;billableOperations=dd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(e){return Y(e,`company-techstack-builtwith-v2-builtwith`)}getInputRequirement(){return ud(this.payload.config)}getRawOutputFields(){return{[ad.name]:this.catalogOutput(ad),[sd.name]:this.catalogOutput(sd),[od.name]:this.catalogOutput(od)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},pd=ld,md={pipeId:cd,basePipe:K(cd),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:[G.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:q(cd),billableOperations:dd,defaultInputRequirement:ud(null),defaultPayload:{pipe_id:cd,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}}}}},hd={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},gd=`contact:create:resend@1`,_d={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},vd=g(`email`),yd=g(`name`),bd=g(`resend_contact_id`),xd=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],Sd=r.object({pipe_id:r.literal(gd),connector:ms(),run_if:x(),config:r.object({segment_id:Us({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:no(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return xd;if(!t)throw new hd.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 hd.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({[yd.name]:E({fieldName:yd.name}),[vd.name]:E({fieldName:vd.name})})),output_fields:R(r.object({[bd.name]:k({fieldName:bd.name})}))})}),Cd=e=>Mc(H(J(vd,e)),H(J(yd,e))),wd=class extends U{pipeId=gd;payload;payloadSchema=Sd;billableOperations=_d;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(e){return Y(e,`contact-create-resend-v1-resend`)}getInputRequirement(){return Cd(this.payload.config)}getRawOutputFields(){return{[bd.name]:this.catalogOutput(bd)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Td=Sd,Ed={pipeId:gd,basePipe:K(gd),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[G.EMAIL],docPath:q(gd),billableOperations:_d,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:Cd(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:gd,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}}}}},Dd=`company:funding:leadmagic@1`,Od=g(`company_name`),kd=g(`company_website_url`),Ad=g(`funding_history`),jd=g(`funding_total_usd`),Md=g(`leadmagic_competitor_list`),Nd=g(`leadmagic_acquisition_history`),Pd=g(`leadmagic_company_news_list`),Fd=r.object({pipe_id:r.literal(Dd),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[Od.name]:E({fieldName:Od.name}),[kd.name]:E({fieldName:kd.name})})),output_fields:R(r.object({[Ad.name]:k({fieldName:Ad.name}),[jd.name]:k({fieldName:jd.name}),[Md.name]:k({fieldName:Md.name}),[Nd.name]:k({fieldName:Nd.name}),[Pd.name]:k({fieldName:Pd.name})}))}).optional()}),Id=e=>Nc(J(Od,e),J(kd,e)),Ld={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Rd=class extends U{pipeId=Dd;payload;payloadSchema=Fd;billableOperations=Ld;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(e){return Y(e,`company-funding-leadmagic-v1-leadmagic`)}getInputRequirement(){return Id(this.payload.config)}getRawOutputFields(){return{[Ad.name]:this.catalogOutput(Ad),[jd.name]:this.catalogOutput(jd)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},zd=Fd,Bd={pipeId:Dd,basePipe:K(Dd),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:[G.FINANCIAL_DATA],docPath:q(Dd),billableOperations:Ld,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:Id(null),defaultPayload:{pipe_id:Dd,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:``}}}}},Vd=g(`company_name`),Hd=g(`company_social_url`),Ud=g(`company_website_url`),Wd=g(`cleaned_company_name`),Gd=`company:identity@1`,Kd=r.object({pipe_id:r.literal(Gd),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Vd.name]:E({fieldName:Vd.name})})),output_fields:R(r.object({[Hd.name]:k({fieldName:Hd.name}),[Wd.name]:k({fieldName:Wd.name}),[Ud.name]:k({fieldName:Ud.name})}))}).optional()}),qd=e=>H(J(Vd,e)),Jd={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Yd=class extends U{pipeId=Gd;payload;payloadSchema=Kd;billableOperations=Jd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-identity-v1-pipe0`)}getInputRequirement(){return qd(this.payload.config)}getRawOutputFields(){return{[Hd.name]:this.catalogOutput(Hd),[Ud.name]:this.catalogOutput(Ud),[Wd.name]:this.catalogOutput(Wd)}}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}]}},Xd=Kd,Zd={pipeId:Gd,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(Gd),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:[G.WEBSITE,G.LINKEDIN],docPath:`/resources/pipe-catalog/company:identity/1`,billableOperations:Jd,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:qd(null),defaultPayload:{pipe_id:Gd,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}}}}},Qd=g(`company_name`),$d=g(`company_profile_url`),ef=g(`company_website_url`),tf=g(`cleaned_company_name`),nf=`company:identity@2`,rf=r.object({pipe_id:r.literal(nf),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Qd.name]:E({fieldName:Qd.name})})),output_fields:R(r.object({[$d.name]:k({fieldName:$d.name}),[tf.name]:k({fieldName:tf.name}),[ef.name]:k({fieldName:ef.name})}))}).optional()}),af=e=>H(J(Qd,e)),of={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},sf=class extends U{pipeId=nf;payload;payloadSchema=rf;billableOperations=of;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-identity-v2-pipe0`)}getInputRequirement(){return af(this.payload.config)}getRawOutputFields(){return{[$d.name]:this.catalogOutput($d),[ef.name]:this.catalogOutput(ef),[tf.name]:this.catalogOutput(tf)}}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}]}},cf=rf,lf={pipeId:nf,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(nf),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:[G.WEBSITE,G.LINKEDIN],docPath:q(nf),billableOperations:of,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:af(null),defaultPayload:{pipe_id:nf,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}}}}},uf=g(`company_website_url`),df=g(`companyenrich_matches`),ff=`company:lookalikes:companyenrich@1`,pf=r.object({pipe_id:r.literal(ff),run_if:x(),connector:C(),config:r.object({limit:Bs({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({[uf.name]:E({fieldName:uf.name})})),output_fields:R(r.object({[df.name]:k({fieldName:df.name})}))}).optional()}),mf=e=>H(J(uf,e)),hf={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},gf=class extends U{pipeId=ff;payload;payloadSchema=pf;billableOperations=hf;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 mf(this.payload.config)}getRawOutputFields(){return{[df.name]:this.catalogOutput(df)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},_f=pf,vf={pipeId:ff,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(ff),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:[G.COMPANY_PROFILES],docPath:q(ff),billableOperations:hf,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:mf(null),defaultPayload:{pipe_id:ff,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},yf=g(`company_website_url`),bf=g(`crustdata_companyenrich_match`),xf=`company:match:crustdata@1`,Sf=r.object({pipe_id:r.literal(xf),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[yf.name]:E({fieldName:yf.name})})),output_fields:R(r.object({[bf.name]:k({fieldName:bf.name})}))}).optional()}),Cf=e=>H(J(yf,e)),wf={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},Tf=class extends U{pipeId=xf;payload;payloadSchema=Sf;billableOperations=wf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return Y(e,`company-match-crustdata-v1-crustdata`)}getInputRequirement(){return Cf(this.payload.config)}getRawOutputFields(){return{[bf.name]:this.catalogOutput(bf)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Ef=Sf,Df={pipeId:xf,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(xf),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:[G.WEBSITE,G.LINKEDIN],docPath:q(xf),billableOperations:wf,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Cf(null),defaultPayload:{pipe_id:xf,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`),kf=g(`company_name`),Af=g(`company_profile_url`),jf=g(`logodev_describe_match`),Mf=g(`logo_url`),Nf=`company:match:logodev@1`,Pf=r.object({pipe_id:r.literal(Nf),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[Of.name]:E({fieldName:Of.name})})),output_fields:R(r.object({[Af.name]:k({fieldName:Af.name}),[Mf.name]:k({fieldName:Mf.name}),[kf.name]:k({fieldName:kf.name}),[jf.name]:k({fieldName:jf.name})}))}).optional()}),Ff=e=>H(J(Of,e)),If={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},Lf=class extends U{pipeId=Nf;payload;payloadSchema=Pf;billableOperations=If;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(e){return Y(e,`company-match-logodev-v1-logodev`)}getInputRequirement(){return Ff(this.payload.config)}getRawOutputFields(){return{[Af.name]:this.catalogOutput(Af),[kf.name]:this.catalogOutput(kf),[Mf.name]:this.catalogOutput(Mf),[jf.name]:this.catalogOutput(jf)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},Rf=Pf,zf={pipeId:Nf,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(Nf),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:[G.WEBSITE,G.LINKEDIN],docPath:q(Nf),billableOperations:If,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Ff(null),defaultPayload:{pipe_id:Nf,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}}}}},Bf=`company:newssummary:website@1`,Vf=g(`company_news_summary`),Hf=g(`company_website_url`),Uf=r.object({pipe_id:r.literal(Bf),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[Hf.name]:E({fieldName:Hf.name})})),output_fields:R(r.object({[Vf.name]:k({fieldName:Vf.name})}))}).optional()}),Wf=e=>H(J(Hf,e)),Gf={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},Kf=class extends U{pipeId=Bf;payloadSchema=Uf;billableOperations=Gf;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-newssummary-website-v1-pipe0`)}getInputRequirement(){return Wf(this.payload.config)}getRawOutputFields(){return{[Vf.name]:this.catalogOutput(Vf)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},qf=Uf,Jf={pipeId:Bf,basePipe:K(Bf),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:[G.NEWS],docPath:q(Bf),billableOperations:Gf,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Wf(null),defaultPayload:{pipe_id:Bf,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Yf=g(`company_website_url`),Xf=g(`company_social_url`),Zf=g(`company_description`),Qf=g(`company_industry`),$f=g(`company_region`),ep=g(`headcount`),tp=g(`estimated_revenue`),np=g(`founded_year`),rp=`company:overview@1`,ip=r.object({pipe_id:r.literal(rp),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Yf.name]:E({fieldName:Yf.name}),[Xf.name]:E({fieldName:Xf.name})})),output_fields:R(r.object({[Zf.name]:k({fieldName:Zf.name}),[Qf.name]:k({fieldName:Qf.name}),[$f.name]:k({fieldName:$f.name}),[ep.name]:k({fieldName:ep.name}),[tp.name]:k({fieldName:tp.name}),[np.name]:k({fieldName:np.name})}))}).optional()}),ap=e=>Nc(J(Yf,e),J(Xf,e)),op={"company-overview-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},sp=class extends U{pipeId=rp;payloadSchema=ip;billableOperations=op;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-overview-v1-pipe0`)}getInputRequirement(){return ap(this.payload.config)}getRawOutputFields(){return{[Zf.name]:this.catalogOutput(Zf),[Qf.name]:this.catalogOutput(Qf),[$f.name]:this.catalogOutput($f),[ep.name]:this.catalogOutput(ep),[tp.name]:this.catalogOutput(tp),[np.name]:this.catalogOutput(np)}}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}]}},cp=ip,lp={pipeId:rp,basePipe:K(rp),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:[G.WEBSITE,G.LINKEDIN,G.FINANCIAL_DATA,G.DEPRECATED],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:op,defaultInputRequirement:ap(null),defaultPayload:{pipe_id:rp,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}}}}},up=g(`company_website_url`),dp=g(`company_profile_url`),fp=g(`company_description`),pp=g(`company_industry`),mp=g(`company_region`),hp=g(`headcount`),gp=g(`estimated_revenue`),_p=g(`founded_year`),vp=g(`company_name`),yp=`company:overview@2`,bp=r.object({pipe_id:r.literal(yp),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[up.name]:E({fieldName:up.name}),[dp.name]:E({fieldName:dp.name})})),output_fields:R(r.object({[fp.name]:k({fieldName:fp.name}),[pp.name]:k({fieldName:pp.name}),[mp.name]:k({fieldName:mp.name}),[hp.name]:k({fieldName:hp.name}),[gp.name]:k({fieldName:gp.name}),[_p.name]:k({fieldName:_p.name}),[vp.name]:k({fieldName:vp.name})}))}).optional()}),xp=e=>Nc(J(up,e),J(dp,e)),Sp={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},Cp=class extends U{pipeId=yp;payloadSchema=bp;billableOperations=Sp;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-overview-v2-pipe0`)}getInputRequirement(){return xp(this.payload.config)}getRawOutputFields(){return{[fp.name]:this.catalogOutput(fp),[pp.name]:this.catalogOutput(pp),[mp.name]:this.catalogOutput(mp),[hp.name]:this.catalogOutput(hp),[gp.name]:this.catalogOutput(gp),[_p.name]:this.catalogOutput(_p),[vp.name]:this.catalogOutput(vp)}}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}]}},wp=bp,Tp={pipeId:yp,basePipe:K(yp),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(yp),tags:[G.WEBSITE,G.LINKEDIN,G.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Sp,defaultInputRequirement:xp(null),defaultPayload:{pipe_id:yp,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}}}}},Ep=g(`company_website_url`),Dp=g(`technology_list`),Op=g(`spending_trend`),kp=g(`technology_match_builtwith`),Ap=`company:techstack:builtwith@1`,jp=r.object({pipe_id:r.literal(Ap),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[Ep.name]:E({fieldName:Ep.name})})),output_fields:R(r.object({[Dp.name]:k({fieldName:Dp.name}),[kp.name]:k({fieldName:kp.name}),[Op.name]:k({fieldName:Op.name})}))}).optional()}),Mp=e=>H(J(Ep,e)),Np={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},Pp=class extends U{pipeId=Ap;payload;payloadSchema=jp;billableOperations=Np;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(e){return Y(e,`company-techstack-builtwith-v1-builtwith`)}getInputRequirement(){return Mp(this.payload.config)}getRawOutputFields(){return{[Dp.name]:this.catalogOutput(Dp),[kp.name]:this.catalogOutput(kp),[Op.name]:this.catalogOutput(Op)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Fp=jp,Ip={pipeId:Ap,basePipe:K(Ap),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:[G.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:q(Ap),billableOperations:Np,defaultInputRequirement:Mp(null),defaultPayload:{pipe_id:Ap,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}}}}},Lp=`company:websiteurl:email@1`,Rp=g(`company_website_url`),zp=g(`email`),Bp=r.object({pipe_id:r.literal(Lp),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[zp.name]:E({fieldName:zp.name})})),output_fields:R(r.object({[Rp.name]:k({fieldName:Rp.name})}))}).optional()}),Vp=e=>H(J(zp,e)),Hp={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Up=class extends U{pipeId=Lp;payload;payloadSchema=Bp;billableOperations=Hp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-websiteurl-email-v1-pipe0`)}getInputRequirement(){return Vp(this.payload.config)}getRawOutputFields(){return{[Rp.name]:this.catalogOutput(Rp)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Wp=Bp,Gp={pipeId:Lp,basePipe:K(Lp),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:[G.EMAIL,G.WORK_EMAIL,G.WEBSITE],docPath:q(Lp),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Hp,defaultInputRequirement:Vp(null),defaultPayload:{pipe_id:Lp,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},Kp=`people:email:iswork@1`,qp=g(`is_work_email`),Jp=g(`email`),Yp=r.object({pipe_id:r.literal(Kp),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Jp.name]:E({fieldName:Jp.name})})),output_fields:R(r.object({[qp.name]:k({fieldName:qp.name})}))}).optional()}),Xp=e=>H(J(Jp,e)),Zp={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Qp=class extends U{pipeId=Kp;payload;payloadSchema=Yp;billableOperations=Zp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`people-email-iswork-v1-pipe0`)}getInputRequirement(){return Xp(this.payload.config)}getRawOutputFields(){return{[qp.name]:this.catalogOutput(qp)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},$p=Yp,em={pipeId:Kp,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:[G.EMAIL,G.WORK_EMAIL],docPath:q(Kp),billableOperations:Zp,basePipe:K(Kp),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Xp(null),defaultPayload:{pipe_id:Kp,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},tm=`people:email:validate:zerobounce@1`,nm=g(`work_email`),rm=g(`is_email_valid`),im=r.object({pipe_id:r.literal(tm),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[nm.name]:E({fieldName:nm.name})})),output_fields:R(r.object({[rm.name]:k({fieldName:rm.name})}))}).optional()}),am=e=>H(J(nm,e)),om={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},sm=class extends U{pipeId=tm;payload;payloadSchema=im;billableOperations=om;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return Y(e,`people-email-validate-zerobounce-v1-zerobounce`)}getInputRequirement(){return am(this.payload.config)}getRawOutputFields(){return{[rm.name]:this.catalogOutput(rm)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},cm=im,lm={pipeId:tm,basePipe:K(tm),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:[G.EMAIL],docPath:`/resources/pipe-catalog/people:email:validate:zerobounce/1`,billableOperations:om,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:am(null),defaultPayload:{pipe_id:tm,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},um=`people:email:validate:zerobounce@2`,dm=g(`email`),fm=g(`zerobounce_validation_status`),pm=g(`zerobounce_validation_match`),mm=r.object({pipe_id:r.literal(um),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[dm.name]:E({fieldName:dm.name})})),output_fields:R(r.object({[pm.name]:k({fieldName:pm.name}),[fm.name]:k({fieldName:fm.name})}))}).optional()}),hm=e=>H(J(dm,e)),gm={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},_m=class extends U{pipeId=um;payload;payloadSchema=mm;billableOperations=gm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return Y(e,`people-email-validate-zerobounce-v2-zerobounce`)}getInputRequirement(){return hm(this.payload.config)}getRawOutputFields(){return{[fm.name]:this.catalogOutput(fm),[pm.name]:this.catalogOutput(pm)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},vm=mm,ym={pipeId:um,basePipe:K(um),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:[G.EMAIL],docPath:q(um),billableOperations:gm,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:hm(null),defaultPayload:{pipe_id:um,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 bm(e){return(e.widgets||{}).display_value?.label}function xm(e){console.dir(e,{depth:100})}function Sm(e){return typeof e==`object`&&e?JSON.stringify(e):e}function X(e){return e===0?1:e===1?.3:e===2?.2:.1}function Cm(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=Cm(e[n])}),t}const wm={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 Z(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 Tm=`people:identity:email:waterfall@1`,Em=g(`email`),Dm=g(`company_website_url`),Om=g(`name`),km=g(`job_title`),Am=g(`profile_url`),jm=g(`company_profile_url`),Mm=g(`company_name`),Nm=[`findymail`,`hunter`,`crustdata`],Pm=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],Fm=r.object({pipe_id:r.literal(Tm),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:Nm,defaultProviders:Pm,sectionKey:`general`}),input_fields:z(r.object({[Em.name]:E({fieldName:Em.name})})),output_fields:R(r.object({[Om.name]:k({fieldName:Om.name}),[Am.name]:k({fieldName:Am.name}),[km.name]:k({fieldName:km.name}),[Dm.name]:k({fieldName:Dm.name}),[Mm.name]:k({fieldName:Mm.name}),[jm.name]:k({fieldName:jm.name})}))}).optional()}),Im=e=>H(J(Em,e)),Lm={"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`}},Rm=class extends U{pipeId=Tm;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 Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return Im(this.payload.config)}getRawOutputFields(){return{[Om.name]:this.catalogOutput(Om,{isPrimaryOutput:!0}),[Am.name]:this.catalogOutput(Am,{isPrimaryOutput:!0}),[km.name]:this.catalogOutput(km,{isPrimaryOutput:!0}),[Mm.name]:this.catalogOutput(Mm,{isPrimaryOutput:!0}),[jm.name]:this.catalogOutput(jm,{isPrimaryOutput:!0}),[Dm.name]:this.catalogOutput(Dm,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},zm=Fm,Bm={pipeId:Tm,basePipe:K(Tm),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:[G.EMAIL,G.PEOPLE_PROFILES],docPath:q(Tm),managedProviders:Nm,deprecatedProviders:[],allowedUserConnectionProviders:Nm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Lm,defaultInputRequirement:Im(null),defaultPayload:{pipe_id:Tm,connector:null,run_if:null,config:{providers:Pm,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}}}}},Vm=`people:match:role:waterfall@1`,Hm=g(`company_website_url`),Um=g(`role_finder_match`),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`,defaultProviders:Gm,availableProviders:Wm}),roles:Ds({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:z(r.object({[Hm.name]:E({fieldName:Hm.name})})),output_fields:R(r.object({[Um.name]:k({fieldName:Um.name})}))})}),qm=e=>Nc(J(Hm,e)),Jm={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Ym=class extends U{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 Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return qm(this.payload.config)}getRawOutputFields(){return{[Um.name]:this.catalogOutput(Um,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Xm=Km,Zm={pipeId:Vm,basePipe:K(Vm),managedProviders:Wm,deprecatedProviders:[],allowedUserConnectionProviders:Wm,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:[G.PEOPLE_PROFILES],docPath:q(Vm),billableOperations:Jm,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:qm(null),defaultPayload:{pipe_id:Vm,run_if:null,connector:null,config:{roles:[],providers:Gm,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},Qm=`people:mobilenumber:professionalprofile:waterfall@1`,$m=g(`professional_profile_url`),eh=g(`mobile_number`),th=[`leadmagic`,`prospeo`],nh=[{provider:`leadmagic`},{provider:`prospeo`}],rh=r.object({pipe_id:r.literal(Qm),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:nh,availableProviders:th}),input_fields:z(r.object({[$m.name]:E({fieldName:$m.name})})),output_fields:R(r.object({[eh.name]:k({fieldName:eh.name})}))}).optional()}),ih=e=>H(J($m,e)),ah={"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`}},oh=class extends U{pipeId=Qm;payload;payloadSchema=rh;billableOperations=ah;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return ih(this.payload.config)}getRawOutputFields(){return{[eh.name]:this.catalogOutput(eh)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},sh=rh,ch={pipeId:Qm,basePipe:K(Qm),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:[G.PHONE,G.WATERFALL],billableOperations:ah,defaultInputRequirement:ih(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:th,deprecatedProviders:[],allowedUserConnectionProviders:th,defaultPayload:{pipe_id:Qm,connector:null,run_if:null,config:{providers:nh,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},lh=`people:mobilenumber:workemail:waterfall@1`,uh=g(`work_email`),dh=g(`mobile_number`),fh=[`leadmagic`],ph=[{provider:`leadmagic`}],mh=r.object({pipe_id:r.literal(lh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:fh,defaultProviders:ph}),input_fields:z(r.object({[uh.name]:E({fieldName:uh.name})})),output_fields:R(r.object({[dh.name]:k({fieldName:dh.name})}))}).optional()}),hh=e=>H(J(uh,e)),gh={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},_h=class extends U{pipeId=lh;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 Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return hh(this.payload.config)}getRawOutputFields(){return{[dh.name]:this.catalogOutput(dh)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},vh=mh,yh={pipeId:lh,basePipe:K(lh),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:[G.PHONE,G.WATERFALL],docPath:`/resources/pipe-catalog/people:mobilenumber:workemail:waterfall/1`,billableOperations:gh,defaultInputRequirement:hh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:fh,managedProviders:fh,deprecatedProviders:[],defaultPayload:{pipe_id:lh,connector:null,run_if:null,config:{providers:ph,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},bh=`people:name:split@1`,xh=g(`name`),Sh=g(`first_name`),Ch=g(`last_name`),wh=r.object({pipe_id:r.literal(bh),connector:w(),run_if:x(),config:r.object({input_fields:z(r.object({[xh.name]:E({fieldName:xh.name})})),output_fields:R(r.object({[Sh.name]:k({fieldName:Sh.name}),[Ch.name]:k({fieldName:Ch.name})}))}).optional()}),Th=e=>H(J(xh,e)),Eh={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Dh=class extends U{pipeId=bh;payload;payloadSchema=wh;billableOperations=Eh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`people-name-split-v1-pipe0`)}getInputRequirement(){return Th(this.payload.config)}getRawOutputFields(){return{[Sh.name]:this.catalogOutput(Sh),[Ch.name]:this.catalogOutput(Ch)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Oh=wh,kh={pipeId:bh,basePipe:K(bh),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:[G.NAMES],docPath:q(bh),billableOperations:Eh,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Th(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:bh,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},Ah=`people:personalemail:profile:waterfall@1`,jh=g(`profile_url`),Mh=g(`personal_email`),Nh=g(`alternate_personal_emails`),Ph=[`clado`,`leadmagic`,`mixrank`],Fh=[{provider:`leadmagic`},{provider:`mixrank`}],Ih=r.object({pipe_id:r.literal(Ah),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Ph,defaultProviders:Fh}),input_fields:z(r.object({[jh.name]:E({fieldName:jh.name})})),output_fields:R(r.object({[Mh.name]:k({fieldName:Mh.name}),[Nh.name]:k({fieldName:Nh.name})}))}).optional()}),Lh=e=>H(J(jh,e)),Rh={"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`}},zh=class extends U{pipeId=Ah;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 Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return Lh(this.payload.config)}getRawOutputFields(){return{[Mh.name]:this.catalogOutput(Mh,{isPrimaryOutput:!0}),[Nh.name]:this.catalogOutput(Nh)}}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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Bh=Ih,Vh={pipeId:Ah,basePipe:K(Ah),allowedUserConnectionProviders:Ph,managedProviders:Ph,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:[G.EMAIL,G.PERSONAL_EMAIL],docPath:q(Ah),billableOperations:Rh,defaultInputRequirement:Lh(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Ah,connector:null,run_if:null,config:{providers:Fh,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},Hh=`people:phone:profile:waterfall@1`,Uh=g(`profile_url`),Wh=g(`mobile`),Gh=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],Kh=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],qh=r.object({pipe_id:r.literal(Hh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Kh,availableProviders:Gh}),input_fields:z(r.object({[Uh.name]:E({fieldName:Uh.name})})),output_fields:R(r.object({[Wh.name]:k({fieldName:Wh.name})}))}).optional()}),Jh=e=>H(J(Uh,e)),Yh={"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`}},Xh=class extends U{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 Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return Jh(this.payload.config)}getRawOutputFields(){return{[Wh.name]:this.catalogOutput(Wh,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Zh=qh,Qh={pipeId:Hh,basePipe:K(Hh),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(Hh),tags:[G.PHONE,G.WATERFALL],billableOperations:Yh,defaultInputRequirement:Jh(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Gh,allowedUserConnectionProviders:Gh,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:Hh,connector:null,run_if:null,config:{providers:Kh,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},$h=`people:phone:workemail:waterfall@1`,eg=g(`work_email`),tg=g(`mobile`),ng=[`leadmagic`,`amplemarket`],rg=[{provider:`leadmagic`},{provider:`amplemarket`}],ig=r.object({pipe_id:r.literal($h),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:ng,defaultProviders:rg}),input_fields:z(r.object({[eg.name]:E({fieldName:eg.name})})),output_fields:R(r.object({[tg.name]:k({fieldName:tg.name})}))}).optional()}),ag=e=>H(J(eg,e)),og={"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`}},sg=class extends U{pipeId=$h;payload;payloadSchema=ig;billableOperations=og;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return ag(this.payload.config)}getRawOutputFields(){return{[tg.name]:this.catalogOutput(tg,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},cg=ig,lg={pipeId:$h,basePipe:K($h),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:[G.PHONE,G.WATERFALL],docPath:q($h),billableOperations:og,defaultInputRequirement:ag(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:ng,managedProviders:ng,deprecatedProviders:[],defaultPayload:{pipe_id:$h,connector:null,run_if:null,config:{providers:rg,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},ug=`people:professionalprofile:waterfall@1`,dg=g(`professional_profile`),fg=g(`professional_profile_url`),pg=[`prospeo`,`icypeas`],mg=[{provider:`prospeo`},{provider:`icypeas`}],hg=r.object({pipe_id:r.literal(ug),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:pg,defaultProviders:mg}),input_fields:z(r.object({[fg.name]:E({fieldName:fg.name})})),output_fields:R(r.object({[dg.name]:k({fieldName:dg.name})}))}).optional()}),gg=e=>H(J(fg,e)),_g={"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}},vg=class extends U{pipeId=ug;payload;payloadSchema=hg;billableOperations=_g;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return gg(this.payload.config)}getRawOutputFields(){return{[dg.name]:this.catalogOutput(dg)}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},yg=hg,bg={pipeId:ug,basePipe:K(ug),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:[G.LINKEDIN,G.WATERFALL],managedProviders:pg,deprecatedProviders:[],allowedUserConnectionProviders:pg,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:_g,defaultInputRequirement:gg(null),defaultPayload:{pipe_id:ug,run_if:null,connector:null,config:{providers:mg,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},xg=`people:professionalprofileurl:email:waterfall@1`,Sg=g(`email`),Cg=g(`work_email`),wg=g(`professional_profile_url`),Tg=[`leadmagic`],Eg=[{provider:`leadmagic`}],Dg=r.object({pipe_id:r.literal(xg),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Eg,availableProviders:Tg}),input_fields:z(r.object({[Sg.name]:E({fieldName:Sg.name}),[Cg.name]:E({fieldName:Cg.name})})),output_fields:R(r.object({[wg.name]:k({fieldName:wg.name})}))}).optional()}),Og=e=>Nc(J(Sg,e),J(Cg,e)),kg={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},Ag=class extends U{pipeId=xg;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 Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return Og(this.payload.config)}getRawOutputFields(){return{[wg.name]:this.catalogOutput(wg)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},jg=Dg,Mg={pipeId:xg,basePipe:K(xg),managedProviders:Tg,deprecatedProviders:[],allowedUserConnectionProviders:Tg,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:[G.LINKEDIN],docPath:`/resources/pipe-catalog/people:professionalprofileurl:email:waterfall/1`,billableOperations:kg,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Og(null),defaultPayload:{pipe_id:xg,run_if:null,connector:null,config:{providers:Eg,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},Ng=`people:professionalprofileurl:name@1`,Pg=g(`name`),Fg=g(`company_name`),Ig=g(`location_hint`),Lg=g(`professional_profile_url`),Rg=r.object({pipe_id:r.literal(Ng),connector:w(),run_if:x(),config:r.object({input_fields:z(r.object({[Pg.name]:E({fieldName:Pg.name}),[Fg.name]:E({fieldName:Fg.name}),[Ig.name]:E({fieldName:Ig.name})})),output_fields:R(r.object({[Lg.name]:k({fieldName:Lg.name})}))}).optional()}),zg=e=>Mc(H(J(Pg,e)),H(J(Fg,e)),Pc(J(Ig,e))),Bg={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},Vg=class extends U{pipeId=Ng;payload;payloadSchema=Rg;billableOperations=Bg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`people-professionalprofileurl-name-v1-pipe0`)}getInputRequirement(){return zg(this.payload.config)}getRawOutputFields(){return{[Lg.name]:this.catalogOutput(Lg)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},Hg=Rg,Ug={pipeId:Ng,basePipe:K(Ng),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:[G.LINKEDIN],billableOperations:Bg,defaultInputRequirement:zg(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Ng,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}}}}},Wg=`people:profile:waterfall@1`,Gg=g(`profile`),Kg=g(`profile_url`),qg=[`prospeo`,`icypeas`,`amplemarket`,`clado`],Jg=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Yg=r.object({pipe_id:r.literal(Wg),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:qg,defaultProviders:Jg}),input_fields:z(r.object({[Kg.name]:E({fieldName:Kg.name})})),output_fields:R(r.object({[Gg.name]:k({fieldName:Gg.name})}))}).optional()}),Xg=e=>H(J(Kg,e)),Zg={"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}},Qg=class extends U{pipeId=Wg;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 Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return Xg(this.payload.config)}getRawOutputFields(){return{[Gg.name]:this.catalogOutput(Gg,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},$g=Yg,e_={pipeId:Wg,basePipe:K(Wg),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(Wg),tags:[G.LINKEDIN,G.WATERFALL],managedProviders:qg,deprecatedProviders:[`clado`],allowedUserConnectionProviders:qg,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Zg,defaultInputRequirement:Xg(null),defaultPayload:{pipe_id:Wg,run_if:null,connector:null,config:{providers:Jg,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},t_=g(`work_email`),n_=g(`crustdata_person_match`),r_=g(`crustdata_profile_match_score`),i_=`people:profile:workemail:crustdata@1`,a_=r.object({pipe_id:r.literal(i_),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[t_.name]:E({fieldName:t_.name})})),output_fields:R(r.object({[n_.name]:k({fieldName:n_.name}),[r_.name]:k({fieldName:r_.name})}))}).optional()}),o_=e=>H(J(t_,e)),s_={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},c_=class extends U{pipeId=i_;payload;payloadSchema=a_;billableOperations=s_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return Y(e,`people-profile-workemail-crustdata-v1-crustdata`)}getInputRequirement(){return o_(this.payload.config)}getRawOutputFields(){return{[n_.name]:this.catalogOutput(n_),[r_.name]:this.catalogOutput(r_)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},l_=a_,u_={pipeId:i_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(i_),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:[G.EMAIL,G.PEOPLE_PROFILES],docPath:q(i_),billableOperations:s_,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:o_(null),defaultPayload:{pipe_id:i_,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}}}}},d_=`people:profileurl:email:waterfall@1`,f_=g(`email`),p_=g(`work_email`),m_=g(`profile_url`),h_=[`leadmagic`],g_=[{provider:`leadmagic`}],__=r.object({pipe_id:r.literal(d_),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:g_,availableProviders:h_}),input_fields:z(r.object({[f_.name]:E({fieldName:f_.name}),[p_.name]:E({fieldName:p_.name})})),output_fields:R(r.object({[m_.name]:k({fieldName:m_.name})}))}).optional()}),v_=e=>Nc(J(f_,e),J(p_,e)),y_={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},b_=class extends U{pipeId=d_;payload;payloadSchema=__;billableOperations=y_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return v_(this.payload.config)}getRawOutputFields(){return{[m_.name]:this.catalogOutput(m_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},x_=__,S_={pipeId:d_,basePipe:K(d_),managedProviders:h_,deprecatedProviders:[],allowedUserConnectionProviders:h_,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:[G.LINKEDIN],docPath:q(d_),billableOperations:y_,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:v_(null),defaultPayload:{pipe_id:d_,run_if:null,connector:null,config:{providers:g_,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},C_=`people:validate:email:zerobounce@1`,w_=g(`work_email`),T_=g(`ip_address`),E_=g(`is_email_valid`),D_=r.object({pipe_id:r.literal(C_),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[w_.name]:E({fieldName:w_.name}),[T_.name]:E({fieldName:T_.name})})),output_fields:R(r.object({[E_.name]:k({fieldName:E_.name})}))}).optional()}),O_=e=>Mc(H(J(w_,e)),Pc(J(T_,e))),k_={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},A_=class extends U{pipeId=C_;payload;payloadSchema=D_;billableOperations=k_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return Y(e,`people-validate-email-zerobounce-v1-zerobounce`)}getInputRequirement(){return O_(this.payload.config)}getRawOutputFields(){return{[E_.name]:this.catalogOutput(E_)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},j_=D_,M_={pipeId:C_,basePipe:K(C_),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:[G.EMAIL],docPath:`/resources/pipe-catalog/people:validate:email:zerobounce/1`,billableOperations:k_,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:O_(null),defaultPayload:{pipe_id:C_,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},N_=`people:workemail:profileurl:waterfall@1`,P_=g(`profile_url`),F_=g(`work_email`),I_=g(`email_validation_status`),L_=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],R_=[`clado`],z_=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],B_=r.object({pipe_id:r.literal(N_),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:L_,defaultProviders:z_,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({[P_.name]:E({fieldName:P_.name})})),output_fields:R(r.object({[F_.name]:k({fieldName:F_.name}),[I_.name]:k({fieldName:I_.name})}))}).optional()}),V_=e=>H(J(P_,e)),H_={"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`}},U_=class extends U{pipeId=N_;payload;payloadSchema=B_;billableOperations=H_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return V_(this.payload.config)}getRawOutputFields(){return{[F_.name]:this.catalogOutput(F_,{isPrimaryOutput:!0}),[I_.name]:this.catalogOutput(I_,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},W_=B_,G_={pipeId:N_,basePipe:K(N_),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:[G.EMAIL,G.WORK_EMAIL,G.WATERFALL],docPath:q(N_),managedProviders:L_,allowedUserConnectionProviders:L_,deprecatedProviders:R_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:H_,defaultInputRequirement:V_(null),defaultPayload:{pipe_id:N_,connector:null,run_if:null,config:{providers:z_,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}}}}},K_=`people:workemail:waterfall@1`,q_=g(`name`),J_=g(`company_website_url`),Y_=g(`company_name`),X_=g(`work_email`),Z_=g(`email_validation_status`),Q_=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],$_=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],ev=r.object({pipe_id:r.literal(K_),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:Q_,defaultProviders:$_,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({[q_.name]:E({fieldName:q_.name}),[J_.name]:E({fieldName:J_.name}),[Y_.name]:E({fieldName:Y_.name})})),output_fields:R(r.object({[X_.name]:k({fieldName:X_.name}),[Z_.name]:k({fieldName:Z_.name})}))}).optional()}),tv=e=>Mc(H(J(q_,e)),Nc(J(J_,e),J(Y_,e))),nv={"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`}},rv=class extends U{pipeId=K_;payload;payloadSchema=ev;billableOperations=nv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return tv(this.payload.config)}getRawOutputFields(){return{[X_.name]:this.catalogOutput(X_,{isPrimaryOutput:!0}),[Z_.name]:this.catalogOutput(Z_,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},iv=ev,av={pipeId:K_,basePipe:K(K_),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:[G.EMAIL,G.WORK_EMAIL,G.WATERFALL],docPath:q(K_),managedProviders:Q_,deprecatedProviders:[],allowedUserConnectionProviders:Q_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:nv,defaultInputRequirement:tv(null),defaultPayload:{pipe_id:K_,connector:null,run_if:null,config:{providers:$_,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}}}}},ov=`email:iswork@1`,sv=g(`is_work_email`),cv=g(`email`),lv=r.object({pipe_id:r.literal(ov),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[cv.name]:E({fieldName:cv.name})})),output_fields:R(r.object({[sv.name]:k({fieldName:sv.name})}))}).optional()}),uv=e=>H(J(cv,e)),dv={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},fv=class extends U{pipeId=ov;payload;payloadSchema=lv;billableOperations=dv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`email-iswork-v1-pipe0`)}getInputRequirement(){return uv(this.payload.config)}getRawOutputFields(){return{[sv.name]:this.catalogOutput(sv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},pv=lv,mv={pipeId:ov,label:`Work email checker`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Check if a given email address is personal or professional.`,tags:[G.EMAIL,G.WORK_EMAIL],docPath:q(ov),billableOperations:dv,basePipe:K(ov),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:uv(null),defaultPayload:{pipe_id:ov,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},hv=`email:send:gmail@1`,gv=g(`gmail_email_success`),_v=r.object({pipe_id:r.literal(hv),connector:ms(),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:pn,exampleValue:mn}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:Or,exampleValue:kr}},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:Ft,exampleValue:It}},amplemarket_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Company match object as returned by Amplemarket`,jsonMeta:{zodSchema:Nt,exampleValue:Pt}},companyenrich_matches:{label:`CompanyEnrich matches`,type:`json`,format:`json_object`,description:`CompanyEnrich response list.`,jsonMeta:{zodSchema:r.array(nn),exampleValue:[rn]}},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:In,zodSchema:Fn}},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:Er,exampleValue:Dr},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},Zr={is_claim_successful:{},bucket_counter:{},found_in_bucket:{},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=qr(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:Et(e)}}:{}}},company_name:{},first_name:{},addressee_name:{},address_line_1:{},address_line_2:{},job_title:{getStaticWidgets(e){return typeof e==`string`?{emoji:{value:xr(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=Yr(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=Yr(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=Yr(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:Tt.linkedin}}}},crustdata_post_list:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:Tt.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{...Xr[e],name:e}}function Qr(e,t){if(ei(e,t))return Zr[e]}function $r(e){return e in Xr}function ei(e,t){return e in Xr?Xr[e].format===t:!1}function ti(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 ni=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.is_claim_successful.bucket_counter.found_in_bucket.professional_profile_url.professional_profile.company_social_url.mobile_number`.split(`.`)),ri=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(`.`)),ii=r.enum([`production`,`sandbox`]),ai=`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.row:roundrobin:sheet@1.bucket:claim@1.bucket:count@1.bucket:check@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(`.`),oi=r.enum(ai),si=[`string`,`number`,`boolean`,`json`,`unknown`],ci=r.enum(si),li=r.union([r.number(),r.string()]),ui=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),di=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),fi=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),pi=r.object({type:r.literal(`static`).optional()}),mi=pi.extend({image_url:r.url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),hi=pi.extend({emoji:r.string().describe(`Country flag emoji.`)}),gi=pi.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),_i=pi.extend({attempted_providers:r.array(r.object({provider:ri})),available_providers:r.array(ri),successful_provider:ri.optional()}),vi=r.enum([`linkedin`,`job`]),yi=pi.extend({key:vi}).optional(),bi=pi.extend({result_status:r.enum([`completed`,`failed`])}).optional(),xi=pi.extend({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),Si=pi.extend({numeric:r.int().min(1).max(5)}).optional(),Ci=pi.extend({value:r.string().min(1)}).optional(),wi=r.object({display_value:pi.extend({label:r.string().optional()}),entity_logo:mi.optional(),location_indicator:hi.optional(),avatar:gi.optional(),waterfall:_i.optional(),icon:yi,action_summary:bi,sources:xi,confidence:Si,emoji:Ci}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),Ti=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),Ei=r.object({code:r.string(),summary:r.string(),message:r.string()}),Di=[`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`],Oi=r.enum(Di);Oi.nullable();const ki=r.object({type:ci,label:r.string().nullable().optional(),format:Oi.nullable().optional(),json_metadata:fi.nullable().optional()}),Ai=r.record(r.string(),ki),ji=r.enum([...ai,`input`]).nullable(),Mi=r.enum([...ai,`input`,`system`]).nullable(),Ni=r.object({ref:ji,config_hash:r.string().nullable()}),Pi=r.object({ref:Mi,environment:ii.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),Fi=r.object({value:di,status:ui,type:ci,reason:Ei.nullable(),claimed_by:Ni,resolved_by:Pi.nullable(),widgets:wi.optional(),format:Oi.nullable()}),Ii=r.object({value:di,status:ui,reason:Ei.nullable().optional(),type:ci.optional(),format:Oi.nullable().optional(),claimed_by:Ni.optional(),resolved_by:Pi.nullable().optional(),widgets:wi.optional()}),Li=r.record(r.string(),r.union([di,Ii])).openapi(`PipesInput`),Ri=r.object({id:li,fields:r.record(li,Fi)}),zi=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),Bi=r.object({type:ci,label:r.string(),added_by:r.object({ref:r.union([oi,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:Oi.nullable(),is_primary_output:r.boolean()}),Vi=r.record(r.string(),Bi),Hi=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:Oi.nullable().default(null),label:r.string().optional(),type:ci})})).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)})})}),Ui=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`,`matches`]),Wi={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`},Gi=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`,`matches`],Ki=[`eq`,`neq`],qi=r.object({type:r.literal(`vault`),connection:r.string().refine(e=>{let t=e.split(`_`)[0];return t!=null&&ri.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.`})}),Ji=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(qi)}).nullable().optional(),Yi=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(qi).min(1,{message:`Provide your own credentials to use this object.`})},{error:`Provide your own credentials to use this object.`}),Xi=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(),Zi=r.enum(Gi),Qi=r.enum(Ki),$i=r.enum([`failed`,`no_result`,`completed`,`skipped`]),ea=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:Zi.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.`})})}),ta=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:Qi.describe(`Status comparison operator: "eq" or "neq".`),value:$i.describe(`Field status to compare against: "completed", "no_result", "failed", or "skipped".`)}),na=r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(r.discriminatedUnion(`property`,[ea,ta])).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).`),ra=r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(ea).min(1).describe(`Array of value conditions to evaluate.`)}).describe(`Condition block. All conditions are combined with the chosen logic (and/or).`),ia=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:na}).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" }] } }`),aa={pipe0:{name:`pipe0`,label:`pipe0`,description:`A framework for lead and company data enrichment.`,url:`https://pipe0.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,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}},oa=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],sa=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],ca=/^[A-Z][A-Z0-9_]*$/,la=/^[A-Z][A-Z0-9_]*$/,ua=/^[a-zA-Z_][a-zA-Z0-9_]*$/,da=`SECRETS`,fa=`CONSTANTS`,pa=new Set(oa),ma=new Set(sa),ha=e=>`{${e}}`;var ga=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!ca.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]}},_a=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!la.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 va(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(!ua.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 ya(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=va(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(ha(n.name))}});for(let t of Object.keys(e.tags))pa.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))ma.has(t)||delete e.filters[t];return e}let ba=null;function xa(){return ba||=ya(),ba}async function Sa(e,t,n={}){let r=xa(),i=n.renderLimitMs??250,a={...t.inputs??{},[da]:new ga(t.secrets??{}),[fa]:new _a(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 Ca(e,t,n={}){let r=xa(),i=n.renderLimitMs??250,a={...t.inputs??{},[da]:new ga(t.secrets??{}),[fa]:new _a(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function wa(e){return xa().parse(e)}function Ta(e){let t=xa().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};Ea(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 Ea(e,t){for(let n of e)Da(n,t)}function Da(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){Ma(n.value,t,!1);return}if(typeof n.name==`string`){Oa(n,t);return}}function Oa(e,t){switch(e.name){case`for`:ka(e,t);return;case`if`:case`unless`:Aa(e,t);return;case`output`:ja(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function ka(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&&Na(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),Ea(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),Ea(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function Aa(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=Ia(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&Ma(i,t,!1),Ea(r.templates,t),a&&t.guardStack.pop()}Ea(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function ja(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=va(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 Ma(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)La(n)&&Fa(n,t,i);for(let n of e.filters)for(let e of n.args)Pa(e,t)}function Na(e,t,n){La(e)&&Fa(e,t,n)}function Pa(e,t){if(Array.isArray(e)){let n=e[1];n&&Na(n,t,!1)}else Na(e,t,!1)}function Fa(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!Ra(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!Ra(e))throw Error(`Invalid SECRETS reference β expected SECRETS.KEY (got ${Va(r)}).`);let n=e.content;if(!ca.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||!Ra(e))throw Error(`Invalid CONSTANTS reference β expected CONSTANTS.KEY (got ${Va(r)}).`);let n=e.content;if(!la.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 Ia(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&La(t)&&t.props.length===1){let e=t.props[0];if(e&&Ra(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&La(t)&&t.props.length===1){let e=t.props[0];if(e&&Ra(e)&&za(n)&&Ba(r,[`==`,`!=`]))return e.content}}return null}function La(e){return e.kind===o.PropertyAccess}function Ra(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function za(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function Ba(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function Va(e){let t=[];for(let n of e)n&&Ra(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}const Ha=`default`,Ua=`pipe0_default`;function Wa(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:ri.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function Ga(e){return`${e.provider}_${e.id}`}const Ka=new s;function qa(e){return Ka.validateSchema(e)}function Ja(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 Ya(e){try{return JSON.parse(e)}catch{}return JSON.parse(eo(e))}function Xa(e){try{return Ya(e)}catch{return}}const Za=/[A-Za-z_$]/,Qa=/[\w$]/,$a=/\s/;function eo(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(to(o));continue}if(Za.test(i)){let i=n;for(;i<r&&Qa.test(e[i]);)i++;let a=e.slice(n,i),o=i;for(;o<r&&$a.test(e[o]);)o++;t+=e[o]===`:`?JSON.stringify(a):a,n=i;continue}if(i===`,`){let t=n+1;for(;t<r&&$a.test(e[t]);)t++;if(e[t]===`}`||e[t]===`]`){n++;continue}}t+=i,n++}return t}function to(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 no=(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},ro=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},io=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},ao=(...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},oo=[`google-low`,`openai-high`,`anthropic-high`],so={"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`}},co=.03,lo=.3,uo=100,fo=100,po={"google-low":{inputPer1M:1.5,outputPer1M:9},"openai-high":{inputPer1M:5,outputPer1M:30},"anthropic-high":{inputPer1M:5,outputPer1M:25}};function mo(e){let t=so[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function ho(e){let t=so[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function go(){let e=new Set;for(let t of oo)e.add(so[t].provider);return[...e]}function _o(e){return Object.keys(e).some(e=>oo.some(t=>e.endsWith(`-in-${t}`)||e.endsWith(`-out-${t}`)))}function vo(e,t){return e/1e6*(1+lo)/co*t}function yo(e){let t=po[e];if(!t)throw Error(`Unknown AI model: ${e}`);return{in:vo(t.inputPer1M,100),out:vo(t.outputPer1M,100)}}function bo(e,t){let n=Math.round(lo*100);return`Billed per 100 ${e} tokens at ${Number(t.toPrecision(4))} credits/block (managed keys include a ${n}% margin over provider cost).`}function xo(e){let t={};for(let n of oo){let r=so[n],i=yo(n);t[`${e}-in-${n}`]={credits:{default:i.in},allowManagedConnection:!0,provider:r.provider,mode:r.billingMode,note:bo(`input`,i.in)},t[`${e}-out-${n}`]={credits:{default:i.out},allowManagedConnection:!0,provider:r.provider,mode:r.billingMode,note:bo(`output`,i.out)}}return t}function So(e,t){return{input:`${t}-in-${e}`,output:`${t}-out-${e}`}}function Co(e,t){let n=So(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 wo=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(no(e.requires.connection));for(let n of e.requires.fields??[])t.push(ro(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]:io(...t)}function Eo(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=ti(e,n,t),s=$r(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 Do=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()})),typed_fields_select_input:r.array(r.object({field_name:r.string(),type:r.enum(si),format:r.enum(Di).nullable().optional()})),field_select_input: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()})},Oo=(e,t,n)=>{let r=[t.description||n,t.guide].filter(Boolean).join(` `);return r?e.describe(r):e},ko=(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},Ao=(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},jo=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,Mo=/\{\{|\{%/,No=(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=jo.test(e),i=Mo.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},Po=(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])=>{us({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=Oo(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},Io=()=>{let e=Hi;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}=Eo(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},Lo=(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:aa[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},Ro=(e,t)=>{let n=e.maxItems||200,r=Oo(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},zo=(e,t)=>{let n=Oo(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},Bo=(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=Oo(i,e);return t.add(a,{type:`range_input`,...e}),a},Vo=(e,t)=>{let n=Oo(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},Ho=(e,t)=>{let n=Oo(b.boolean_input.default(e.defaultValue),e);return t.add(n,{...e,required:!1,type:`boolean_input`}),n},Uo=(e,t)=>{let n=Oo(b.nullable_boolean_input.default(e.defaultValue),e);return t.add(n,{...e,required:!1,type:`nullable_boolean_input`,defaultValue:e.defaultValue}),n},Wo=(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=Oo(n,e);return t.add(r,{type:`text_input`,...e}),r},Go=(e,t)=>{let n=b.textarea_input;e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength));let r=Oo(n,e);return t.add(r,{type:`textarea_input`,...e}),r},Ko=(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})},qo=(e,t)=>r.unknown().check(e=>{t(e.value)&&e.issues.push({code:`custom`,input:e.value,message:`Required`})}).pipe(e),Jo=(e,t)=>{let n=Oo(qo(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},Yo=(e,t)=>{let n=Oo(qo(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},Xo=(e,t)=>{let n=b.json_schema_input;return n.check(e=>{qa(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(n=n.check(e=>{Ja(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},Zo=(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=Oo(e.defaultValue?i.default(e.defaultValue):i,e);return t.add(a,{type:`select_input`,...e}),a},Qo=(e,t,n)=>{let r=Oo(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},$o=({billableOperations:e,...t},n)=>{let i=r.enum(oo).default(t.defaultValue||`google-low`);return n.add(i,{type:`select_input`,options:oo.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:so[t].label,value:t,widgets:{logo:{url:aa[so[t].provider].logoUrl},token_pricing:{inputPerBlock:i.credits.default,outputPerBlock:a.credits.default,blockSize:100}}}}),required:!0,description:``,label:`AI Models`,...t}),i},es=(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},ts=(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},ns=(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},rs=(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},is=(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=ia.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},as=e=>{let t=na.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},os=e=>{let{required:t=!0,...n}=e,r=Oo(ra.nullable().check(e=>{let n=e;if(n.value===null){t&&n.issues.push({code:`custom`,input:n.value,message:`Add at least one condition.`});return}(n.value?.conditions??[]).forEach((e,t)=>{typeof e.value==`string`&&us({value:e.value,issues:n.issues},!1,[`conditions`,t,`value`])})}),n,"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."+(t?``:" `null` means no filtering.")),i=n.optionsDef?{...n.optionsDef,enabledIf:n.optionsDef.enabledIf??To(n.optionsDef)}:void 0,a={type:`condition_block_input`,fields:[],fieldNameMode:`text`,properties:[`value`],...n,optionsDef:i,options:[]},o=e=>{let t=e.validationContext;return{...a,inputFields:Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e.hash).map(([e,t])=>({...t,resolvedName:e}))}};return o.staticMeta={...a,inputFields:[]},_.add(r,o),t?r:r.default(null)};function ss(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 cs({fieldMetadata:e,store:t}){let n=e;if(e.type===`context_select_input`||e.type===`tagged_text_input`||(e.type===`condition_block_input`||e.type===`field_select_input`||e.type===`fields_select_input`||e.type===`typed_fields_select_input`)&&n.optionsDef){t.field_options??={};let r=t.field_options[e.path]?.options||[],i=n.optionsDef?.widgets;e.options=i?r.map(e=>({...e,widgets:{...i,...e.widgets??{}}})):r}return e}const ls=({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=cs({fieldMetadata:r,store:n,formResolvers:i});e&&o.fields.push(e)}else{let e=cs({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 us(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=Ta(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 ds=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:Oo(r.string().min(10).check(e=>us(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},fs=e=>{let t=r.string();e.required&&(t=t.min(1)),e.maxLength&&(t=t.max(e.maxLength));let n=Oo(t.check(e=>us(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=>us(e,!1,[])),n=Oo(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 ps(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:Ga({id:e.public_id,provider:e.provider})}))}})}const ms=()=>{let e=Yi;return ps(e,`required`),e},C=()=>{let e=Ji;return ps(e,`optional`),e},w=()=>{let e=Xi;return ps(e,`disabled`),e};function hs(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:Ga({id:e.public_id,provider:e.provider})}))}})}const gs=()=>{let e=Yi;return hs(e,`required`),e},_s=()=>{let e=Ji;return hs(e,`optional`),e};function vs(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:Ga({id:e.public_id,provider:e.provider})}))}})}const ys=()=>{let e=Yi;return vs(e,`required`),e},bs=()=>{let e=Ji;return vs(e,`optional`),e},T=()=>{let e=Xi;return vs(e,`disabled`),e};function xs(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:xs(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=>Lo(e,_),Ss=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`})})});t=e.minItems?t.min(e.minItems):t.default([]);let n=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??To(e.optionsDef)}:void 0,r={type:`fields_select_input`,...e,optionsDef:n,options:[]},i=e=>{if(n)return{...r};let t=e.validationContext;return{...r,options:Object.entries(t.fieldDefinitions).filter(([e])=>e.toLowerCase()!==`id`).map(([e,t])=>({value:e,label:e,widgets:{field_type:{type:t.type}}}))}};return i.staticMeta=r,_.add(t,i),t},Cs=e=>{let t=b.typed_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`})})});t=e.minItems?t.min(e.minItems):t.default([]);let n=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??To(e.optionsDef)}:void 0,r={type:`typed_fields_select_input`,...e,optionsDef:n,options:[]},i=e=>{if(n)return{...r};let t=e.validationContext;return{...r,options:Object.entries(t.fieldDefinitions).filter(([e])=>e.toLowerCase()!==`id`).map(([e,t])=>{let n=typeof t.type==`function`?`unknown`:t.type;return{value:e,label:e,data:{type:String(n),...t.format?{format:String(t.format)}:{}},widgets:{field_type:{type:t.type}}}})}};return i.staticMeta=r,_.add(t,i),t},ws=e=>{let t=b.field_select_input.check(t=>{e.required&&t.value.field_name.length<1&&t.issues.push({code:`custom`,input:t.value.field_name,path:[`field_name`],message:`Select a field`})});e.required||(t=t.default({field_name:``})),t=Oo(t,e,"Reference to a single sheet column by name (`{ field_name }`).");let n=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??To(e.optionsDef)}:void 0,r={type:`field_select_input`,...e,optionsDef:n,options:[]},i=e=>{if(n)return{...r};let t=e.validationContext;return{...r,options:Object.entries(t.fieldDefinitions).filter(([t,n])=>t.toLowerCase()!==`id`&&n.added_by.config_hash!==e.hash).map(([e,t])=>({value:e,label:e,widgets:{field_type:{type:t.type}}}))}};return i.staticMeta=r,_.add(t,i),t},Ts=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},Es=(e,t)=>{let n=t===`selection`?xt:t===`sheet`?St:wt,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=Xa(t);return n===void 0?e:n},n).optional();return y.add(s,{type:`textarea_input`,rows:3,language:`json`,quickOptions:o,...e}),s},Ds=e=>Fo(e,_),Os=e=>ko(e,_),ks=e=>Ao(e,_),As=e=>No(e,_),js=e=>Po(e,_),Ms=e=>Ro(e,_),Ns=e=>is(e,_),Ps=e=>zo(e,_),Fs=e=>Vo(e,_),O=e=>Ho(e,_),k=e=>Ko(e,_),Is=e=>{let{groupPath:t,sectionKey:n=`pipe_io`,defaultName:r,nameInfo:i}=e;return{destination_field_name:Ls({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:zs({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:si.filter(e=>e!==`unknown`).map(e=>({value:e,label:e}))}).default(``),destination_field_format:zs({label:`Format`,info:`Optional display format for the field.`,path:`config.destination_field_format`,groupPath:t,sectionKey:n,required:!1,options:Di.map(e=>({value:e,label:e}))}).default(``),destination_field_label:Ls({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(``)}},Ls=e=>Wo(e,_),Rs=e=>Go(e,_),zs=e=>Zo(e,_),Bs=e=>$o(e,_),Vs=e=>es(e,_),Hs=e=>Jo(e,_),Us=e=>Yo(e,_),Ws=e=>Xo(e,_),Gs=e=>ts(e,_),A=e=>ko(e,v),Ks=e=>Ao(e,v),qs=e=>ns(e,v),j=e=>Fo(e,v),M=e=>Ro(e,v),Js=e=>zo(e,v),Ys=e=>Bo(e,v),Xs=e=>Vo(e,v),Zs=e=>Ho(e,v),Qs=e=>Uo(e,v),N=e=>Ko(e,v,`pipe_io`),$s=e=>Wo(e,v),ec=e=>Go(e,v),tc=e=>Zo(e,v),nc=e=>ts(e,v),P=e=>es(e,v),F=e=>rs(e,v),I=e=>is(e,v),L=e=>Jo(e,v),rc=e=>Yo(e,v),ic=e=>Wo(e,Do(y)),ac=e=>Go(e,Do(y)),oc=e=>Zo(e,Do(y)),sc=e=>es(e,Do(y)),cc=e=>Jo(e,Do(y)),lc=e=>Jo(e,Do(y)).nullish(),uc=e=>Ho(e,Do(y)),dc=e=>ts(e,Do(y)),fc=e=>$o(e,Do(y)),pc=(e,t)=>Qo(e,Do(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 mc(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(mc).filter(e=>!Xn(e));let t={};for(let[n,r]of Object.entries(e)){let e=mc(r);Xn(e)||(t[n]=e)}return t}const hc=await l();var gc=class e{static hashObject(t){if(!hc)throw Error(`HashAPI not initialized`);let{h64ToString:n}=hc,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 _c(e,t){let n={effectId:e,config:mc(t)};return gc.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 _c(this.payload.effect_id,this.payload.config||{})}producesDynamicFields(){return!1}evolveSchema(e){return{next:e}}getRecordQueueConfig(e){return null}};const vc=`env:change@1`,yc={},bc=r.object({effect_id:r.literal(vc),connector:T(),config:r.object({environment:ii})}),xc=class extends V{effectId=vc;schema=bc;payload;billableOperations=yc;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},Sc=bc,Cc={effectId:vc,baseEffect:B(vc),label:`Change environment`,description:`Switch the sheet between production and sandbox.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:yc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:vc,connector:null,config:{environment:`production`}}},wc=`fields:add@1`,Tc={},Ec=r.object({effect_id:r.literal(wc),connector:T(),config:r.object({})}),Dc=class extends V{effectId=wc;schema=Ec;payload;billableOperations=Tc;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},Oc=Ec,kc={effectId:wc,baseEffect:B(wc),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:wc,connector:null,config:{}}},Ac=[`id`],jc=e=>Ac.includes(e.trim().toLowerCase()),Mc=e=>typeof e.kind==`string`,Nc=e=>Mc(e)?e:{kind:`field`,field:e},H=e=>({kind:`field`,field:e}),Pc=(...e)=>({kind:`all`,of:e.map(Nc)}),Fc=(...e)=>({kind:`any`,of:e.map(Nc)}),Ic=e=>({kind:`optional`,field:e});function Lc(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>Lc(e,t));case`any`:return e.of.some(e=>Lc(e,t))}}function Rc(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(Rc)}}function zc(e,t){let n=Bc(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function Bc(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=Bc(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=Bc(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function Vc(e,t){let n={pipeId:e,config:mc(t)};return gc.hashObject(n)}function Hc(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:gc.hashObject(mc(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[]}getBucketRequirements(){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 Rc(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return Vc(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return Hc(e,this.inputFields)}};const Uc={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 W(e){return Uc[e]}function Wc(e,t){return typeof t==`string`?t:t(e)}function Gc(e,t){return typeof t==`string`||t===null?t:t(e)}function Kc(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:Wc(e,a[r].type),format:Gc(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 qc(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:Wc(e,r[t].type),format:Gc(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function Jc(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=Ta(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=>qc(t,e)?.type||n,format:r};a.push(t.required?H(i):Ic(i))}return Pc(...a)}function Yc(e){let t=new Set;for(let n of e)if(n)try{let e=Ta(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function Xc(e){let t=new Set;for(let n of e)if(n)try{let e=Ta(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const G={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 Zc(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 Qc(e){return Rc(e).map(({field:e})=>e)}function $c({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function el({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function tl({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 nl(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 rl(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function il(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 al=`agent:run@1`,ol=`agent-run-v1`,sl=[{value:`web_researcher`,label:`Web researcher`,widgets:{emoji:{char:`π`}}}],cl={...xo(ol),"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.`}},ll=r.object({pipe_id:r.literal(al),connector:C(),run_if:x(),config:r.object({agent_type:zs({sectionKey:`general`,groupPath:`config.prompt`,path:`config.agent_type`,label:`Agent type`,defaultValue:`web_researcher`,options:[...sl],required:!0}),prompt:ds({sectionKey:`general`,path:`config.prompt`,placeholder:W(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:Bs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:cl})})}),ul=class extends U{pipeId=al;payload;payloadSchema=ll;billableOperations=cl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[...mo(this.payload.config.model),`parallel`]}estimateBillableOperations(e){return[...Co(e,{model:this.payload.config.model,prefix:ol,inputTokens:2e4,outputTokens:1500}),{billableOperation:`agent-run-v1-search-parallel`,quantity:e.count*4},{billableOperation:`agent-run-v1-extract-parallel`,quantity:e.count*1}]}getInputRequirement(){return Jc([this.payload.config.prompt.template])}getSecretRequirements(){return Yc([this.payload.config.prompt.template])}getConstantRequirements(){return Xc([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=Ta(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[...ho(this.payload.config.model),{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`parallel`,rateLimitRatio:1,rateLimitOperation:`parallel_extract`,allowManagedConnection:!0}]}},dl=ll,fl={pipeId:al,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:K(al),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:[G.AI],keywords:[`research`,`web search`,`llm`,`gpt`,`chatgpt`,`browse`,`tools`],docPath:q(al),defaultInputRequirement:null,billableOperations:cl,allowedUserConnectionProviders:[...go(),`parallel`],managedProviders:[...go(),`parallel`],deprecatedProviders:[],defaultPayload:{pipe_id:al,connector:null,run_if:null,config:{agent_type:`web_researcher`,model:`google-low`,prompt:{template:``,json_schemas:{}}}}};function Y(e,...t){return t.map(t=>({billableOperation:t,quantity:e.count}))}function pl(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 ml(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 hl=`company:domain:workemail@1`,gl=g(`company_domain`),_l=g(`work_email`),vl=r.object({pipe_id:r.literal(hl),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[_l.name]:E({fieldName:_l.name})})),output_fields:R(r.object({[gl.name]:k({fieldName:gl.name})}))}).optional()}),yl=e=>H(J(_l,e)),bl={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},xl=class extends U{pipeId=hl;payload;payloadSchema=vl;billableOperations=bl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-domain-workemail-v1-pipe0`)}getInputRequirement(){return yl(this.payload.config)}getRawOutputFields(){return{[gl.name]:this.catalogOutput(gl)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Sl=vl,Cl={pipeId:hl,basePipe:K(hl),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:[G.EMAIL,G.WORK_EMAIL,G.WEBSITE],keywords:[`url`,`extract`,`site`,`web address`],docPath:q(hl),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:bl,defaultInputRequirement:yl(null),defaultPayload:{pipe_id:hl,connector:null,run_if:null,config:{input_fields:{[_l.name]:{alias:``}},output_fields:{[gl.name]:{alias:``,enabled:!0}}}}},wl=`company:funding:leadmagic@2`,Tl=g(`company_name`),El=g(`company_domain`),Dl=g(`funding_history`),Ol=g(`funding_total_usd`),kl=g(`leadmagic_competitor_list`),Al=g(`leadmagic_acquisition_history`),jl=g(`leadmagic_company_news_list`),Ml=r.object({pipe_id:r.literal(wl),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[Tl.name]:E({fieldName:Tl.name}),[El.name]:E({fieldName:El.name})})),output_fields:R(r.object({[Dl.name]:k({fieldName:Dl.name}),[Ol.name]:k({fieldName:Ol.name}),[kl.name]:k({fieldName:kl.name}),[Al.name]:k({fieldName:Al.name}),[jl.name]:k({fieldName:jl.name})}))}).optional()}),Nl=e=>Fc(J(Tl,e),J(El,e)),Pl={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Fl=class extends U{pipeId=wl;payload;payloadSchema=Ml;billableOperations=Pl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(e){return Y(e,`company-funding-leadmagic-v2-leadmagic`)}getInputRequirement(){return Nl(this.payload.config)}getRawOutputFields(){return{[Dl.name]:this.catalogOutput(Dl),[Ol.name]:this.catalogOutput(Ol),[Al.name]:this.catalogOutput(Al),[jl.name]:this.catalogOutput(jl),[kl.name]:this.catalogOutput(kl)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},Il=Ml,Ll={pipeId:wl,basePipe:K(wl),label:`Funding history`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[G.FINANCIAL_DATA],keywords:[`investors`,`rounds`,`raised`,`acquisition`,`venture`,`series`,`capital`],docPath:q(wl),billableOperations:Pl,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:Nl(null),defaultPayload:{pipe_id:wl,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:``}}}}},Rl=g(`company_name`),zl=g(`company_profile_url`),Bl=g(`company_domain`),Vl=g(`cleaned_company_name`),Hl=`company:identity@3`,Ul=r.object({pipe_id:r.literal(Hl),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Rl.name]:E({fieldName:Rl.name})})),output_fields:R(r.object({[zl.name]:k({fieldName:zl.name}),[Vl.name]:k({fieldName:Vl.name}),[Bl.name]:k({fieldName:Bl.name})}))}).optional()}),Wl=e=>H(J(Rl,e)),Gl={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3,level1:{credits:.2,weight:1}},mode:`always`,provider:`pipe0`}},Kl=class extends U{pipeId=Hl;payload;payloadSchema=Ul;billableOperations=Gl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-identity-v3-pipe0`)}getInputRequirement(){return Wl(this.payload.config)}getRawOutputFields(){return{[zl.name]:this.catalogOutput(zl),[Bl.name]:this.catalogOutput(Bl),[Vl.name]:this.catalogOutput(Vl)}}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}]}},ql=Ul,Jl={pipeId:Hl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(Hl),label:`Company identity`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[G.WEBSITE,G.LINKEDIN],keywords:[`website`,`linkedin`,`url`,`domain`,`resolve`,`normalize`],docPath:q(Hl),billableOperations:Gl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Wl(null),defaultPayload:{pipe_id:Hl,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}}}}},Yl=g(`company_domain`),Xl=g(`company_name`),Zl=g(`crustdata_company_identity_matches`),Ql=`company:identity:crustdata@1`,$l=r.object({pipe_id:r.literal(Ql),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[Yl.name]:E({fieldName:Yl.name}),[Xl.name]:E({fieldName:Xl.name})})),output_fields:R(r.object({[Zl.name]:k({fieldName:Zl.name})}))}).optional()}),eu=e=>Fc(J(Yl,e),J(Xl,e)),tu={"company-identity-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:.001},mode:`onSuccess`,provider:`crustdata`}},nu=class extends U{pipeId=Ql;payload;payloadSchema=$l;billableOperations=tu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return Y(e,`company-identity-crustdata-v1-crustdata`)}getInputRequirement(){return eu(this.payload.config)}getRawOutputFields(){return{[Zl.name]:this.catalogOutput(Zl)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_identify`,allowManagedConnection:!0}]}},ru=$l,iu={pipeId:Ql,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(Ql),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:[G.WEBSITE,G.LINKEDIN],keywords:[`website`,`linkedin`,`url`,`domain`,`resolve`,`match`,`candidates`],docPath:q(Ql),billableOperations:tu,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:eu(null),defaultPayload:{pipe_id:Ql,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``},company_name:{alias:``}},output_fields:{crustdata_company_identity_matches:{alias:``,enabled:!0}}}}},au=g(`company_domain`),ou=g(`companyenrich_matches`),su=`company:lookalikes:companyenrich@2`,cu=r.object({pipe_id:r.literal(su),run_if:x(),connector:C(),config:r.object({limit:Hs({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({[au.name]:E({fieldName:au.name})})),output_fields:R(r.object({[ou.name]:k({fieldName:ou.name})}))}).optional()}),lu=e=>H(J(au,e)),uu={"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`}},du=class extends U{pipeId=su;payload;payloadSchema=cu;billableOperations=uu;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 lu(this.payload.config)}getRawOutputFields(){return{[ou.name]:this.catalogOutput(ou)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},fu=cu,pu={pipeId:su,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(su),label:`Find company lookalikes`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find companies similar to the company you provide as input.`,tags:[G.COMPANY_PROFILES],keywords:[`similar`,`competitors`,`comparable`,`peers`,`alike`,`related`],docPath:q(su),billableOperations:uu,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:lu(null),defaultPayload:{pipe_id:su,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},mu=g(`company_domain`),hu=g(`crustdata_companyenrich_match`),gu=`company:match:crustdata@2`,_u=r.object({pipe_id:r.literal(gu),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[mu.name]:E({fieldName:mu.name})})),output_fields:R(r.object({[hu.name]:k({fieldName:hu.name})}))}).optional()}),vu=e=>H(J(mu,e)),yu={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.2,weight:1}},mode:`onSuccess`,provider:`crustdata`}},bu=class extends U{pipeId=gu;payload;payloadSchema=_u;billableOperations=yu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return Y(e,`company-match-crustdata-v2-crustdata`)}getInputRequirement(){return vu(this.payload.config)}getRawOutputFields(){return{[hu.name]:this.catalogOutput(hu)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},xu=_u,Su={pipeId:gu,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(gu),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[G.WEBSITE,G.LINKEDIN],keywords:[`enrich`,`headcount`,`employees`,`linkedin`,`firmographics`,`profile`],docPath:q(gu),billableOperations:yu,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:vu(null),defaultPayload:{pipe_id:gu,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Cu=g(`company_domain`),wu=g(`company_name`),Tu=g(`company_profile_url`),Eu=g(`logodev_describe_match`),Du=g(`logo_url`),Ou=`company:match:logodev@2`,ku=r.object({pipe_id:r.literal(Ou),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[Cu.name]:E({fieldName:Cu.name})})),output_fields:R(r.object({[Tu.name]:k({fieldName:Tu.name}),[Du.name]:k({fieldName:Du.name}),[wu.name]:k({fieldName:wu.name}),[Eu.name]:k({fieldName:Eu.name})}))}).optional()}),Au=e=>H(J(Cu,e)),ju={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},Mu=class extends U{pipeId=Ou;payload;payloadSchema=ku;billableOperations=ju;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(e){return Y(e,`company-match-logodev-v2-logodev`)}getInputRequirement(){return Au(this.payload.config)}getRawOutputFields(){return{[Tu.name]:this.catalogOutput(Tu),[wu.name]:this.catalogOutput(wu),[Du.name]:this.catalogOutput(Du),[Eu.name]:this.catalogOutput(Eu)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},Nu=ku,Pu={pipeId:Ou,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(Ou),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:[G.WEBSITE,G.LINKEDIN],keywords:[`logo`,`brand`,`branding`,`colors`,`social`,`icon`],docPath:q(Ou),billableOperations:ju,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Au(null),defaultPayload:{pipe_id:Ou,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}}}}},Fu=`company:newssummary:domain@1`,Iu=g(`company_news_summary`),Lu=g(`company_domain`),Ru=r.object({pipe_id:r.literal(Fu),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[Lu.name]:E({fieldName:Lu.name})})),output_fields:R(r.object({[Iu.name]:k({fieldName:Iu.name})}))}).optional()}),zu=e=>H(J(Lu,e)),Bu={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:2},mode:`always`,provider:`pipe0`}},Vu=class extends U{pipeId=Fu;payloadSchema=Ru;billableOperations=Bu;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-newssummary-domain-v1-pipe0`)}getInputRequirement(){return zu(this.payload.config)}getRawOutputFields(){return{[Iu.name]:this.catalogOutput(Iu)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0}]}},Hu=Ru,Uu={pipeId:Fu,basePipe:K(Fu),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:[G.NEWS],keywords:[`press`,`articles`,`headlines`,`media`,`summary`,`updates`],docPath:q(Fu),billableOperations:Bu,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:zu(null),defaultPayload:{pipe_id:Fu,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Wu=g(`company_domain`),Gu=g(`company_profile_url`),Ku=g(`company_description`),qu=g(`company_industry`),Ju=g(`company_region`),Yu=g(`headcount`),Xu=g(`estimated_revenue`),Zu=g(`founded_year`),Qu=g(`company_name`),$u=`company:overview@3`,ed=r.object({pipe_id:r.literal($u),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Wu.name]:E({fieldName:Wu.name}),[Gu.name]:E({fieldName:Gu.name})})),output_fields:R(r.object({[Ku.name]:k({fieldName:Ku.name}),[qu.name]:k({fieldName:qu.name}),[Ju.name]:k({fieldName:Ju.name}),[Yu.name]:k({fieldName:Yu.name}),[Xu.name]:k({fieldName:Xu.name}),[Zu.name]:k({fieldName:Zu.name}),[Qu.name]:k({fieldName:Qu.name})}))}).optional()}),td=e=>Fc(J(Wu,e),J(Gu,e)),nd={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`always`}},rd=class extends U{pipeId=$u;payloadSchema=ed;billableOperations=nd;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-overview-v3-pipe0`)}getInputRequirement(){return td(this.payload.config)}getRawOutputFields(){return{[Ku.name]:this.catalogOutput(Ku),[qu.name]:this.catalogOutput(qu),[Ju.name]:this.catalogOutput(Ju),[Yu.name]:this.catalogOutput(Yu),[Xu.name]:this.catalogOutput(Xu),[Zu.name]:this.catalogOutput(Zu),[Qu.name]:this.catalogOutput(Qu)}}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}]}},id=ed,ad={pipeId:$u,basePipe:K($u),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:q($u),tags:[G.WEBSITE,G.LINKEDIN,G.FINANCIAL_DATA],keywords:[`enrich`,`firmographics`,`industry`,`profile`,`about`,`financials`,`revenue`],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:nd,defaultInputRequirement:td(null),defaultPayload:{pipe_id:$u,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}}}}},od=g(`company_domain`),sd=g(`technology_list`),cd=g(`spending_trend`),ld=g(`technology_match_builtwith`),ud=`company:techstack:builtwith@2`,dd=r.object({pipe_id:r.literal(ud),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[od.name]:E({fieldName:od.name})})),output_fields:R(r.object({[sd.name]:k({fieldName:sd.name}),[ld.name]:k({fieldName:ld.name}),[cd.name]:k({fieldName:cd.name})}))}).optional()}),fd=e=>H(J(od,e)),pd={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},md=class extends U{pipeId=ud;payload;payloadSchema=dd;billableOperations=pd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(e){return Y(e,`company-techstack-builtwith-v2-builtwith`)}getInputRequirement(){return fd(this.payload.config)}getRawOutputFields(){return{[sd.name]:this.catalogOutput(sd),[ld.name]:this.catalogOutput(ld),[cd.name]:this.catalogOutput(cd)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},hd=dd,gd={pipeId:ud,basePipe:K(ud),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:[G.WEBSITE],keywords:[`technologies`,`technographics`,`software`,`frameworks`,`website`,`tools`],inputFieldMode:`static`,outputFieldMode:`static`,docPath:q(ud),billableOperations:pd,defaultInputRequirement:fd(null),defaultPayload:{pipe_id:ud,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}}}}},_d={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},vd=`contact:create:resend@1`,yd={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},bd=g(`email`),xd=g(`name`),Sd=g(`resend_contact_id`),Cd=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],wd=r.object({pipe_id:r.literal(vd),connector:ms(),run_if:x(),config:r.object({segment_id:Gs({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:no(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Cd;if(!t)throw new _d.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 _d.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({[xd.name]:E({fieldName:xd.name}),[bd.name]:E({fieldName:bd.name})})),output_fields:R(r.object({[Sd.name]:k({fieldName:Sd.name})}))})}),Td=e=>Pc(H(J(bd,e)),H(J(xd,e))),Ed=class extends U{pipeId=vd;payload;payloadSchema=wd;billableOperations=yd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(e){return Y(e,`contact-create-resend-v1-resend`)}getInputRequirement(){return Td(this.payload.config)}getRawOutputFields(){return{[Sd.name]:this.catalogOutput(Sd)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Dd=wd,Od={pipeId:vd,basePipe:K(vd),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[G.EMAIL],keywords:[`audience`,`subscriber`,`add`,`mailing list`,`newsletter`,`email list`],docPath:q(vd),billableOperations:yd,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:Td(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:vd,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}}}}},kd=`company:funding:leadmagic@1`,Ad=g(`company_name`),jd=g(`company_website_url`),Md=g(`funding_history`),Nd=g(`funding_total_usd`),Pd=g(`leadmagic_competitor_list`),Fd=g(`leadmagic_acquisition_history`),Id=g(`leadmagic_company_news_list`),Ld=r.object({pipe_id:r.literal(kd),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[Ad.name]:E({fieldName:Ad.name}),[jd.name]:E({fieldName:jd.name})})),output_fields:R(r.object({[Md.name]:k({fieldName:Md.name}),[Nd.name]:k({fieldName:Nd.name}),[Pd.name]:k({fieldName:Pd.name}),[Fd.name]:k({fieldName:Fd.name}),[Id.name]:k({fieldName:Id.name})}))}).optional()}),Rd=e=>Fc(J(Ad,e),J(jd,e)),zd={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Bd=class extends U{pipeId=kd;payload;payloadSchema=Ld;billableOperations=zd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(e){return Y(e,`company-funding-leadmagic-v1-leadmagic`)}getInputRequirement(){return Rd(this.payload.config)}getRawOutputFields(){return{[Md.name]:this.catalogOutput(Md),[Nd.name]:this.catalogOutput(Nd)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},Vd=Ld,Hd={pipeId:kd,basePipe:K(kd),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:[G.FINANCIAL_DATA],docPath:q(kd),billableOperations:zd,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:Rd(null),defaultPayload:{pipe_id:kd,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:``}}}}},Ud=g(`company_name`),Wd=g(`company_social_url`),Gd=g(`company_website_url`),Kd=g(`cleaned_company_name`),qd=`company:identity@1`,Jd=r.object({pipe_id:r.literal(qd),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Ud.name]:E({fieldName:Ud.name})})),output_fields:R(r.object({[Wd.name]:k({fieldName:Wd.name}),[Kd.name]:k({fieldName:Kd.name}),[Gd.name]:k({fieldName:Gd.name})}))}).optional()}),Yd=e=>H(J(Ud,e)),Xd={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Zd=class extends U{pipeId=qd;payload;payloadSchema=Jd;billableOperations=Xd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-identity-v1-pipe0`)}getInputRequirement(){return Yd(this.payload.config)}getRawOutputFields(){return{[Wd.name]:this.catalogOutput(Wd),[Gd.name]:this.catalogOutput(Gd),[Kd.name]:this.catalogOutput(Kd)}}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}]}},Qd=Jd,$d={pipeId:qd,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(qd),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:[G.WEBSITE,G.LINKEDIN],docPath:`/resources/pipe-catalog/company:identity/1`,billableOperations:Xd,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Yd(null),defaultPayload:{pipe_id:qd,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}}}}},ef=g(`company_name`),tf=g(`company_profile_url`),nf=g(`company_website_url`),rf=g(`cleaned_company_name`),af=`company:identity@2`,of=r.object({pipe_id:r.literal(af),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[ef.name]:E({fieldName:ef.name})})),output_fields:R(r.object({[tf.name]:k({fieldName:tf.name}),[rf.name]:k({fieldName:rf.name}),[nf.name]:k({fieldName:nf.name})}))}).optional()}),sf=e=>H(J(ef,e)),cf={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},lf=class extends U{pipeId=af;payload;payloadSchema=of;billableOperations=cf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-identity-v2-pipe0`)}getInputRequirement(){return sf(this.payload.config)}getRawOutputFields(){return{[tf.name]:this.catalogOutput(tf),[nf.name]:this.catalogOutput(nf),[rf.name]:this.catalogOutput(rf)}}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}]}},uf=of,df={pipeId:af,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(af),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:[G.WEBSITE,G.LINKEDIN],docPath:q(af),billableOperations:cf,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:sf(null),defaultPayload:{pipe_id:af,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}}}}},ff=g(`company_website_url`),pf=g(`companyenrich_matches`),mf=`company:lookalikes:companyenrich@1`,hf=r.object({pipe_id:r.literal(mf),run_if:x(),connector:C(),config:r.object({limit:Hs({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({[ff.name]:E({fieldName:ff.name})})),output_fields:R(r.object({[pf.name]:k({fieldName:pf.name})}))}).optional()}),gf=e=>H(J(ff,e)),_f={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},vf=class extends U{pipeId=mf;payload;payloadSchema=hf;billableOperations=_f;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 gf(this.payload.config)}getRawOutputFields(){return{[pf.name]:this.catalogOutput(pf)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},yf=hf,bf={pipeId:mf,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(mf),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:[G.COMPANY_PROFILES],docPath:q(mf),billableOperations:_f,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:gf(null),defaultPayload:{pipe_id:mf,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},xf=g(`company_website_url`),Sf=g(`crustdata_companyenrich_match`),Cf=`company:match:crustdata@1`,wf=r.object({pipe_id:r.literal(Cf),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[xf.name]:E({fieldName:xf.name})})),output_fields:R(r.object({[Sf.name]:k({fieldName:Sf.name})}))}).optional()}),Tf=e=>H(J(xf,e)),Ef={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},Df=class extends U{pipeId=Cf;payload;payloadSchema=wf;billableOperations=Ef;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return Y(e,`company-match-crustdata-v1-crustdata`)}getInputRequirement(){return Tf(this.payload.config)}getRawOutputFields(){return{[Sf.name]:this.catalogOutput(Sf)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Of=wf,kf={pipeId:Cf,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(Cf),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:[G.WEBSITE,G.LINKEDIN],docPath:q(Cf),billableOperations:Ef,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Tf(null),defaultPayload:{pipe_id:Cf,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Af=g(`company_website_url`),jf=g(`company_name`),Mf=g(`company_profile_url`),Nf=g(`logodev_describe_match`),Pf=g(`logo_url`),Ff=`company:match:logodev@1`,If=r.object({pipe_id:r.literal(Ff),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[Af.name]:E({fieldName:Af.name})})),output_fields:R(r.object({[Mf.name]:k({fieldName:Mf.name}),[Pf.name]:k({fieldName:Pf.name}),[jf.name]:k({fieldName:jf.name}),[Nf.name]:k({fieldName:Nf.name})}))}).optional()}),Lf=e=>H(J(Af,e)),Rf={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},zf=class extends U{pipeId=Ff;payload;payloadSchema=If;billableOperations=Rf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(e){return Y(e,`company-match-logodev-v1-logodev`)}getInputRequirement(){return Lf(this.payload.config)}getRawOutputFields(){return{[Mf.name]:this.catalogOutput(Mf),[jf.name]:this.catalogOutput(jf),[Pf.name]:this.catalogOutput(Pf),[Nf.name]:this.catalogOutput(Nf)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},Bf=If,Vf={pipeId:Ff,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(Ff),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:[G.WEBSITE,G.LINKEDIN],docPath:q(Ff),billableOperations:Rf,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Lf(null),defaultPayload:{pipe_id:Ff,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}}}}},Hf=`company:newssummary:website@1`,Uf=g(`company_news_summary`),Wf=g(`company_website_url`),Gf=r.object({pipe_id:r.literal(Hf),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[Wf.name]:E({fieldName:Wf.name})})),output_fields:R(r.object({[Uf.name]:k({fieldName:Uf.name})}))}).optional()}),Kf=e=>H(J(Wf,e)),qf={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},Jf=class extends U{pipeId=Hf;payloadSchema=Gf;billableOperations=qf;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-newssummary-website-v1-pipe0`)}getInputRequirement(){return Kf(this.payload.config)}getRawOutputFields(){return{[Uf.name]:this.catalogOutput(Uf)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},Yf=Gf,Xf={pipeId:Hf,basePipe:K(Hf),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:[G.NEWS],docPath:q(Hf),billableOperations:qf,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Kf(null),defaultPayload:{pipe_id:Hf,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Zf=g(`company_website_url`),Qf=g(`company_social_url`),$f=g(`company_description`),ep=g(`company_industry`),tp=g(`company_region`),np=g(`headcount`),rp=g(`estimated_revenue`),ip=g(`founded_year`),ap=`company:overview@1`,op=r.object({pipe_id:r.literal(ap),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Zf.name]:E({fieldName:Zf.name}),[Qf.name]:E({fieldName:Qf.name})})),output_fields:R(r.object({[$f.name]:k({fieldName:$f.name}),[ep.name]:k({fieldName:ep.name}),[tp.name]:k({fieldName:tp.name}),[np.name]:k({fieldName:np.name}),[rp.name]:k({fieldName:rp.name}),[ip.name]:k({fieldName:ip.name})}))}).optional()}),sp=e=>Fc(J(Zf,e),J(Qf,e)),cp={"company-overview-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},lp=class extends U{pipeId=ap;payloadSchema=op;billableOperations=cp;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-overview-v1-pipe0`)}getInputRequirement(){return sp(this.payload.config)}getRawOutputFields(){return{[$f.name]:this.catalogOutput($f),[ep.name]:this.catalogOutput(ep),[tp.name]:this.catalogOutput(tp),[np.name]:this.catalogOutput(np),[rp.name]:this.catalogOutput(rp),[ip.name]:this.catalogOutput(ip)}}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}]}},up=op,dp={pipeId:ap,basePipe:K(ap),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:[G.WEBSITE,G.LINKEDIN,G.FINANCIAL_DATA,G.DEPRECATED],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:cp,defaultInputRequirement:sp(null),defaultPayload:{pipe_id:ap,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}}}}},fp=g(`company_website_url`),pp=g(`company_profile_url`),mp=g(`company_description`),hp=g(`company_industry`),gp=g(`company_region`),_p=g(`headcount`),vp=g(`estimated_revenue`),yp=g(`founded_year`),bp=g(`company_name`),xp=`company:overview@2`,Sp=r.object({pipe_id:r.literal(xp),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[fp.name]:E({fieldName:fp.name}),[pp.name]:E({fieldName:pp.name})})),output_fields:R(r.object({[mp.name]:k({fieldName:mp.name}),[hp.name]:k({fieldName:hp.name}),[gp.name]:k({fieldName:gp.name}),[_p.name]:k({fieldName:_p.name}),[vp.name]:k({fieldName:vp.name}),[yp.name]:k({fieldName:yp.name}),[bp.name]:k({fieldName:bp.name})}))}).optional()}),Cp=e=>Fc(J(fp,e),J(pp,e)),wp={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},Tp=class extends U{pipeId=xp;payloadSchema=Sp;billableOperations=wp;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-overview-v2-pipe0`)}getInputRequirement(){return Cp(this.payload.config)}getRawOutputFields(){return{[mp.name]:this.catalogOutput(mp),[hp.name]:this.catalogOutput(hp),[gp.name]:this.catalogOutput(gp),[_p.name]:this.catalogOutput(_p),[vp.name]:this.catalogOutput(vp),[yp.name]:this.catalogOutput(yp),[bp.name]:this.catalogOutput(bp)}}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}]}},Ep=Sp,Dp={pipeId:xp,basePipe:K(xp),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(xp),tags:[G.WEBSITE,G.LINKEDIN,G.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:wp,defaultInputRequirement:Cp(null),defaultPayload:{pipe_id:xp,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}}}}},Op=g(`company_website_url`),kp=g(`technology_list`),Ap=g(`spending_trend`),jp=g(`technology_match_builtwith`),Mp=`company:techstack:builtwith@1`,Np=r.object({pipe_id:r.literal(Mp),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[Op.name]:E({fieldName:Op.name})})),output_fields:R(r.object({[kp.name]:k({fieldName:kp.name}),[jp.name]:k({fieldName:jp.name}),[Ap.name]:k({fieldName:Ap.name})}))}).optional()}),Pp=e=>H(J(Op,e)),Fp={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},Ip=class extends U{pipeId=Mp;payload;payloadSchema=Np;billableOperations=Fp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(e){return Y(e,`company-techstack-builtwith-v1-builtwith`)}getInputRequirement(){return Pp(this.payload.config)}getRawOutputFields(){return{[kp.name]:this.catalogOutput(kp),[jp.name]:this.catalogOutput(jp),[Ap.name]:this.catalogOutput(Ap)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Lp=Np,Rp={pipeId:Mp,basePipe:K(Mp),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:[G.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:q(Mp),billableOperations:Fp,defaultInputRequirement:Pp(null),defaultPayload:{pipe_id:Mp,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}}}}},zp=`company:websiteurl:email@1`,Bp=g(`company_website_url`),Vp=g(`email`),Hp=r.object({pipe_id:r.literal(zp),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Vp.name]:E({fieldName:Vp.name})})),output_fields:R(r.object({[Bp.name]:k({fieldName:Bp.name})}))}).optional()}),Up=e=>H(J(Vp,e)),Wp={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Gp=class extends U{pipeId=zp;payload;payloadSchema=Hp;billableOperations=Wp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`company-websiteurl-email-v1-pipe0`)}getInputRequirement(){return Up(this.payload.config)}getRawOutputFields(){return{[Bp.name]:this.catalogOutput(Bp)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Kp=Hp,qp={pipeId:zp,basePipe:K(zp),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:[G.EMAIL,G.WORK_EMAIL,G.WEBSITE],docPath:q(zp),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Wp,defaultInputRequirement:Up(null),defaultPayload:{pipe_id:zp,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},Jp=`people:email:iswork@1`,Yp=g(`is_work_email`),Xp=g(`email`),Zp=r.object({pipe_id:r.literal(Jp),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Xp.name]:E({fieldName:Xp.name})})),output_fields:R(r.object({[Yp.name]:k({fieldName:Yp.name})}))}).optional()}),Qp=e=>H(J(Xp,e)),$p={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},em=class extends U{pipeId=Jp;payload;payloadSchema=Zp;billableOperations=$p;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`people-email-iswork-v1-pipe0`)}getInputRequirement(){return Qp(this.payload.config)}getRawOutputFields(){return{[Yp.name]:this.catalogOutput(Yp)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},tm=Zp,nm={pipeId:Jp,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:[G.EMAIL,G.WORK_EMAIL],docPath:q(Jp),billableOperations:$p,basePipe:K(Jp),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Qp(null),defaultPayload:{pipe_id:Jp,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},rm=`people:email:validate:zerobounce@1`,im=g(`work_email`),am=g(`is_email_valid`),om=r.object({pipe_id:r.literal(rm),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[im.name]:E({fieldName:im.name})})),output_fields:R(r.object({[am.name]:k({fieldName:am.name})}))}).optional()}),sm=e=>H(J(im,e)),cm={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},lm=class extends U{pipeId=rm;payload;payloadSchema=om;billableOperations=cm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return Y(e,`people-email-validate-zerobounce-v1-zerobounce`)}getInputRequirement(){return sm(this.payload.config)}getRawOutputFields(){return{[am.name]:this.catalogOutput(am)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},um=om,dm={pipeId:rm,basePipe:K(rm),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:[G.EMAIL],docPath:`/resources/pipe-catalog/people:email:validate:zerobounce/1`,billableOperations:cm,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:sm(null),defaultPayload:{pipe_id:rm,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},fm=`people:email:validate:zerobounce@2`,pm=g(`email`),mm=g(`zerobounce_validation_status`),hm=g(`zerobounce_validation_match`),gm=r.object({pipe_id:r.literal(fm),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[pm.name]:E({fieldName:pm.name})})),output_fields:R(r.object({[hm.name]:k({fieldName:hm.name}),[mm.name]:k({fieldName:mm.name})}))}).optional()}),_m=e=>H(J(pm,e)),vm={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},ym=class extends U{pipeId=fm;payload;payloadSchema=gm;billableOperations=vm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return Y(e,`people-email-validate-zerobounce-v2-zerobounce`)}getInputRequirement(){return _m(this.payload.config)}getRawOutputFields(){return{[mm.name]:this.catalogOutput(mm),[hm.name]:this.catalogOutput(hm)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},bm=gm,xm={pipeId:fm,basePipe:K(fm),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:[G.EMAIL],docPath:q(fm),billableOperations:vm,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:_m(null),defaultPayload:{pipe_id:fm,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 Sm(e){return(e.widgets||{}).display_value?.label}function Cm(e){console.dir(e,{depth:100})}function wm(e){return typeof e==`object`&&e?JSON.stringify(e):e}function X(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 Em={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 Z(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 Dm=`people:identity:email:waterfall@1`,Om=g(`email`),km=g(`company_website_url`),Am=g(`name`),jm=g(`job_title`),Mm=g(`profile_url`),Nm=g(`company_profile_url`),Pm=g(`company_name`),Fm=[`findymail`,`hunter`,`crustdata`],Im=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],Lm=r.object({pipe_id:r.literal(Dm),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:Fm,defaultProviders:Im,sectionKey:`general`}),input_fields:z(r.object({[Om.name]:E({fieldName:Om.name})})),output_fields:R(r.object({[Am.name]:k({fieldName:Am.name}),[Mm.name]:k({fieldName:Mm.name}),[jm.name]:k({fieldName:jm.name}),[km.name]:k({fieldName:km.name}),[Pm.name]:k({fieldName:Pm.name}),[Nm.name]:k({fieldName:Nm.name})}))}).optional()}),Rm=e=>H(J(Om,e)),zm={"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`}},Bm=class extends U{pipeId=Dm;payload;payloadSchema=Lm;billableOperations=zm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return Rm(this.payload.config)}getRawOutputFields(){return{[Am.name]:this.catalogOutput(Am,{isPrimaryOutput:!0}),[Mm.name]:this.catalogOutput(Mm,{isPrimaryOutput:!0}),[jm.name]:this.catalogOutput(jm,{isPrimaryOutput:!0}),[Pm.name]:this.catalogOutput(Pm,{isPrimaryOutput:!0}),[Nm.name]:this.catalogOutput(Nm,{isPrimaryOutput:!0}),[km.name]:this.catalogOutput(km,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Vm=Lm,Hm={pipeId:Dm,basePipe:K(Dm),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:[G.EMAIL,G.PEOPLE_PROFILES],docPath:q(Dm),managedProviders:Fm,deprecatedProviders:[],allowedUserConnectionProviders:Fm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:zm,defaultInputRequirement:Rm(null),defaultPayload:{pipe_id:Dm,connector:null,run_if:null,config:{providers:Im,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}}}}},Um=`people:match:role:waterfall@1`,Wm=g(`company_website_url`),Gm=g(`role_finder_match`),Km=[`leadmagic`],qm=[{provider:`leadmagic`}],Jm=r.object({pipe_id:r.literal(Um),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:qm,availableProviders:Km}),roles:ks({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:z(r.object({[Wm.name]:E({fieldName:Wm.name})})),output_fields:R(r.object({[Gm.name]:k({fieldName:Gm.name})}))})}),Ym=e=>Fc(J(Wm,e)),Xm={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Zm=class extends U{pipeId=Um;payload;payloadSchema=Jm;billableOperations=Xm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return Ym(this.payload.config)}getRawOutputFields(){return{[Gm.name]:this.catalogOutput(Gm,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Qm=Jm,$m={pipeId:Um,basePipe:K(Um),managedProviders:Km,deprecatedProviders:[],allowedUserConnectionProviders:Km,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:[G.PEOPLE_PROFILES],docPath:q(Um),billableOperations:Xm,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Ym(null),defaultPayload:{pipe_id:Um,run_if:null,connector:null,config:{roles:[],providers:qm,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},eh=`people:mobilenumber:professionalprofile:waterfall@1`,th=g(`professional_profile_url`),nh=g(`mobile_number`),rh=[`leadmagic`,`prospeo`],ih=[{provider:`leadmagic`},{provider:`prospeo`}],ah=r.object({pipe_id:r.literal(eh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:ih,availableProviders:rh}),input_fields:z(r.object({[th.name]:E({fieldName:th.name})})),output_fields:R(r.object({[nh.name]:k({fieldName:nh.name})}))}).optional()}),oh=e=>H(J(th,e)),sh={"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`}},ch=class extends U{pipeId=eh;payload;payloadSchema=ah;billableOperations=sh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return oh(this.payload.config)}getRawOutputFields(){return{[nh.name]:this.catalogOutput(nh)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},lh=ah,uh={pipeId:eh,basePipe:K(eh),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:[G.PHONE,G.WATERFALL],billableOperations:sh,defaultInputRequirement:oh(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:rh,deprecatedProviders:[],allowedUserConnectionProviders:rh,defaultPayload:{pipe_id:eh,connector:null,run_if:null,config:{providers:ih,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},dh=`people:mobilenumber:workemail:waterfall@1`,fh=g(`work_email`),ph=g(`mobile_number`),mh=[`leadmagic`],hh=[{provider:`leadmagic`}],gh=r.object({pipe_id:r.literal(dh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:mh,defaultProviders:hh}),input_fields:z(r.object({[fh.name]:E({fieldName:fh.name})})),output_fields:R(r.object({[ph.name]:k({fieldName:ph.name})}))}).optional()}),_h=e=>H(J(fh,e)),vh={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},yh=class extends U{pipeId=dh;payload;payloadSchema=gh;billableOperations=vh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers?.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return _h(this.payload.config)}getRawOutputFields(){return{[ph.name]:this.catalogOutput(ph)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},bh=gh,xh={pipeId:dh,basePipe:K(dh),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:[G.PHONE,G.WATERFALL],docPath:`/resources/pipe-catalog/people:mobilenumber:workemail:waterfall/1`,billableOperations:vh,defaultInputRequirement:_h(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:mh,managedProviders:mh,deprecatedProviders:[],defaultPayload:{pipe_id:dh,connector:null,run_if:null,config:{providers:hh,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Sh=`people:name:split@1`,Ch=g(`name`),wh=g(`first_name`),Th=g(`last_name`),Eh=r.object({pipe_id:r.literal(Sh),connector:w(),run_if:x(),config:r.object({input_fields:z(r.object({[Ch.name]:E({fieldName:Ch.name})})),output_fields:R(r.object({[wh.name]:k({fieldName:wh.name}),[Th.name]:k({fieldName:Th.name})}))}).optional()}),Dh=e=>H(J(Ch,e)),Oh={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},kh=class extends U{pipeId=Sh;payload;payloadSchema=Eh;billableOperations=Oh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`people-name-split-v1-pipe0`)}getInputRequirement(){return Dh(this.payload.config)}getRawOutputFields(){return{[wh.name]:this.catalogOutput(wh),[Th.name]:this.catalogOutput(Th)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Ah=Eh,jh={pipeId:Sh,basePipe:K(Sh),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:[G.NAMES],docPath:q(Sh),billableOperations:Oh,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Dh(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Sh,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},Mh=`people:personalemail:profile:waterfall@1`,Nh=g(`profile_url`),Ph=g(`personal_email`),Fh=g(`alternate_personal_emails`),Ih=[`clado`,`leadmagic`,`mixrank`],Lh=[{provider:`leadmagic`},{provider:`mixrank`}],Rh=r.object({pipe_id:r.literal(Mh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Ih,defaultProviders:Lh}),input_fields:z(r.object({[Nh.name]:E({fieldName:Nh.name})})),output_fields:R(r.object({[Ph.name]:k({fieldName:Ph.name}),[Fh.name]:k({fieldName:Fh.name})}))}).optional()}),zh=e=>H(J(Nh,e)),Bh={"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`}},Vh=class extends U{pipeId=Mh;payload;payloadSchema=Rh;billableOperations=Bh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return zh(this.payload.config)}getRawOutputFields(){return{[Ph.name]:this.catalogOutput(Ph,{isPrimaryOutput:!0}),[Fh.name]:this.catalogOutput(Fh)}}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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Hh=Rh,Uh={pipeId:Mh,basePipe:K(Mh),allowedUserConnectionProviders:Ih,managedProviders:Ih,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:[G.EMAIL,G.PERSONAL_EMAIL],docPath:q(Mh),billableOperations:Bh,defaultInputRequirement:zh(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Mh,connector:null,run_if:null,config:{providers:Lh,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},Wh=`people:phone:profile:waterfall@1`,Gh=g(`profile_url`),Kh=g(`mobile`),qh=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],Jh=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Yh=r.object({pipe_id:r.literal(Wh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Jh,availableProviders:qh}),input_fields:z(r.object({[Gh.name]:E({fieldName:Gh.name})})),output_fields:R(r.object({[Kh.name]:k({fieldName:Kh.name})}))}).optional()}),Xh=e=>H(J(Gh,e)),Zh={"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`}},Qh=class extends U{pipeId=Wh;payload;payloadSchema=Yh;billableOperations=Zh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return Xh(this.payload.config)}getRawOutputFields(){return{[Kh.name]:this.catalogOutput(Kh,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},$h=Yh,eg={pipeId:Wh,basePipe:K(Wh),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(Wh),tags:[G.PHONE,G.WATERFALL],billableOperations:Zh,defaultInputRequirement:Xh(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:qh,allowedUserConnectionProviders:qh,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:Wh,connector:null,run_if:null,config:{providers:Jh,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},tg=`people:phone:workemail:waterfall@1`,ng=g(`work_email`),rg=g(`mobile`),ig=[`leadmagic`,`amplemarket`],ag=[{provider:`leadmagic`},{provider:`amplemarket`}],og=r.object({pipe_id:r.literal(tg),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:ig,defaultProviders:ag}),input_fields:z(r.object({[ng.name]:E({fieldName:ng.name})})),output_fields:R(r.object({[rg.name]:k({fieldName:rg.name})}))}).optional()}),sg=e=>H(J(ng,e)),cg={"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`}},lg=class extends U{pipeId=tg;payload;payloadSchema=og;billableOperations=cg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return sg(this.payload.config)}getRawOutputFields(){return{[rg.name]:this.catalogOutput(rg,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},ug=og,dg={pipeId:tg,basePipe:K(tg),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:[G.PHONE,G.WATERFALL],docPath:q(tg),billableOperations:cg,defaultInputRequirement:sg(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:ig,managedProviders:ig,deprecatedProviders:[],defaultPayload:{pipe_id:tg,connector:null,run_if:null,config:{providers:ag,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},fg=`people:professionalprofile:waterfall@1`,pg=g(`professional_profile`),mg=g(`professional_profile_url`),hg=[`prospeo`,`icypeas`],gg=[{provider:`prospeo`},{provider:`icypeas`}],_g=r.object({pipe_id:r.literal(fg),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:hg,defaultProviders:gg}),input_fields:z(r.object({[mg.name]:E({fieldName:mg.name})})),output_fields:R(r.object({[pg.name]:k({fieldName:pg.name})}))}).optional()}),vg=e=>H(J(mg,e)),yg={"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}},bg=class extends U{pipeId=fg;payload;payloadSchema=_g;billableOperations=yg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return vg(this.payload.config)}getRawOutputFields(){return{[pg.name]:this.catalogOutput(pg)}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},xg=_g,Sg={pipeId:fg,basePipe:K(fg),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:[G.LINKEDIN,G.WATERFALL],managedProviders:hg,deprecatedProviders:[],allowedUserConnectionProviders:hg,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:yg,defaultInputRequirement:vg(null),defaultPayload:{pipe_id:fg,run_if:null,connector:null,config:{providers:gg,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},Cg=`people:professionalprofileurl:email:waterfall@1`,wg=g(`email`),Tg=g(`work_email`),Eg=g(`professional_profile_url`),Dg=[`leadmagic`],Og=[{provider:`leadmagic`}],kg=r.object({pipe_id:r.literal(Cg),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Og,availableProviders:Dg}),input_fields:z(r.object({[wg.name]:E({fieldName:wg.name}),[Tg.name]:E({fieldName:Tg.name})})),output_fields:R(r.object({[Eg.name]:k({fieldName:Eg.name})}))}).optional()}),Ag=e=>Fc(J(wg,e),J(Tg,e)),jg={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},Mg=class extends U{pipeId=Cg;payload;payloadSchema=kg;billableOperations=jg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return Ag(this.payload.config)}getRawOutputFields(){return{[Eg.name]:this.catalogOutput(Eg)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Ng=kg,Pg={pipeId:Cg,basePipe:K(Cg),managedProviders:Dg,deprecatedProviders:[],allowedUserConnectionProviders:Dg,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:[G.LINKEDIN],docPath:`/resources/pipe-catalog/people:professionalprofileurl:email:waterfall/1`,billableOperations:jg,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Ag(null),defaultPayload:{pipe_id:Cg,run_if:null,connector:null,config:{providers:Og,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},Fg=`people:professionalprofileurl:name@1`,Ig=g(`name`),Lg=g(`company_name`),Rg=g(`location_hint`),zg=g(`professional_profile_url`),Bg=r.object({pipe_id:r.literal(Fg),connector:w(),run_if:x(),config:r.object({input_fields:z(r.object({[Ig.name]:E({fieldName:Ig.name}),[Lg.name]:E({fieldName:Lg.name}),[Rg.name]:E({fieldName:Rg.name})})),output_fields:R(r.object({[zg.name]:k({fieldName:zg.name})}))}).optional()}),Vg=e=>Pc(H(J(Ig,e)),H(J(Lg,e)),Ic(J(Rg,e))),Hg={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},Ug=class extends U{pipeId=Fg;payload;payloadSchema=Bg;billableOperations=Hg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`people-professionalprofileurl-name-v1-pipe0`)}getInputRequirement(){return Vg(this.payload.config)}getRawOutputFields(){return{[zg.name]:this.catalogOutput(zg)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},Wg=Bg,Gg={pipeId:Fg,basePipe:K(Fg),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:[G.LINKEDIN],billableOperations:Hg,defaultInputRequirement:Vg(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Fg,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}}}}},Kg=`people:profile:waterfall@1`,qg=g(`profile`),Jg=g(`profile_url`),Yg=[`prospeo`,`icypeas`,`amplemarket`,`clado`],Xg=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Zg=r.object({pipe_id:r.literal(Kg),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Yg,defaultProviders:Xg}),input_fields:z(r.object({[Jg.name]:E({fieldName:Jg.name})})),output_fields:R(r.object({[qg.name]:k({fieldName:qg.name})}))}).optional()}),Qg=e=>H(J(Jg,e)),$g={"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}},e_=class extends U{pipeId=Kg;payload;payloadSchema=Zg;billableOperations=$g;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return Qg(this.payload.config)}getRawOutputFields(){return{[qg.name]:this.catalogOutput(qg,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},t_=Zg,n_={pipeId:Kg,basePipe:K(Kg),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(Kg),tags:[G.LINKEDIN,G.WATERFALL],managedProviders:Yg,deprecatedProviders:[`clado`],allowedUserConnectionProviders:Yg,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:$g,defaultInputRequirement:Qg(null),defaultPayload:{pipe_id:Kg,run_if:null,connector:null,config:{providers:Xg,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},r_=g(`work_email`),i_=g(`crustdata_person_match`),a_=g(`crustdata_profile_match_score`),o_=`people:profile:workemail:crustdata@1`,s_=r.object({pipe_id:r.literal(o_),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[r_.name]:E({fieldName:r_.name})})),output_fields:R(r.object({[i_.name]:k({fieldName:i_.name}),[a_.name]:k({fieldName:a_.name})}))}).optional()}),c_=e=>H(J(r_,e)),l_={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},u_=class extends U{pipeId=o_;payload;payloadSchema=s_;billableOperations=l_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return Y(e,`people-profile-workemail-crustdata-v1-crustdata`)}getInputRequirement(){return c_(this.payload.config)}getRawOutputFields(){return{[i_.name]:this.catalogOutput(i_),[a_.name]:this.catalogOutput(a_)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},d_=s_,f_={pipeId:o_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(o_),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:[G.EMAIL,G.PEOPLE_PROFILES],docPath:q(o_),billableOperations:l_,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:c_(null),defaultPayload:{pipe_id:o_,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}}}}},p_=`people:profileurl:email:waterfall@1`,m_=g(`email`),h_=g(`work_email`),g_=g(`profile_url`),__=[`leadmagic`],v_=[{provider:`leadmagic`}],y_=r.object({pipe_id:r.literal(p_),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:v_,availableProviders:__}),input_fields:z(r.object({[m_.name]:E({fieldName:m_.name}),[h_.name]:E({fieldName:h_.name})})),output_fields:R(r.object({[g_.name]:k({fieldName:g_.name})}))}).optional()}),b_=e=>Fc(J(m_,e),J(h_,e)),x_={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},S_=class extends U{pipeId=p_;payload;payloadSchema=y_;billableOperations=x_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return b_(this.payload.config)}getRawOutputFields(){return{[g_.name]:this.catalogOutput(g_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},C_=y_,w_={pipeId:p_,basePipe:K(p_),managedProviders:__,deprecatedProviders:[],allowedUserConnectionProviders:__,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:[G.LINKEDIN],docPath:q(p_),billableOperations:x_,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:b_(null),defaultPayload:{pipe_id:p_,run_if:null,connector:null,config:{providers:v_,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},T_=`people:validate:email:zerobounce@1`,E_=g(`work_email`),D_=g(`ip_address`),O_=g(`is_email_valid`),k_=r.object({pipe_id:r.literal(T_),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[E_.name]:E({fieldName:E_.name}),[D_.name]:E({fieldName:D_.name})})),output_fields:R(r.object({[O_.name]:k({fieldName:O_.name})}))}).optional()}),A_=e=>Pc(H(J(E_,e)),Ic(J(D_,e))),j_={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},M_=class extends U{pipeId=T_;payload;payloadSchema=k_;billableOperations=j_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return Y(e,`people-validate-email-zerobounce-v1-zerobounce`)}getInputRequirement(){return A_(this.payload.config)}getRawOutputFields(){return{[O_.name]:this.catalogOutput(O_)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},N_=k_,P_={pipeId:T_,basePipe:K(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:[G.EMAIL],docPath:`/resources/pipe-catalog/people:validate:email:zerobounce/1`,billableOperations:j_,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:A_(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}}}}},F_=`people:workemail:profileurl:waterfall@1`,I_=g(`profile_url`),L_=g(`work_email`),R_=g(`email_validation_status`),z_=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],B_=[`clado`],V_=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],H_=r.object({pipe_id:r.literal(F_),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:z_,defaultProviders:V_,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({[I_.name]:E({fieldName:I_.name})})),output_fields:R(r.object({[L_.name]:k({fieldName:L_.name}),[R_.name]:k({fieldName:R_.name})}))}).optional()}),U_=e=>H(J(I_,e)),W_={"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`}},G_=class extends U{pipeId=F_;payload;payloadSchema=H_;billableOperations=W_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return U_(this.payload.config)}getRawOutputFields(){return{[L_.name]:this.catalogOutput(L_,{isPrimaryOutput:!0}),[R_.name]:this.catalogOutput(R_,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},K_=H_,q_={pipeId:F_,basePipe:K(F_),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:[G.EMAIL,G.WORK_EMAIL,G.WATERFALL],docPath:q(F_),managedProviders:z_,allowedUserConnectionProviders:z_,deprecatedProviders:B_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:W_,defaultInputRequirement:U_(null),defaultPayload:{pipe_id:F_,connector:null,run_if:null,config:{providers:V_,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}}}}},J_=`people:workemail:waterfall@1`,Y_=g(`name`),X_=g(`company_website_url`),Z_=g(`company_name`),Q_=g(`work_email`),$_=g(`email_validation_status`),ev=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],tv=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],nv=r.object({pipe_id:r.literal(J_),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:ev,defaultProviders:tv,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({[Y_.name]:E({fieldName:Y_.name}),[X_.name]:E({fieldName:X_.name}),[Z_.name]:E({fieldName:Z_.name})})),output_fields:R(r.object({[Q_.name]:k({fieldName:Q_.name}),[$_.name]:k({fieldName:$_.name})}))}).optional()}),rv=e=>Pc(H(J(Y_,e)),Fc(J(X_,e),J(Z_,e))),iv={"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`}},av=class extends U{pipeId=J_;payload;payloadSchema=nv;billableOperations=iv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return rv(this.payload.config)}getRawOutputFields(){return{[Q_.name]:this.catalogOutput(Q_,{isPrimaryOutput:!0}),[$_.name]:this.catalogOutput($_,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},ov=nv,sv={pipeId:J_,basePipe:K(J_),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:[G.EMAIL,G.WORK_EMAIL,G.WATERFALL],docPath:q(J_),managedProviders:ev,deprecatedProviders:[],allowedUserConnectionProviders:ev,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:iv,defaultInputRequirement:rv(null),defaultPayload:{pipe_id:J_,connector:null,run_if:null,config:{providers:tv,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}}}}},cv=`email:iswork@1`,lv=g(`is_work_email`),uv=g(`email`),dv=r.object({pipe_id:r.literal(cv),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[uv.name]:E({fieldName:uv.name})})),output_fields:R(r.object({[lv.name]:k({fieldName:lv.name})}))}).optional()}),fv=e=>H(J(uv,e)),pv={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},mv=class extends U{pipeId=cv;payload;payloadSchema=dv;billableOperations=pv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`email-iswork-v1-pipe0`)}getInputRequirement(){return fv(this.payload.config)}getRawOutputFields(){return{[lv.name]:this.catalogOutput(lv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},hv=dv,gv={pipeId:cv,label:`Work email checker`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Check if a given email address is personal or professional.`,tags:[G.EMAIL,G.WORK_EMAIL],keywords:[`personal`,`professional`,`business`,`corporate`,`classify`,`detect`],docPath:q(cv),billableOperations:pv,basePipe:K(cv),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:fv(null),defaultPayload:{pipe_id:cv,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},_v=`email:send:gmail@1`,vv=g(`gmail_email_success`),yv=r.object({pipe_id:r.literal(_v),connector:ms(),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({[
|
|
70
|
+
β¦`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[vv.name]:k({fieldName:vv.name})}))})}),bv={"email-send-gmail-v1-gmail":{allowManagedConnection:!1,provider:`gmail`,credits:null,mode:null}},xv=class extends U{pipeId=_v;payload;payloadSchema=yv;billableOperations=bv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`gmail`]}estimateBillableOperations(e){return Y(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 Jc(this.getTemplatedFields())}getSecretRequirements(){return Yc(this.getTemplatedFields())}getConstantRequirements(){return Xc(this.getTemplatedFields())}getRawOutputFields(){return{[vv.name]:this.catalogOutput(vv)}}getConnectionsRequirements(){return[{provider:`gmail`,rateLimitRatio:1,rateLimitOperation:`gmail_send_email`,allowManagedConnection:!1}]}},Sv=yv,Cv={pipeId:_v,basePipe:K(_v),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:[G.EMAIL],keywords:[`outreach`,`message`,`mail`,`compose`,`deliver`,`outbound`],docPath:q(_v),billableOperations:bv,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`gmail`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:_v,connector:{strategy:`first`,connections:[]},run_if:null,config:{to:``,reply_to:``,subject:``,body:``,output_fields:{gmail_email_success:{alias:``,enabled:!0}}}}},wv=`email:send:resend@1`,Tv=g(`resend_email_success`),Ev=r.object({pipe_id:r.literal(wv),connector:ms(),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({[Cv.name]:k({fieldName:Cv.name})}))})}),Tv={"email-send-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Ev=class extends U{pipeId=Sv;payload;payloadSchema=wv;billableOperations=Tv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(e){return Y(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 Kc(this.getTemplatedFields())}getSecretRequirements(){return qc(this.getTemplatedFields())}getConstantRequirements(){return Jc(this.getTemplatedFields())}getRawOutputFields(){return{[Cv.name]:this.catalogOutput(Cv)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Dv=wv,Ov={pipeId:Sv,basePipe:K(Sv),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:[G.EMAIL],docPath:q(Sv),billableOperations:Tv,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Sv,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},kv=`email:validate:zerobounce@1`,Av=g(`email`),jv=g(`zerobounce_validation_status`),Mv=g(`zerobounce_validation_match`),Nv=r.object({pipe_id:r.literal(kv),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[Av.name]:E({fieldName:Av.name})})),output_fields:R(r.object({[Mv.name]:k({fieldName:Mv.name}),[jv.name]:k({fieldName:jv.name})}))}).optional()}),Pv=e=>H(J(Av,e)),Fv={"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=kv;payload;payloadSchema=Nv;billableOperations=Fv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return Y(e,`email-validate-zerobounce-v1-zerobounce`)}getInputRequirement(){return Pv(this.payload.config)}getRawOutputFields(){return{[jv.name]:this.catalogOutput(jv),[Mv.name]:this.catalogOutput(Mv)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Lv=Nv,Rv={pipeId:kv,basePipe:K(kv),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:[G.EMAIL],docPath:q(kv),billableOperations:Fv,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Pv(null),defaultPayload:{pipe_id:kv,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},zv=`email:write@1`,Bv=`email-write-v1`,Vv=xo(Bv),Hv=g(`email_subject`),Uv=g(`email_body`),Wv=r.object({pipe_id:r.literal(zv),connector:C(),run_if:x(),config:r.object({template:fs({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:W(`prompt`),groupPath:`config.prompt`,required:!0}),model:Rs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Vv}),signature:Is({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:Ls({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({[Hv.name]:k({fieldName:Hv.name}),[Uv.name]:k({fieldName:Uv.name})}))})}),Gv=class extends U{pipeId=zv;payload;payloadSchema=Wv;billableOperations=Vv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return mo(this.payload.config.model)}estimateBillableOperations(e){return Co(e,{model:this.payload.config.model,prefix:Bv,inputTokens:600,outputTokens:800})}getInputRequirement(){return Kc([this.payload.config.template])}getSecretRequirements(){return qc([this.payload.config.template])}getConstantRequirements(){return Jc([this.payload.config.template])}getRawOutputFields(){return{[Hv.name]:this.catalogOutput(Hv),[Uv.name]:this.catalogOutput(Uv)}}getConnectionsRequirements(){return ho(this.payload.config.model)}},Kv=Wv,qv={pipeId:zv,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:K(zv),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:[G.AI],docPath:q(zv),defaultInputRequirement:null,billableOperations:Vv,allowedUserConnectionProviders:go(),managedProviders:go(),deprecatedProviders:[],defaultPayload:{pipe_id:zv,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:``}}},Jv=`field:domainify@1`,Yv=g(`url_input`),Xv=g(`domain`),Zv=r.object({pipe_id:r.literal(Jv),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Yv.name]:E({fieldName:Yv.name})})),output_fields:R(r.object({[Xv.name]:k({fieldName:Xv.name})}))}).optional()}),Qv=e=>H(J(Yv,e)),$v={"field-domainify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ey=class extends U{pipeId=Jv;payload;payloadSchema=Zv;billableOperations=$v;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Qv(this.payload.config)}getRawOutputFields(){return{[Xv.name]:this.catalogOutput(Xv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},ty=Zv,ny={pipeId:Jv,basePipe:K(Jv),label:`Extract domain`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Transform URL input into a domain. Example: 'https://go.com' to 'go.com'.`,tags:[G.LOGIC,G.FIELDS],docPath:q(Jv),billableOperations:$v,defaultInputRequirement:Qv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Jv,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},ry=`field:slugify@1`,iy=g(`string_input`),ay=g(`slugified`),oy=r.object({pipe_id:r.literal(ry),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[iy.name]:E({fieldName:iy.name})})),output_fields:R(r.object({[ay.name]:k({fieldName:ay.name})}))}).optional()}),sy=e=>H(J(iy,e)),cy={"field-slugify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ly=class extends U{pipeId=ry;payload;payloadSchema=oy;billableOperations=cy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return sy(this.payload.config)}getRawOutputFields(){return{[ay.name]:this.catalogOutput(ay)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},uy=oy,dy={pipeId:ry,basePipe:K(ry),label:`Slugify field`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Strip a field value of characters not commonly found in slugs.`,tags:[G.LOGIC,G.FIELDS],docPath:q(ry),billableOperations:cy,defaultInputRequirement:sy(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:ry,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function fy({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function py(e){switch(e.kind){case`field`:return fy(e.field);case`optional`:return`[optional ${fy(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?py(e.of[0]):`(${e.of.map(py).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?py(e.of[0]):`(${e.of.map(py).join(` OR `)})`}}function my(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})`}`:``}: ${py(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var hy=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:my(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 ${fy(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 gy=class extends Error{},$=class extends gy{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 _y=`fields:merge@1`,vy=g(`merge_result`),yy=r.object({pipe_id:r.literal(_y),connector:w(),run_if:x(),config:r.object({merge_fields:Ss({sectionKey:`general`,groupPath:`config.general`,path:`config.merge_fields`,label:`Fields`,info:`Provide references to input fields`,minItems:2}),output_fields:R(r.object({[vy.name]:k({fieldName:vy.name})}))})}),by={"fields-merge-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},xy=class extends U{pipeId=_y;payload;payloadSchema=yy;billableOperations=by;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`fields-merge-v1-pipe0`)}getInputRequirement(){let e=this.payload.config.merge_fields.map(e=>e.field_name),t;return Nc(...this.payload.config.merge_fields.map(n=>H({format:null,type:r=>{let i=Wc(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{[vy.name]:this.catalogOutput(vy,{resolveType:e=>{let t=Wc(e,this.payload.config.merge_fields.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}]}},Sy=yy,Cy={pipeId:_y,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:K(_y),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:[G.FIELDS,G.LOGIC],docPath:q(_y),defaultInputRequirement:null,billableOperations:by,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:_y,connector:null,run_if:null,config:{merge_fields:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},wy=`http:request@1`,Ty=g(`http_response_status`),Ey=g(`http_response_body`),Dy=g(`http_response_headers`),Oy=r.object({pipe_id:r.literal(wy),connector:w(),run_if:x(),config:r.object({method:Ls({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:ks({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:R(r.object({[Tv.name]:k({fieldName:Tv.name})}))})}),Dv={"email-send-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Ov=class extends U{pipeId=wv;payload;payloadSchema=Ev;billableOperations=Dv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(e){return Y(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 Jc(this.getTemplatedFields())}getSecretRequirements(){return Yc(this.getTemplatedFields())}getConstantRequirements(){return Xc(this.getTemplatedFields())}getRawOutputFields(){return{[Tv.name]:this.catalogOutput(Tv)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},kv=Ev,Av={pipeId:wv,basePipe:K(wv),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:[G.EMAIL],keywords:[`outreach`,`message`,`mail`,`deliver`,`outbound`,`transactional`],docPath:q(wv),billableOperations:Dv,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:wv,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},jv=`email:validate:zerobounce@1`,Mv=g(`email`),Nv=g(`zerobounce_validation_status`),Pv=g(`zerobounce_validation_match`),Fv=r.object({pipe_id:r.literal(jv),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[Mv.name]:E({fieldName:Mv.name})})),output_fields:R(r.object({[Pv.name]:k({fieldName:Pv.name}),[Nv.name]:k({fieldName:Nv.name})}))}).optional()}),Iv=e=>H(J(Mv,e)),Lv={"email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.4,level1:{credits:.3,weight:1},level2:{credits:.15,weight:6}},mode:`always`}},Rv=class extends U{pipeId=jv;payload;payloadSchema=Fv;billableOperations=Lv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return Y(e,`email-validate-zerobounce-v1-zerobounce`)}getInputRequirement(){return Iv(this.payload.config)}getRawOutputFields(){return{[Nv.name]:this.catalogOutput(Nv),[Pv.name]:this.catalogOutput(Pv)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},zv=Fv,Bv={pipeId:jv,basePipe:K(jv),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:[G.EMAIL],keywords:[`verify`,`verification`,`bounce`,`deliverability`,`check`,`clean`],docPath:q(jv),billableOperations:Lv,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Iv(null),defaultPayload:{pipe_id:jv,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},Vv=`email:write@1`,Hv=`email-write-v1`,Uv=xo(Hv),Wv=g(`email_subject`),Gv=g(`email_body`),Kv=r.object({pipe_id:r.literal(Vv),connector:C(),run_if:x(),config:r.object({template:fs({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:W(`prompt`),groupPath:`config.prompt`,required:!0}),model:Bs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Uv}),signature:Rs({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:zs({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({[Wv.name]:k({fieldName:Wv.name}),[Gv.name]:k({fieldName:Gv.name})}))})}),qv=class extends U{pipeId=Vv;payload;payloadSchema=Kv;billableOperations=Uv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return mo(this.payload.config.model)}estimateBillableOperations(e){return Co(e,{model:this.payload.config.model,prefix:Hv,inputTokens:600,outputTokens:800})}getInputRequirement(){return Jc([this.payload.config.template])}getSecretRequirements(){return Yc([this.payload.config.template])}getConstantRequirements(){return Xc([this.payload.config.template])}getRawOutputFields(){return{[Wv.name]:this.catalogOutput(Wv),[Gv.name]:this.catalogOutput(Gv)}}getConnectionsRequirements(){return ho(this.payload.config.model)}},Jv=Kv,Yv={pipeId:Vv,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:K(Vv),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:[G.AI],keywords:[`ai`,`compose`,`draft`,`generate`,`copywriting`,`personalize`,`outreach`],docPath:q(Vv),defaultInputRequirement:null,billableOperations:Uv,allowedUserConnectionProviders:go(),managedProviders:go(),deprecatedProviders:[],defaultPayload:{pipe_id:Vv,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:``}}},Xv=`field:domainify@1`,Zv=g(`url_input`),Qv=g(`domain`),$v=r.object({pipe_id:r.literal(Xv),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[Zv.name]:E({fieldName:Zv.name})})),output_fields:R(r.object({[Qv.name]:k({fieldName:Qv.name})}))}).optional()}),ey=e=>H(J(Zv,e)),ty={"field-domainify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ny=class extends U{pipeId=Xv;payload;payloadSchema=$v;billableOperations=ty;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return ey(this.payload.config)}getRawOutputFields(){return{[Qv.name]:this.catalogOutput(Qv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},ry=$v,iy={pipeId:Xv,basePipe:K(Xv),label:`Extract domain`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Transform URL input into a domain. Example: 'https://go.com' to 'go.com'.`,tags:[G.LOGIC,G.FIELDS],keywords:[`url`,`website`,`hostname`,`clean`,`strip`,`parse`],docPath:q(Xv),billableOperations:ty,defaultInputRequirement:ey(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Xv,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},ay=`field:slugify@1`,oy=g(`string_input`),sy=g(`slugified`),cy=r.object({pipe_id:r.literal(ay),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[oy.name]:E({fieldName:oy.name})})),output_fields:R(r.object({[sy.name]:k({fieldName:sy.name})}))}).optional()}),ly=e=>H(J(oy,e)),uy={"field-slugify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},dy=class extends U{pipeId=ay;payload;payloadSchema=cy;billableOperations=uy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return ly(this.payload.config)}getRawOutputFields(){return{[sy.name]:this.catalogOutput(sy)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},fy=cy,py={pipeId:ay,basePipe:K(ay),label:`Slugify field`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Strip a field value of characters not commonly found in slugs.`,tags:[G.LOGIC,G.FIELDS],keywords:[`clean`,`sanitize`,`normalize`,`url safe`,`format`,`strip`],docPath:q(ay),billableOperations:uy,defaultInputRequirement:ly(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:ay,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function my({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function hy(e){switch(e.kind){case`field`:return my(e.field);case`optional`:return`[optional ${my(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?hy(e.of[0]):`(${e.of.map(hy).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?hy(e.of[0]):`(${e.of.map(hy).join(` OR `)})`}}function gy(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})`}`:``}: ${hy(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var _y=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:gy(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 ${my(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 vy=class extends Error{},$=class extends vy{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 yy=`fields:merge@1`,by=g(`merge_result`),xy=r.object({pipe_id:r.literal(yy),connector:w(),run_if:x(),config:r.object({merge_fields:Ss({sectionKey:`general`,groupPath:`config.general`,path:`config.merge_fields`,label:`Fields`,info:`Provide references to input fields`,minItems:2}),output_fields:R(r.object({[by.name]:k({fieldName:by.name})}))})}),Sy={"fields-merge-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Cy=class extends U{pipeId=yy;payload;payloadSchema=xy;billableOperations=Sy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`fields-merge-v1-pipe0`)}getInputRequirement(){let e=this.payload.config.merge_fields.map(e=>e.field_name),t;return Fc(...this.payload.config.merge_fields.map(n=>H({format:null,type:r=>{let i=Kc(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{[by.name]:this.catalogOutput(by,{resolveType:e=>{let t=Kc(e,this.payload.config.merge_fields.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}]}},wy=xy,Ty={pipeId:yy,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:K(yy),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:[G.FIELDS,G.LOGIC],keywords:[`combine`,`join`,`coalesce`,`fallback`,`concat`,`first defined`],docPath:q(yy),defaultInputRequirement:null,billableOperations:Sy,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:yy,connector:null,run_if:null,config:{merge_fields:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},Ey=`http:request@1`,Dy=g(`http_response_status`),Oy=g(`http_response_body`),ky=g(`http_response_headers`),Ay=r.object({pipe_id:r.literal(Ey),connector:w(),run_if:x(),config:r.object({method:zs({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:js({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:ks({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:Hs({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({[Ty.name]:k({fieldName:Ty.name}),[Ey.name]:k({fieldName:Ey.name}),[Dy.name]:k({fieldName:Dy.name})}))})}),ky={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},Ay=class extends U{pipeId=wy;payload;payloadSchema=Oy;billableOperations=ky;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(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 Kc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return qc(this.getTemplatedFields())}getConstantRequirements(){return Jc(this.getTemplatedFields())}getRawOutputFields(){return{[Ty.name]:this.catalogOutput(Ty),[Ey.name]:this.catalogOutput(Ey),[Dy.name]:this.catalogOutput(Dy)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},jy=Oy,My={pipeId:wy,basePipe:K(wy),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:[G.LOGIC,G.JSON,G.NEW],docPath:q(wy),billableOperations:ky,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:wy,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`,Py=r.object({pipe_id:r.literal(Ny),run_if:x(),connector:w(),config:r.object({json_extraction:Io()})}),Fy={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Iy=class extends U{pipeId=Ny;payload;payloadSchema=Py;billableOperations=Fy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(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[]}},Ly=Py,Ry={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:[G.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:Fy,defaultInputRequirement:null,defaultPayload:{pipe_id:Ny,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},zy=`lead:enroll:lemlist@1`,By={"lead-enroll-lemlist-v1-lemlist":{allowManagedConnection:!1,provider:`lemlist`,credits:null,mode:null}},Vy=g(`email`),Hy=g(`name`),Uy=g(`first_name`),Wy=g(`last_name`),Gy=g(`company_name`),Ky=g(`job_title`),qy=g(`profile_url`),Jy=g(`phone`),Yy=g(`lemlist_lead_id`),Xy=g(`lemlist_enrollment_result`),Zy=new Set([`email`,`firstName`,`lastName`,`name`,`companyName`,`jobTitle`,`linkedinUrl`,`phone`,`companyDomain`,`icebreaker`,`picture`]),Qy=[{label:`Demo Β· Q3 Outbound`,value:`cam_sandbox_1`},{label:`Demo Β· Founder Intros`,value:`cam_sandbox_2`}],$y={requires:{connection:`lemlist`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Qy;if(!t)throw new hd.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 hd.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 eb(e){let t=new Set,n=new Set;try{let r=Ta(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 tb=r.object({pipe_id:r.literal(zy),connector:ms(),run_if:x(),config:r.object({campaign_id:Us({sectionKey:`general`,required:!0,label:`Campaign`,groupPath:`config.general`,path:`config.campaign_id`,info:`The lemlist campaign to enroll the lead into.`,enabledIf:no(`lemlist`),optionsDef:$y}),input_fields:z(r.object({[Vy.name]:E({fieldName:Vy.name}),[Hy.name]:E({fieldName:Hy.name}),[Uy.name]:E({fieldName:Uy.name}),[Wy.name]:E({fieldName:Wy.name}),[Gy.name]:E({fieldName:Gy.name}),[Ky.name]:E({fieldName:Ky.name}),[qy.name]:E({fieldName:qy.name}),[Jy.name]:E({fieldName:Jy.name})})),custom_variables:ks({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({[Yy.name]:k({fieldName:Yy.name}),[Xy.name]:k({fieldName:Xy.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}Zy.has(t)&&r(`"${t}" is a standard lemlist field β set it via the dedicated field above, not as a custom variable.`)}})}),nb=e=>Mc(H(J(Vy,e)),Nc(H(J(Hy,e)),Mc(H(J(Uy,e)),H(J(Wy,e)))),Pc(J(Gy,e)),Pc(J(Ky,e)),Pc(J(qy,e)),Pc(J(Jy,e))),rb=e=>{let t=new Set;for(let n of e)if(n)try{let e=Ta(n);for(let n of Object.keys(e.inputs))t.add(n)}catch{}return[...t].map(e=>Pc({name:e,resolvedName:e,label:e,description:``,type:t=>Gc(t,e)?.type||`string`,format:`text`}))},ib=class extends U{pipeId=zy;payload;payloadSchema=tb;billableOperations=By;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`lemlist`]}estimateBillableOperations(e){return Y(e,`lead-enroll-lemlist-v1-lemlist`)}getCustomVariableValueTemplates(){return Object.values(this.payload.config.custom_variables??{})}getInputRequirement(){return Mc(nb(this.payload.config),...rb(this.getCustomVariableValueTemplates()))}getSecretRequirements(){return qc(this.getCustomVariableValueTemplates())}getConstantRequirements(){return Jc(this.getCustomVariableValueTemplates())}getRawOutputFields(){return{[Yy.name]:this.catalogOutput(Yy),[Xy.name]:this.catalogOutput(Xy)}}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 hd.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 hd.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}=eb(e);for(let e of[...t,...n])s.add(e)}let c=[...s].filter(e=>Zy.has(e)),l=[...s].filter(e=>!Zy.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}}}},ab=tb,ob={pipeId:zy,basePipe:K(zy),label:`Enroll Lead in Campaign`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Add a lead to a lemlist campaign sequence, with custom variables.`,tags:[G.EMAIL],docPath:q(zy),billableOperations:By,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`lemlist`],defaultInputRequirement:nb(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:zy,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}}}}},sb=`message:send:slack@1`,cb=g(`slack_message_success`),lb=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],ub=r.object({pipe_id:r.literal(sb),connector:ms(),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 lb;if(!t)throw new hd.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 hd.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new hd.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({[cb.name]:k({fieldName:cb.name})}))})}),db={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},fb=class extends U{pipeId=sb;payload;payloadSchema=ub;billableOperations=db;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(e){return Y(e,`message-send-slack-v1-slack`)}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return Kc(this.getTemplatedFields())}getSecretRequirements(){return qc(this.getTemplatedFields())}getConstantRequirements(){return Jc(this.getTemplatedFields())}getRawOutputFields(){return{[cb.name]:this.catalogOutput(cb)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},pb=ub,mb={pipeId:sb,basePipe:K(sb),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:[G.CHAT],docPath:q(sb),billableOperations:db,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:sb,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},hb=`message:write@1`,gb=g(`message`),_b=`message-write-v1`,vb=xo(_b),yb=r.object({pipe_id:r.literal(hb),connector:C(),run_if:x(),config:r.object({template:fs({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:W(`prompt`),groupPath:`config.prompt`,required:!0}),model:Rs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:vb}),output_fields:R(r.object({[gb.name]:k({fieldName:gb.name})}))})}),bb=class extends U{pipeId=hb;payload;payloadSchema=yb;billableOperations=vb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return mo(this.payload.config.model)}estimateBillableOperations(e){return Co(e,{model:this.payload.config.model,prefix:_b,inputTokens:600,outputTokens:800})}getInputRequirement(){return Kc([this.payload.config.template])}getSecretRequirements(){return qc([this.payload.config.template])}getConstantRequirements(){return Jc([this.payload.config.template])}getRawOutputFields(){return{[gb.name]:this.catalogOutput(gb)}}getConnectionsRequirements(){return ho(this.payload.config.model)}},xb=yb,Sb={pipeId:hb,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:K(hb),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:[G.AI],docPath:q(hb),defaultInputRequirement:null,billableOperations:vb,allowedUserConnectionProviders:go(),managedProviders:go(),deprecatedProviders:[],defaultPayload:{pipe_id:hb,connector:null,run_if:null,config:{model:`openai-high`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},Cb=`person:devprofileurl:profileurl:waterfall@1`,wb=g(`profile_url`),Tb=g(`developer_profile_url`),Eb=g(`alternative_developer_profile_urls`),Db=[`crustdata`],Ob=[{provider:`crustdata`}],kb=r.object({pipe_id:r.literal(Cb),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Ob,availableProviders:Db}),input_fields:z(r.object({[wb.name]:E({fieldName:wb.name})})),output_fields:R(r.object({[Tb.name]:k({fieldName:Tb.name}),[Eb.name]:k({fieldName:Eb.name})}))}).optional()}),Ab=e=>H(J(wb,e)),jb={"person-devprofileurl-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1.3,weight:1}},mode:`onSuccess`}},Mb=class extends U{pipeId=Cb;payload;payloadSchema=kb;billableOperations=jb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return Ab(this.payload.config)}getRawOutputFields(){return{[Tb.name]:this.catalogOutput(Tb,{isPrimaryOutput:!0}),[Eb.name]:this.catalogOutput(Eb,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Nb=kb,Pb={pipeId:Cb,basePipe:K(Cb),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(Cb),tags:[G.LINKEDIN,G.WATERFALL,G.NEW],billableOperations:jb,defaultInputRequirement:Ab(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Db,allowedUserConnectionProviders:Db,deprecatedProviders:[],defaultPayload:{pipe_id:Cb,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}}}}},Fb=`person:email:validate:millionverifier@1`,Ib=g(`email`),Lb=g(`email_validation_status`),Rb=g(`million_validation_match`),zb=r.object({pipe_id:r.literal(Fb),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[Ib.name]:E({fieldName:Ib.name})})),output_fields:R(r.object({[Lb.name]:k({fieldName:Lb.name}),[Rb.name]:k({fieldName:Rb.name})}))}).optional()}),Bb=e=>H(J(Ib,e)),Vb={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},Hb=class extends U{pipeId=Fb;payload;payloadSchema=zb;billableOperations=Vb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(e){return Y(e,`person-email-validate-millionverifier-v1-millionverifier`)}getInputRequirement(){return Bb(this.payload.config)}getRawOutputFields(){return{[Lb.name]:this.catalogOutput(Lb),[Rb.name]:this.catalogOutput(Rb)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},Ub=zb,Wb={pipeId:Fb,basePipe:K(Fb),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[G.EMAIL],docPath:q(Fb),billableOperations:Vb,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:Bb(null),defaultPayload:{pipe_id:Fb,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},Gb=g(`email`),Kb=g(`amplemarket_person_match`),qb=`person:identity:amplemarket@1`,Jb=r.object({pipe_id:r.literal(qb),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[Gb.name]:E({fieldName:Gb.name})})),output_fields:R(r.object({[Kb.name]:k({fieldName:Kb.name})}))}).optional()}),Yb=e=>H(J(Gb,e)),Xb={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},Zb=class extends U{pipeId=qb;payload;payloadSchema=Jb;billableOperations=Xb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return Yb(this.payload.config)}getRawOutputFields(){return{[Kb.name]:this.catalogOutput(Kb)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},Qb=Jb,$b={pipeId:qb,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(qb),label:`Person identity`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their email`,tags:[G.PEOPLE_PROFILES],docPath:q(qb),billableOperations:Xb,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:Yb(null),defaultPayload:{pipe_id:qb,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},ex=`person:identity:email:waterfall@1`,tx=g(`email`),nx=g(`company_domain`),rx=g(`name`),ix=g(`job_title`),ax=g(`profile_url`),ox=g(`company_profile_url`),sx=g(`company_name`),cx=[`findymail`,`hunter`,`crustdata`],lx=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],ux=r.object({pipe_id:r.literal(ex),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:cx,defaultProviders:lx,sectionKey:`general`}),input_fields:z(r.object({[tx.name]:E({fieldName:tx.name})})),output_fields:R(r.object({[rx.name]:k({fieldName:rx.name}),[ax.name]:k({fieldName:ax.name}),[ix.name]:k({fieldName:ix.name}),[nx.name]:k({fieldName:nx.name}),[sx.name]:k({fieldName:sx.name}),[ox.name]:k({fieldName:ox.name})}))}).optional()}),dx=e=>H(J(tx,e)),fx={"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`}},px=class extends U{pipeId=ex;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 Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return dx(this.payload.config)}getRawOutputFields(){return{[rx.name]:this.catalogOutput(rx,{isPrimaryOutput:!0}),[ax.name]:this.catalogOutput(ax,{isPrimaryOutput:!0}),[ix.name]:this.catalogOutput(ix,{isPrimaryOutput:!0}),[sx.name]:this.catalogOutput(sx,{isPrimaryOutput:!0}),[ox.name]:this.catalogOutput(ox,{isPrimaryOutput:!0}),[nx.name]:this.catalogOutput(nx,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},mx=ux,hx={pipeId:ex,basePipe:K(ex),label:`Person identity from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find identity of a person from their email address.`,tags:[G.EMAIL,G.PEOPLE_PROFILES],docPath:q(ex),managedProviders:cx,deprecatedProviders:[],allowedUserConnectionProviders:cx,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:fx,defaultInputRequirement:dx(null),defaultPayload:{pipe_id:ex,connector:null,run_if:null,config:{providers:lx,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}}}}},gx=g(`profile_url`),_x=g(`amplemarket_person_match`),vx=`person:match:amplemarket@1`,yx=r.object({pipe_id:r.literal(vx),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[gx.name]:E({fieldName:gx.name})})),output_fields:R(r.object({[_x.name]:k({fieldName:_x.name})}))}).optional()}),bx=e=>H(J(gx,e)),xx={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},Sx=class extends U{pipeId=vx;payload;payloadSchema=yx;billableOperations=xx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return bx(this.payload.config)}getRawOutputFields(){return{[_x.name]:this.catalogOutput(_x)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},Cx=yx,wx={pipeId:vx,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(vx),label:`Person match`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their LinkedIn profile URL.`,tags:[G.PEOPLE_PROFILES],docPath:q(vx),billableOperations:xx,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:bx(null),defaultPayload:{pipe_id:vx,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},Tx=`person:match:role:waterfall@1`,Ex=g(`company_domain`),Dx=g(`role_finder_match`),Ox=[`leadmagic`],kx=[{provider:`leadmagic`}],Ax=r.object({pipe_id:r.literal(Tx),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:kx,availableProviders:Ox}),roles:Os({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({[Ex.name]:E({fieldName:Ex.name})})),output_fields:R(r.object({[Dx.name]:k({fieldName:Dx.name})}))})}),jx=e=>Nc(J(Ex,e)),Mx={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Nx=class extends U{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 Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return jx(this.payload.config)}getSecretRequirements(){return qc(this.payload.config?.roles??[])}getConstantRequirements(){return Jc(this.payload.config?.roles??[])}getRawOutputFields(){return{[Dx.name]:this.catalogOutput(Dx,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Px=Ax,Fx={pipeId:Tx,basePipe:K(Tx),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:[G.PEOPLE_PROFILES],docPath:q(Tx),billableOperations:Mx,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:jx(null),defaultPayload:{pipe_id:Tx,run_if:null,connector:null,config:{roles:[],providers:kx,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},Ix=`person:mobile:profileurl:waterfall@1`,Lx=g(`profile_url`),Rx=g(`mobile`),zx=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],Bx=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Vx=r.object({pipe_id:r.literal(Ix),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Bx,availableProviders:zx}),input_fields:z(r.object({[Lx.name]:E({fieldName:Lx.name})})),output_fields:R(r.object({[Rx.name]:k({fieldName:Rx.name})}))}).optional()}),Hx=e=>H(J(Lx,e)),Ux={"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`}},Wx=class extends U{pipeId=Ix;payload;payloadSchema=Vx;billableOperations=Ux;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return Hx(this.payload.config)}getRawOutputFields(){return{[Rx.name]:this.catalogOutput(Rx,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Gx=Vx,Kx={pipeId:Ix,basePipe:K(Ix),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(Ix),tags:[G.PHONE,G.WATERFALL],billableOperations:Ux,defaultInputRequirement:Hx(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:zx,allowedUserConnectionProviders:zx,deprecatedProviders:[],defaultPayload:{pipe_id:Ix,connector:null,run_if:null,config:{providers:Bx,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},qx=`person:mobile:workemail:waterfall@1`,Jx=g(`work_email`),Yx=g(`mobile`),Xx=[`leadmagic`,`amplemarket`],Zx=[{provider:`leadmagic`},{provider:`amplemarket`}],Qx=r.object({pipe_id:r.literal(qx),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Xx,defaultProviders:Zx}),input_fields:z(r.object({[Jx.name]:E({fieldName:Jx.name})})),output_fields:R(r.object({[Yx.name]:k({fieldName:Yx.name})}))}).optional()}),$x=e=>H(J(Jx,e)),eS={"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`}},tS=class extends U{pipeId=qx;payload;payloadSchema=Qx;billableOperations=eS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return $x(this.payload.config)}getRawOutputFields(){return{[Yx.name]:this.catalogOutput(Yx,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},nS=Qx,rS={pipeId:qx,basePipe:K(qx),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for a prospect.`,tags:[G.PHONE,G.WATERFALL],docPath:q(qx),billableOperations:eS,defaultInputRequirement:$x(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Xx,managedProviders:Xx,deprecatedProviders:[],defaultPayload:{pipe_id:qx,connector:null,run_if:null,config:{providers:Zx,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},iS=`person:name:join@1`,aS=g(`first_name`),oS=g(`last_name`),sS=g(`name`),cS=r.object({pipe_id:r.literal(iS),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[aS.name]:E({fieldName:aS.name}),[oS.name]:E({fieldName:oS.name})})),output_fields:R(r.object({[sS.name]:k({fieldName:sS.name})}))}).optional()}),lS=e=>Mc(J(aS,e),J(oS,e)),uS={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},dS=class extends U{pipeId=iS;payload;payloadSchema=cS;billableOperations=uS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`person-name-join-v1-pipe0`)}getInputRequirement(){return lS(this.payload.config)}getRawOutputFields(){return{[sS.name]:this.catalogOutput(sS)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},fS=cS,pS={pipeId:iS,basePipe:K(iS),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:[G.NAMES],docPath:q(iS),billableOperations:uS,defaultInputRequirement:lS(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:iS,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},mS=`person:name:split@1`,hS=g(`name`),gS=g(`first_name`),_S=g(`last_name`),vS=r.object({pipe_id:r.literal(mS),connector:w(),run_if:x(),config:r.object({input_fields:z(r.object({[hS.name]:E({fieldName:hS.name})})),output_fields:R(r.object({[gS.name]:k({fieldName:gS.name}),[_S.name]:k({fieldName:_S.name})}))}).optional()}),yS=e=>H(J(hS,e)),bS={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},xS=class extends U{pipeId=mS;payload;payloadSchema=vS;billableOperations=bS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`person-name-split-v1-pipe0`)}getInputRequirement(){return yS(this.payload.config)}getRawOutputFields(){return{[gS.name]:this.catalogOutput(gS),[_S.name]:this.catalogOutput(_S)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},SS=vS,CS={pipeId:mS,basePipe:K(mS),label:`Split name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Split a full name into first and last name.`,tags:[G.NAMES],docPath:q(mS),billableOperations:bS,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:yS(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:mS,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},wS=`person:personalemail:profileurl:waterfall@1`,TS=g(`profile_url`),ES=g(`personal_email`),DS=g(`alternate_personal_emails`),OS=[`leadmagic`,`mixrank`],kS=[{provider:`leadmagic`},{provider:`mixrank`}],AS=r.object({pipe_id:r.literal(wS),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:OS,defaultProviders:kS}),input_fields:z(r.object({[TS.name]:E({fieldName:TS.name})})),output_fields:R(r.object({[ES.name]:k({fieldName:ES.name}),[DS.name]:k({fieldName:DS.name})}))}).optional()}),jS=e=>H(J(TS,e)),MS={"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=wS;payload;payloadSchema=AS;billableOperations=MS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return jS(this.payload.config)}getRawOutputFields(){return{[ES.name]:this.catalogOutput(ES,{isPrimaryOutput:!0}),[DS.name]:this.catalogOutput(DS)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},PS=AS,FS={pipeId:wS,basePipe:K(wS),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:[G.EMAIL,G.PERSONAL_EMAIL],docPath:q(wS),billableOperations:MS,defaultInputRequirement:jS(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:wS,connector:null,run_if:null,config:{providers:kS,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},IS=g(`profile_url`),LS=g(`post_list_string`),RS=g(`crustdata_post_list`),zS=`person:posts:content:crustdata@1`,BS=r.object({pipe_id:r.literal(zS),run_if:x(),connector:C(),config:r.object({limit:Bs({path:`config.limit`,groupPath:`config.general`,max:100,min:1,sectionKey:`general`,info:``,label:`Limit`,legend:`Max. 100`}),input_fields:z(r.object({[IS.name]:E({fieldName:IS.name})})),output_fields:R(r.object({[LS.name]:k({fieldName:LS.name}),[RS.name]:k({fieldName:RS.name})}))}).optional()}),VS=e=>H(J(IS,e)),HS={"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`}},US=class extends U{pipeId=zS;payload;payloadSchema=BS;billableOperations=HS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return Y(e,`person-posts-crustdata-v1-crustdata`)}getInputRequirement(){return VS(this.payload.config)}getRawOutputFields(){return{[LS.name]:this.catalogOutput(LS),[RS.name]:this.catalogOutput(RS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},WS=BS,GS={pipeId:zS,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(zS),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[G.LINKEDIN],docPath:q(zS),billableOperations:HS,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:VS(null),defaultPayload:{pipe_id:zS,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}}}}},KS=`person:profile:waterfall@1`,qS=g(`profile`),JS=g(`profile_url`),YS=[`prospeo`,`icypeas`,`amplemarket`],XS=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],ZS=r.object({pipe_id:r.literal(KS),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:YS,defaultProviders:XS}),input_fields:z(r.object({[JS.name]:E({fieldName:JS.name})})),output_fields:R(r.object({[qS.name]:k({fieldName:qS.name})}))}).optional()}),QS=e=>H(J(JS,e)),$S={"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}},eC=class extends U{pipeId=KS;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 Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return QS(this.payload.config)}getRawOutputFields(){return{[qS.name]:this.catalogOutput(qS,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},tC=ZS,nC={pipeId:KS,basePipe:K(KS),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:q(KS),tags:[G.LINKEDIN,G.WATERFALL],managedProviders:YS,deprecatedProviders:[],allowedUserConnectionProviders:YS,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:$S,defaultInputRequirement:QS(null),defaultPayload:{pipe_id:KS,run_if:null,connector:null,config:{providers:XS,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},rC=g(`work_email`),iC=g(`crustdata_person_match`),aC=g(`crustdata_profile_match_score`),oC=`person:profile:workemail:crustdata@1`,sC=r.object({pipe_id:r.literal(oC),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[rC.name]:E({fieldName:rC.name})})),output_fields:R(r.object({[iC.name]:k({fieldName:iC.name}),[aC.name]:k({fieldName:aC.name})}))}).optional()}),cC=e=>H(J(rC,e)),lC={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},uC=class extends U{pipeId=oC;payload;payloadSchema=sC;billableOperations=lC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return Y(e,`person-profile-workemail-crustdata-v1-crustdata`)}getInputRequirement(){return cC(this.payload.config)}getRawOutputFields(){return{[iC.name]:this.catalogOutput(iC),[aC.name]:this.catalogOutput(aC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},dC=sC,fC={pipeId:oC,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(oC),label:`Profile from work email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find person profile by their work email address.`,tags:[G.EMAIL,G.PEOPLE_PROFILES],docPath:q(oC),billableOperations:lC,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:cC(null),defaultPayload:{pipe_id:oC,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}}}}},pC=`person:profileurl:email:waterfall@1`,mC=g(`email`),hC=g(`work_email`),gC=g(`profile_url`),_C=[`leadmagic`],vC=[{provider:`leadmagic`}],yC=r.object({pipe_id:r.literal(pC),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:vC,availableProviders:_C}),input_fields:z(r.object({[mC.name]:E({fieldName:mC.name}),[hC.name]:E({fieldName:hC.name})})),output_fields:R(r.object({[gC.name]:k({fieldName:gC.name})}))}).optional()}),bC=e=>Nc(J(mC,e),J(hC,e)),xC={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},SC=class extends U{pipeId=pC;payload;payloadSchema=yC;billableOperations=xC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return bC(this.payload.config)}getRawOutputFields(){return{[gC.name]:this.catalogOutput(gC,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},CC=yC,wC={pipeId:pC,basePipe:K(pC),managedProviders:_C,deprecatedProviders:[],allowedUserConnectionProviders:_C,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:[G.LINKEDIN],docPath:q(pC),billableOperations:xC,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:bC(null),defaultPayload:{pipe_id:pC,run_if:null,connector:null,config:{providers:vC,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},TC=`person:profileurl:name@1`,EC=g(`name`),DC=g(`company_name`),OC=g(`location_hint`),kC=g(`profile_url`),AC=r.object({pipe_id:r.literal(TC),connector:w(),run_if:x(),config:r.object({input_fields:z(r.object({[EC.name]:E({fieldName:EC.name}),[DC.name]:E({fieldName:DC.name}),[OC.name]:E({fieldName:OC.name})})),output_fields:R(r.object({[kC.name]:k({fieldName:kC.name})}))}).optional()}),jC=e=>Mc(H(J(EC,e)),H(J(DC,e)),Pc(J(OC,e))),MC={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},NC=class extends U{pipeId=TC;payload;payloadSchema=AC;billableOperations=MC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`person-profileurl-name-v1-pipe0`)}getInputRequirement(){return jC(this.payload.config)}getRawOutputFields(){return{[kC.name]:this.catalogOutput(kC)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},PC=AC,FC={pipeId:TC,basePipe:K(TC),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(TC),tags:[G.LINKEDIN],billableOperations:MC,defaultInputRequirement:jC(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:TC,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},IC=`person:workemail:profileurl:waterfall@1`,LC=g(`profile_url`),RC=g(`work_email`),zC=g(`email_validation_status`),BC=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],VC=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],HC=r.object({pipe_id:r.literal(IC),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:BC,defaultProviders:VC,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({[LC.name]:E({fieldName:LC.name})})),output_fields:R(r.object({[RC.name]:k({fieldName:RC.name}),[zC.name]:k({fieldName:zC.name})}))}).optional()}),UC=e=>H(J(LC,e)),WC={"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`}},GC=class extends U{pipeId=IC;payload;payloadSchema=HC;billableOperations=WC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return UC(this.payload.config)}getRawOutputFields(){return{[RC.name]:this.catalogOutput(RC,{isPrimaryOutput:!0}),[zC.name]:this.catalogOutput(zC,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},KC=HC,qC={pipeId:IC,basePipe:K(IC),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses from B2B profile.`,tags:[G.EMAIL,G.WORK_EMAIL,G.WATERFALL],docPath:q(IC),managedProviders:BC,allowedUserConnectionProviders:BC,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:WC,defaultInputRequirement:UC(null),defaultPayload:{pipe_id:IC,connector:null,run_if:null,config:{providers:VC,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}}}}},JC=`person:workemail:waterfall@1`,YC=g(`name`),XC=g(`company_domain`),ZC=g(`company_name`),QC=g(`work_email`),$C=g(`email_validation_status`),ew=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],tw=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],nw={"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`}},rw=r.object({pipe_id:r.literal(JC),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:ew,defaultProviders:tw,sectionKey:`general`,providerCredits:Yc(nw,ew)}),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({[YC.name]:E({fieldName:YC.name}),[XC.name]:E({fieldName:XC.name}),[ZC.name]:E({fieldName:ZC.name})})),output_fields:R(r.object({[QC.name]:k({fieldName:QC.name}),[$C.name]:k({fieldName:$C.name})}))}).optional()}),iw=e=>Mc(H(J(YC,e)),Nc(J(XC,e),J(ZC,e))),aw=class extends U{pipeId=JC;payload;payloadSchema=rw;billableOperations=nw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return iw(this.payload.config)}getRawOutputFields(){return{[QC.name]:this.catalogOutput(QC,{isPrimaryOutput:!0}),[$C.name]:this.catalogOutput($C,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},ow=rw,sw={pipeId:JC,basePipe:K(JC),label:`Work email from name`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses in a waterfall motion.`,tags:[G.EMAIL,G.WORK_EMAIL,G.WATERFALL],docPath:q(JC),managedProviders:ew,deprecatedProviders:[],allowedUserConnectionProviders:ew,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:nw,defaultInputRequirement:iw(null),defaultPayload:{pipe_id:JC,connector:null,run_if:null,config:{providers:tw,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}}}}},cw=`prompt:run@1`,lw=`prompt-run-v1`,uw=xo(lw),dw=r.object({pipe_id:r.literal(cw),connector:C(),run_if:x(),config:r.object({prompt:ds({sectionKey:`general`,path:`config.prompt`,placeholder:W(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:Rs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:uw})})}),fw=class extends U{pipeId=cw;payload;payloadSchema=dw;billableOperations=uw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return mo(this.payload.config.model)}estimateBillableOperations(e){return Co(e,{model:this.payload.config.model,prefix:lw,inputTokens:600,outputTokens:800})}getInputRequirement(){return Kc([this.payload.config.prompt.template])}getSecretRequirements(){return qc([this.payload.config.prompt.template])}getConstantRequirements(){return Jc([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=Ta(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 ho(this.payload.config.model)}},pw=dw,mw={pipeId:cw,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:K(cw),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:[G.AI],docPath:q(cw),defaultInputRequirement:null,billableOperations:uw,allowedUserConnectionProviders:go(),managedProviders:go(),deprecatedProviders:[],defaultPayload:{pipe_id:cw,connector:null,run_if:null,config:{model:`openai-high`,prompt:{template:``,json_schemas:{}}}}},hw=r.array(r.object({field_name:r.string(),entry_field:r.string().optional()})).check(e=>{let t=new Set;e.value.forEach((n,r)=>{n.field_name.length<1&&e.issues.push({code:`custom`,input:n.field_name,path:[r,`field_name`],message:`Map every bucket field to a row column.`});let i=n.entry_field?.trim()||n.field_name;i&&t.has(i)&&e.issues.push({code:`custom`,input:i,path:[r,`entry_field`],message:`Duplicate bucket field "${i}".`}),i&&t.add(i)})}).check(e=>{e.value.length<1&&e.issues.push({code:`custom`,input:e.value,message:`Map at least one field.`})}),gw=()=>r.string().nullable().default(``),_w=e=>({requires:{connection:`pipe0`},enabledIf:no(`pipe0`,`Select a pipe0 connection to see bucket suggestions`),options:async({query:t,client:n})=>n?(await n.buckets.list({query:t,type:e})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug,data:{contract:e.contract,type:e.type}})):[],widgets:{provider_logo:{provider:`pipe0`}}}),vw=e=>{let t=r.union([r.string(),r.array(r.string())]).check(e=>{(e.value===``||Array.isArray(e.value)&&e.value.length===0)&&e.issues.push({code:`custom`,input:e.value,message:`Required`})}),n={type:`context_select_input`,label:`Bucket`,info:`Pick an existing bucket (its identifying fields appear below for mapping), or type a new slug and choose Create β the new bucket's schema is built from the columns you pick and written on first run (requires 'Allow bucket creation').`,groupPath:`config.general`,sectionKey:`general`,path:`config.bucket`,required:!0,allowCreate:!0,placeholder:`Select or create a bucketβ¦`,optionsDef:_w(e),options:[],mappingPath:`config.entry_fields`,contractPath:`config.contract`,keyLabel:`Bucket field`},i=e=>{let t=e.validationContext,r=t?Object.entries(t.fieldDefinitions).filter(([e])=>e.toLowerCase()!==`id`).map(([e,t])=>({value:e,label:e,widgets:{field_type:{type:t.type}}})):[];return{...n,fieldOptions:r}};return i.staticMeta=n,_.add(t,i),t},yw={on_own_entry:[{value:`proceed`,label:`Proceed (at-least-once)`},{value:`block`,label:`Block (at-most-once)`}],on_missing:[{value:`proceed`,label:`Treat as part of the entry`},{value:`block`,label:`Skip the row`}]},bw=()=>Fs({label:`New bucket: name`,path:`config.new_bucket_name`,groupPath:`config.bucket_creation`,sectionKey:`general`,inputType:`text`,placeholder:`CRM contacts`,maxLength:120}).nullable().default(``),xw=()=>({new_bucket_name:bw(),new_bucket_ttl_in_seconds:Bs({label:`New bucket: TTL (seconds)`,description:`Claims expire after this many seconds. Empty = never.`,path:`config.new_bucket_ttl_in_seconds`,groupPath:`config.bucket_creation`,sectionKey:`general`,min:1}).nullable().default(null),new_bucket_own_entry_behavior:Ls({label:`New bucket: own entry re-claimed`,description:`What happens when a row re-claims an entry it already wrote.`,path:`config.new_bucket_own_entry_behavior`,groupPath:`config.bucket_creation`,sectionKey:`general`,required:!1,options:yw.on_own_entry}).default(`block`),new_bucket_missing_value_behavior:Ls({label:`New bucket: missing values`,description:`Proceed treats missing values as part of the entry; Block skips the row.`,path:`config.new_bucket_missing_value_behavior`,groupPath:`config.bucket_creation`,sectionKey:`general`,required:!1,options:yw.on_missing}).default(`proceed`)}),Sw=()=>({new_bucket_name:bw(),new_bucket_start:Bs({label:`New bucket: start`,description:`First number the counter assigns.`,path:`config.new_bucket_start`,groupPath:`config.bucket_creation`,sectionKey:`general`}).nullable().default(1),new_bucket_step:Bs({label:`New bucket: step`,description:`Increment between assigned numbers.`,path:`config.new_bucket_step`,groupPath:`config.bucket_creation`,sectionKey:`general`,min:1}).nullable().default(1)}),Cw={provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_api_operation`,allowManagedConnection:!0};function ww(e){let t=at(e.contract),n=e.entry_fields??[],r=[Kc([Qe(e.bucket)],{expectedType:`string`,expectedFormat:`text`})],i=n.map(e=>{let{column:n,bucketField:r}=Xe(e),i=t?.input_fields[r]?.type;return H({name:n,resolvedName:n,label:``,description:``,type:i?()=>i:e=>Gc(e,n)?.type||`unknown`,format:null})});return i.length>0&&r.push(Nc(...i)),Mc(...r)}function Tw(e){return qc([Qe(e.bucket)])}function Ew(e){return Jc([Qe(e.bucket)])}const Dw=`bucket:claim@1`,Ow=g(`is_claim_successful`),kw=r.object({pipe_id:r.literal(Dw),connector:ms(),run_if:x(),config:r.object({bucket:vw(`claim`),entry_fields:hw,contract:gw(),...xw(),allow_bucket_creation:O({label:`Allow bucket creation`,description:`Create the bucket (typed as a claim bucket from this pipe's fields) on first write if it does not already exist. Off by default.`,defaultValue:!1,groupPath:`config.general`,path:`config.allow_bucket_creation`,sectionKey:`general`}),output_fields:R(r.object({[Ow.name]:k({fieldName:Ow.name})}))})}),Aw={"bucket-claim-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},jw=class extends U{pipeId=Dw;payload;payloadSchema=kw;billableOperations=Aw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`bucket-claim-v1-pipe0`)}getInputRequirement(){return ww(this.payload.config)}getSecretRequirements(){return Tw(this.payload.config)}getConstantRequirements(){return Ew(this.payload.config)}getBucketRequirements(){let e=Qe(this.payload.config.bucket);return!e||e.includes(`{{`)?[]:[{slug:e,type:`claim`,schema:at(this.payload.config.contract),allowCreation:this.payload.config.allow_bucket_creation??!1}]}getRawOutputFields(){return{[Ow.name]:this.catalogOutput(Ow)}}getConnectionsRequirements(){return[Cw]}},Mw=kw,Nw={pipeId:Dw,basePipe:K(Dw),label:`Claim`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Claim an entry in a bucket (write-if-absent). Wins (is_claim_successful: true) or finds the entry already taken (no_result). Put this before a write pipe to guard against duplicates across sheets, runs, and time.`,guide:`Claim an identity in a claim bucket before an irreversible action (an append, a send). Map the identifying field(s) via entry_fields (bucket field β row column alias); the bucket's slug is org-unique. If is_claim_successful:true this row is the first to write this entry β let the guarded pipe run on it. If the entry already exists the pipe resolves no_result, which SKIPS every downstream pipe depending on this output β so a duplicate never reaches the writer. Dedup (no TTL), time gates (bucket TTL), suppression (populate here, consult with bucket:check@1) and idempotent writes are all this one op. Behavior lives on the bucket, not the pipe: ttl_seconds (an expired entry can be claimed again β a frequency gate), on_own_entry ('proceed' = the row that wrote an entry re-claims it successfully on re-runs, at-least-once; 'block' = it can't, at-most-once β the default), and on_missing. Missing values follow on_missing: 'proceed' stores them as empty (null) parts of the entry, so rows missing the same fields dedupe against each other while ('Tom','t@t.com') stays distinct from (null,'t@t.com'); 'block' resolves no_result; a row where EVERY identifying value is missing is always skipped. allow_bucket_creation (default off) creates the bucket, typed from the mapped fields, on first write; the new_bucket_* settings (name, TTL, own-entry, missing-value policy) configure ONLY that newly created bucket and are ignored when it already exists β an existing bucket's policy is edited in the dash, not from a pipe. FREE pipe0 operation; requires a pipe0 connection (list_connections).`,docPath:q(Dw),tags:[G.FIELDS],billableOperations:Aw,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Dw,connector:{strategy:`first`,connections:[]},run_if:null,config:{bucket:``,entry_fields:[],contract:``,new_bucket_name:``,new_bucket_ttl_in_seconds:null,new_bucket_own_entry_behavior:`block`,new_bucket_missing_value_behavior:`proceed`,allow_bucket_creation:!1,output_fields:{is_claim_successful:{alias:``,enabled:!0}}}}},Pw=`bucket:check@1`,Fw=g(`found_in_bucket`),Iw=r.object({pipe_id:r.literal(Pw),connector:ms(),run_if:x(),config:r.object({bucket:vw(`claim`),entry_fields:hw,contract:gw(),output_fields:R(r.object({[Fw.name]:k({fieldName:Fw.name})}))})}),Lw={"bucket-check-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Rw=class extends U{pipeId=Pw;payload;payloadSchema=Iw;billableOperations=Lw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`bucket-check-v1-pipe0`)}getInputRequirement(){return ww(this.payload.config)}getSecretRequirements(){return Tw(this.payload.config)}getConstantRequirements(){return Ew(this.payload.config)}getBucketRequirements(){let e=Qe(this.payload.config.bucket);return!e||e.includes(`{{`)?[]:[{slug:e,type:`claim`,schema:at(this.payload.config.contract),allowCreation:!1}]}getRawOutputFields(){return{[Fw.name]:this.catalogOutput(Fw)}}getConnectionsRequirements(){return[Cw]}},zw=Iw,Bw={pipeId:Pw,basePipe:K(Pw),label:`Check`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Look up an entry in an existing claim bucket WITHOUT writing. Present β no_result (e.g. suppressed); absent β completed. For suppression / do-not-contact / already-seen gates.`,guide:`Consult a claim bucket read-only before an action β the canonical suppression / do-not-contact gate. Map the identifying field(s) via entry_fields. If the entry is PRESENT (and live) the pipe resolves no_result, skipping downstream pipes (the send/append is suppressed); if ABSENT it completes and downstream runs. Unlike bucket:claim@1 this NEVER writes or creates β the list is curated elsewhere (a bucket:claim@1 writer, an import, or the Assets tab), so readers can't corrupt it. Missing values follow the bucket's on_missing policy: 'proceed' looks up the entry with those values stored as empty (the mirror of what bucket:claim@1 wrote for a row missing the same fields); 'block' resolves no_result; a row where EVERY identifying value is missing is always skipped. Requires an existing claim bucket. FREE pipe0 operation; requires a pipe0 connection.`,docPath:q(Pw),tags:[G.FIELDS],billableOperations:Lw,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Pw,connector:{strategy:`first`,connections:[]},run_if:null,config:{bucket:``,entry_fields:[],contract:``,output_fields:{found_in_bucket:{alias:``,enabled:!0}}}}},Vw=`bucket:count@1`,Hw=g(`bucket_counter`),Uw=r.object({pipe_id:r.literal(Vw),connector:ms(),run_if:x(),config:r.object({bucket:vw(`counter`),entry_fields:hw,contract:gw(),...Sw(),allow_bucket_creation:O({label:`Allow bucket creation`,description:`Create the bucket (typed as a counter bucket from this pipe's fields) on first write if it does not already exist. Off by default.`,defaultValue:!1,groupPath:`config.general`,path:`config.allow_bucket_creation`,sectionKey:`general`}),output_fields:R(r.object({[Hw.name]:k({fieldName:Hw.name})}))})}),Ww={"bucket-count-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Gw=class extends U{pipeId=Vw;payload;payloadSchema=Uw;billableOperations=Ww;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`bucket-count-v1-pipe0`)}getInputRequirement(){return ww(this.payload.config)}getSecretRequirements(){return Tw(this.payload.config)}getConstantRequirements(){return Ew(this.payload.config)}getBucketRequirements(){let e=Qe(this.payload.config.bucket);return!e||e.includes(`{{`)?[]:[{slug:e,type:`counter`,schema:at(this.payload.config.contract),allowCreation:this.payload.config.allow_bucket_creation??!1}]}getRawOutputFields(){return{[Hw.name]:this.catalogOutput(Hw)}}getConnectionsRequirements(){return[Cw]}},Kw=Uw,qw={pipeId:Vw,basePipe:K(Vw),label:`Count`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Assign the next sequence number to an entry in a counter bucket, exactly once (a re-run returns the same number). The building block for round-robin lead routing.`,guide:`Give each unique entry its own stable number from a counter bucket. Map the identifying field(s) via entry_fields (bucket field β row column alias). A NEW entry takes the next number (bucket.start, then +step); an entry that already has a number returns that SAME number on every re-run β so assignments are stable and re-run-safe. Compose round-robin routing: a sellers sheet + this counter + (seller_index = (value - 1) mod seller_count) + a row lookup by that ordinal. Behavior (start, step) lives on the bucket. A row with ANY missing identifying value gets no number (no_result) β counters have no missing-value policy. allow_bucket_creation (default off) creates the counter bucket on first write; new_bucket_start/new_bucket_step configure ONLY that newly created bucket and are ignored when it already exists. FREE pipe0 operation; requires a pipe0 connection.`,docPath:q(Vw),tags:[G.FIELDS],billableOperations:Ww,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Vw,connector:{strategy:`first`,connections:[]},run_if:null,config:{bucket:``,entry_fields:[],contract:``,new_bucket_name:``,new_bucket_start:1,new_bucket_step:1,allow_bucket_creation:!1,output_fields:{bucket_counter:{alias:``,enabled:!0}}}}},Jw=`row:append:sheet@1`,Yw=g(`sheet_record_id`),Xw=g(`created_sheet`),Zw=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],Qw=[{label:`Demo project`,value:`demo-project`},{label:`Sales pipeline`,value:`sales-pipeline`}];function $w(e){let t=e?.config?.project;return typeof t==`string`&&t.length>0?t:void 0}const eT={requires:{connection:`pipe0`},enabledIf:no(`pipe0`,`Select a pipe0 connection to see project suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Qw: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`}}},tT={requires:{connection:`pipe0`,fields:[`config.project`]},enabledIf:no(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n,payload:r})=>n===`sandbox`?Zw:t?(await t.sheets.list({query:e,projectSlug:$w(r)})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},nT=r.object({pipe_id:r.literal(Jw),connector:ms(),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:eT}),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:tT,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`}),write_fields:Ss({label:`Fields`,info:`All fields are written if empty.`,groupPath:`config.general`,path:`config.write_fields`,sectionKey:`general`,disableSearch:!0}),output_fields:R(r.object({[Yw.name]:k({fieldName:Yw.name}),[Xw.name]:k({fieldName:Xw.name})}))})}),rT={"row-append-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},iT=class extends U{pipeId=Jw;payload;payloadSchema=nT;billableOperations=rT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`row-append-sheet-v1-pipe0`)}getInputRequirement(){let e=[Kc([this.payload.config.project,this.payload.config.sheet],{expectedType:`string`,expectedFormat:`text`})];if(this.payload.config.write_fields?.length)for(let t of this.payload.config.write_fields)e.push(H({name:t.field_name,resolvedName:t.field_name,label:``,description:``,type:e=>{let n=Gc(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 Mc(...e)}getSecretRequirements(){return qc([this.payload.config.project,this.payload.config.sheet])}getConstantRequirements(){return Jc([this.payload.config.project,this.payload.config.sheet])}getRawOutputFields(){return{[Yw.name]:this.catalogOutput(Yw),[Xw.name]:this.catalogOutput(Xw)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_api_operation`,allowManagedConnection:!0}]}},aT=nT,oT={pipeId:Jw,basePipe:K(Jw),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(Jw),tags:[G.FIELDS],billableOperations:rT,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Jw,connector:{strategy:`first`,connections:[]},run_if:null,config:{project:``,sheet:``,run:!0,allow_entity_creation:!0,write_fields:[],output_fields:{sheet_record_id:{alias:``,enabled:!0},created_sheet:{alias:``,enabled:!0}}}}},sT=`row:expandappend:sheet@1`,cT=g(`sheet_record_ids`),lT=g(`input_objects`),uT=`expanded_value`,dT=[{label:`Demo project`,value:`demo-project`},{label:`Sales pipeline`,value:`sales-pipeline`}],fT=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}];function pT(e){let t=e?.config?.project;return typeof t==`string`&&t.length>0?t:void 0}const mT={requires:{connection:`pipe0`},enabledIf:no(`pipe0`,`Select a pipe0 connection to see project suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?dT: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`}}},hT={requires:{connection:`pipe0`,fields:[`config.project`]},enabledIf:no(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n,payload:r})=>n===`sandbox`?fT:t?(await t.sheets.list({query:e,projectSlug:pT(r)})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},gT=r.object({pipe_id:r.literal(sT),connector:ms(),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:mT}),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:hT,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`}),...Ps({groupPath:`config.destination`,sectionKey:`general`,defaultName:uT,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({[lT.name]:E({fieldName:lT.name})})),output_fields:R(r.object({[cT.name]:k({fieldName:cT.name})}))})}).check(e=>{let t=e.value.config?.destination_field_name;t&&kc(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.`})}),_T={"row-expandappend-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},vT=e=>H(J(lT,e)),yT=class extends U{pipeId=sT;payload;payloadSchema=gT;billableOperations=_T;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`row-expandappend-sheet-v1-pipe0`)}getInputRequirement(){return vT(this.payload.config)}getRawOutputFields(){return{[cT.name]:this.catalogOutput(cT)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_api_operation`,allowManagedConnection:!0}]}},bT=gT,xT={pipeId:sT,basePipe:K(sT),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(sT),tags:[G.FIELDS],billableOperations:_T,defaultInputRequirement:vT(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:sT,connector:{strategy:`first`,connections:[]},run_if:null,config:{project:``,sheet:``,run:!0,allow_entity_creation:!0,destination_field_name:uT,destination_field_type:``,destination_field_format:``,destination_field_label:``,input_fields:{input_objects:{alias:``}},output_fields:{sheet_record_ids:{alias:``,enabled:!0}}}}},ST=`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`,CT=`table_catalog NOT IN ('system', '__databricks_internal') AND table_schema <> 'information_schema'`,wT=`SELECT table_catalog, table_schema, table_name FROM system.information_schema.tables WHERE ${CT} ORDER BY table_catalog, table_schema, table_name`,TT=`SELECT table_catalog, table_schema, table_name, column_name, data_type FROM system.information_schema.columns WHERE ${CT} ORDER BY table_catalog, table_schema, table_name, ordinal_position`;function ET(e){return typeof e==`string`?e:String(e??``)}function DT(e){let t=new Map;for(let n of e){let e=ET(n.table_schema),r=ET(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:ET(n.column_name),type:ET(n.data_type)})}return t}function OT(e){return`${e.catalog?`${e.catalog}.`:``}${e.schema?`${e.schema}.`:``}${e.name}`}function kT(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`- ${OT(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`- ${OT(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 AT(e){let t=await e({query:wT,limit:500}),n=new Map;for(let e of t.rows){let t=ET(e.table_catalog),r=ET(e.table_schema),i=ET(e.table_name);i&&n.set(`${t}.${r}.${i}`,{catalog:t,schema:r,name:i,columns:[]})}let r=await e({query:TT,limit:500});for(let e of r.rows)n.get(`${ET(e.table_catalog)}.${ET(e.table_schema)}.${ET(e.table_name)}`)?.columns.push({name:ET(e.column_name),type:ET(e.data_type)});return kT([...n.values()],t.hasMore||r.hasMore)}async function jT(e){let t=await e({query:`SHOW TABLES`,limit:500}),n=t.rows.map(e=>({schema:ET(e.database??e.namespace),name:ET(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:ET(e.col_name),type:ET(e.data_type)})).filter(e=>e.name&&!e.name.startsWith(`#`));i.push({schema:t,name:r,columns:n})}return kT(i,r)}async function MT(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 AT(t.runQuery)}catch{try{let e=await t.runQuery({query:ST,limit:500});return kT([...DT(e.rows).values()],e.hasMore)}catch{return jT(t.runQuery)}}let n=await t.runQuery({query:ST,limit:500});return kT([...DT(n.rows).values()],n.hasMore)}const NT=`rows:find:databricks@1`,PT=g(`db_rows_found_count`),FT=g(`db_found_rows`),IT=r.object({pipe_id:r.literal(NT),connector:ms(),run_if:x(),config:r.object({query:fs({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:Bs({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({[PT.name]:k({fieldName:PT.name}),[FT.name]:k({fieldName:FT.name})}))})}),LT={"rows-find-databricks-v1-databricks":{provider:`databricks`,allowManagedConnection:!1,mode:null,credits:null,note:`Querying your own Databricks SQL warehouse is free.`}},RT=class extends U{pipeId=NT;payload;payloadSchema=IT;billableOperations=LT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`databricks`]}estimateBillableOperations(e){return Y(e,`rows-find-databricks-v1-databricks`)}getTemplatedFields(){return[this.payload.config.query]}getInputRequirement(){return Kc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return qc(this.getTemplatedFields())}getConstantRequirements(){return Jc(this.getTemplatedFields())}getRawOutputFields(){return{[PT.name]:this.catalogOutput(PT),[FT.name]:this.catalogOutput(FT)}}getConnectionsRequirements(){return[{provider:`databricks`,rateLimitRatio:1,rateLimitOperation:`databricks_query`,allowManagedConnection:!1}]}async getAgentContext(e){return MT(`databricks`,e)}},zT=IT,BT={pipeId:NT,basePipe:K(NT),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(NT),tags:[G.FIELDS,G.NEW],billableOperations:LT,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:NT,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}}}}},VT=`rows:find:postgres@1`,HT=g(`db_rows_found_count`),UT=g(`db_found_rows`),WT=r.object({pipe_id:r.literal(VT),connector:ms(),run_if:x(),config:r.object({query:fs({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:Bs({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({[HT.name]:k({fieldName:HT.name}),[UT.name]:k({fieldName:UT.name})}))})}),GT={"rows-find-postgres-v1-postgres":{provider:`postgres`,allowManagedConnection:!1,mode:null,credits:null,note:`Querying your own PostgreSQL database is free.`}},KT=class extends U{pipeId=VT;payload;payloadSchema=WT;billableOperations=GT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`postgres`]}estimateBillableOperations(e){return Y(e,`rows-find-postgres-v1-postgres`)}getTemplatedFields(){return[this.payload.config.query]}getInputRequirement(){return Kc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return qc(this.getTemplatedFields())}getConstantRequirements(){return Jc(this.getTemplatedFields())}getRawOutputFields(){return{[HT.name]:this.catalogOutput(HT),[UT.name]:this.catalogOutput(UT)}}getConnectionsRequirements(){return[{provider:`postgres`,rateLimitRatio:1,rateLimitOperation:`postgres_query`,allowManagedConnection:!1}]}async getAgentContext(e){return MT(`postgres`,e)}},qT=WT,JT={pipeId:VT,basePipe:K(VT),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(VT),tags:[G.FIELDS,G.NEW],billableOperations:GT,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:VT,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}}}}},YT=`rows:find:sheet@1`,XT=g(`sheet_rows_found_count`),ZT=g(`sheet_found_rows`),QT=g(`sheet_found_row_ids`),$T=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],eE={requires:{connection:`pipe0`},enabledIf:no(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?$T: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`}}},tE=r.object({pipe_id:r.literal(YT),connector:ms(),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:eE}),where:os({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:Bs({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({[XT.name]:k({fieldName:XT.name}),[ZT.name]:k({fieldName:ZT.name}),[QT.name]:k({fieldName:QT.name})}))})}),nE={"rows-find-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},rE=class extends U{pipeId=YT;payload;payloadSchema=tE;billableOperations=nE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(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 Kc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return qc(this.getTemplatedFields())}getConstantRequirements(){return Jc(this.getTemplatedFields())}getRawOutputFields(){return{[XT.name]:this.catalogOutput(XT),[ZT.name]:this.catalogOutput(ZT),[QT.name]:this.catalogOutput(QT)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_api_operation`,allowManagedConnection:!0}]}},iE=tE,aE={pipeId:YT,basePipe:K(YT),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(YT),tags:[G.FIELDS],billableOperations:nE,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:YT,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}}}}},oE=`template:fill@1`,sE=g(`template_output`),cE=r.object({pipe_id:r.literal(oE),connector:C(),run_if:x(),config:r.object({template:fs({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:W(`template`),groupPath:`config.general`,required:!0}),output_fields:R(r.object({[sE.name]:k({fieldName:sE.name})}))})}),lE={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},uE=class extends U{pipeId=oE;payload;payloadSchema=cE;billableOperations=lE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`template-fill-v1-pipe0`)}getInputRequirement(){return Kc([this.payload.config.template])}getSecretRequirements(){return qc([this.payload.config.template])}getConstantRequirements(){return Jc([this.payload.config.template])}getRawOutputFields(){return{[sE.name]:this.catalogOutput(sE)}}getConnectionsRequirements(){return[]}},dE=cE,fE={pipeId:oE,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:K(oE),label:`Fill a text template`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Replaces template tags like {{ name }} with actual values.`,tags:[G.TEXT],docPath:q(oE),defaultInputRequirement:null,billableOperations:lE,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:oE,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},pE=`website:extract:firecrawl@1`,mE=g(`website_url`),hE=g(`firecrawl_extract_result`),gE=r.object({pipe_id:r.literal(pE),connector:C(),run_if:x(),config:r.object({json_schema:Hs({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:Is({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({[mE.name]:E({fieldName:mE.name})})),output_fields:R(r.object({[hE.name]:k({fieldName:hE.name})}))})}),_E=e=>H(J(mE,e)),vE={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},yE=class extends U{pipeId=pE;payload;payloadSchema=gE;billableOperations=vE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return Y(e,`website-extract-firecrawl-v1-firecrawl`)}getInputRequirement(){return _E(this.payload.config)}getRawOutputFields(){return{[hE.name]:this.catalogOutput(hE)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},bE=gE,xE={pipeId:pE,basePipe:K(pE),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:[G.SCRAPE],docPath:q(pE),billableOperations:vE,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:_E(null),defaultPayload:{pipe_id:pE,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}}}}},SE=`website:extract:parallel@1`,CE=g(`website_url`),wE=g(`parallel_extract_result`),TE=r.object({pipe_id:r.literal(SE),connector:C(),run_if:x(),config:r.object({objective:Is({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({[CE.name]:E({fieldName:CE.name})})),output_fields:R(r.object({[wE.name]:k({fieldName:wE.name})}))})}),EE=e=>H(J(CE,e)),DE={"website-extract-parallel-v1-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.1},mode:`onSuccess`}},OE=class extends U{pipeId=SE;payload;payloadSchema=TE;billableOperations=DE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`parallel`]}estimateBillableOperations(e){return Y(e,`website-extract-parallel-v1-parallel`)}getInputRequirement(){return EE(this.payload.config)}getRawOutputFields(){return{[wE.name]:this.catalogOutput(wE,{isPrimaryOutput:!0})}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:1,rateLimitOperation:`parallel_extract`,allowManagedConnection:!0}]}},kE=TE,AE={pipeId:SE,basePipe:K(SE),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:[G.SCRAPE],docPath:q(SE),billableOperations:DE,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`parallel`],managedProviders:[`parallel`],deprecatedProviders:[],defaultInputRequirement:EE(null),defaultPayload:{pipe_id:SE,run_if:null,connector:null,config:{objective:``,input_fields:{website_url:{alias:``}},output_fields:{parallel_extract_result:{alias:``,enabled:!0}}}}},jE=`website:maplinks:firecrawl@1`,ME={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},NE=g(`website_url`),PE=g(`mapped_links`),FE=r.object({pipe_id:r.literal(jE),connector:C(),run_if:x(),config:r.object({page_limit:Bs({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,path:`config.page_limit`,sectionKey:`general`}).nullish(),sitemap:Ls({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({[NE.name]:E({fieldName:NE.name})})),output_fields:R(r.object({[PE.name]:k({fieldName:PE.name})}))}).optional()}),IE=e=>H(J(NE,e)),LE=class extends U{pipeId=jE;payload;payloadSchema=FE;billableOperations=ME;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return Y(e,`website-maplinks-firecrawl-v1-firecrawl`)}getInputRequirement(){return IE(this.payload.config)}getRawOutputFields(){return{[PE.name]:this.catalogOutput(PE)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},RE=FE,zE={pipeId:jE,basePipe:K(jE),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:[G.SCRAPE],docPath:q(jE),billableOperations:ME,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:IE(null),defaultPayload:{pipe_id:jE,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},BE=`website:scrape:firecrawl@1`,VE=g(`website_url`),HE=g(`website_markdown`),UE=g(`website_html`),WE=g(`website_links`),GE=r.object({pipe_id:r.literal(BE),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({[VE.name]:E({fieldName:VE.name})})),output_fields:R(r.object({[HE.name]:k({fieldName:HE.name}),[UE.name]:k({fieldName:UE.name}),[WE.name]:k({fieldName:WE.name})}))}).optional()}),KE=e=>H(J(VE,e)),qE={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},JE=class extends U{pipeId=BE;payload;payloadSchema=GE;billableOperations=qE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return Y(e,`website-scrape-firecrawl-v1-firecrawl`)}getInputRequirement(){return KE(this.payload.config)}getRawOutputFields(){return{[HE.name]:this.catalogOutput(HE),[UE.name]:this.catalogOutput(UE),[WE.name]:this.catalogOutput(WE)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},YE=GE,XE={pipeId:BE,basePipe:K(BE),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[G.SCRAPE],docPath:q(BE),billableOperations:qE,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:KE(null),defaultPayload:{pipe_id:BE,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}}}}},ZE=`website:scrapelist:firecrawl@1`,QE={"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.`}},$E=g(`urls`),eD=g(`scrape_list_response`),tD=r.object({pipe_id:r.literal(ZE),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:zs({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({[$E.name]:E({fieldName:$E.name})})),output_fields:R(r.object({[eD.name]:k({fieldName:eD.name})}))}).optional()}),nD=e=>H(J($E,e)),rD=class extends U{pipeId=ZE;payload;payloadSchema=tD;billableOperations=QE;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 nD(this.payload.config)}getRawOutputFields(){return{[eD.name]:this.catalogOutput(eD)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},iD=tD,aD={pipeId:ZE,basePipe:K(ZE),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[G.SCRAPE],docPath:q(ZE),billableOperations:QE,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:nD(null),defaultPayload:{pipe_id:ZE,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}}}}},oD=[`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`,`bucket:entries@1`,`query:postgres@1`,`query:databricks@1`,`posts:content:crustdata@1`],sD=r.enum(oD);function cD(e,t){let n={name:e,config:t};return mc.hashObject(n)}var lD=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 cD(this.searchId,this.payload)}};function uD(e){return e.split(`@`)[0]}function dD(e){return`/docs/search-catalog/${uD(e)}/${e.split(`@`)[1]}`}const fD=`companies:entitysearch:parallel@1`,pD=g(`company_name`),mD=g(`company_domain`),hD=g(`company_description`),gD=g(`company_profile_url`),_D=g(`parallel_company_entity_match`),vD=r.object({search_id:r.literal(fD),connector:_s(),config:r.object({objective:Qs({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({[pD.name]:N({fieldName:pD.name}),[mD.name]:N({fieldName:mD.name}),[hD.name]:N({fieldName:hD.name}),[gD.name]:N({fieldName:gD.name}),[_D.name]:N({fieldName:_D.name})}))})}),yD={match:`any`,fields:[{fieldName:`company_profile_url`}]},bD={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.`},xD=`companies-entitysearch-parallel-v1`,SD=class extends lD{billing={billableOperation:xD,cost:bD};searchId=fD;schema=vD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[pD.name]:this.catalogOutput(pD),[mD.name]:this.catalogOutput(mD),[hD.name]:this.catalogOutput(hD),[gD.name]:this.catalogOutput(gD),[_D.name]:this.catalogOutput(_D)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return yD}},CD=vD,wD={searchId:fD,billableOperation:xD,baseSearch:uD(fD),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:[G.COMPANY_PROFILES],docPath:dD(fD),cost:bD,provider:`parallel`,defaultPayload:{search_id:fD,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 TD(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 ED=`companies:profiles:amplemarket@2`,DD=g(`company_name`),OD=g(`company_domain`),kD=g(`company_description`),AD=g(`company_profile_url`),jD=g(`amplemarket_company_match`),MD=r.object({search_id:r.literal(ED),connector:_s(),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({[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({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:W(`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:W(`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:W(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(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:W(`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:W(`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:Gs({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:W(`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:Gs({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=>{TD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),ND={match:`any`,fields:[{fieldName:`company_profile_url`}]},PD={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},FD=`companies-profiles-amplemarket-v2`,ID=class extends lD{billing={billableOperation:FD,cost:PD};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_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return ND}},LD=MD,RD={searchId:ED,billableOperation:FD,baseSearch:uD(`companies:profiles:amplemarket@2`),label:`Company search`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[G.COMPANY_PROFILES],docPath:dD(ED),cost:PD,provider:`amplemarket`,defaultPayload:{search_id:ED,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:[]}}}}},zD=`companies:profiles:crustdata@2`,BD=g(`company_name`),VD=g(`company_domain`),HD=g(`company_description`),UD=g(`company_profile_url`),WD=g(`crustdata_company_match`),GD=r.object({search_id:r.literal(zD),connector:_s(),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:Zs({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[BD.name]:N({fieldName:BD.name}),[VD.name]:N({fieldName:VD.name}),[HD.name]:N({fieldName:HD.name}),[UD.name]:N({fieldName:UD.name}),[WD.name]:N({fieldName:WD.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:W(`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:W(`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:W(`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:W(`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:W(`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:qs({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:qs({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:W(`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:W(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),company_domains:j({path:`config.filters.company_domains`,sectionKey:`config.filters`,maxItems:400,label:`Company domain`,description:``,placeholder:W(`company_domain`),groupPath:`config.filters.web_presence`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(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=>{TD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),KD={match:`any`,fields:[{fieldName:`company_profile_url`}]},qD={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},JD=`companies-profiles-crustdata-v2`,YD=class extends lD{billing={billableOperation:JD,cost:qD};searchId=zD;schema=GD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[BD.name]:this.catalogOutput(BD),[VD.name]:this.catalogOutput(VD),[HD.name]:this.catalogOutput(HD),[UD.name]:this.catalogOutput(UD),[WD.name]:this.catalogOutput(WD)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return KD}},XD=GD,ZD={searchId:zD,billableOperation:JD,baseSearch:uD(`companies:profiles:crustdata@2`),label:`Company search`,categories:[`companies`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[G.COMPANY_PROFILES],docPath:dD(zD),cost:qD,provider:`crustdata`,defaultPayload:{search_id:zD,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:[]}}}}},QD=`query:databricks@1`,$D=r.object({search_id:r.literal(QD),connector:gs(),config:r.object({query:Qs({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)})}),eO={allowManagedConnection:!1,mode:null,credits:null,info:`Querying your own Databricks SQL warehouse is free.`},tO=`data-query-databricks-v1`,nO=class extends lD{billing={billableOperation:tO,cost:eO};searchId=QD;schema=$D;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 MT(`databricks`,e)}},rO=$D,iO={searchId:QD,billableOperation:tO,baseSearch:uD(QD),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:[G.FIELDS,G.NEW],docPath:dD(QD),cost:eO,provider:`databricks`,defaultPayload:{search_id:QD,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},aO=`query:postgres@1`,oO=r.object({search_id:r.literal(aO),connector:gs(),config:r.object({query:Qs({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)})}),sO={allowManagedConnection:!1,mode:null,credits:null,info:`Querying your own PostgreSQL database is free.`},cO=`data-query-postgres-v1`,lO=class extends lD{billing={billableOperation:cO,cost:sO};searchId=aO;schema=oO;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 MT(`postgres`,e)}},uO=oO,dO={searchId:aO,billableOperation:cO,baseSearch:uD(aO),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:[G.FIELDS,G.NEW],docPath:dD(aO),cost:sO,provider:`postgres`,defaultPayload:{search_id:aO,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},fO=`companies:profiles:amplemarket@1`,pO=g(`company_name`),mO=g(`company_website_url`),hO=g(`company_description`),gO=g(`company_profile_url`),_O=g(`amplemarket_company_match`),vO=r.object({search_id:r.literal(fO),connector:Ji.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({[pO.name]:N({fieldName:pO.name}),[mO.name]:N({fieldName:mO.name}),[hO.name]:N({fieldName:hO.name}),[gO.name]:N({fieldName:gO.name}),[_O.name]:N({fieldName:_O.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:W(`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:W(`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:W(`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:W(`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:W(`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:Gs({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:W(`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:Gs({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=>{TD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),yO={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},bO=`companies-profiles-amplemarket-v1`,xO=class extends lD{billing={billableOperation:bO,cost:yO};searchId=fO;schema=vO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[pO.name]:this.catalogOutput(pO),[mO.name]:this.catalogOutput(mO),[hO.name]:this.catalogOutput(hO),[gO.name]:this.catalogOutput(gO),[_O.name]:this.catalogOutput(_O)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},SO=vO,CO={searchId:fO,billableOperation:bO,baseSearch:uD(`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:[G.COMPANY_PROFILES],docPath:dD(fO),cost:yO,provider:`amplemarket`,defaultPayload:{search_id:fO,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:[]}}}}},wO=`companies:profiles:crustdata@1`,TO=g(`company_name`),EO=g(`company_website_url`),DO=g(`company_description`),OO=g(`company_profile_url`),kO=g(`crustdata_company_match`),AO=r.object({search_id:r.literal(wO),connector:Ji.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:Zs({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[TO.name]:N({fieldName:TO.name}),[EO.name]:N({fieldName:TO.name}),[DO.name]:N({fieldName:DO.name}),[OO.name]:N({fieldName:OO.name}),[kO.name]:N({fieldName:kO.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:W(`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:W(`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:W(`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:W(`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:W(`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:qs({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:qs({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:W(`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:W(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`π`}}})}).default({include:[],exclude:[]})}).check(e=>{TD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),jO={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},MO=`companies-profiles-crustdata-v1`,NO=class extends lD{billing={billableOperation:MO,cost:jO};searchId=wO;schema=AO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[TO.name]:this.catalogOutput(TO),[EO.name]:this.catalogOutput(EO),[DO.name]:this.catalogOutput(DO),[OO.name]:this.catalogOutput(OO),[kO.name]:this.catalogOutput(kO)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},PO=AO,FO={searchId:wO,billableOperation:MO,baseSearch:uD(`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:[G.COMPANY_PROFILES],docPath:dD(wO),cost:jO,provider:`crustdata`,defaultPayload:{search_id:wO,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:[]}}}}},IO=`people:profiles:amplemarket@1`,LO=g(`name`),RO=g(`company_website_url`),zO=g(`profile_url`),BO=g(`job_title`),VO=g(`amplemarket_person_match`),HO=r.object({search_id:r.literal(IO),connector:Ji.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({[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({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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:Gs({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:W(`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:W(`title`),suggestionsDef:h(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:W(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]})}).check(e=>{TD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),UO={allowManagedConnection:!0,mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},WO=`people-profiles-amplemarket-v1`,GO=class extends lD{billing={billableOperation:WO,cost:UO};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:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},KO=HO,qO={searchId:IO,billableOperation:WO,baseSearch:uD(`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:[G.PEOPLE_PROFILES],docPath:dD(IO),cost:UO,provider:`amplemarket`,defaultPayload:{search_id:IO,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:[]}}}},JO=`people:profiles:crustdata@1`,YO=g(`name`),XO=g(`company_website_url`),ZO=g(`profile_url`),QO=g(`job_title`),$O=g(`crustdata_person_match`),ek=r.object({search_id:r.literal(JO),connector:Ji.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:Zs({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[YO.name]:N({fieldName:YO.name}),[XO.name]:N({fieldName:XO.name}),[ZO.name]:N({fieldName:ZO.name}),[QO.name]:N({fieldName:QO.name}),[$O.name]:N({fieldName:$O.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`profile_keywords`)}).default({include:[],exclude:[]}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:W(`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:W(`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:W(`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:W(`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:W(`certification`),description:``}).default({include:[],exclude:[]}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:W(`honor`),description:``}).default({include:[],exclude:[]}),recently_changed_jobs:Xs({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:W(`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:W(`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:W(`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:W(`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:W(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)}).default({include:[],exclude:[]})}).check(e=>{TD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),tk={allowManagedConnection:!0,mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},nk=`people-profiles-crustdata-v1`,rk=class extends lD{billing={billableOperation:nk,cost:tk};searchId=JO;schema=ek;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[YO.name]:this.catalogOutput(YO),[XO.name]:this.catalogOutput(XO),[ZO.name]:this.catalogOutput(ZO),[QO.name]:this.catalogOutput(QO),[$O.name]:this.catalogOutput($O)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},ik=ek,ak={searchId:JO,billableOperation:nk,baseSearch:uD(`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:[G.PEOPLE_PROFILES],docPath:dD(JO),cost:tk,provider:`crustdata`,defaultPayload:{search_id:JO,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},crustdata_person_match:{enabled:!0,alias:``}},filters:{profile_headline_keywords:{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:[]}}}}},ok=`people:entitysearch:parallel@1`,sk=g(`name`),ck=g(`job_title`),lk=g(`profile_url`),uk=g(`parallel_person_entity_match`),dk=r.object({search_id:r.literal(ok),connector:_s(),config:r.object({objective:Qs({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({[sk.name]:N({fieldName:sk.name}),[ck.name]:N({fieldName:ck.name}),[lk.name]:N({fieldName:lk.name}),[uk.name]:N({fieldName:uk.name})}))})}),fk={match:`any`,fields:[{fieldName:`profile_url`}]},pk={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.`},mk=`people-entitysearch-parallel-v1`,hk=class extends lD{billing={billableOperation:mk,cost:pk};searchId=ok;schema=dk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[sk.name]:this.catalogOutput(sk),[ck.name]:this.catalogOutput(ck),[lk.name]:this.catalogOutput(lk),[uk.name]:this.catalogOutput(uk)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return fk}},gk=dk,_k={searchId:ok,billableOperation:mk,baseSearch:uD(ok),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:[G.PEOPLE_PROFILES],docPath:dD(ok),cost:pk,provider:`parallel`,defaultPayload:{search_id:ok,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:``}}}}},vk=`people:eventguests:luma@1`,yk=g(`name`),bk=g(`email`),xk=g(`luma_id`),Sk=g(`registered_at`),Ck=g(`luma_event_guest_match`),wk=[{label:`Sample Meetup β Berlin`,value:`evt-sandbox-1`},{label:`Sample Conference β SF`,value:`evt-sandbox-2`}],Tk={requires:{connection:`luma`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return wk;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}},Ek=r.object({search_id:r.literal(vk),connector:gs(),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:Zs({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[yk.name]:N({fieldName:yk.name}),[bk.name]:N({fieldName:bk.name}),[xk.name]:N({fieldName:xk.name}),[Sk.name]:N({fieldName:Sk.name}),[Ck.name]:N({fieldName:Ck.name})})),filters:r.object({event_id:ec({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:no(`luma`),optionsDef:Tk}),approval_status:$s({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`}]})})})}),Dk={match:`any`,fields:[{fieldName:`luma_id`}]},Ok={allowManagedConnection:!0,mode:`per_page`,credits:{default:1},info:`1 page = up to 100 guests.`},kk=`people-eventguests-luma-v1`,Ak=class extends lD{billing={billableOperation:kk,cost:Ok};searchId=vk;schema=Ek;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[yk.name]:this.catalogOutput(yk),[bk.name]:this.catalogOutput(bk),[xk.name]:this.catalogOutput(xk),[Sk.name]:this.catalogOutput(Sk),[Ck.name]:this.catalogOutput(Ck)}}getConnectionsRequirements(){return[{provider:`luma`,rateLimitOperation:`luma_get_guests`,rateLimitRatio:1,allowManagedConnection:!1}]}getDedupConfig(){return Dk}},jk=Ek,Mk={searchId:vk,billableOperation:kk,baseSearch:uD(vk),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:[G.PEOPLE_PROFILES,G.EVENTS,G.NEW],docPath:dD(vk),cost:Ok,provider:`luma`,defaultPayload:{search_id:vk,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:``}}}},Nk=`people:profiles:amplemarket@2`,Pk=g(`name`),Fk=g(`company_domain`),Ik=g(`profile_url`),Lk=g(`job_title`),Rk=g(`amplemarket_person_match`),zk=r.object({search_id:r.literal(Nk),connector:_s(),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({[Pk.name]:N({fieldName:Pk.name}),[Fk.name]:N({fieldName:Fk.name}),[Ik.name]:N({fieldName:Ik.name}),[Lk.name]:N({fieldName:Lk.name}),[Rk.name]:N({fieldName:Rk.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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(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:W(`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:Gs({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:W(`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:W(`title`),suggestionsDef:h(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:W(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]})}).check(e=>{TD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Bk={match:`any`,fields:[{fieldName:`profile_url`}]},Vk={allowManagedConnection:!0,mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},Hk=`people-profiles-amplemarket-v2`,Uk=class extends lD{billing={billableOperation:Hk,cost:Vk};searchId=Nk;schema=zk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Pk.name]:this.catalogOutput(Pk),[Fk.name]:this.catalogOutput(Fk),[Ik.name]:this.catalogOutput(Ik),[Lk.name]:this.catalogOutput(Lk),[Rk.name]:this.catalogOutput(Rk)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Bk}},Wk=zk,Gk={searchId:Nk,billableOperation:Hk,baseSearch:uD(`people:profiles:amplemarket@2`),paginationType:`page_number`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[G.PEOPLE_PROFILES],docPath:dD(Nk),cost:Vk,provider:`amplemarket`,defaultPayload:{search_id:Nk,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:[]}}}},Kk=`people:profiles:crustdata@2`,qk=g(`name`),Jk=g(`company_domain`),Yk=g(`profile_url`),Xk=g(`job_title`),Zk=g(`crustdata_person_match`),Qk=r.object({search_id:r.literal(Kk),connector:_s(),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:Zs({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[qk.name]:N({fieldName:qk.name}),[Jk.name]:N({fieldName:Jk.name}),[Yk.name]:N({fieldName:Yk.name}),[Xk.name]:N({fieldName:Xk.name}),[Zk.name]:N({fieldName:Zk.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:W(`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:W(`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:W(`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:W(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(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:W(`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:W(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:W(`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:W(`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:W(`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:W(`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:W(`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:W(`profile_keywords`)}).default({include:[],exclude:[]}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:W(`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:W(`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:W(`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:W(`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:W(`certification`),description:``}).default({include:[],exclude:[]}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:W(`honor`),description:``}).default({include:[],exclude:[]}),recently_changed_jobs:Xs({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:W(`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:W(`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:W(`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:W(`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:W(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)}).default({include:[],exclude:[]})}).check(e=>{TD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),$k={match:`any`,fields:[{fieldName:`profile_url`}]},eA={allowManagedConnection:!0,mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},tA=`people-profiles-crustdata-v2`,nA=class extends lD{billing={billableOperation:tA,cost:eA};searchId=Kk;schema=Qk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[qk.name]:this.catalogOutput(qk),[Jk.name]:this.catalogOutput(Jk),[Yk.name]:this.catalogOutput(Yk),[Xk.name]:this.catalogOutput(Xk),[Zk.name]:this.catalogOutput(Zk)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return $k}},rA=Qk,iA={searchId:Kk,billableOperation:tA,baseSearch:uD(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[G.PEOPLE_PROFILES],docPath:dD(Kk),cost:eA,provider:`crustdata`,defaultPayload:{search_id:Kk,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:[]}}}}},aA=`people:profiles:crustdata@3`,oA=g(`name`),sA=g(`profile_url`),cA=g(`person_profile_match`),lA=r.object({search_id:r.literal(aA),connector:_s(),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:Zs({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[oA.name]:N({fieldName:oA.name}),[sA.name]:N({fieldName:sA.name}),[cA.name]:N({fieldName:cA.name})})),filters:r.object({recently_changed_jobs:Xs({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:W(`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:W(`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:W(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`headline_keywords`)}).default({include:[],exclude:[]}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:W(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default({include:[],exclude:[]})}).check(e=>{TD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),uA={match:`any`,fields:[{fieldName:`profile_url`}]},dA={allowManagedConnection:!0,mode:`per_result`,credits:{default:.15,level1:{credits:.07,weight:10}},info:`1 page = 100 records; 200 results = 2 pages`},fA=`people-profiles-crustdata-v3`,pA=class extends lD{billing={billableOperation:fA,cost:dA};searchId=aA;schema=lA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[oA.name]:this.catalogOutput(oA),[sA.name]:this.catalogOutput(sA),[cA.name]:this.catalogOutput(cA)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return uA}},mA=lA,hA={searchId:aA,billableOperation:fA,baseSearch:uD(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[G.PEOPLE_PROFILES],docPath:dD(aA),cost:dA,provider:`crustdata`,defaultPayload:{search_id:aA,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:[]}}}}},gA=`posts:content:crustdata@1`,_A=g(`post_match`),vA=g(`post_text`),yA=g(`post_id`),bA=r.object({search_id:r.literal(gA),connector:_s(),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({[yA.name]:N({fieldName:yA.name}),[_A.name]:N({fieldName:_A.name}),[vA.name]:N({fieldName:vA.name})})),filters:r.object({keywords:A({path:`config.filters.keywords`,sectionKey:`config.filters`,label:`Search keywords`,groupPath:`config.filters.general`,maxItems:6,placeholder:W(`profile_keywords`),description:``}).default([]),keyword_operator:$s({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:$s({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:W(`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:W(`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`]})})})}),xA={match:`any`,fields:[{fieldName:`post_id`}]},SA={allowManagedConnection:!0,mode:`per_result`,credits:{default:2}},CA=`posts-content-crustdata-v1`,wA=class extends lD{billing={billableOperation:CA,cost:SA};searchId=gA;schema=bA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[yA.name]:this.catalogOutput(yA),[_A.name]:this.catalogOutput(_A),[vA.name]:this.catalogOutput(vA)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_social_post_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return xA}},TA=bA,EA={searchId:gA,billableOperation:CA,baseSearch:uD(gA),paginationType:`page_number`,label:`LinkedIn post search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Keyword-based LinkedIn post search.`,tags:[G.LINKEDIN],docPath:dD(gA),cost:SA,provider:`crustdata`,defaultPayload:{search_id:gA,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:[]}}}},DA=`bucket:entries@1`,OA=r.object({search_id:r.literal(DA),connector:gs(),config:r.object({bucket:Zs({path:`config.bucket`,groupPath:`config.general`,inputType:`text`,label:`Bucket`,sectionKey:`general`,description:`The bucket's org-unique slug. Its entries (one row each) are returned.`}),limit:L({path:`config.limit`,min:1,max:2e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of entries per page`}).default(100),cursor:Zs({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),include_metadata:Ys({path:`config.include_metadata`,groupPath:`config.general`,sectionKey:`general`,label:`Include metadata`,description:`Provenance (source sheet/row/run) and expiry as extra columns.`,defaultValue:!1})})}),kA={allowManagedConnection:!0,mode:`per_search`,credits:{default:0},info:`Reading your own bucket is free.`},AA=`bucket-entries-v1-pipe0`,jA=class extends lD{billing={billableOperation:AA,cost:kA};searchId=DA;schema=OA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0_api_operation`,rateLimitRatio:1,allowManagedConnection:!0}]}},MA=OA,NA={searchId:DA,billableOperation:AA,baseSearch:uD(DA),outputFieldMode:`dynamic`,paginationType:`cursor`,label:`Read bucket entries`,categories:[`data`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`List the entries in a bucket β one row per entry, with its identifying field values (and counter number / expiry).`,tags:[G.FIELDS,G.NEW],docPath:dD(DA),cost:kA,provider:`pipe0`,defaultPayload:{search_id:DA,connector:{strategy:`first`,connections:[]},config:{bucket:``,limit:100,cursor:``,include_metadata:!1}}},PA=`sheet:rows@1`,FA=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],IA={requires:{connection:`pipe0`},enabledIf:no(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?FA: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`}}},LA=r.object({search_id:r.literal(PA),connector:gs(),config:r.object({sheet:ec({path:`config.sheet`,sectionKey:`general`,groupPath:`config.general`,label:`Sheet`,required:!0,info:`Pick one of your pipe0 sheets; its rows are returned.`,enabledIf:no(`pipe0`),optionsDef:IA}),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:Zs({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),include_metadata:Ys({path:`config.include_metadata`,groupPath:`config.general`,sectionKey:`general`,label:`Include metadata`,description:`Widgets and prevenance tags.`,defaultValue:!1})})}),RA={allowManagedConnection:!0,mode:`per_search`,credits:{default:0},info:`Reading your own pipe0 sheet is free.`},zA=`sheet-items-v1-pipe0`,BA=class extends lD{billing={billableOperation:zA,cost:RA};searchId=PA;schema=LA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0_api_operation`,rateLimitRatio:1,allowManagedConnection:!0}]}},VA=LA,HA={searchId:PA,billableOperation:zA,baseSearch:uD(PA),outputFieldMode:`dynamic`,paginationType:`cursor`,label:`Read sheet rows`,categories:[`data`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`List rows from a pipe0 sheet.`,tags:[G.FIELDS,G.NEW],docPath:dD(PA),cost:RA,provider:`pipe0`,defaultPayload:{search_id:PA,connector:{strategy:`first`,connections:[]},config:{sheet:``,limit:100,cursor:``,include_metadata:!1}}},UA={"people:profiles:crustdata@1":rk,"people:profiles:crustdata@2":nA,"people:profiles:crustdata@3":pA,"companies:profiles:crustdata@1":NO,"companies:profiles:crustdata@2":YD,"people:profiles:amplemarket@1":GO,"people:profiles:amplemarket@2":Uk,"companies:profiles:amplemarket@1":xO,"companies:profiles:amplemarket@2":ID,"companies:entitysearch:parallel@1":SD,"people:entitysearch:parallel@1":hk,"people:eventguests:luma@1":Ak,"posts:content:crustdata@1":wA,"sheet:rows@1":BA,"bucket:entries@1":jA,"query:postgres@1":lO,"query:databricks@1":nO},WA={"people:profiles:crustdata@1":ik,"people:profiles:crustdata@2":rA,"people:profiles:crustdata@3":mA,"companies:profiles:crustdata@1":PO,"companies:profiles:crustdata@2":XD,"people:profiles:amplemarket@1":KO,"people:profiles:amplemarket@2":Wk,"companies:profiles:amplemarket@1":SO,"companies:profiles:amplemarket@2":LD,"companies:entitysearch:parallel@1":CD,"people:entitysearch:parallel@1":gk,"people:eventguests:luma@1":jk,"posts:content:crustdata@1":TA,"sheet:rows@1":VA,"bucket:entries@1":MA,"query:postgres@1":uO,"query:databricks@1":rO},GA={"people:profiles:crustdata@1":ak,"people:profiles:crustdata@2":iA,"people:profiles:crustdata@3":hA,"companies:profiles:crustdata@1":FO,"companies:profiles:crustdata@2":ZD,"people:profiles:amplemarket@1":qO,"people:profiles:amplemarket@2":Gk,"companies:profiles:amplemarket@1":CO,"companies:profiles:amplemarket@2":RD,"companies:entitysearch:parallel@1":wD,"people:entitysearch:parallel@1":_k,"people:eventguests:luma@1":Mk,"posts:content:crustdata@1":EA,"sheet:rows@1":HA,"bucket:entries@1":NA,"query:postgres@1":dO,"query:databricks@1":iO};function KA(e){return UA[e]}const qA=t.discriminatedUnion(`search_id`,Object.values(WA).map(e=>e)).openapi(`SearchPayloadSchema`);function JA(e,t){return vt(t,GA[e].defaultPayload)}const YA=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=JA(e.search_id);return t?{...e,config:vt(e?.config||{},t.config)}:e},qA),XA=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:YA}).openapi(`SearchRequestSchema`),ZA=Ti,QA=t.object({value:di,status:ui,type:ci.optional(),format:Oi.nullable().optional(),resolved_by:Pi.nullable().optional(),widgets:wi.optional()}),$A=t.record(t.string(),QA.nullable());function ej(e){return WA[e]}const tj=t.enum([`cursor`,`page_number`]),nj=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:sD,errors:t.array(ZA),results:t.array($A),organization_id:t.string(),next_page:YA.nullable(),pagination_type:tj.nullable(),total_pages:t.int32().nullable(),field_definitions:Ai.optional()}).openapi(`SearchResponseSchema`);function rj(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function ij(){let e={};for(let t of Object.values(GA)){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=rj(e.searchId);return rj(t.searchId)-n})}),e}function aj(e){return GA[e]}const oj=ij();function sj(e){let t=[];for(let[n,r]of Object.entries(oj)){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:rj(i.searchId)})}return t}function cj(e){let t=GA[e].defaultPayload.config.output_fields;return t?Object.keys(t):[]}function lj(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 cj(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:oj}}function uj(e){let t=aj(e);return{[t.provider]:t.cost.allowManagedConnection?t.cost.credits.default:0}}const dj={"prompt:run@1":fw,"agent:run@1":cl,"company:newssummary:website@1":Kf,"company:newssummary:domain@1":zu,"company:techstack:builtwith@1":Pp,"company:techstack:builtwith@2":fd,"company:websiteurl:email@1":Up,"company:domain:workemail@1":yl,"company:funding:leadmagic@1":Rd,"company:funding:leadmagic@2":Nl,"people:workemail:waterfall@1":rv,"person:workemail:waterfall@1":aw,"people:email:iswork@1":Qp,"email:iswork@1":fv,"people:name:split@1":Dh,"person:name:split@1":xS,"people:validate:email:zerobounce@1":A_,"people:email:validate:zerobounce@2":_m,"email:validate:zerobounce@1":Iv,"people:mobilenumber:workemail:waterfall@1":_h,"person:name:join@1":dS,"company:overview@1":sp,"company:overview@2":Cp,"company:overview@3":td,"json:extract:multi@1":Iy,"company:lookalikes:companyenrich@1":gf,"company:lookalikes:companyenrich@2":lu,"company:match:logodev@1":Lf,"company:match:logodev@2":Au,"person:posts:content:crustdata@1":US,"people:profile:workemail:crustdata@1":c_,"person:profile:workemail:crustdata@1":uC,"people:identity:email:waterfall@1":Rm,"person:identity:email:waterfall@1":px,"person:identity:amplemarket@1":Zb,"email:send:resend@1":Ev,"contact:create:resend@1":wd,"lead:enroll:lemlist@1":ib,"email:send:gmail@1":yv,"email:write@1":Gv,"fields:merge@1":xy,"field:slugify@1":ly,"field:domainify@1":ey,"http:request@1":Ay,"template:fill@1":uE,"message:send:slack@1":fb,"message:write@1":bb,"people:personalemail:profile:waterfall@1":zh,"person:personalemail:profileurl:waterfall@1":NS,"website:scrape:firecrawl@1":JE,"website:scrapelist:firecrawl@1":rD,"website:extract:firecrawl@1":yE,"website:extract:parallel@1":OE,"website:maplinks:firecrawl@1":LE,"row:append:sheet@1":iT,"bucket:claim@1":jw,"bucket:count@1":Gw,"bucket:check@1":Rw,"row:expandappend:sheet@1":yT,"rows:find:sheet@1":rE,"rows:find:postgres@1":KT,"rows:find:databricks@1":RT,"people:match:role:waterfall@1":Ym,"person:match:role:waterfall@1":Nx,"company:match:crustdata@1":Tf,"company:match:crustdata@2":vu,"person:match:amplemarket@1":Sx,"company:identity@2":sf,"company:identity@3":Wl,"company:identity:crustdata@1":eu,"people:phone:profile:waterfall@1":Xh,"person:mobile:profileurl:waterfall@1":Wx,"person:devprofileurl:profileurl:waterfall@1":Mb,"people:phone:workemail:waterfall@1":sg,"person:mobile:workemail:waterfall@1":tS,"people:profile:waterfall@1":Qg,"person:profile:waterfall@1":eC,"people:profileurl:email:waterfall@1":b_,"person:profileurl:email:waterfall@1":SC,"person:profileurl:name@1":NC,"people:email:validate:zerobounce@1":sm,"person:email:validate:millionverifier@1":Hb,"people:workemail:profileurl:waterfall@1":U_,"person:workemail:profileurl:waterfall@1":GC,"company:identity@1":Yd,"people:professionalprofile:waterfall@1":vg,"people:professionalprofileurl:name@1":Vg,"people:professionalprofileurl:email:waterfall@1":Ag,"people:mobilenumber:professionalprofile:waterfall@1":oh},fj={"prompt:run@1":pw,"agent:run@1":ll,"company:newssummary:website@1":qf,"company:newssummary:domain@1":Bu,"company:techstack:builtwith@1":Fp,"company:techstack:builtwith@2":pd,"company:websiteurl:email@1":Wp,"company:domain:workemail@1":bl,"company:funding:leadmagic@1":zd,"company:funding:leadmagic@2":Pl,"people:workemail:waterfall@1":iv,"person:workemail:waterfall@1":ow,"people:email:iswork@1":$p,"email:iswork@1":pv,"people:name:split@1":Oh,"person:name:split@1":SS,"people:validate:email:zerobounce@1":j_,"people:email:validate:zerobounce@2":vm,"email:validate:zerobounce@1":Lv,"people:mobilenumber:workemail:waterfall@1":vh,"person:name:join@1":fS,"company:overview@1":cp,"company:overview@2":wp,"company:overview@3":nd,"json:extract:multi@1":Ly,"email:write@1":Kv,"fields:merge@1":Sy,"field:slugify@1":uy,"field:domainify@1":ty,"http:request@1":jy,"email:send:resend@1":Dv,"contact:create:resend@1":Td,"lead:enroll:lemlist@1":ab,"company:lookalikes:companyenrich@1":_f,"company:lookalikes:companyenrich@2":uu,"company:match:logodev@1":Rf,"company:match:logodev@2":ju,"person:posts:content:crustdata@1":WS,"people:profile:workemail:crustdata@1":l_,"person:profile:workemail:crustdata@1":dC,"people:identity:email:waterfall@1":zm,"person:identity:email:waterfall@1":mx,"company:match:crustdata@1":Ef,"company:match:crustdata@2":yu,"person:identity:amplemarket@1":Qb,"message:send:slack@1":pb,"email:send:gmail@1":bv,"message:write@1":xb,"template:fill@1":dE,"website:scrape:firecrawl@1":YE,"website:scrapelist:firecrawl@1":iD,"website:extract:firecrawl@1":bE,"website:extract:parallel@1":kE,"website:maplinks:firecrawl@1":RE,"row:append:sheet@1":aT,"bucket:claim@1":Mw,"bucket:count@1":Kw,"bucket:check@1":zw,"row:expandappend:sheet@1":bT,"rows:find:sheet@1":iE,"rows:find:postgres@1":qT,"rows:find:databricks@1":zT,"people:match:role:waterfall@1":Xm,"person:match:role:waterfall@1":Px,"company:identity@2":cf,"company:identity@3":Gl,"company:identity:crustdata@1":tu,"people:phone:profile:waterfall@1":Zh,"person:mobile:profileurl:waterfall@1":Gx,"person:devprofileurl:profileurl:waterfall@1":Nb,"people:personalemail:profile:waterfall@1":Bh,"person:personalemail:profileurl:waterfall@1":PS,"people:profile:waterfall@1":$g,"person:profile:waterfall@1":tC,"people:profileurl:email:waterfall@1":x_,"person:profileurl:email:waterfall@1":CC,"person:profileurl:name@1":PC,"people:email:validate:zerobounce@1":cm,"person:email:validate:millionverifier@1":Ub,"people:phone:workemail:waterfall@1":cg,"person:mobile:workemail:waterfall@1":nS,"people:workemail:profileurl:waterfall@1":W_,"person:workemail:profileurl:waterfall@1":KC,"person:match:amplemarket@1":Cx,"company:identity@1":Xd,"people:professionalprofile:waterfall@1":yg,"people:professionalprofileurl:name@1":Hg,"people:professionalprofileurl:email:waterfall@1":jg,"people:mobilenumber:professionalprofile:waterfall@1":sh},pj={"prompt:run@1":mw,"agent:run@1":ul,"company:newssummary:website@1":Jf,"company:newssummary:domain@1":Vu,"company:techstack:builtwith@1":Ip,"company:techstack:builtwith@2":md,"company:websiteurl:email@1":Gp,"company:domain:workemail@1":xl,"company:funding:leadmagic@1":Bd,"company:funding:leadmagic@2":Fl,"people:workemail:waterfall@1":av,"person:workemail:waterfall@1":sw,"people:email:iswork@1":em,"email:iswork@1":mv,"people:name:split@1":kh,"person:name:split@1":CS,"people:validate:email:zerobounce@1":M_,"people:mobilenumber:workemail:waterfall@1":yh,"person:name:join@1":pS,"company:overview@1":lp,"company:overview@2":Tp,"company:overview@3":rd,"json:extract:multi@1":Ry,"email:send:resend@1":Ov,"contact:create:resend@1":Ed,"lead:enroll:lemlist@1":ob,"email:send:gmail@1":xv,"message:send:slack@1":mb,"message:write@1":Sb,"email:write@1":qv,"template:fill@1":fE,"fields:merge@1":Cy,"field:slugify@1":dy,"field:domainify@1":ny,"http:request@1":My,"row:append:sheet@1":oT,"bucket:claim@1":Nw,"bucket:count@1":qw,"bucket:check@1":Bw,"row:expandappend:sheet@1":xT,"rows:find:sheet@1":aE,"rows:find:postgres@1":JT,"rows:find:databricks@1":BT,"company:lookalikes:companyenrich@1":vf,"company:lookalikes:companyenrich@2":du,"people:match:role:waterfall@1":Zm,"person:match:role:waterfall@1":Fx,"company:match:logodev@1":zf,"company:match:logodev@2":Mu,"person:posts:content:crustdata@1":GS,"people:profile:workemail:crustdata@1":u_,"person:profile:workemail:crustdata@1":fC,"people:workemail:profileurl:waterfall@1":G_,"person:workemail:profileurl:waterfall@1":qC,"people:identity:email:waterfall@1":Bm,"person:identity:email:waterfall@1":hx,"company:match:crustdata@1":Df,"company:match:crustdata@2":bu,"person:identity:amplemarket@1":$b,"email:validate:zerobounce@1":Rv,"person:email:validate:millionverifier@1":Wb,"people:personalemail:profile:waterfall@1":Vh,"person:personalemail:profileurl:waterfall@1":FS,"people:email:validate:zerobounce@1":lm,"people:email:validate:zerobounce@2":ym,"people:phone:workemail:waterfall@1":lg,"person:mobile:workemail:waterfall@1":rS,"website:scrape:firecrawl@1":XE,"website:scrapelist:firecrawl@1":aD,"website:extract:firecrawl@1":xE,"website:extract:parallel@1":AE,"website:maplinks:firecrawl@1":zE,"person:match:amplemarket@1":wx,"company:identity@2":lf,"company:identity@3":Kl,"company:identity:crustdata@1":nu,"people:phone:profile:waterfall@1":Qh,"person:mobile:profileurl:waterfall@1":Kx,"person:devprofileurl:profileurl:waterfall@1":Pb,"people:profile:waterfall@1":e_,"person:profile:waterfall@1":nC,"people:profileurl:email:waterfall@1":S_,"person:profileurl:email:waterfall@1":wC,"person:profileurl:name@1":FC,"company:identity@1":Zd,"people:professionalprofile:waterfall@1":bg,"people:professionalprofileurl:name@1":Ug,"people:professionalprofileurl:email:waterfall@1":Mg,"people:mobilenumber:professionalprofile:waterfall@1":ch};function mj(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function hj(e){return dj[e]}function gj(e){return pj[e].defaultPayload}function _j(e){return fj[e]}const vj=r.discriminatedUnion(`pipe_id`,Object.values(fj)).openapi(`PipePayload`),yj=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=gj(oi.parse(e.pipe_id));return t?{...e,config:vt(e?.config||{},t.config)}:e}catch{return e}},vj);function bj(e){return pj[e]}function xj(e,t){let n=bj(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 Sj(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function Cj(){let e={};for(let t of Object.values(pj)){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=Sj(e.pipeId);return Sj(t.pipeId)-n})}),e}const wj=e=>{let t=bj(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},Tj=Cj();function Ej(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}`)}}Ej(pj,GA);function Dj(e){let t=[];for(let[n,r]of Object.entries(Tj)){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:Sj(i.pipeId)})}return t}function Oj(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=wj(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of mj(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of Ic(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:Tj}}const kj=r.object({id:r.string(),organization_id:r.string(),order:r.array(li),field_definitions:Vi,errors:r.array(Ti),records:r.record(li,Ri),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),Aj=r.object({environment:ii.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`),jj=r.object({config:Aj.openapi(`PipesRequestConfig`),field_annotations:Ai.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(vj),input:r.array(Li.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function Mj(e){let t=bj(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 Nj(e){let t=[];for(let n of e){if(n instanceof U){t.push(n);continue}let e=yj.parse(n);if(!bj(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(hj(n.pipe_id))(e);t.push(r)}return t}function Pj(e,t){let n=Nj(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 Fj(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 Ij(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 Lj(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 Rj(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(Lj(e))return`https://${e}`;if(!Ij(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 zj(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(Lj(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!Ij(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(Ij(i)||Lj(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function Bj(e){try{return Rj(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function Vj(e,t){if(t)switch(e){case`website_url`:return Bj(t);default:return}}function Hj(e){let t;if(Uj(e))return Hj(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function Uj(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&ui.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&Uj(e.value,t++))throw new $([Q.RecursiveExpandedValue()]);return!0}return!1}function Wj(e){let t=Uj(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function Gj(e){return Uj(e)?Gj(e.value):e}function Kj(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=Qr(e,n.format)?.getStaticWidgets?.(t),i=Vj(n.format,t);return jt(At(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function qj(e,t,n){if(t==null)return{};try{let r=Qr(e,n)?.getStaticWidgets?.(t),i=Vj(n,t);return jt(At(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function Jj(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 Yj=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}=Wj(n),c;c=s&&a.type?a.type:Hj(e);let l;$r(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]=Jj(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function Xj(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 Zj(e){let t=Xj(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of Ic(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 Qj({config:e,pipes:t,input:n,field_annotations:r}){try{let i=nM({config:e,pipes:t,input:n,fieldAnnotations:r});return $j(i),i}catch(e){throw e instanceof $?e:new $([Q.ValidationFailed({error:e})])}}function $j(e){for(let t of e.orderedPipeInstances)for(let{field:n}of Ic(t.getInputRequirement()))Hc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),Uc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function eM(e,t){if(!e&&!t)throw new $([Q.MustDefineAnnotations()]);return new Yj(t||{}).merge(Yj.fromInput(e||[]))}function tM(e,t){let n={...t};return e.pipes.forEach((t,r)=>{for(let[i,a]of Object.entries(t.getOutputFields())){if(kc(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:Hc(e,a.type),added_by:{ref:t.pipeId,config_hash:t.getConfigHashKey(),pipe_index:r},label:i?.label||a.label,format:Uc(e,a.format),is_primary_output:a.isPrimaryOutput}}}),n}function nM(e){let t=Nj(e.pipes),n=eM(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)}),aM(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]=rM(t,n),u=tM({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 rM(e,t){let n=Zj(e),r=iM(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 iM(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?Ic(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 aM(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 Wa(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 oM=`fields:deletesparse:input@1`,sM={},cM=r.object({effect_id:r.literal(oM),connector:T(),config:r.object({fields:Cs({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:oc({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:oc({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)})}),lM=class extends V{effectId=oM;schema=cM;payload;billableOperations=sM;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=Qj({config:{environment:e.environment},pipes:e.pipes,field_annotations:t});return{next:{environment:e.environment,pipes:e.pipes,fieldAnnotations:t,validationContext:n}}}},uM=cM,dM={effectId:oM,baseEffect:B(oM),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:[G.NEW],lifecycle:null,billableOperations:sM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,defaultPayload:{effect_id:oM,connector:null,config:{fields:[],probe_size:1e3,threshold_in_percent:25}}};function fM(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=>fM(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]=fM(e[i],t,n));return r}return e}function pM(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 mM(e,t,n){let r=[];for(let i of e.orderedPipePayloads){let e=fM(i,t,n);r.push(pM(e,t,n))}return r}function hM(e,t,n,r,i){if(!e.orderedPipeInstances[t])throw Error(`Pipe instance at index ${t} is not defined`);let a={...n};if(bj(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},pM(a,r,i)}return fM(a,r,i)}function gM(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(hM(e,a,o,n,r)):i.push(fM(o,n,r))}return i}function _M(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`?mM(e,t,n):gM(e,r,t,n)}const vM=`fields:patch@1`,yM={},bM=r.object({effect_id:r.literal(vM),connector:T(),config:r.object({field_name:r.string().min(1),new_name:r.string().min(1).optional(),new_format:Oi.nullable().optional(),new_type:ci.optional(),new_label:r.string().optional()})}),xM=class extends V{effectId=vM;schema=bM;payload;billableOperations=yM;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=_M(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,wm[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(wm[ee].length&&te&&!wm[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=Qj({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}}},SM=bM,CM={effectId:vM,baseEffect:B(vM),label:`Edit field`,description:`Rename, retype, reformat, or relabel a field.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:yM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:vM,connector:null,config:{field_name:``}}},wM=`fields:remove@1`,TM={},EM=r.object({effect_id:r.literal(wM),connector:T(),config:r.object({field_names:r.array(r.string().min(1)).min(1)})}),DM=class extends V{effectId=wM;schema=EM;payload;billableOperations=TM;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=Qj({config:{environment:e.environment},pipes:[],field_annotations:{}});return{next:{environment:e.environment,pipes:[],fieldAnnotations:{},validationContext:t}}}let n=Qj({config:{environment:e.environment},pipes:e.pipes,field_annotations:t});return{next:{environment:e.environment,pipes:e.pipes,fieldAnnotations:t,validationContext:n}}}},OM=EM,kM={effectId:wM,baseEffect:B(wM),label:`Remove fields`,description:`Remove fields (input columns) from the sheet.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:TM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:wM,connector:null,config:{field_names:[]}}},AM=`pipe:add@1`,jM={},MM=r.object({effect_id:r.literal(AM),connector:T(),config:r.object({pipe_payload:vj.optional()})}),NM=class extends V{effectId=AM;schema=MM;payload;billableOperations=jM;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=Qj({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}}}},PM=MM,FM={effectId:AM,baseEffect:B(AM),label:`Add pipe`,description:`Append a pipe to the sheet's pipeline.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:jM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:AM,connector:null,config:{}}},IM=`pipe:remove@1`,LM={},RM=r.object({effect_id:r.literal(IM),connector:T(),config:r.object({config_hash:r.string(),hard:r.boolean().default(!1)})}),zM=class extends V{effectId=IM;schema=RM;payload;billableOperations=LM;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=Nj(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 Yj(e.fieldAnnotations||{});for(let e of o){let t=a.fieldDefinitions[e];if(!t)continue;if(n){s=s.deleteKey(e);continue}let i=ti(e,t,a),o=$r(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=Qj({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}=Wj(n);t.input[e]=r}return t};return{next:{environment:e.environment,pipes:c,fieldAnnotations:s.annotations,validationContext:l},rowMigration:u}}},BM=RM,VM={effectId:IM,baseEffect:B(IM),label:`Remove pipe`,description:`Remove a pipe from the sheet's pipeline, optionally deleting its fields.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:LM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:IM,connector:null,config:{config_hash:``,hard:!1}}},HM=`pipe:update@1`,UM={},WM=r.object({effect_id:r.literal(HM),connector:T(),config:r.object({config_hash:r.string().min(1),pipe_payload:vj.optional()})}),GM=class extends V{effectId=HM;schema=WM;payload;billableOperations=UM;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=Nj(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=Qj({config:{environment:e.environment},pipes:s,field_annotations:e.fieldAnnotations||{}}),l=new(hj(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 Yj(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=ti(e,t,a),i=$r(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=Qj({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}=Wj(n);t.input[e]=r}return t}}}},KM=WM,qM={effectId:HM,baseEffect:B(HM),label:`Update pipe`,description:`Replace a pipe in the sheet's pipeline and re-run it.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:UM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:HM,connector:null,config:{config_hash:``}}},JM=`row:update@1`,YM={},XM=r.object({effect_id:r.literal(JM),connector:T(),config:r.object({record_id:r.string().min(1),record:Li})}),ZM=class extends V{effectId=JM;schema=XM;payload;billableOperations=YM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},QM=XM,$M={effectId:JM,baseEffect:B(JM),label:`Update row`,description:`Update a single row's values.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:YM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`shared`,lockScope:`selection`,catalogVisibility:`hidden`,defaultPayload:{effect_id:JM,connector:null,config:{record_id:``,record:{}}}},eN=`rows:add@1`,tN={},nN=r.object({effect_id:r.literal(eN),connector:T(),config:r.object({records:r.array(Li).min(1).max(100),allow_field_creation:r.boolean().default(!1),allow_empty:r.boolean().default(!1)})}),rN=class extends V{effectId=eN;schema=nN;payload;billableOperations=tN;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}},iN=nN,aN={effectId:eN,baseEffect:B(eN),label:`Add rows`,description:`Append records to the sheet.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:tN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`hidden`,defaultPayload:{effect_id:eN,connector:null,config:{records:[],allow_field_creation:!1,allow_empty:!1}}},oN=r.enum([`pending`,`failed`,`no_result`,`skipped`,`completed`]),sN=[{value:`pending`,label:`Pending`},{value:`failed`,label:`Failed`},{value:`no_result`,label:`No result`},{value:`skipped`,label:`Skipped`},{value:`completed`,label:`Completed`}],cN=[`pending`],lN=[`pending`,`failed`,`skipped`];function uN(e){return{enabled:!0,triggers:{status:e,configHashMismatch:!0,inputHashMismatch:!0}}}const dN=`rows:adopt@1`,fN={},pN=r.object({effect_id:r.literal(dN),connector:T(),config:r.object({pipes:r.array(vj).default([]),selection:ws({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target.`,placeholder:`{"type":"all"}`},`both`),adopt_statuses:ac({options:sN,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()})}),mN=class extends V{effectId=dN;schema=pN;payload;billableOperations=fN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},hN=pN,gN={effectId:dN,baseEffect:B(dN),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:fN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`selection`,catalogVisibility:`hidden`,defaultPayload:{effect_id:dN,connector:null,config:{pipes:[]}}},_N=`rows:copy_to_sheet@1`,vN={},yN=r.object({effect_id:r.literal(_N),connector:T(),config:r.object({selection:ws({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to copy as JSON.`,placeholder:`{"type":"all"}`},`both`),where:as({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:nc({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:cc({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})})}),bN=class extends V{effectId=_N;schema=yN;payload;billableOperations=vN;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))]:[]}},xN=yN,SN={effectId:_N,baseEffect:B(_N),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:[G.NEW],lifecycle:null,billableOperations:vN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`visible`,defaultPayload:{effect_id:_N,connector:null,config:{selection:{type:`all`},target_sheet:``,create_if_missing:!0}}},CN=`rows:dedupe@1`,wN={"rows-dedupe-v1-pipe0":{allowManagedConnection:!0,provider:`pipe0`,mode:`always`,credits:{default:0},note:`Deduplicating your own sheet is free.`}},TN=r.object({effect_id:r.literal(CN),connector:T(),config:r.object({selection:ws({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target as JSON.`,placeholder:`{"type":"all"}`},`both`),fields:Cs({path:`config.fields`,sectionKey:`general`,groupPath:`config.general`,label:`Match fields`,minItems:1,description:`Rows are duplicates when these fields match.`}),match:ic({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:ic({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`}]})})}),EN=class extends V{effectId=CN;schema=TN;payload;billableOperations=wN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0_api_operation`,rateLimitRatio:1,allowManagedConnection:!0}]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`rows-dedupe-v1-pipe0`)}getFieldReferences(){return this.payload.config.fields.map(e=>e.field_name)}},DN=TN,ON={effectId:CN,baseEffect:B(CN),label:`Remove duplicate rows`,description:`Find duplicate rows by matching fields and keep one row per group.`,categories:[`data_hygiene`],tags:[G.NEW],lifecycle:null,billableOperations:wN,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:CN,connector:null,config:{fields:[],match:`all`,strategy:`keep_oldest`}}},kN=`rows:duplicate@1`,AN={"rows-duplicate-v1-pipe0":{allowManagedConnection:!0,provider:`pipe0`,mode:`always`,credits:{default:0},note:`Duplicating rows in your own sheet is free.`}},jN=r.object({effect_id:r.literal(kN),connector:T(),config:r.object({selection:ws({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target as JSON.`,placeholder:`{"type":"all"}`},`both`)})}),MN=class extends V{effectId=kN;schema=jN;payload;billableOperations=AN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0_api_operation`,rateLimitRatio:1,allowManagedConnection:!0}]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`rows-duplicate-v1-pipe0`)}getFieldReferences(){return[]}},NN=jN,PN={effectId:kN,baseEffect:B(kN),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:[G.NEW],lifecycle:null,billableOperations:AN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`visible`,defaultPayload:{effect_id:kN,connector:null,config:{}}},FN=`rows:enrich@1`,IN={},LN=r.object({effect_id:r.literal(FN),connector:T(),config:r.object({pipes:r.array(vj).default([]),selection:ws({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target.`,placeholder:`{"type":"all"}`},`both`),run_statuses:ac({options:sN,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()})}),RN=class extends V{effectId=FN;schema=LN;payload;billableOperations=IN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getRecordQueueConfig(e){return uN(this.payload.config.run_statuses??(e?.isScheduled?cN:lN))}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},zN=LN,BN={effectId:FN,baseEffect:B(FN),label:`Enrich rows`,description:`Run the sheet's pipes over the selected rows.`,categories:[`enrichment`],tags:[],lifecycle:null,billableOperations:IN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],catalogVisibility:`visible`,selectionMode:`both`,lockingMode:`shared`,lockScope:`selection`,defaultPayload:{effect_id:FN,connector:null,config:{pipes:[]}}},VN=`rows:filter:prompt@1`,HN=`rows-filter-prompt-v1`,UN=xo(HN),WN=r.object({effect_id:r.literal(VN),connector:bs(),config:r.object({selection:ws({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target as JSON.`,placeholder:`{"type":"all"}`},`both`),prompt:rc({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:uc({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.general`,billableOperations:UN}),fields:Cs({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.`})})}),GN=class extends V{effectId=VN;schema=WN;payload;billableOperations=UN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return ho(this.payload.config.model)}getProviderNames(){return mo(this.payload.config.model)}estimateBillableOperations(e){return Co(e,{model:this.payload.config.model,prefix:HN,inputTokens:600,outputTokens:50})}getFieldReferences(){return(this.payload.config.fields??[]).map(e=>e.field_name)}},KN=WN,qN={effectId:VN,baseEffect:B(VN),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:[G.NEW,G.AI],lifecycle:null,billableOperations:UN,allowedUserConnectionProviders:go(),managedProviders:go(),selectionMode:`both`,lockingMode:`exclusive`,shouldUpgradeSchema:!0,catalogVisibility:`visible`,defaultPayload:{effect_id:VN,connector:null,config:{model:`google-low`,prompt:``,fields:[]}}},JN=`rows:import@1`,YN={},XN=r.object({effect_id:r.literal(JN),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)})}),ZN=class extends V{effectId=JN;schema=XN;payload;billableOperations=YN;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}},QN=XN,$N={effectId:JN,baseEffect:B(JN),label:`Import rows`,description:`Append records from a staging group (CSV import / search commit).`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:YN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`hidden`,defaultPayload:{effect_id:JN,connector:null,config:{staging_group_id:``,allow_field_creation:!1,event_id:null}}},eP=`rows:remove@1`,tP={},nP=r.object({effect_id:r.literal(eP),connector:T(),config:r.object({selection:ws({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to delete as JSON.sc`,placeholder:`{"type":"all"}`},`both`),where:as({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.`})})}),rP=class extends V{effectId=eP;schema=nP;payload;billableOperations=tP;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))]:[]}},iP=nP,aP={effectId:eP,baseEffect:B(eP),label:`Delete rows`,description:`Delete selected rows β all of them, or only those matching a condition.`,categories:[`data_hygiene`],tags:[],lifecycle:null,billableOperations:tP,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:eP,connector:null,config:{selection:{type:`rows`,record_ids:[]}}}};function oP(e){if(e instanceof lD)return e;let t=e.search_id,n=KA(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(YA.parse(e))}const sP=`search:run@1`,cP={},lP=r.object({effect_id:r.literal(sP),connector:T(),config:r.object({search_payload:dc({path:`config.search_payload`,groupPath:`config.general`,sectionKey:`general`,label:`Search`,description:`Pick and configure the search to run.`},YA),max_number_of_results:oc({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:cc({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=oP(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:sc({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.`}})})}),uP=class extends V{effectId=sP;schema=lP;payload;billableOperations=cP;constructor(e){super(),this.payload=this.validatePayload(e)}getSearch(){let e=this.payload.config.search_payload;if(!e?.search_id)return null;try{return oP(e)}catch{return null}}getConnectionsRequirements(){return[]}getProviderNames(){let e=this.getSearch();return e?[aj(e.searchId).provider]:[]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){let e=this.getSearch();return e?(aj(e.searchId).outputFieldMode??`static`)===`dynamic`:!1}},dP=lP,fP={effectId:sP,baseEffect:B(sP),label:`Search`,description:`Run a search and append the results to the sheet.`,categories:[`enrichment`],tags:[G.NEW],lifecycle:null,billableOperations:cP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,defaultPayload:{effect_id:sP,connector:null,config:{search_payload:{search_id:``},max_number_of_results:1e3,deduplicate:!0,stop_at_unique_rows_count:null}}},pP=`sheet:export@1`,mP={},hP=r.object({effect_id:r.literal(pP),connector:T(),config:r.object({selection:ws({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`)})}),gP=class extends V{effectId=pP;schema=hP;payload;billableOperations=mP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},_P=hP,vP={effectId:pP,baseEffect:B(pP),label:`Export sheet`,description:`Export the selected rows to a CSV download.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:mP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`hidden`,defaultPayload:{effect_id:pP,connector:null,config:{}}},yP=`sheet:reset@1`,bP={},xP=r.object({effect_id:r.literal(yP),connector:T(),config:r.object({})}),SP=class extends V{effectId=yP;schema=xP;payload;billableOperations=bP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}evolveSchema(e){let t=Qj({config:{environment:e.environment},pipes:[],field_annotations:{}});return{next:{environment:e.environment,pipes:[],fieldAnnotations:{},validationContext:t}}}},CP=xP,wP={effectId:yP,baseEffect:B(yP),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:bP,shouldUpgradeSchema:!0,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,defaultPayload:{effect_id:yP,connector:null,config:{}}},TP=`sheet:update@1`,EP={},DP=r.object({effect_id:r.literal(TP),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.`)}),OP=class extends V{effectId=TP;schema=DP;payload;billableOperations=EP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},kP=DP,AP={effectId:TP,baseEffect:B(TP),label:`Update sheet`,description:`Update sheet basics (rename: name, slug).`,categories:[`internal`],tags:[`rename`,`name`,`title`,`slug`],lifecycle:null,billableOperations:EP,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:TP,connector:null,config:{}}},jP=`timetravel:create@1`,MP={},NP=r.object({effect_id:r.literal(jP),connector:T(),config:r.object({})}),PP=class extends V{effectId=jP;schema=NP;payload;billableOperations=MP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},FP=NP,IP={effectId:jP,baseEffect:B(jP),label:`Create restore point`,description:`Snapshot the current sheet state as a timetravel restore point.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:MP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,shouldUpgradeSchema:!0,catalogVisibility:`hidden`,defaultPayload:{effect_id:jP,connector:null,config:{}}},LP=`timetravel:travel@1`,RP={},zP=r.object({effect_id:r.literal(LP),connector:T(),config:r.object({schema_id:r.string().min(1)})}),BP=class extends V{effectId=LP;schema=zP;payload;billableOperations=RP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){return!0}},VP=zP,HP={effectId:LP,baseEffect:B(LP),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:RP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:LP,connector:null,config:{schema_id:``}}},UP=r.object({reason:r.object({code:r.string(),details:r.string().optional()}),related_record_id:r.string().nullable(),resolved_by:r.object({ref:bt,config_hash:r.string()})}),WP=r.object({value:r.union([r.string(),r.number(),r.boolean(),r.null()])}),GP=UP.extend({fields:r.record(r.string(),WP)}),KP=r.object({added:UP.optional(),updated:GP.optional(),removed:UP.optional()}),qP=r.record(r.string(),KP),JP=r.object({shown:r.number().int(),total:r.number().int(),added:r.number().int(),updated:r.number().int(),removed:r.number().int()}),YP=r.object({effect_id:bt,config_hash:r.string(),status:r.enum([`completed`,`failed`,`skipped`]),error:r.string().optional(),source:r.literal(`run_added_rows`).optional()}),XP={"rows:dedupe@1":EN,"rows:duplicate@1":MN,"rows:enrich@1":RN,"rows:adopt@1":mN,"rows:add@1":rN,"rows:import@1":ZN,"row:update@1":ZM,"rows:remove@1":rP,"rows:copy_to_sheet@1":bN,"rows:filter:prompt@1":GN,"pipe:add@1":NM,"pipe:update@1":GM,"pipe:remove@1":zM,"fields:remove@1":DM,"fields:patch@1":xM,"fields:add@1":Tc,"fields:deletesparse:input@1":lM,"env:change@1":yc,"timetravel:create@1":PP,"timetravel:travel@1":BP,"sheet:export@1":gP,"search:run@1":uP,"sheet:reset@1":SP,"sheet:update@1":OP},ZP={"rows:dedupe@1":DN,"rows:duplicate@1":NN,"rows:enrich@1":zN,"rows:adopt@1":hN,"rows:add@1":iN,"rows:import@1":QN,"row:update@1":QM,"rows:remove@1":iP,"rows:copy_to_sheet@1":xN,"rows:filter:prompt@1":KN,"pipe:add@1":PM,"pipe:update@1":KM,"pipe:remove@1":BM,"fields:remove@1":OM,"fields:patch@1":SM,"fields:add@1":Ec,"fields:deletesparse:input@1":uM,"env:change@1":bc,"timetravel:create@1":FP,"timetravel:travel@1":VP,"sheet:export@1":_P,"search:run@1":dP,"sheet:reset@1":CP,"sheet:update@1":kP},QP={"rows:dedupe@1":ON,"rows:duplicate@1":PN,"rows:enrich@1":BN,"rows:adopt@1":gN,"rows:add@1":aN,"rows:import@1":$N,"row:update@1":$M,"rows:remove@1":aP,"rows:copy_to_sheet@1":SN,"rows:filter:prompt@1":qN,"pipe:add@1":FM,"pipe:update@1":qM,"pipe:remove@1":VM,"fields:remove@1":kM,"fields:patch@1":CM,"fields:add@1":Dc,"fields:deletesparse:input@1":dM,"env:change@1":xc,"timetravel:create@1":IP,"timetravel:travel@1":HP,"sheet:export@1":vP,"search:run@1":fP,"sheet:reset@1":wP,"sheet:update@1":AP};function $P(e){return XP[e]}function eF(e){return QP[e]}function tF(e){return ZP[e]}function nF(){return Object.keys(QP).filter(e=>QP[e].agentExposure!==`excluded`)}function rF(e){return QP[e]?.agentExposure!==`excluded`}const iF=t.discriminatedUnion(`effect_id`,Object.values(ZP).map(e=>e)).openapi(`EffectPayloadSchema`);function aF(e,t){return vt(t,QP[e].defaultPayload)}const oF=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`effect_id`in e))return e;let t=aF(e.effect_id);return t?{...e,config:vt(e?.config||{},t.config)}:e},iF),sF=t.enum([`processing`,`completed`,`failed`,`canceled`,`skipped`]).openapi(`EffectsRunStatus`),cF=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(oF).min(1)}).openapi(`EffectsRequest`),lF=t.object({id:t.string(),status:sF,effects:t.array(YP),counts:JP.nullable(),diff:qP.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`),uF=t.object({effects:t.array(t.unknown()).min(1)}).openapi(`EffectsValidateRequest`),dF=t.object({index:t.number().int(),effect_id:bt,valid:t.boolean(),errors:t.array(t.string())}).openapi(`EffectsValidateStep`),fF=t.object({valid:t.boolean(),errors:t.array(t.string()),steps:t.array(dF).optional()}).openapi(`EffectsValidateResponse`);function pF(e){let t=e.split(`@`)[1];if(!t)throw Error(`No effect version found`);return Number(t)}function mF(){let e={};for(let t of Object.values(QP)){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=pF(e.effectId);return pF(t.effectId)-n})}),e}const hF=mF();function gF(){let e=[];for(let[t,n]of Object.entries(hF)){let r=n[0];if(!r)throw Error(`Found empty entry`);r.lifecycle?.deprecatedOn||r.catalogVisibility!==`hidden`&&e.push({...r,baseEffect:t,latestVersion:pF(r.effectId)})}return e}const _F={"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 vF=class extends Error{errors;constructor(e){super(e.join(`
|
|
77
|
-
`)),this.name=`SheetEffectValidationError`,this.errors=e}};function yF({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=$P(e.effect_id);if(!d){n.push(`unknown effect "${e.effect_id}"`),bF(i,r,t,e.effect_id,n);return}let f;try{f=new d(e)}catch(a){n.push(a.message),bF(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),bF(i,r,t,e.effect_id,n)}),{valid:r.length===0,steps:i,errors:r,instances:a,payloads:o,resultingFieldDefinitions:c.fieldDefinitions}}function bF(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 xF({effects:e,validationContext:t,schemaInputs:n}){let r=yF({effects:e,validationContext:t,schemaInputs:n});if(!r.valid)throw new vF(r.errors);return{instances:r.instances,payloads:r.payloads}}function SF(e){let t=(e??[]).map(e=>CF(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 CF(e){let t=e.effect_id,n=B(t),r=e.config??{};switch(n){case`pipe:add`:{let e=wF(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=wF(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} ${DF(e,`row`)}`,description:e==null?`Added rows to the sheet.`:`Added ${e} ${DF(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=TF(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=EF(t);return{title:e??t,description:e??t}}}}function wF(e){if(e&&typeof e==`object`){let t=e.pipe_id;if(typeof t==`string`&&t.length>0)return t}}function TF(e){if(e&&typeof e==`object`){let t=e.search_id;if(typeof t==`string`&&t.length>0)return t}}function EF(e){try{return eF(e)?.label}catch{return}}function DF(e,t){return e===1?t:`${t}s`}function OF(e){if(e instanceof V)return e;let t=e.effect_id,n=$P(t);if(!n)throw Error(`Unknown effect: ${e.effect_id}`);return new n(oF.parse(e))}function kF(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 AF(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 jF(e){let t=AF(e.map(kF));return e.map((e,n)=>({name:t[n],label:e}))}const MF={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function NF(e){return MF[e]}const PF=`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(`.`),FF=[`university`,`college`,`institute of technology`,`polytechnic`,`school of`],IF=e=>` ${e.toLowerCase().replace(/[^a-z ]+/g,` `).replace(/\s+/g,` `).trim()} `,LF=(e,t)=>{if(!e)return!1;let n=IF(e);return t.some(e=>n.includes(` ${e} `))};function RF(e){return LF(e.degree_name,PF)?!0:e.degree_name?!1:LF(e.institution_name,FF)}function zF(e){if(!e.start_date)return 1/0;let t=ee(e.start_date);return Number.isNaN(t.getTime())?1/0:t.getTime()}function BF(e){let t=e.education_history.filter(e=>e.is_current_education===!0&&RF(e)),n=null;for(let e of t)(n===null||zF(e)<zF(n))&&(n=e);return{...e,education_history:e.education_history.map(e=>({...e,is_primary_current_education:e===n}))}}function VF(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 HF={shared:{}},UF={shared:{}},WF={shared:{paths:{"config.cursor":null,"config.offset":null,"config.page_number":null}}};function GF(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 KF=e=>GF(UF,e),qF=e=>GF(WF,e),JF=e=>GF(HF,e),YF={"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.bucket_creation":{order:1,label:`Bucket creation`,description:`Applied when the bucket is created on first write; ignored if it already exists.`,iconKey:`sliders`,defaultExpand:!1},"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}},XF={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 ZF(e){let t=_j(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.type===`context_select_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 QF({pipePayload:e,validationContext:t,store:n,formResolvers:r,customization:i}){let a=_j(e.pipe_id),o=zc(e.pipe_id,e.config||{});return ls({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:bj(e.pipe_id),hash:o}):i},store:n,formResolvers:r,sectionMap:ss(XF,i?.sectionMap),groupMap:ss(YF,i?.groupMap),pathMap:i?.pathMap})}const $F={"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}},eI={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 tI({searchPayload:e,formContext:t,formResolvers:n,customization:r}){return ls({schema:ej(e.search_id),extractFromSchema:n=>{let r=v.get(n);if(t.field_options??={},r)return typeof r==`function`?r({searchPayload:e,searchEntry:aj(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:ss(eI,r?.sectionMap),groupMap:ss($F,r?.groupMap),pathMap:r?.pathMap})}function nI(e){let t=ej(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 rI={"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}},iI={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 aI({effectPayload:e,validationContext:t,store:n,formResolvers:r,customization:i}){let a=tF(e.effect_id),o=hc(e.effect_id,e.config||{});return ls({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:eF(e.effect_id),hash:o}):i},store:n,formResolvers:r,sectionMap:ss(iI,i?.sectionMap),groupMap:ss(rI,i?.groupMap),pathMap:i?.pathMap})}function oI(e){let t=tF(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 sI=new Proxy({},{get:(e,t)=>e=>e.type===t}),cI=`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(`.`),lI=r.enum(cI),uI=r.object({provider_logo:r.object({provider:ri}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:lI}).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()}),dI=`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(dI);const fI=r.object({value:r.string(),label:r.string(),widgets:uI.optional(),data:r.record(r.string(),r.string()).optional()}),pI=r.object({field_options:r.record(r.string(),r.object({options:r.array(fI)}))}),mI=[{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}],hI=new Map(mI.map(e=>[e.id,e]));function gI(e){return hI.get(e)}function _I(){return mI}const vI={"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:`
|
|
74
|
+
}`,inputType:`text`,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`text`,multiline:!0}).nullable(),headers:js({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:Ws({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({[Dy.name]:k({fieldName:Dy.name}),[Oy.name]:k({fieldName:Oy.name}),[ky.name]:k({fieldName:ky.name})}))})}),jy={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},My=class extends U{pipeId=Ey;payload;payloadSchema=Ay;billableOperations=jy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(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 Jc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Yc(this.getTemplatedFields())}getConstantRequirements(){return Xc(this.getTemplatedFields())}getRawOutputFields(){return{[Dy.name]:this.catalogOutput(Dy),[Oy.name]:this.catalogOutput(Oy),[ky.name]:this.catalogOutput(ky)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Ny=Ay,Py={pipeId:Ey,basePipe:K(Ey),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:[G.LOGIC,G.JSON,G.NEW],keywords:[`api`,`rest`,`webhook`,`fetch`,`get`,`post`,`endpoint`,`curl`],docPath:q(Ey),billableOperations:jy,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ey,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}}}}},Fy=`json:extract:multi@1`,Iy=r.object({pipe_id:r.literal(Fy),run_if:x(),connector:w(),config:r.object({json_extraction:Io()})}),Ly={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Ry=class extends U{pipeId=Fy;payload;payloadSchema=Iy;billableOperations=Ly;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(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[]}},zy=Iy,By={pipeId:Fy,basePipe:K(Fy),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(Fy),tags:[G.JSON],keywords:[`parse`,`pick`,`path`,`nested`,`property`,`jsonata`,`unpack`],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:Ly,defaultInputRequirement:null,defaultPayload:{pipe_id:Fy,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},Vy=`lead:enroll:lemlist@1`,Hy={"lead-enroll-lemlist-v1-lemlist":{allowManagedConnection:!1,provider:`lemlist`,credits:null,mode:null}},Uy=g(`email`),Wy=g(`name`),Gy=g(`first_name`),Ky=g(`last_name`),qy=g(`company_name`),Jy=g(`job_title`),Yy=g(`profile_url`),Xy=g(`phone`),Zy=g(`lemlist_lead_id`),Qy=g(`lemlist_enrollment_result`),$y=new Set([`email`,`firstName`,`lastName`,`name`,`companyName`,`jobTitle`,`linkedinUrl`,`phone`,`companyDomain`,`icebreaker`,`picture`]),eb=[{label:`Demo Β· Q3 Outbound`,value:`cam_sandbox_1`},{label:`Demo Β· Founder Intros`,value:`cam_sandbox_2`}],tb={requires:{connection:`lemlist`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return eb;if(!t)throw new _d.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 _d.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 nb(e){let t=new Set,n=new Set;try{let r=Ta(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 rb=r.object({pipe_id:r.literal(Vy),connector:ms(),run_if:x(),config:r.object({campaign_id:Gs({sectionKey:`general`,required:!0,label:`Campaign`,groupPath:`config.general`,path:`config.campaign_id`,info:`The lemlist campaign to enroll the lead into.`,enabledIf:no(`lemlist`),optionsDef:tb}),input_fields:z(r.object({[Uy.name]:E({fieldName:Uy.name}),[Wy.name]:E({fieldName:Wy.name}),[Gy.name]:E({fieldName:Gy.name}),[Ky.name]:E({fieldName:Ky.name}),[qy.name]:E({fieldName:qy.name}),[Jy.name]:E({fieldName:Jy.name}),[Yy.name]:E({fieldName:Yy.name}),[Xy.name]:E({fieldName:Xy.name})})),custom_variables:js({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({[Zy.name]:k({fieldName:Zy.name}),[Qy.name]:k({fieldName:Qy.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}$y.has(t)&&r(`"${t}" is a standard lemlist field β set it via the dedicated field above, not as a custom variable.`)}})}),ib=e=>Pc(H(J(Uy,e)),Fc(H(J(Wy,e)),Pc(H(J(Gy,e)),H(J(Ky,e)))),Ic(J(qy,e)),Ic(J(Jy,e)),Ic(J(Yy,e)),Ic(J(Xy,e))),ab=e=>{let t=new Set;for(let n of e)if(n)try{let e=Ta(n);for(let n of Object.keys(e.inputs))t.add(n)}catch{}return[...t].map(e=>Ic({name:e,resolvedName:e,label:e,description:``,type:t=>qc(t,e)?.type||`string`,format:`text`}))},ob=class extends U{pipeId=Vy;payload;payloadSchema=rb;billableOperations=Hy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`lemlist`]}estimateBillableOperations(e){return Y(e,`lead-enroll-lemlist-v1-lemlist`)}getCustomVariableValueTemplates(){return Object.values(this.payload.config.custom_variables??{})}getInputRequirement(){return Pc(ib(this.payload.config),...ab(this.getCustomVariableValueTemplates()))}getSecretRequirements(){return Yc(this.getCustomVariableValueTemplates())}getConstantRequirements(){return Xc(this.getCustomVariableValueTemplates())}getRawOutputFields(){return{[Zy.name]:this.catalogOutput(Zy),[Qy.name]:this.catalogOutput(Qy)}}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 _d.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 _d.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}=nb(e);for(let e of[...t,...n])s.add(e)}let c=[...s].filter(e=>$y.has(e)),l=[...s].filter(e=>!$y.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}}}},sb=rb,cb={pipeId:Vy,basePipe:K(Vy),label:`Enroll Lead in Campaign`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Add a lead to a lemlist campaign sequence, with custom variables.`,tags:[G.EMAIL],keywords:[`sequence`,`outreach`,`add`,`subscribe`,`outbound`,`email marketing`],docPath:q(Vy),billableOperations:Hy,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`lemlist`],defaultInputRequirement:ib(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Vy,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}}}}},lb=`message:send:slack@1`,ub=g(`slack_message_success`),db=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],fb=r.object({pipe_id:r.literal(lb),connector:ms(),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 db;if(!t)throw new _d.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 _d.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new _d.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({[ub.name]:k({fieldName:ub.name})}))})}),pb={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},mb=class extends U{pipeId=lb;payload;payloadSchema=fb;billableOperations=pb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(e){return Y(e,`message-send-slack-v1-slack`)}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return Jc(this.getTemplatedFields())}getSecretRequirements(){return Yc(this.getTemplatedFields())}getConstantRequirements(){return Xc(this.getTemplatedFields())}getRawOutputFields(){return{[ub.name]:this.catalogOutput(ub)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},hb=fb,gb={pipeId:lb,basePipe:K(lb),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:[G.CHAT],keywords:[`notify`,`notification`,`alert`,`post`,`chat`],docPath:q(lb),billableOperations:pb,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:lb,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},_b=`message:write@1`,vb=g(`message`),yb=`message-write-v1`,bb=xo(yb),xb=r.object({pipe_id:r.literal(_b),connector:C(),run_if:x(),config:r.object({template:fs({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:W(`prompt`),groupPath:`config.prompt`,required:!0}),model:Bs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:bb}),output_fields:R(r.object({[vb.name]:k({fieldName:vb.name})}))})}),Sb=class extends U{pipeId=_b;payload;payloadSchema=xb;billableOperations=bb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return mo(this.payload.config.model)}estimateBillableOperations(e){return Co(e,{model:this.payload.config.model,prefix:yb,inputTokens:600,outputTokens:800})}getInputRequirement(){return Jc([this.payload.config.template])}getSecretRequirements(){return Yc([this.payload.config.template])}getConstantRequirements(){return Xc([this.payload.config.template])}getRawOutputFields(){return{[vb.name]:this.catalogOutput(vb)}}getConnectionsRequirements(){return ho(this.payload.config.model)}},Cb=xb,wb={pipeId:_b,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:K(_b),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:[G.AI],keywords:[`ai`,`compose`,`draft`,`copywriting`,`outreach`,`slack`,`teams`],docPath:q(_b),defaultInputRequirement:null,billableOperations:bb,allowedUserConnectionProviders:go(),managedProviders:go(),deprecatedProviders:[],defaultPayload:{pipe_id:_b,connector:null,run_if:null,config:{model:`openai-high`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},Tb=`person:devprofileurl:profileurl:waterfall@1`,Eb=g(`profile_url`),Db=g(`developer_profile_url`),Ob=g(`alternative_developer_profile_urls`),kb=[`crustdata`],Ab=[{provider:`crustdata`}],jb=r.object({pipe_id:r.literal(Tb),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Ab,availableProviders:kb}),input_fields:z(r.object({[Eb.name]:E({fieldName:Eb.name})})),output_fields:R(r.object({[Db.name]:k({fieldName:Db.name}),[Ob.name]:k({fieldName:Ob.name})}))}).optional()}),Mb=e=>H(J(Eb,e)),Nb={"person-devprofileurl-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1.3,weight:1}},mode:`onSuccess`}},Pb=class extends U{pipeId=Tb;payload;payloadSchema=jb;billableOperations=Nb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return Mb(this.payload.config)}getRawOutputFields(){return{[Db.name]:this.catalogOutput(Db,{isPrimaryOutput:!0}),[Ob.name]:this.catalogOutput(Ob,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Fb=jb,Ib={pipeId:Tb,basePipe:K(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:q(Tb),tags:[G.LINKEDIN,G.WATERFALL,G.NEW],keywords:[`developer`,`dev`,`engineer`,`coder`,`git`],billableOperations:Nb,defaultInputRequirement:Mb(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:kb,allowedUserConnectionProviders:kb,deprecatedProviders:[],defaultPayload:{pipe_id:Tb,connector:null,run_if:null,config:{providers:Ab,input_fields:{profile_url:{alias:``}},output_fields:{developer_profile_url:{alias:``,enabled:!0},alternative_developer_profile_urls:{alias:``,enabled:!1}}}}},Lb=`person:email:validate:millionverifier@1`,Rb=g(`email`),zb=g(`email_validation_status`),Bb=g(`million_validation_match`),Vb=r.object({pipe_id:r.literal(Lb),connector:C(),run_if:x(),config:r.object({input_fields:z(r.object({[Rb.name]:E({fieldName:Rb.name})})),output_fields:R(r.object({[zb.name]:k({fieldName:zb.name}),[Bb.name]:k({fieldName:Bb.name})}))}).optional()}),Hb=e=>H(J(Rb,e)),Ub={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},Wb=class extends U{pipeId=Lb;payload;payloadSchema=Vb;billableOperations=Ub;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(e){return Y(e,`person-email-validate-millionverifier-v1-millionverifier`)}getInputRequirement(){return Hb(this.payload.config)}getRawOutputFields(){return{[zb.name]:this.catalogOutput(zb),[Bb.name]:this.catalogOutput(Bb)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},Gb=Vb,Kb={pipeId:Lb,basePipe:K(Lb),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[G.EMAIL],keywords:[`verify`,`verification`,`deliverability`,`bounce`,`check`,`clean`],docPath:q(Lb),billableOperations:Ub,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:Hb(null),defaultPayload:{pipe_id:Lb,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},qb=g(`email`),Jb=g(`amplemarket_person_match`),Yb=`person:identity:amplemarket@1`,Xb=r.object({pipe_id:r.literal(Yb),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[qb.name]:E({fieldName:qb.name})})),output_fields:R(r.object({[Jb.name]:k({fieldName:Jb.name})}))}).optional()}),Zb=e=>H(J(qb,e)),Qb={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},$b=class extends U{pipeId=Yb;payload;payloadSchema=Xb;billableOperations=Qb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return Zb(this.payload.config)}getRawOutputFields(){return{[Jb.name]:this.catalogOutput(Jb)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},ex=Xb,tx={pipeId:Yb,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(Yb),label:`Person identity`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their email`,tags:[G.PEOPLE_PROFILES],keywords:[`enrich`,`enrichment`,`reverse lookup`,`contact`,`profile`],docPath:q(Yb),billableOperations:Qb,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:Zb(null),defaultPayload:{pipe_id:Yb,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},nx=`person:identity:email:waterfall@1`,rx=g(`email`),ix=g(`company_domain`),ax=g(`name`),ox=g(`job_title`),sx=g(`profile_url`),cx=g(`company_profile_url`),lx=g(`company_name`),ux=[`findymail`,`hunter`,`crustdata`],dx=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],fx=r.object({pipe_id:r.literal(nx),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:ux,defaultProviders:dx,sectionKey:`general`}),input_fields:z(r.object({[rx.name]:E({fieldName:rx.name})})),output_fields:R(r.object({[ax.name]:k({fieldName:ax.name}),[sx.name]:k({fieldName:sx.name}),[ox.name]:k({fieldName:ox.name}),[ix.name]:k({fieldName:ix.name}),[lx.name]:k({fieldName:lx.name}),[cx.name]:k({fieldName:cx.name})}))}).optional()}),px=e=>H(J(rx,e)),mx={"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`}},hx=class extends U{pipeId=nx;payload;payloadSchema=fx;billableOperations=mx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return px(this.payload.config)}getRawOutputFields(){return{[ax.name]:this.catalogOutput(ax,{isPrimaryOutput:!0}),[sx.name]:this.catalogOutput(sx,{isPrimaryOutput:!0}),[ox.name]:this.catalogOutput(ox,{isPrimaryOutput:!0}),[lx.name]:this.catalogOutput(lx,{isPrimaryOutput:!0}),[cx.name]:this.catalogOutput(cx,{isPrimaryOutput:!0}),[ix.name]:this.catalogOutput(ix,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},gx=fx,_x={pipeId:nx,basePipe:K(nx),label:`Person identity from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find identity of a person from their email address.`,tags:[G.EMAIL,G.PEOPLE_PROFILES],keywords:[`enrich`,`enrichment`,`reverse lookup`,`contact`,`profile`],docPath:q(nx),managedProviders:ux,deprecatedProviders:[],allowedUserConnectionProviders:ux,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:mx,defaultInputRequirement:px(null),defaultPayload:{pipe_id:nx,connector:null,run_if:null,config:{providers:dx,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}}}}},vx=g(`profile_url`),yx=g(`amplemarket_person_match`),bx=`person:match:amplemarket@1`,xx=r.object({pipe_id:r.literal(bx),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[vx.name]:E({fieldName:vx.name})})),output_fields:R(r.object({[yx.name]:k({fieldName:yx.name})}))}).optional()}),Sx=e=>H(J(vx,e)),Cx={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},wx=class extends U{pipeId=bx;payload;payloadSchema=xx;billableOperations=Cx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return Sx(this.payload.config)}getRawOutputFields(){return{[yx.name]:this.catalogOutput(yx)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},Tx=xx,Ex={pipeId:bx,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(bx),label:`Person match`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their LinkedIn profile URL.`,tags:[G.PEOPLE_PROFILES],keywords:[`enrich`,`enrichment`,`linkedin`,`profile`,`lookup`,`contact`],docPath:q(bx),billableOperations:Cx,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:Sx(null),defaultPayload:{pipe_id:bx,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},Dx=`person:match:role:waterfall@1`,Ox=g(`company_domain`),kx=g(`role_finder_match`),Ax=[`leadmagic`],jx=[{provider:`leadmagic`}],Mx=r.object({pipe_id:r.literal(Dx),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:jx,availableProviders:Ax}),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({[Ox.name]:E({fieldName:Ox.name})})),output_fields:R(r.object({[kx.name]:k({fieldName:kx.name})}))})}),Nx=e=>Fc(J(Ox,e)),Px={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Fx=class extends U{pipeId=Dx;payload;payloadSchema=Mx;billableOperations=Px;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return Nx(this.payload.config)}getSecretRequirements(){return Yc(this.payload.config?.roles??[])}getConstantRequirements(){return Xc(this.payload.config?.roles??[])}getRawOutputFields(){return{[kx.name]:this.catalogOutput(kx,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Ix=Mx,Lx={pipeId:Dx,basePipe:K(Dx),managedProviders:Ax,deprecatedProviders:[],allowedUserConnectionProviders:Ax,label:`Role finder`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[G.PEOPLE_PROFILES],keywords:[`job title`,`title`,`ceo`,`executive`,`decision maker`,`employee`],docPath:q(Dx),billableOperations:Px,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Nx(null),defaultPayload:{pipe_id:Dx,run_if:null,connector:null,config:{roles:[],providers:jx,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},Rx=`person:mobile:profileurl:waterfall@1`,zx=g(`profile_url`),Bx=g(`mobile`),Vx=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],Hx=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Ux=r.object({pipe_id:r.literal(Rx),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Hx,availableProviders:Vx}),input_fields:z(r.object({[zx.name]:E({fieldName:zx.name})})),output_fields:R(r.object({[Bx.name]:k({fieldName:Bx.name})}))}).optional()}),Wx=e=>H(J(zx,e)),Gx={"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`}},Kx=class extends U{pipeId=Rx;payload;payloadSchema=Ux;billableOperations=Gx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return Wx(this.payload.config)}getRawOutputFields(){return{[Bx.name]:this.catalogOutput(Bx,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},qx=Ux,Jx={pipeId:Rx,basePipe:K(Rx),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(Rx),tags:[G.PHONE,G.WATERFALL],keywords:[`phone`,`phone number`,`cell`,`direct dial`],billableOperations:Gx,defaultInputRequirement:Wx(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Vx,allowedUserConnectionProviders:Vx,deprecatedProviders:[],defaultPayload:{pipe_id:Rx,connector:null,run_if:null,config:{providers:Hx,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Yx=`person:mobile:workemail:waterfall@1`,Xx=g(`work_email`),Zx=g(`mobile`),Qx=[`leadmagic`,`amplemarket`],$x=[{provider:`leadmagic`},{provider:`amplemarket`}],eS=r.object({pipe_id:r.literal(Yx),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Qx,defaultProviders:$x}),input_fields:z(r.object({[Xx.name]:E({fieldName:Xx.name})})),output_fields:R(r.object({[Zx.name]:k({fieldName:Zx.name})}))}).optional()}),tS=e=>H(J(Xx,e)),nS={"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`}},rS=class extends U{pipeId=Yx;payload;payloadSchema=eS;billableOperations=nS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return tS(this.payload.config)}getRawOutputFields(){return{[Zx.name]:this.catalogOutput(Zx,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},iS=eS,aS={pipeId:Yx,basePipe:K(Yx),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for a prospect.`,tags:[G.PHONE,G.WATERFALL],keywords:[`phone`,`phone number`,`cell`,`direct dial`],docPath:q(Yx),billableOperations:nS,defaultInputRequirement:tS(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Qx,managedProviders:Qx,deprecatedProviders:[],defaultPayload:{pipe_id:Yx,connector:null,run_if:null,config:{providers:$x,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},oS=`person:name:join@1`,sS=g(`first_name`),cS=g(`last_name`),lS=g(`name`),uS=r.object({pipe_id:r.literal(oS),run_if:x(),connector:w(),config:r.object({input_fields:z(r.object({[sS.name]:E({fieldName:sS.name}),[cS.name]:E({fieldName:cS.name})})),output_fields:R(r.object({[lS.name]:k({fieldName:lS.name})}))}).optional()}),dS=e=>Pc(J(sS,e),J(cS,e)),fS={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},pS=class extends U{pipeId=oS;payload;payloadSchema=uS;billableOperations=fS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`person-name-join-v1-pipe0`)}getInputRequirement(){return dS(this.payload.config)}getRawOutputFields(){return{[lS.name]:this.catalogOutput(lS)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},mS=uS,hS={pipeId:oS,basePipe:K(oS),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:[G.NAMES],keywords:[`combine`,`concatenate`,`merge`,`first`,`last`,`full`],docPath:q(oS),billableOperations:fS,defaultInputRequirement:dS(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:oS,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},gS=`person:name:split@1`,_S=g(`name`),vS=g(`first_name`),yS=g(`last_name`),bS=r.object({pipe_id:r.literal(gS),connector:w(),run_if:x(),config:r.object({input_fields:z(r.object({[_S.name]:E({fieldName:_S.name})})),output_fields:R(r.object({[vS.name]:k({fieldName:vS.name}),[yS.name]:k({fieldName:yS.name})}))}).optional()}),xS=e=>H(J(_S,e)),SS={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},CS=class extends U{pipeId=gS;payload;payloadSchema=bS;billableOperations=SS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`person-name-split-v1-pipe0`)}getInputRequirement(){return xS(this.payload.config)}getRawOutputFields(){return{[vS.name]:this.catalogOutput(vS),[yS.name]:this.catalogOutput(yS)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},wS=bS,TS={pipeId:gS,basePipe:K(gS),label:`Split name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Split a full name into first and last name.`,tags:[G.NAMES],keywords:[`parse`,`separate`,`first`,`last`,`full`],docPath:q(gS),billableOperations:SS,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:xS(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:gS,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},ES=`person:personalemail:profileurl:waterfall@1`,DS=g(`profile_url`),OS=g(`personal_email`),kS=g(`alternate_personal_emails`),AS=[`leadmagic`,`mixrank`],jS=[{provider:`leadmagic`},{provider:`mixrank`}],MS=r.object({pipe_id:r.literal(ES),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:AS,defaultProviders:jS}),input_fields:z(r.object({[DS.name]:E({fieldName:DS.name})})),output_fields:R(r.object({[OS.name]:k({fieldName:OS.name}),[kS.name]:k({fieldName:kS.name})}))}).optional()}),NS=e=>H(J(DS,e)),PS={"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`}},FS=class extends U{pipeId=ES;payload;payloadSchema=MS;billableOperations=PS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return NS(this.payload.config)}getRawOutputFields(){return{[OS.name]:this.catalogOutput(OS,{isPrimaryOutput:!0}),[kS.name]:this.catalogOutput(kS)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},IS=MS,LS={pipeId:ES,basePipe:K(ES),allowedUserConnectionProviders:AS,managedProviders:AS,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:[G.EMAIL,G.PERSONAL_EMAIL],keywords:[`gmail`,`private`,`consumer`,`contact`],docPath:q(ES),billableOperations:PS,defaultInputRequirement:NS(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:ES,connector:null,run_if:null,config:{providers:jS,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},RS=g(`profile_url`),zS=g(`post_list_string`),BS=g(`crustdata_post_list`),VS=`person:posts:content:crustdata@1`,HS=r.object({pipe_id:r.literal(VS),run_if:x(),connector:C(),config:r.object({limit:Hs({path:`config.limit`,groupPath:`config.general`,max:100,min:1,sectionKey:`general`,info:``,label:`Limit`,legend:`Max. 100`}),input_fields:z(r.object({[RS.name]:E({fieldName:RS.name})})),output_fields:R(r.object({[zS.name]:k({fieldName:zS.name}),[BS.name]:k({fieldName:BS.name})}))}).optional()}),US=e=>H(J(RS,e)),WS={"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`}},GS=class extends U{pipeId=VS;payload;payloadSchema=HS;billableOperations=WS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return Y(e,`person-posts-crustdata-v1-crustdata`)}getInputRequirement(){return US(this.payload.config)}getRawOutputFields(){return{[zS.name]:this.catalogOutput(zS),[BS.name]:this.catalogOutput(BS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},KS=HS,qS={pipeId:VS,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(VS),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[G.LINKEDIN],keywords:[`activity`,`content`,`social`,`updates`,`engagement`,`feed`],docPath:q(VS),billableOperations:WS,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:US(null),defaultPayload:{pipe_id:VS,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}}}}},JS=`person:profile:waterfall@1`,YS=g(`profile`),XS=g(`profile_url`),ZS=[`prospeo`,`icypeas`,`amplemarket`],QS=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],$S=r.object({pipe_id:r.literal(JS),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:ZS,defaultProviders:QS}),input_fields:z(r.object({[XS.name]:E({fieldName:XS.name})})),output_fields:R(r.object({[YS.name]:k({fieldName:YS.name})}))}).optional()}),eC=e=>H(J(XS,e)),tC={"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}},nC=class extends U{pipeId=JS;payload;payloadSchema=$S;billableOperations=tC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return eC(this.payload.config)}getRawOutputFields(){return{[YS.name]:this.catalogOutput(YS,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},rC=$S,iC={pipeId:JS,basePipe:K(JS),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:q(JS),tags:[G.LINKEDIN,G.WATERFALL],keywords:[`enrich`,`enrichment`,`json`,`scrape`,`bio`,`experience`],managedProviders:ZS,deprecatedProviders:[],allowedUserConnectionProviders:ZS,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:tC,defaultInputRequirement:eC(null),defaultPayload:{pipe_id:JS,run_if:null,connector:null,config:{providers:QS,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},aC=g(`work_email`),oC=g(`crustdata_person_match`),sC=g(`crustdata_profile_match_score`),cC=`person:profile:workemail:crustdata@1`,lC=r.object({pipe_id:r.literal(cC),run_if:x(),connector:C(),config:r.object({input_fields:z(r.object({[aC.name]:E({fieldName:aC.name})})),output_fields:R(r.object({[oC.name]:k({fieldName:oC.name}),[sC.name]:k({fieldName:sC.name})}))}).optional()}),uC=e=>H(J(aC,e)),dC={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},fC=class extends U{pipeId=cC;payload;payloadSchema=lC;billableOperations=dC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return Y(e,`person-profile-workemail-crustdata-v1-crustdata`)}getInputRequirement(){return uC(this.payload.config)}getRawOutputFields(){return{[oC.name]:this.catalogOutput(oC),[sC.name]:this.catalogOutput(sC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},pC=lC,mC={pipeId:cC,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:K(cC),label:`Profile from work email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find person profile by their work email address.`,tags:[G.EMAIL,G.PEOPLE_PROFILES],keywords:[`enrich`,`enrichment`,`reverse lookup`,`linkedin`,`person`],docPath:q(cC),billableOperations:dC,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:uC(null),defaultPayload:{pipe_id:cC,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}}}}},hC=`person:profileurl:email:waterfall@1`,gC=g(`email`),_C=g(`work_email`),vC=g(`profile_url`),yC=[`leadmagic`],bC=[{provider:`leadmagic`}],xC=r.object({pipe_id:r.literal(hC),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:bC,availableProviders:yC}),input_fields:z(r.object({[gC.name]:E({fieldName:gC.name}),[_C.name]:E({fieldName:_C.name})})),output_fields:R(r.object({[vC.name]:k({fieldName:vC.name})}))}).optional()}),SC=e=>Fc(J(gC,e),J(_C,e)),CC={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},wC=class extends U{pipeId=hC;payload;payloadSchema=xC;billableOperations=CC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return SC(this.payload.config)}getRawOutputFields(){return{[vC.name]:this.catalogOutput(vC,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},TC=xC,EC={pipeId:hC,basePipe:K(hC),managedProviders:yC,deprecatedProviders:[],allowedUserConnectionProviders:yC,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:[G.LINKEDIN],keywords:[`profile`,`reverse lookup`,`social`,`person`],docPath:q(hC),billableOperations:CC,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:SC(null),defaultPayload:{pipe_id:hC,run_if:null,connector:null,config:{providers:bC,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},DC=`person:profileurl:name@1`,OC=g(`name`),kC=g(`company_name`),AC=g(`location_hint`),jC=g(`profile_url`),MC=r.object({pipe_id:r.literal(DC),connector:w(),run_if:x(),config:r.object({input_fields:z(r.object({[OC.name]:E({fieldName:OC.name}),[kC.name]:E({fieldName:kC.name}),[AC.name]:E({fieldName:AC.name})})),output_fields:R(r.object({[jC.name]:k({fieldName:jC.name})}))}).optional()}),NC=e=>Pc(H(J(OC,e)),H(J(kC,e)),Ic(J(AC,e))),PC={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},FC=class extends U{pipeId=DC;payload;payloadSchema=MC;billableOperations=PC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`person-profileurl-name-v1-pipe0`)}getInputRequirement(){return NC(this.payload.config)}getRawOutputFields(){return{[jC.name]:this.catalogOutput(jC)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},IC=MC,LC={pipeId:DC,basePipe:K(DC),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(DC),tags:[G.LINKEDIN],keywords:[`profile`,`social`,`lookup`,`person`],billableOperations:PC,defaultInputRequirement:NC(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:DC,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},RC=`person:workemail:profileurl:waterfall@1`,zC=g(`profile_url`),BC=g(`work_email`),VC=g(`email_validation_status`),HC=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],UC=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],WC=r.object({pipe_id:r.literal(RC),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:HC,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({[zC.name]:E({fieldName:zC.name})})),output_fields:R(r.object({[BC.name]:k({fieldName:BC.name}),[VC.name]:k({fieldName:VC.name})}))}).optional()}),GC=e=>H(J(zC,e)),KC={"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`}},qC=class extends U{pipeId=RC;payload;payloadSchema=WC;billableOperations=KC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return GC(this.payload.config)}getRawOutputFields(){return{[BC.name]:this.catalogOutput(BC,{isPrimaryOutput:!0}),[VC.name]:this.catalogOutput(VC,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},JC=WC,YC={pipeId:RC,basePipe:K(RC),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses from B2B profile.`,tags:[G.EMAIL,G.WORK_EMAIL,G.WATERFALL],keywords:[`business email`,`b2b`,`corporate`,`contact`],docPath:q(RC),managedProviders:HC,allowedUserConnectionProviders:HC,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:KC,defaultInputRequirement:GC(null),defaultPayload:{pipe_id:RC,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}}}}},XC=`person:workemail:waterfall@1`,ZC=g(`name`),QC=g(`company_domain`),$C=g(`company_name`),ew=g(`work_email`),tw=g(`email_validation_status`),nw=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],rw=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],iw={"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`}},aw=r.object({pipe_id:r.literal(XC),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:nw,defaultProviders:rw,sectionKey:`general`,providerCredits:Zc(iw,nw)}),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({[ZC.name]:E({fieldName:ZC.name}),[QC.name]:E({fieldName:QC.name}),[$C.name]:E({fieldName:$C.name})})),output_fields:R(r.object({[ew.name]:k({fieldName:ew.name}),[tw.name]:k({fieldName:tw.name})}))}).optional()}),ow=e=>Pc(H(J(ZC,e)),Fc(J(QC,e),J($C,e))),sw=class extends U{pipeId=XC;payload;payloadSchema=aw;billableOperations=iw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return Y(e,...this.getProviderNames().map(e=>Z(e,this.billableOperations).billableOperation))}getInputRequirement(){return ow(this.payload.config)}getRawOutputFields(){return{[ew.name]:this.catalogOutput(ew,{isPrimaryOutput:!0}),[tw.name]:this.catalogOutput(tw,{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:X(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},cw=aw,lw={pipeId:XC,basePipe:K(XC),label:`Work email from name`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses in a waterfall motion.`,tags:[G.EMAIL,G.WORK_EMAIL,G.WATERFALL],keywords:[`business email`,`b2b`,`corporate`,`contact`],docPath:q(XC),managedProviders:nw,deprecatedProviders:[],allowedUserConnectionProviders:nw,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:iw,defaultInputRequirement:ow(null),defaultPayload:{pipe_id:XC,connector:null,run_if:null,config:{providers:rw,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}}}}},uw=`prompt:run@1`,dw=`prompt-run-v1`,fw=xo(dw),pw=r.object({pipe_id:r.literal(uw),connector:C(),run_if:x(),config:r.object({prompt:ds({sectionKey:`general`,path:`config.prompt`,placeholder:W(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:Bs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:fw})})}),mw=class extends U{pipeId=uw;payload;payloadSchema=pw;billableOperations=fw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return mo(this.payload.config.model)}estimateBillableOperations(e){return Co(e,{model:this.payload.config.model,prefix:dw,inputTokens:600,outputTokens:800})}getInputRequirement(){return Jc([this.payload.config.prompt.template])}getSecretRequirements(){return Yc([this.payload.config.prompt.template])}getConstantRequirements(){return Xc([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=Ta(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 ho(this.payload.config.model)}},hw=pw,gw={pipeId:uw,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:K(uw),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:[G.AI],keywords:[`llm`,`gpt`,`chatgpt`,`openai`,`generate`,`classify`,`extract`],docPath:q(uw),defaultInputRequirement:null,billableOperations:fw,allowedUserConnectionProviders:go(),managedProviders:go(),deprecatedProviders:[],defaultPayload:{pipe_id:uw,connector:null,run_if:null,config:{model:`openai-high`,prompt:{template:``,json_schemas:{}}}}},_w=r.array(r.object({field_name:r.string(),entry_field:r.string().optional()})).check(e=>{let t=new Set;e.value.forEach((n,r)=>{n.field_name.length<1&&e.issues.push({code:`custom`,input:n.field_name,path:[r,`field_name`],message:`Map every bucket field to a row column.`});let i=n.entry_field?.trim()||n.field_name;i&&t.has(i)&&e.issues.push({code:`custom`,input:i,path:[r,`entry_field`],message:`Duplicate bucket field "${i}".`}),i&&t.add(i)})}).check(e=>{e.value.length<1&&e.issues.push({code:`custom`,input:e.value,message:`Map at least one field.`})}),vw=()=>r.string().nullable().default(``),yw=e=>({requires:{connection:`pipe0`},enabledIf:no(`pipe0`,`Select a pipe0 connection to see bucket suggestions`),options:async({query:t,client:n})=>n?(await n.buckets.list({query:t,type:e})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug,data:{contract:e.contract,type:e.type}})):[],widgets:{provider_logo:{provider:`pipe0`}}}),bw=e=>{let t=r.union([r.string(),r.array(r.string())]).check(e=>{(e.value===``||Array.isArray(e.value)&&e.value.length===0)&&e.issues.push({code:`custom`,input:e.value,message:`Required`})}),n={type:`context_select_input`,label:`Bucket`,info:`Pick an existing bucket (its identifying fields appear below for mapping), or type a new slug and choose Create β the new bucket's schema is built from the columns you pick and written on first run (requires 'Allow bucket creation').`,groupPath:`config.general`,sectionKey:`general`,path:`config.bucket`,required:!0,allowCreate:!0,placeholder:`Select or create a bucketβ¦`,optionsDef:yw(e),options:[],mappingPath:`config.entry_fields`,contractPath:`config.contract`,keyLabel:`Bucket field`},i=e=>{let t=e.validationContext,r=t?Object.entries(t.fieldDefinitions).filter(([e])=>e.toLowerCase()!==`id`).map(([e,t])=>({value:e,label:e,widgets:{field_type:{type:t.type}}})):[];return{...n,fieldOptions:r}};return i.staticMeta=n,_.add(t,i),t},xw={on_own_entry:[{value:`proceed`,label:`Proceed (at-least-once)`},{value:`block`,label:`Block (at-most-once)`}],on_missing:[{value:`proceed`,label:`Treat as part of the entry`},{value:`block`,label:`Skip the row`}]},Sw=()=>Ls({label:`New bucket: name`,path:`config.new_bucket_name`,groupPath:`config.bucket_creation`,sectionKey:`general`,inputType:`text`,placeholder:`CRM contacts`,maxLength:120}).nullable().default(``),Cw=()=>({new_bucket_name:Sw(),new_bucket_ttl_in_seconds:Hs({label:`New bucket: TTL (seconds)`,description:`Claims expire after this many seconds. Empty = never.`,path:`config.new_bucket_ttl_in_seconds`,groupPath:`config.bucket_creation`,sectionKey:`general`,min:1}).nullable().default(null),new_bucket_own_entry_behavior:zs({label:`New bucket: own entry re-claimed`,description:`What happens when a row re-claims an entry it already wrote.`,path:`config.new_bucket_own_entry_behavior`,groupPath:`config.bucket_creation`,sectionKey:`general`,required:!1,options:xw.on_own_entry}).default(`block`),new_bucket_missing_value_behavior:zs({label:`New bucket: missing values`,description:`Proceed treats missing values as part of the entry; Block skips the row.`,path:`config.new_bucket_missing_value_behavior`,groupPath:`config.bucket_creation`,sectionKey:`general`,required:!1,options:xw.on_missing}).default(`proceed`)}),ww=()=>({new_bucket_name:Sw(),new_bucket_start:Hs({label:`New bucket: start`,description:`First number the counter assigns.`,path:`config.new_bucket_start`,groupPath:`config.bucket_creation`,sectionKey:`general`}).nullable().default(1),new_bucket_step:Hs({label:`New bucket: step`,description:`Increment between assigned numbers.`,path:`config.new_bucket_step`,groupPath:`config.bucket_creation`,sectionKey:`general`,min:1}).nullable().default(1)}),Tw={provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_api_operation`,allowManagedConnection:!0};function Ew(e){let t=at(e.contract),n=e.entry_fields??[],r=[Jc([Qe(e.bucket)],{expectedType:`string`,expectedFormat:`text`})],i=n.map(e=>{let{column:n,bucketField:r}=Xe(e),i=t?.input_fields[r]?.type;return H({name:n,resolvedName:n,label:``,description:``,type:i?()=>i:e=>qc(e,n)?.type||`unknown`,format:null})});return i.length>0&&r.push(Fc(...i)),Pc(...r)}function Dw(e){return Yc([Qe(e.bucket)])}function Ow(e){return Xc([Qe(e.bucket)])}const kw=`bucket:claim@1`,Aw=g(`is_claim_successful`),jw=r.object({pipe_id:r.literal(kw),connector:ms(),run_if:x(),config:r.object({bucket:bw(`claim`),entry_fields:_w,contract:vw(),...Cw(),allow_bucket_creation:O({label:`Allow bucket creation`,description:`Create the bucket (typed as a claim bucket from this pipe's fields) on first write if it does not already exist. Off by default.`,defaultValue:!1,groupPath:`config.general`,path:`config.allow_bucket_creation`,sectionKey:`general`}),output_fields:R(r.object({[Aw.name]:k({fieldName:Aw.name})}))})}),Mw={"bucket-claim-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Nw=class extends U{pipeId=kw;payload;payloadSchema=jw;billableOperations=Mw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`bucket-claim-v1-pipe0`)}getInputRequirement(){return Ew(this.payload.config)}getSecretRequirements(){return Dw(this.payload.config)}getConstantRequirements(){return Ow(this.payload.config)}getBucketRequirements(){let e=Qe(this.payload.config.bucket);return!e||e.includes(`{{`)?[]:[{slug:e,type:`claim`,schema:at(this.payload.config.contract),allowCreation:this.payload.config.allow_bucket_creation??!1}]}getRawOutputFields(){return{[Aw.name]:this.catalogOutput(Aw)}}getConnectionsRequirements(){return[Tw]}},Pw=jw,Fw={pipeId:kw,basePipe:K(kw),label:`Claim`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Claim an entry in a bucket (write-if-absent). Wins (is_claim_successful: true) or finds the entry already taken (no_result). Put this before a write pipe to guard against duplicates across sheets, runs, and time.`,guide:`Claim an identity in a claim bucket before an irreversible action (an append, a send). Map the identifying field(s) via entry_fields (bucket field β row column alias); the bucket's slug is org-unique. If is_claim_successful:true this row is the first to write this entry β let the guarded pipe run on it. If the entry already exists the pipe resolves no_result, which SKIPS every downstream pipe depending on this output β so a duplicate never reaches the writer. Dedup (no TTL), time gates (bucket TTL), suppression (populate here, consult with bucket:check@1) and idempotent writes are all this one op. Behavior lives on the bucket, not the pipe: ttl_seconds (an expired entry can be claimed again β a frequency gate), on_own_entry ('proceed' = the row that wrote an entry re-claims it successfully on re-runs, at-least-once; 'block' = it can't, at-most-once β the default), and on_missing. Missing values follow on_missing: 'proceed' stores them as empty (null) parts of the entry, so rows missing the same fields dedupe against each other while ('Tom','t@t.com') stays distinct from (null,'t@t.com'); 'block' resolves no_result; a row where EVERY identifying value is missing is always skipped. allow_bucket_creation (default off) creates the bucket, typed from the mapped fields, on first write; the new_bucket_* settings (name, TTL, own-entry, missing-value policy) configure ONLY that newly created bucket and are ignored when it already exists β an existing bucket's policy is edited in the dash, not from a pipe. FREE pipe0 operation; requires a pipe0 connection (list_connections).`,docPath:q(kw),tags:[G.FIELDS],keywords:[`dedupe`,`deduplicate`,`duplicate`,`guard`,`reserve`,`idempotent`,`lock`],billableOperations:Mw,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:kw,connector:{strategy:`first`,connections:[]},run_if:null,config:{bucket:``,entry_fields:[],contract:``,new_bucket_name:``,new_bucket_ttl_in_seconds:null,new_bucket_own_entry_behavior:`block`,new_bucket_missing_value_behavior:`proceed`,allow_bucket_creation:!1,output_fields:{is_claim_successful:{alias:``,enabled:!0}}}}},Iw=`bucket:check@1`,Lw=g(`found_in_bucket`),Rw=r.object({pipe_id:r.literal(Iw),connector:ms(),run_if:x(),config:r.object({bucket:bw(`claim`),entry_fields:_w,contract:vw(),output_fields:R(r.object({[Lw.name]:k({fieldName:Lw.name})}))})}),zw={"bucket-check-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Bw=class extends U{pipeId=Iw;payload;payloadSchema=Rw;billableOperations=zw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`bucket-check-v1-pipe0`)}getInputRequirement(){return Ew(this.payload.config)}getSecretRequirements(){return Dw(this.payload.config)}getConstantRequirements(){return Ow(this.payload.config)}getBucketRequirements(){let e=Qe(this.payload.config.bucket);return!e||e.includes(`{{`)?[]:[{slug:e,type:`claim`,schema:at(this.payload.config.contract),allowCreation:!1}]}getRawOutputFields(){return{[Lw.name]:this.catalogOutput(Lw)}}getConnectionsRequirements(){return[Tw]}},Vw=Rw,Hw={pipeId:Iw,basePipe:K(Iw),label:`Check`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Look up an entry in an existing claim bucket WITHOUT writing. Present β no_result (e.g. suppressed); absent β completed. For suppression / do-not-contact / already-seen gates.`,guide:`Consult a claim bucket read-only before an action β the canonical suppression / do-not-contact gate. Map the identifying field(s) via entry_fields. If the entry is PRESENT (and live) the pipe resolves no_result, skipping downstream pipes (the send/append is suppressed); if ABSENT it completes and downstream runs. Unlike bucket:claim@1 this NEVER writes or creates β the list is curated elsewhere (a bucket:claim@1 writer, an import, or the Assets tab), so readers can't corrupt it. Missing values follow the bucket's on_missing policy: 'proceed' looks up the entry with those values stored as empty (the mirror of what bucket:claim@1 wrote for a row missing the same fields); 'block' resolves no_result; a row where EVERY identifying value is missing is always skipped. Requires an existing claim bucket. FREE pipe0 operation; requires a pipe0 connection.`,docPath:q(Iw),tags:[G.FIELDS],keywords:[`suppression`,`do not contact`,`blocklist`,`lookup`,`exclude`,`gate`,`dedupe`],billableOperations:zw,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Iw,connector:{strategy:`first`,connections:[]},run_if:null,config:{bucket:``,entry_fields:[],contract:``,output_fields:{found_in_bucket:{alias:``,enabled:!0}}}}},Uw=`bucket:count@1`,Ww=g(`bucket_counter`),Gw=r.object({pipe_id:r.literal(Uw),connector:ms(),run_if:x(),config:r.object({bucket:bw(`counter`),entry_fields:_w,contract:vw(),...ww(),allow_bucket_creation:O({label:`Allow bucket creation`,description:`Create the bucket (typed as a counter bucket from this pipe's fields) on first write if it does not already exist. Off by default.`,defaultValue:!1,groupPath:`config.general`,path:`config.allow_bucket_creation`,sectionKey:`general`}),output_fields:R(r.object({[Ww.name]:k({fieldName:Ww.name})}))})}),Kw={"bucket-count-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},qw=class extends U{pipeId=Uw;payload;payloadSchema=Gw;billableOperations=Kw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`bucket-count-v1-pipe0`)}getInputRequirement(){return Ew(this.payload.config)}getSecretRequirements(){return Dw(this.payload.config)}getConstantRequirements(){return Ow(this.payload.config)}getBucketRequirements(){let e=Qe(this.payload.config.bucket);return!e||e.includes(`{{`)?[]:[{slug:e,type:`counter`,schema:at(this.payload.config.contract),allowCreation:this.payload.config.allow_bucket_creation??!1}]}getRawOutputFields(){return{[Ww.name]:this.catalogOutput(Ww)}}getConnectionsRequirements(){return[Tw]}},Jw=Gw,Yw={pipeId:Uw,basePipe:K(Uw),label:`Count`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Assign the next sequence number to an entry in a counter bucket, exactly once (a re-run returns the same number). The building block for round-robin lead routing.`,guide:`Give each unique entry its own stable number from a counter bucket. Map the identifying field(s) via entry_fields (bucket field β row column alias). A NEW entry takes the next number (bucket.start, then +step); an entry that already has a number returns that SAME number on every re-run β so assignments are stable and re-run-safe. Compose round-robin routing: a sellers sheet + this counter + (seller_index = (value - 1) mod seller_count) + a row lookup by that ordinal. Behavior (start, step) lives on the bucket. A row with ANY missing identifying value gets no number (no_result) β counters have no missing-value policy. allow_bucket_creation (default off) creates the counter bucket on first write; new_bucket_start/new_bucket_step configure ONLY that newly created bucket and are ignored when it already exists. FREE pipe0 operation; requires a pipe0 connection.`,docPath:q(Uw),tags:[G.FIELDS],keywords:[`counter`,`sequence`,`increment`,`numbering`,`bucket`],billableOperations:Kw,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Uw,connector:{strategy:`first`,connections:[]},run_if:null,config:{bucket:``,entry_fields:[],contract:``,new_bucket_name:``,new_bucket_start:1,new_bucket_step:1,allow_bucket_creation:!1,output_fields:{bucket_counter:{alias:``,enabled:!0}}}}},Xw=[{label:`demo-leads`,value:`demo-leads`},{label:`demo-companies`,value:`demo-companies`},{label:`demo-contacts`,value:`demo-contacts`}],Zw=[{label:`Demo project`,value:`demo-project`},{label:`Sales pipeline`,value:`sales-pipeline`}];function Qw(e){let t=e?.config?.project;return typeof t==`string`&&t.length>0?t:void 0}function $w(e){if(!e||e.conditions.length===0)return null;let t=JSON.stringify({logic:e.logic,conditions:e.conditions.map(e=>[e.field_name,e.operator,e.value])}),n=2166136261;for(let e=0;e<t.length;e++)n^=t.charCodeAt(e),n=Math.imul(n,16777619)>>>0;return n.toString(16).padStart(8,`0`)}function eT(e,t,n){let r=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,40),i=`rr--${r(e)}--${r(t)}`;return n?`${i}--f-${r(n)}`:i}function tT(e,t){let n=e;for(let e of t.split(`.`)){if(typeof n!=`object`||!n)return;n=n[e]}return n}const nT={requires:{connection:`pipe0`},enabledIf:no(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Xw:t?(await t.sheets.list({query:e})).map(e=>({label:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},rT={requires:{connection:`pipe0`,fields:[`config.project`]},enabledIf:no(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n,payload:r})=>n===`sandbox`?Xw:t?(await t.sheets.list({query:e,projectSlug:Qw(r)})).map(e=>({label:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},iT={requires:{connection:`pipe0`},enabledIf:no(`pipe0`,`Select a pipe0 connection to see project suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Zw: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`}}},aT=[{value:`email`,label:`email`,data:{type:`string`,format:`email`}},{value:`name`,label:`name`,data:{type:`string`}},{value:`company`,label:`company`,data:{type:`string`}}],oT={"demo-leads":aT,"demo-companies":[{value:`domain`,label:`domain`,data:{type:`string`,format:`website_url`}},{value:`company_name`,label:`company_name`,data:{type:`string`}}],"demo-contacts":aT},sT=e=>({requires:{connection:`pipe0`,fields:[e.sheetPath]},enabledIf:no(`pipe0`,`Select a pipe0 connection to see column suggestions`),options:async({payload:t,client:n,environment:r})=>{let i=tT(t,e.sheetPath);return typeof i!=`string`||!i.trim()||i.includes(`{{`)?[]:r===`sandbox`?oT[i.trim()]??aT:n?(await n.sheets.fields({slug:i.trim()})).filter(t=>(e.includeJson||t.type!==`json`)&&t.name.toLowerCase()!==`id`).map(e=>({value:e.name,label:e.name,data:{type:String(e.type),...e.format?{format:String(e.format)}:{}}})):[]},widgets:{provider_logo:{provider:`pipe0`}}}),cT=`row:append:sheet@1`,lT=g(`sheet_record_id`),uT=g(`created_sheet`),dT=r.object({pipe_id:r.literal(cT),connector:ms(),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:iT}),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:rT,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`}),write_fields:Ss({label:`Fields`,info:`All fields are written if empty.`,groupPath:`config.general`,path:`config.write_fields`,sectionKey:`general`,disableSearch:!0}),output_fields:R(r.object({[lT.name]:k({fieldName:lT.name}),[uT.name]:k({fieldName:uT.name})}))})}),fT={"row-append-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},pT=class extends U{pipeId=cT;payload;payloadSchema=dT;billableOperations=fT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`row-append-sheet-v1-pipe0`)}getInputRequirement(){let e=[Jc([this.payload.config.project,this.payload.config.sheet],{expectedType:`string`,expectedFormat:`text`})];if(this.payload.config.write_fields?.length)for(let t of this.payload.config.write_fields)e.push(H({name:t.field_name,resolvedName:t.field_name,label:``,description:``,type:e=>{let n=qc(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 Pc(...e)}getSecretRequirements(){return Yc([this.payload.config.project,this.payload.config.sheet])}getConstantRequirements(){return Xc([this.payload.config.project,this.payload.config.sheet])}getRawOutputFields(){return{[lT.name]:this.catalogOutput(lT),[uT.name]:this.catalogOutput(uT)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_api_operation`,allowManagedConnection:!0}]}},mT=dT,hT={pipeId:cT,basePipe:K(cT),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(cT),tags:[G.FIELDS],keywords:[`add`,`insert`,`write`,`push`,`export`],billableOperations:fT,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:cT,connector:{strategy:`first`,connections:[]},run_if:null,config:{project:``,sheet:``,run:!0,allow_entity_creation:!0,write_fields:[],output_fields:{sheet_record_id:{alias:``,enabled:!0},created_sheet:{alias:``,enabled:!0}}}}},gT=`row:expandappend:sheet@1`,_T=g(`sheet_record_ids`),vT=g(`input_objects`),yT=`expanded_value`,bT=r.object({pipe_id:r.literal(gT),connector:ms(),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:iT}),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:rT,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`}),...Is({groupPath:`config.destination`,sectionKey:`general`,defaultName:yT,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({[vT.name]:E({fieldName:vT.name})})),output_fields:R(r.object({[_T.name]:k({fieldName:_T.name})}))})}).check(e=>{let t=e.value.config?.destination_field_name;t&&jc(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.`})}),xT={"row-expandappend-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ST=e=>H(J(vT,e)),CT=class extends U{pipeId=gT;payload;payloadSchema=bT;billableOperations=xT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`row-expandappend-sheet-v1-pipe0`)}getInputRequirement(){return ST(this.payload.config)}getRawOutputFields(){return{[_T.name]:this.catalogOutput(_T)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_api_operation`,allowManagedConnection:!0}]}},wT=bT,TT={pipeId:gT,basePipe:K(gT),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(gT),tags:[G.FIELDS],keywords:[`explode`,`denormalize`,`array`,`split`,`one to many`,`fan out`],billableOperations:xT,defaultInputRequirement:ST(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:gT,connector:{strategy:`first`,connections:[]},run_if:null,config:{project:``,sheet:``,run:!0,allow_entity_creation:!0,destination_field_name:yT,destination_field_type:``,destination_field_format:``,destination_field_label:``,input_fields:{input_objects:{alias:``}},output_fields:{sheet_record_ids:{alias:``,enabled:!0}}}}},ET=`row:roundrobin:sheet@1`,DT=io(no(`pipe0`,`Add a pipe0 connection first`),ro(e=>e.config?.sheet,`Select a sheet first`)),OT=r.object({pipe_id:r.literal(ET),connector:ms(),run_if:x(),config:r.object({sheet:Gs({label:`Sheet`,info:`The sheet to rotate through β e.g. a roster of sellers. Always another sheet.`,groupPath:`config.general`,sectionKey:`general`,path:`config.sheet`,required:!0,optionsDef:nT}),sheet_where:os({label:`Rotation pool`,info:`Only target-sheet rows matching these conditions rotate. Leave empty to rotate over the whole sheet.`,groupPath:`config.general`,sectionKey:`general`,path:`config.sheet_where`,required:!1,enabledIf:DT,fieldNamePlaceholder:`segment`,optionsDef:sT({sheetPath:`config.sheet`})}),sheet_unique_field:ws({label:`Unique column`,info:`Column of the target sheet that must be filled and unique in every row β checked at run time.`,groupPath:`config.general`,sectionKey:`general`,path:`config.sheet_unique_field`,required:!0,enabledIf:DT,optionsDef:sT({sheetPath:`config.sheet`})}),sheet_copy_fields:Cs({label:`Fields to bring over`,info:`Target-sheet columns copied from the picked row; each becomes an output column.`,groupPath:`config.general`,sectionKey:`general`,path:`config.sheet_copy_fields`,minItems:1,enabledIf:DT,optionsDef:sT({sheetPath:`config.sheet`,includeJson:!0})}),sheet_weight_field:ws({label:`Weight column`,info:`Numeric target-sheet column scaling each row's share. 0 pauses a row; empty counts as 1. Leave unset for equal shares.`,groupPath:`config.general`,sectionKey:`general`,path:`config.sheet_weight_field`,enabledIf:DT,optionsDef:sT({sheetPath:`config.sheet`})}),counter_field:ws({label:`Counter field`,info:`Column of this sheet whose unique values advance the rotation.`,groupPath:`config.general`,sectionKey:`general`,path:`config.counter_field`,required:!0})})}),kT={"row-roundrobin-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},AT=class extends U{pipeId=ET;payload;payloadSchema=OT;billableOperations=kT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`row-roundrobin-sheet-v1-pipe0`)}getTemplatedFields(){return(this.payload.config.sheet_where?.conditions??[]).map(e=>typeof e.value==`string`?e.value:null)}getInputRequirement(){let e=this.payload.config.counter_field.field_name;return Pc(H({name:e,resolvedName:e,label:``,description:``,type:t=>qc(t,e)?.type||`unknown`,format:null}),Jc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`}))}getSecretRequirements(){return Yc(this.getTemplatedFields())}getConstantRequirements(){return Xc(this.getTemplatedFields())}getBucketRequirements(){let e=Qe(this.payload.config.sheet),t=this.payload.config.counter_field.field_name;if(!e||!t)return[];let n=this.payload.config.sheet_where??null;return(n?.conditions??[]).some(e=>typeof e.value==`string`&&e.value.includes(`{{`))?[]:[{slug:eT(e,t,$w(n)),type:`counter`,schema:null,allowCreation:!0}]}getRawOutputFields(){let e={};for(let t of this.payload.config.sheet_copy_fields)t.field_name&&(e[t.field_name]={description:`Value of the target sheet's "${t.field_name}" column on the round-robin-picked row.`,enabled:!0,format:t.format??null,label:t.field_name,name:t.field_name,resolvedName:t.field_name,jsonMeta:null,type:t.type??`unknown`,isCatalogFIeld:!1,isPrimaryOutput:!1});return e}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_api_operation`,allowManagedConnection:!0}]}},jT=OT,MT={pipeId:ET,basePipe:K(ET),label:`Round-robin from sheet`,executionMode:`single`,categories:[`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Rotate through the rows of another sheet (e.g. a sellers roster): each unique counter value picks the next row round-robin, and the selected columns of the picked row become outputs. Re-run safe β the same counter value always picks the same row.`,guide:"Round-robin assignment from another pipe0 sheet (the roster β e.g. sellers). config.sheet is the target sheet's org-unique slug β one FIXED sheet for the whole pipe, never a per-row reference. config.sheet_where (optional) restricts the ROTATION POOL to target-sheet rows matching the conditions (null = whole sheet); condition field_names are LITERAL target-sheet columns, string values may hold `{{ field }}` refs resolved per lead β e.g. segment eq {{ segment }} routes each lead over its own segment's rows. Each distinct RESOLVED filter cycles on its OWN counter (so slot numbers stay consecutive per pool β strict round robin within each pool); avoid high-cardinality templated filters ({{ email }}-like) β every distinct value creates a counter bucket and will exhaust the org bucket quota. config.sheet_unique_field names a TARGET-sheet column that must be filled in EVERY row and unique across rows β the run fails with a clear message if it has gaps or duplicates (this guarantees every roster row is a distinct assignee). config.sheet_copy_fields are the TARGET-sheet columns copied from the picked row; each becomes an output column named like the column, typed by the entry's `type`/`format` (snapshotted from the target sheet's schema when picked β if the target column's type drifts later, the run fails with an output-type mismatch; re-pick the column to refresh the snapshot). config.counter_field names a column of the CURRENT sheet: every unique value of it takes the next number from an internal counter bucket (first-seen β 1, next new value β 2, β¦; the SAME value always keeps the SAME number, so re-runs are stable). The pick is slot (n β 1) mod W over the pool's rows in creation order, where W is the pool's total weight (= row count when unweighted) β adding pool rows only changes the wrap; deleting or reordering reshuffles subsequent picks. config.sheet_weight_field (optional) names a NUMERIC target-sheet column: a row with weight w takes w of every W slots, spread evenly across the cycle (weight 2 β two consecutive picks); weight 0 pauses the row; an empty cell counts as 1; a negative or non-integer weight fails the run loudly. Editing weights re-shapes FUTURE picks only β the counter and its bucket are untouched, so rotation never restarts. The internal counter is a REAL org-scoped counter bucket (visible in the buckets UI, slug `rr--<sheet>--<counter field>`); changing the sheet or the counter field starts a fresh rotation. A row with a missing/empty counter value is gated to skipped before the runner. Empty roster β all outputs no_result. A copied column that is empty on the picked row resolves to no_result. Missing sheet (bad slug) fails the record naming the slug. The target sheet is NEVER modified. FREE pipe0 operation; requires a pipe0 connection (list_connections).",docPath:q(ET),tags:[G.FIELDS],keywords:[`rotate`,`rotation`,`distribute`,`routing`,`assign`,`alternate`],billableOperations:kT,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`config`,defaultPayload:{pipe_id:ET,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,sheet_where:null,sheet_unique_field:{field_name:``},sheet_copy_fields:[],sheet_weight_field:{field_name:``},counter_field:{field_name:``}}}},NT=`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`,PT=`table_catalog NOT IN ('system', '__databricks_internal') AND table_schema <> 'information_schema'`,FT=`SELECT table_catalog, table_schema, table_name FROM system.information_schema.tables WHERE ${PT} ORDER BY table_catalog, table_schema, table_name`,IT=`SELECT table_catalog, table_schema, table_name, column_name, data_type FROM system.information_schema.columns WHERE ${PT} ORDER BY table_catalog, table_schema, table_name, ordinal_position`;function LT(e){return typeof e==`string`?e:String(e??``)}function RT(e){let t=new Map;for(let n of e){let e=LT(n.table_schema),r=LT(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:LT(n.column_name),type:LT(n.data_type)})}return t}function zT(e){return`${e.catalog?`${e.catalog}.`:``}${e.schema?`${e.schema}.`:``}${e.name}`}function BT(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`- ${zT(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`- ${zT(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 VT(e){let t=await e({query:FT,limit:500}),n=new Map;for(let e of t.rows){let t=LT(e.table_catalog),r=LT(e.table_schema),i=LT(e.table_name);i&&n.set(`${t}.${r}.${i}`,{catalog:t,schema:r,name:i,columns:[]})}let r=await e({query:IT,limit:500});for(let e of r.rows)n.get(`${LT(e.table_catalog)}.${LT(e.table_schema)}.${LT(e.table_name)}`)?.columns.push({name:LT(e.column_name),type:LT(e.data_type)});return BT([...n.values()],t.hasMore||r.hasMore)}async function HT(e){let t=await e({query:`SHOW TABLES`,limit:500}),n=t.rows.map(e=>({schema:LT(e.database??e.namespace),name:LT(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:LT(e.col_name),type:LT(e.data_type)})).filter(e=>e.name&&!e.name.startsWith(`#`));i.push({schema:t,name:r,columns:n})}return BT(i,r)}async function UT(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 VT(t.runQuery)}catch{try{let e=await t.runQuery({query:NT,limit:500});return BT([...RT(e.rows).values()],e.hasMore)}catch{return HT(t.runQuery)}}let n=await t.runQuery({query:NT,limit:500});return BT([...RT(n.rows).values()],n.hasMore)}const WT=`rows:find:databricks@1`,GT=g(`db_rows_found_count`),KT=g(`db_found_rows`),qT=r.object({pipe_id:r.literal(WT),connector:ms(),run_if:x(),config:r.object({query:fs({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:Hs({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({[GT.name]:k({fieldName:GT.name}),[KT.name]:k({fieldName:KT.name})}))})}),JT={"rows-find-databricks-v1-databricks":{provider:`databricks`,allowManagedConnection:!1,mode:null,credits:null,note:`Querying your own Databricks SQL warehouse is free.`}},YT=class extends U{pipeId=WT;payload;payloadSchema=qT;billableOperations=JT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`databricks`]}estimateBillableOperations(e){return Y(e,`rows-find-databricks-v1-databricks`)}getTemplatedFields(){return[this.payload.config.query]}getInputRequirement(){return Jc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Yc(this.getTemplatedFields())}getConstantRequirements(){return Xc(this.getTemplatedFields())}getRawOutputFields(){return{[GT.name]:this.catalogOutput(GT),[KT.name]:this.catalogOutput(KT)}}getConnectionsRequirements(){return[{provider:`databricks`,rateLimitRatio:1,rateLimitOperation:`databricks_query`,allowManagedConnection:!1}]}async getAgentContext(e){return UT(`databricks`,e)}},XT=qT,ZT={pipeId:WT,basePipe:K(WT),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(WT),tags:[G.FIELDS,G.NEW],keywords:[`sql`,`query`,`lookup`,`warehouse`,`database`,`select`],billableOperations:JT,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:WT,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}}}}},QT=`rows:find:postgres@1`,$T=g(`db_rows_found_count`),eE=g(`db_found_rows`),tE=r.object({pipe_id:r.literal(QT),connector:ms(),run_if:x(),config:r.object({query:fs({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:Hs({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({[$T.name]:k({fieldName:$T.name}),[eE.name]:k({fieldName:eE.name})}))})}),nE={"rows-find-postgres-v1-postgres":{provider:`postgres`,allowManagedConnection:!1,mode:null,credits:null,note:`Querying your own PostgreSQL database is free.`}},rE=class extends U{pipeId=QT;payload;payloadSchema=tE;billableOperations=nE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`postgres`]}estimateBillableOperations(e){return Y(e,`rows-find-postgres-v1-postgres`)}getTemplatedFields(){return[this.payload.config.query]}getInputRequirement(){return Jc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Yc(this.getTemplatedFields())}getConstantRequirements(){return Xc(this.getTemplatedFields())}getRawOutputFields(){return{[$T.name]:this.catalogOutput($T),[eE.name]:this.catalogOutput(eE)}}getConnectionsRequirements(){return[{provider:`postgres`,rateLimitRatio:1,rateLimitOperation:`postgres_query`,allowManagedConnection:!1}]}async getAgentContext(e){return UT(`postgres`,e)}},iE=tE,aE={pipeId:QT,basePipe:K(QT),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(QT),tags:[G.FIELDS,G.NEW],keywords:[`sql`,`query`,`lookup`,`database`,`select`],billableOperations:nE,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:QT,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}}}}},oE=`rows:find:sheet@1`,sE=g(`sheet_rows_found_count`),cE=g(`sheet_found_rows`),lE=g(`sheet_found_row_ids`),uE=r.object({pipe_id:r.literal(oE),connector:ms(),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:nT}),where:os({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`,optionsDef:sT({sheetPath:`config.sheet`})}),limit:Hs({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({[sE.name]:k({fieldName:sE.name}),[cE.name]:k({fieldName:cE.name}),[lE.name]:k({fieldName:lE.name})}))})}),dE={"rows-find-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},fE=class extends U{pipeId=oE;payload;payloadSchema=uE;billableOperations=dE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(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 Jc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Yc(this.getTemplatedFields())}getConstantRequirements(){return Xc(this.getTemplatedFields())}getRawOutputFields(){return{[sE.name]:this.catalogOutput(sE),[cE.name]:this.catalogOutput(cE),[lE.name]:this.catalogOutput(lE)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_api_operation`,allowManagedConnection:!0}]}},pE=uE,mE={pipeId:oE,basePipe:K(oE),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(oE),tags:[G.FIELDS],keywords:[`lookup`,`query`,`search`,`match`,`filter`,`vlookup`],billableOperations:dE,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:oE,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}}}}},hE=`template:fill@1`,gE=g(`template_output`),_E=r.object({pipe_id:r.literal(hE),connector:C(),run_if:x(),config:r.object({template:fs({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:W(`template`),groupPath:`config.general`,required:!0}),output_fields:R(r.object({[gE.name]:k({fieldName:gE.name})}))})}),vE={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},yE=class extends U{pipeId=hE;payload;payloadSchema=_E;billableOperations=vE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`template-fill-v1-pipe0`)}getInputRequirement(){return Jc([this.payload.config.template])}getSecretRequirements(){return Yc([this.payload.config.template])}getConstantRequirements(){return Xc([this.payload.config.template])}getRawOutputFields(){return{[gE.name]:this.catalogOutput(gE)}}getConnectionsRequirements(){return[]}},bE=_E,xE={pipeId:hE,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:K(hE),label:`Fill a text template`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Replaces template tags like {{ name }} with actual values.`,tags:[G.TEXT],keywords:[`merge`,`personalize`,`liquid`,`placeholder`,`variables`,`mail merge`],docPath:q(hE),defaultInputRequirement:null,billableOperations:vE,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:hE,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},SE=`website:extract:firecrawl@1`,CE=g(`website_url`),wE=g(`firecrawl_extract_result`),TE=r.object({pipe_id:r.literal(SE),connector:C(),run_if:x(),config:r.object({json_schema:Ws({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:Rs({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({[CE.name]:E({fieldName:CE.name})})),output_fields:R(r.object({[wE.name]:k({fieldName:wE.name})}))})}),EE=e=>H(J(CE,e)),DE={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},OE=class extends U{pipeId=SE;payload;payloadSchema=TE;billableOperations=DE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return Y(e,`website-extract-firecrawl-v1-firecrawl`)}getInputRequirement(){return EE(this.payload.config)}getRawOutputFields(){return{[wE.name]:this.catalogOutput(wE)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},kE=TE,AE={pipeId:SE,basePipe:K(SE),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:[G.SCRAPE],keywords:[`scrape`,`crawl`,`ai`,`structured data`,`json`,`web`],docPath:q(SE),billableOperations:DE,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:EE(null),defaultPayload:{pipe_id:SE,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}}}}},jE=`website:extract:parallel@1`,ME=g(`website_url`),NE=g(`parallel_extract_result`),PE=r.object({pipe_id:r.literal(jE),connector:C(),run_if:x(),config:r.object({objective:Rs({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({[ME.name]:E({fieldName:ME.name})})),output_fields:R(r.object({[NE.name]:k({fieldName:NE.name})}))})}),FE=e=>H(J(ME,e)),IE={"website-extract-parallel-v1-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.1},mode:`onSuccess`}},LE=class extends U{pipeId=jE;payload;payloadSchema=PE;billableOperations=IE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`parallel`]}estimateBillableOperations(e){return Y(e,`website-extract-parallel-v1-parallel`)}getInputRequirement(){return FE(this.payload.config)}getRawOutputFields(){return{[NE.name]:this.catalogOutput(NE,{isPrimaryOutput:!0})}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:1,rateLimitOperation:`parallel_extract`,allowManagedConnection:!0}]}},RE=PE,zE={pipeId:jE,basePipe:K(jE),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:[G.SCRAPE],keywords:[`scrape`,`crawl`,`content`,`web`,`research`],docPath:q(jE),billableOperations:IE,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`parallel`],managedProviders:[`parallel`],deprecatedProviders:[],defaultInputRequirement:FE(null),defaultPayload:{pipe_id:jE,run_if:null,connector:null,config:{objective:``,input_fields:{website_url:{alias:``}},output_fields:{parallel_extract_result:{alias:``,enabled:!0}}}}},BE=`website:maplinks:firecrawl@1`,VE={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},HE=g(`website_url`),UE=g(`mapped_links`),WE=r.object({pipe_id:r.literal(BE),connector:C(),run_if:x(),config:r.object({page_limit:Hs({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,path:`config.page_limit`,sectionKey:`general`}).nullish(),sitemap:zs({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:Ls({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).nullable().default(``),input_fields:z(r.object({[HE.name]:E({fieldName:HE.name})})),output_fields:R(r.object({[UE.name]:k({fieldName:UE.name})}))}).optional()}),GE=e=>H(J(HE,e)),KE=class extends U{pipeId=BE;payload;payloadSchema=WE;billableOperations=VE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return Y(e,`website-maplinks-firecrawl-v1-firecrawl`)}getInputRequirement(){return GE(this.payload.config)}getRawOutputFields(){return{[UE.name]:this.catalogOutput(UE)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},qE=WE,JE={pipeId:BE,basePipe:K(BE),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:[G.SCRAPE],keywords:[`sitemap`,`crawl`,`urls`,`pages`,`discover`,`internal`],docPath:q(BE),billableOperations:VE,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:GE(null),defaultPayload:{pipe_id:BE,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},YE=`website:scrape:firecrawl@1`,XE=g(`website_url`),ZE=g(`website_markdown`),QE=g(`website_html`),$E=g(`website_links`),eD=r.object({pipe_id:r.literal(YE),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({[XE.name]:E({fieldName:XE.name})})),output_fields:R(r.object({[ZE.name]:k({fieldName:ZE.name}),[QE.name]:k({fieldName:QE.name}),[$E.name]:k({fieldName:$E.name})}))}).optional()}),tD=e=>H(J(XE,e)),nD={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},rD=class extends U{pipeId=YE;payload;payloadSchema=eD;billableOperations=nD;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return Y(e,`website-scrape-firecrawl-v1-firecrawl`)}getInputRequirement(){return tD(this.payload.config)}getRawOutputFields(){return{[ZE.name]:this.catalogOutput(ZE),[QE.name]:this.catalogOutput(QE),[$E.name]:this.catalogOutput($E)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},iD=eD,aD={pipeId:YE,basePipe:K(YE),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[G.SCRAPE],keywords:[`crawl`,`html`,`markdown`,`content`,`web page`,`fetch`],docPath:q(YE),billableOperations:nD,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:tD(null),defaultPayload:{pipe_id:YE,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}}}}},oD=`website:scrapelist:firecrawl@1`,sD={"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.`}},cD=g(`urls`),lD=g(`scrape_list_response`),uD=r.object({pipe_id:r.literal(oD),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:Vs({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({[cD.name]:E({fieldName:cD.name})})),output_fields:R(r.object({[lD.name]:k({fieldName:lD.name})}))}).optional()}),dD=e=>H(J(cD,e)),fD=class extends U{pipeId=oD;payload;payloadSchema=uD;billableOperations=sD;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 dD(this.payload.config)}getRawOutputFields(){return{[lD.name]:this.catalogOutput(lD)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},pD=uD,mD={pipeId:oD,basePipe:K(oD),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[G.SCRAPE],keywords:[`crawl`,`html`,`markdown`,`content`,`batch`,`bulk`],docPath:q(oD),billableOperations:sD,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:dD(null),defaultPayload:{pipe_id:oD,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}}}}},hD=[`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`,`bucket:entries@1`,`query:postgres@1`,`query:databricks@1`,`posts:content:crustdata@1`],gD=r.enum(hD);function _D(e,t){let n={name:e,config:t};return gc.hashObject(n)}var vD=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 _D(this.searchId,this.payload)}};function yD(e){return e.split(`@`)[0]}function bD(e){return`/docs/search-catalog/${yD(e)}/${e.split(`@`)[1]}`}const xD=`companies:entitysearch:parallel@1`,SD=g(`company_name`),CD=g(`company_domain`),wD=g(`company_description`),TD=g(`company_profile_url`),ED=g(`parallel_company_entity_match`),DD=r.object({search_id:r.literal(xD),connector:_s(),config:r.object({objective:ec({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({[SD.name]:N({fieldName:SD.name}),[CD.name]:N({fieldName:CD.name}),[wD.name]:N({fieldName:wD.name}),[TD.name]:N({fieldName:TD.name}),[ED.name]:N({fieldName:ED.name})}))})}),OD={match:`any`,fields:[{fieldName:`company_profile_url`}]},kD={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.`},AD=`companies-entitysearch-parallel-v1`,jD=class extends vD{billing={billableOperation:AD,cost:kD};searchId=xD;schema=DD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[SD.name]:this.catalogOutput(SD),[CD.name]:this.catalogOutput(CD),[wD.name]:this.catalogOutput(wD),[TD.name]:this.catalogOutput(TD),[ED.name]:this.catalogOutput(ED)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return OD}},MD=DD,ND={searchId:xD,billableOperation:AD,baseSearch:yD(xD),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:[G.COMPANY_PROFILES],keywords:[`find companies`,`accounts`,`prospect`,`natural language`,`organizations`],docPath:bD(xD),cost:kD,provider:`parallel`,defaultPayload:{search_id:xD,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 PD(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 FD=`companies:profiles:amplemarket@2`,ID=g(`company_name`),LD=g(`company_domain`),RD=g(`company_description`),zD=g(`company_profile_url`),BD=g(`amplemarket_company_match`),VD=r.object({search_id:r.literal(FD),connector:_s(),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({[ID.name]:N({fieldName:ID.name}),[LD.name]:N({fieldName:LD.name}),[RD.name]:N({fieldName:RD.name}),[zD.name]:N({fieldName:zD.name}),[BD.name]:N({fieldName:BD.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:W(`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:W(`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:W(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(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:W(`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:W(`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:qs({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:W(`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:qs({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=>{PD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),HD={match:`any`,fields:[{fieldName:`company_profile_url`}]},UD={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},WD=`companies-profiles-amplemarket-v2`,GD=class extends vD{billing={billableOperation:WD,cost:UD};searchId=FD;schema=VD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[ID.name]:this.catalogOutput(ID),[LD.name]:this.catalogOutput(LD),[RD.name]:this.catalogOutput(RD),[zD.name]:this.catalogOutput(zD),[BD.name]:this.catalogOutput(BD)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return HD}},KD=VD,qD={searchId:FD,billableOperation:WD,baseSearch:yD(`companies:profiles:amplemarket@2`),label:`Company search`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[G.COMPANY_PROFILES],keywords:[`accounts`,`prospect`,`find companies`,`organizations`,`firmographic`],docPath:bD(FD),cost:UD,provider:`amplemarket`,defaultPayload:{search_id:FD,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:[]}}}}},JD=`companies:profiles:crustdata@2`,YD=g(`company_name`),XD=g(`company_domain`),ZD=g(`company_description`),QD=g(`company_profile_url`),$D=g(`crustdata_company_match`),eO=r.object({search_id:r.literal(JD),connector:_s(),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:$s({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[YD.name]:N({fieldName:YD.name}),[XD.name]:N({fieldName:XD.name}),[ZD.name]:N({fieldName:ZD.name}),[QD.name]:N({fieldName:QD.name}),[$D.name]:N({fieldName:$D.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:W(`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:W(`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:W(`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:W(`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:W(`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:Ys({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:Ys({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:W(`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:W(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),company_domains:j({path:`config.filters.company_domains`,sectionKey:`config.filters`,maxItems:400,label:`Company domain`,description:``,placeholder:W(`company_domain`),groupPath:`config.filters.web_presence`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(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=>{PD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),tO={match:`any`,fields:[{fieldName:`company_profile_url`}]},nO={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},rO=`companies-profiles-crustdata-v2`,iO=class extends vD{billing={billableOperation:rO,cost:nO};searchId=JD;schema=eO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[YD.name]:this.catalogOutput(YD),[XD.name]:this.catalogOutput(XD),[ZD.name]:this.catalogOutput(ZD),[QD.name]:this.catalogOutput(QD),[$D.name]:this.catalogOutput($D)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return tO}},aO=eO,oO={searchId:JD,billableOperation:rO,baseSearch:yD(`companies:profiles:crustdata@2`),label:`Company search`,categories:[`companies`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[G.COMPANY_PROFILES],keywords:[`accounts`,`prospect`,`find companies`,`organizations`,`firmographic`,`linkedin`],docPath:bD(JD),cost:nO,provider:`crustdata`,defaultPayload:{search_id:JD,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:[]}}}}},sO=`query:databricks@1`,cO=r.object({search_id:r.literal(sO),connector:gs(),config:r.object({query:ec({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)})}),lO={allowManagedConnection:!1,mode:null,credits:null,info:`Querying your own Databricks SQL warehouse is free.`},uO=`data-query-databricks-v1`,dO=class extends vD{billing={billableOperation:uO,cost:lO};searchId=sO;schema=cO;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 UT(`databricks`,e)}},fO=cO,pO={searchId:sO,billableOperation:uO,baseSearch:yD(sO),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:[G.FIELDS,G.NEW],keywords:[`sql`,`database`,`warehouse`,`select`,`table`,`read data`],docPath:bD(sO),cost:lO,provider:`databricks`,defaultPayload:{search_id:sO,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},mO=`query:postgres@1`,hO=r.object({search_id:r.literal(mO),connector:gs(),config:r.object({query:ec({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)})}),gO={allowManagedConnection:!1,mode:null,credits:null,info:`Querying your own PostgreSQL database is free.`},_O=`data-query-postgres-v1`,vO=class extends vD{billing={billableOperation:_O,cost:gO};searchId=mO;schema=hO;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 UT(`postgres`,e)}},yO=hO,bO={searchId:mO,billableOperation:_O,baseSearch:yD(mO),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:[G.FIELDS,G.NEW],keywords:[`sql`,`database`,`select`,`table`,`read data`],docPath:bD(mO),cost:gO,provider:`postgres`,defaultPayload:{search_id:mO,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},xO=`companies:profiles:amplemarket@1`,SO=g(`company_name`),CO=g(`company_website_url`),wO=g(`company_description`),TO=g(`company_profile_url`),EO=g(`amplemarket_company_match`),DO=r.object({search_id:r.literal(xO),connector:Ji.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({[SO.name]:N({fieldName:SO.name}),[CO.name]:N({fieldName:CO.name}),[wO.name]:N({fieldName:wO.name}),[TO.name]:N({fieldName:TO.name}),[EO.name]:N({fieldName:EO.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:W(`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:W(`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:W(`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:W(`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:W(`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:qs({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:W(`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:qs({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=>{PD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),OO={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},kO=`companies-profiles-amplemarket-v1`,AO=class extends vD{billing={billableOperation:kO,cost:OO};searchId=xO;schema=DO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[SO.name]:this.catalogOutput(SO),[CO.name]:this.catalogOutput(CO),[wO.name]:this.catalogOutput(wO),[TO.name]:this.catalogOutput(TO),[EO.name]:this.catalogOutput(EO)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},jO=DO,MO={searchId:xO,billableOperation:kO,baseSearch:yD(`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:[G.COMPANY_PROFILES],docPath:bD(xO),cost:OO,provider:`amplemarket`,defaultPayload:{search_id:xO,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:[]}}}}},NO=`companies:profiles:crustdata@1`,PO=g(`company_name`),FO=g(`company_website_url`),IO=g(`company_description`),LO=g(`company_profile_url`),RO=g(`crustdata_company_match`),zO=r.object({search_id:r.literal(NO),connector:Ji.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:$s({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[PO.name]:N({fieldName:PO.name}),[FO.name]:N({fieldName:PO.name}),[IO.name]:N({fieldName:IO.name}),[LO.name]:N({fieldName:LO.name}),[RO.name]:N({fieldName:RO.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:W(`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:W(`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:W(`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:W(`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:W(`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:Ys({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:Ys({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:W(`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:W(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`π`}}})}).default({include:[],exclude:[]})}).check(e=>{PD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),BO={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},VO=`companies-profiles-crustdata-v1`,HO=class extends vD{billing={billableOperation:VO,cost:BO};searchId=NO;schema=zO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[PO.name]:this.catalogOutput(PO),[FO.name]:this.catalogOutput(FO),[IO.name]:this.catalogOutput(IO),[LO.name]:this.catalogOutput(LO),[RO.name]:this.catalogOutput(RO)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},UO=zO,WO={searchId:NO,billableOperation:VO,baseSearch:yD(`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:[G.COMPANY_PROFILES],docPath:bD(NO),cost:BO,provider:`crustdata`,defaultPayload:{search_id:NO,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:[]}}}}},GO=`people:profiles:amplemarket@1`,KO=g(`name`),qO=g(`company_website_url`),JO=g(`profile_url`),YO=g(`job_title`),XO=g(`amplemarket_person_match`),ZO=r.object({search_id:r.literal(GO),connector:Ji.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({[KO.name]:N({fieldName:KO.name}),[qO.name]:N({fieldName:qO.name}),[JO.name]:N({fieldName:JO.name}),[YO.name]:N({fieldName:YO.name}),[XO.name]:N({fieldName:XO.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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:qs({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:W(`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:W(`title`),suggestionsDef:h(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:W(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]})}).check(e=>{PD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),QO={allowManagedConnection:!0,mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},$O=`people-profiles-amplemarket-v1`,ek=class extends vD{billing={billableOperation:$O,cost:QO};searchId=GO;schema=ZO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[KO.name]:this.catalogOutput(KO),[qO.name]:this.catalogOutput(qO),[JO.name]:this.catalogOutput(JO),[YO.name]:this.catalogOutput(YO),[XO.name]:this.catalogOutput(XO)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},tk=ZO,nk={searchId:GO,billableOperation:$O,baseSearch:yD(`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:[G.PEOPLE_PROFILES],docPath:bD(GO),cost:QO,provider:`amplemarket`,defaultPayload:{search_id:GO,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:[]}}}},rk=`people:profiles:crustdata@1`,ik=g(`name`),ak=g(`company_website_url`),ok=g(`profile_url`),sk=g(`job_title`),ck=g(`crustdata_person_match`),lk=r.object({search_id:r.literal(rk),connector:Ji.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:$s({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[ik.name]:N({fieldName:ik.name}),[ak.name]:N({fieldName:ak.name}),[ok.name]:N({fieldName:ok.name}),[sk.name]:N({fieldName:sk.name}),[ck.name]:N({fieldName:ck.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`profile_keywords`)}).default({include:[],exclude:[]}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:W(`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:W(`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:W(`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:W(`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:W(`certification`),description:``}).default({include:[],exclude:[]}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:W(`honor`),description:``}).default({include:[],exclude:[]}),recently_changed_jobs:Qs({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:W(`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:W(`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:W(`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:W(`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:W(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)}).default({include:[],exclude:[]})}).check(e=>{PD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),uk={allowManagedConnection:!0,mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},dk=`people-profiles-crustdata-v1`,fk=class extends vD{billing={billableOperation:dk,cost:uk};searchId=rk;schema=lk;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),[sk.name]:this.catalogOutput(sk),[ck.name]:this.catalogOutput(ck)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},pk=lk,mk={searchId:rk,billableOperation:dk,baseSearch:yD(`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:[G.PEOPLE_PROFILES],docPath:bD(rk),cost:uk,provider:`crustdata`,defaultPayload:{search_id:rk,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:[]}}}}},hk=`people:entitysearch:parallel@1`,gk=g(`name`),_k=g(`job_title`),vk=g(`profile_url`),yk=g(`parallel_person_entity_match`),bk=r.object({search_id:r.literal(hk),connector:_s(),config:r.object({objective:ec({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({[gk.name]:N({fieldName:gk.name}),[_k.name]:N({fieldName:_k.name}),[vk.name]:N({fieldName:vk.name}),[yk.name]:N({fieldName:yk.name})}))})}),xk={match:`any`,fields:[{fieldName:`profile_url`}]},Sk={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.`},Ck=`people-entitysearch-parallel-v1`,wk=class extends vD{billing={billableOperation:Ck,cost:Sk};searchId=hk;schema=bk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[gk.name]:this.catalogOutput(gk),[_k.name]:this.catalogOutput(_k),[vk.name]:this.catalogOutput(vk),[yk.name]:this.catalogOutput(yk)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return xk}},Tk=bk,Ek={searchId:hk,billableOperation:Ck,baseSearch:yD(hk),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:[G.PEOPLE_PROFILES],keywords:[`prospect`,`lead`,`contact`,`find people`,`natural language`],docPath:bD(hk),cost:Sk,provider:`parallel`,defaultPayload:{search_id:hk,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:``}}}}},Dk=`people:eventguests:luma@1`,Ok=g(`name`),kk=g(`email`),Ak=g(`luma_id`),jk=g(`registered_at`),Mk=g(`luma_event_guest_match`),Nk=[{label:`Sample Meetup β Berlin`,value:`evt-sandbox-1`},{label:`Sample Conference β SF`,value:`evt-sandbox-2`}],Pk={requires:{connection:`luma`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Nk;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}},Fk=r.object({search_id:r.literal(Dk),connector:gs(),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:$s({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[Ok.name]:N({fieldName:Ok.name}),[kk.name]:N({fieldName:kk.name}),[Ak.name]:N({fieldName:Ak.name}),[jk.name]:N({fieldName:jk.name}),[Mk.name]:N({fieldName:Mk.name})})),filters:r.object({event_id:nc({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:no(`luma`),optionsDef:Pk}),approval_status:tc({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`}]})})})}),Ik={match:`any`,fields:[{fieldName:`luma_id`}]},Lk={allowManagedConnection:!0,mode:`per_page`,credits:{default:1},info:`1 page = up to 100 guests.`},Rk=`people-eventguests-luma-v1`,zk=class extends vD{billing={billableOperation:Rk,cost:Lk};searchId=Dk;schema=Fk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Ok.name]:this.catalogOutput(Ok),[kk.name]:this.catalogOutput(kk),[Ak.name]:this.catalogOutput(Ak),[jk.name]:this.catalogOutput(jk),[Mk.name]:this.catalogOutput(Mk)}}getConnectionsRequirements(){return[{provider:`luma`,rateLimitOperation:`luma_get_guests`,rateLimitRatio:1,allowManagedConnection:!1}]}getDedupConfig(){return Ik}},Bk=Fk,Vk={searchId:Dk,billableOperation:Rk,baseSearch:yD(Dk),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:[G.PEOPLE_PROFILES,G.EVENTS,G.NEW],keywords:[`attendees`,`rsvp`,`meetup`,`conference`,`registrations`,`participants`],docPath:bD(Dk),cost:Lk,provider:`luma`,defaultPayload:{search_id:Dk,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:``}}}},Hk=`people:profiles:amplemarket@2`,Uk=g(`name`),Wk=g(`company_domain`),Gk=g(`profile_url`),Kk=g(`job_title`),qk=g(`amplemarket_person_match`),Jk=r.object({search_id:r.literal(Hk),connector:_s(),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({[Uk.name]:N({fieldName:Uk.name}),[Wk.name]:N({fieldName:Wk.name}),[Gk.name]:N({fieldName:Gk.name}),[Kk.name]:N({fieldName:Kk.name}),[qk.name]:N({fieldName:qk.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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(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:W(`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:qs({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:W(`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:W(`title`),suggestionsDef:h(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:W(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]})}).check(e=>{PD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Yk={match:`any`,fields:[{fieldName:`profile_url`}]},Xk={allowManagedConnection:!0,mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},Zk=`people-profiles-amplemarket-v2`,Qk=class extends vD{billing={billableOperation:Zk,cost:Xk};searchId=Hk;schema=Jk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Uk.name]:this.catalogOutput(Uk),[Wk.name]:this.catalogOutput(Wk),[Gk.name]:this.catalogOutput(Gk),[Kk.name]:this.catalogOutput(Kk),[qk.name]:this.catalogOutput(qk)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Yk}},$k=Jk,eA={searchId:Hk,billableOperation:Zk,baseSearch:yD(`people:profiles:amplemarket@2`),paginationType:`page_number`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[G.PEOPLE_PROFILES],keywords:[`prospect`,`lead`,`contact`,`find people`,`filters`],docPath:bD(Hk),cost:Xk,provider:`amplemarket`,defaultPayload:{search_id:Hk,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:[]}}}},tA=`people:profiles:crustdata@2`,nA=g(`name`),rA=g(`company_domain`),iA=g(`profile_url`),aA=g(`job_title`),oA=g(`crustdata_person_match`),sA=r.object({search_id:r.literal(tA),connector:_s(),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:$s({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[nA.name]:N({fieldName:nA.name}),[rA.name]:N({fieldName:rA.name}),[iA.name]:N({fieldName:iA.name}),[aA.name]:N({fieldName:aA.name}),[oA.name]:N({fieldName:oA.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:W(`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:W(`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:W(`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:W(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(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:W(`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:W(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:W(`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:W(`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:W(`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:W(`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:W(`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:W(`profile_keywords`)}).default({include:[],exclude:[]}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:W(`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:W(`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:W(`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:W(`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:W(`certification`),description:``}).default({include:[],exclude:[]}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:W(`honor`),description:``}).default({include:[],exclude:[]}),recently_changed_jobs:Qs({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:W(`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:W(`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:W(`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:W(`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:W(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)}).default({include:[],exclude:[]})}).check(e=>{PD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),cA={match:`any`,fields:[{fieldName:`profile_url`}]},lA={allowManagedConnection:!0,mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},uA=`people-profiles-crustdata-v2`,dA=class extends vD{billing={billableOperation:uA,cost:lA};searchId=tA;schema=sA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[nA.name]:this.catalogOutput(nA),[rA.name]:this.catalogOutput(rA),[iA.name]:this.catalogOutput(iA),[aA.name]:this.catalogOutput(aA),[oA.name]:this.catalogOutput(oA)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return cA}},fA=sA,pA={searchId:tA,billableOperation:uA,baseSearch:yD(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[G.PEOPLE_PROFILES],keywords:[`prospect`,`lead`,`contact`,`find people`,`linkedin`],docPath:bD(tA),cost:lA,provider:`crustdata`,defaultPayload:{search_id:tA,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:[]}}}}},mA=`people:profiles:crustdata@3`,hA=g(`name`),gA=g(`profile_url`),_A=g(`person_profile_match`),vA=r.object({search_id:r.literal(mA),connector:_s(),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:$s({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:R(r.object({[hA.name]:N({fieldName:hA.name}),[gA.name]:N({fieldName:gA.name}),[_A.name]:N({fieldName:_A.name})})),filters:r.object({recently_changed_jobs:Qs({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:W(`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:W(`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:W(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`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:W(`headline_keywords`)}).default({include:[],exclude:[]}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:W(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default({include:[],exclude:[]})}).check(e=>{PD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),yA={match:`any`,fields:[{fieldName:`profile_url`}]},bA={allowManagedConnection:!0,mode:`per_result`,credits:{default:.15,level1:{credits:.07,weight:10}},info:`1 page = 100 records; 200 results = 2 pages`},xA=`people-profiles-crustdata-v3`,SA=class extends vD{billing={billableOperation:xA,cost:bA};searchId=mA;schema=vA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[hA.name]:this.catalogOutput(hA),[gA.name]:this.catalogOutput(gA),[_A.name]:this.catalogOutput(_A)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return yA}},CA=vA,wA={searchId:mA,billableOperation:xA,baseSearch:yD(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[G.PEOPLE_PROFILES],keywords:[`prospect`,`lead`,`contact`,`find people`,`linkedin`],docPath:bD(mA),cost:bA,provider:`crustdata`,defaultPayload:{search_id:mA,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:[]}}}}},TA=`posts:content:crustdata@1`,EA=g(`post_match`),DA=g(`post_text`),OA=g(`post_id`),kA=r.object({search_id:r.literal(TA),connector:_s(),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({[OA.name]:N({fieldName:OA.name}),[EA.name]:N({fieldName:EA.name}),[DA.name]:N({fieldName:DA.name})})),filters:r.object({keywords:A({path:`config.filters.keywords`,sectionKey:`config.filters`,label:`Search keywords`,groupPath:`config.filters.general`,maxItems:6,placeholder:W(`profile_keywords`),description:``}).default([]),keyword_operator:tc({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:tc({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:W(`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:W(`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`]})})})}),AA={match:`any`,fields:[{fieldName:`post_id`}]},jA={allowManagedConnection:!0,mode:`per_result`,credits:{default:2}},MA=`posts-content-crustdata-v1`,NA=class extends vD{billing={billableOperation:MA,cost:jA};searchId=TA;schema=kA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[OA.name]:this.catalogOutput(OA),[EA.name]:this.catalogOutput(EA),[DA.name]:this.catalogOutput(DA)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_social_post_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return AA}},PA=kA,FA={searchId:TA,billableOperation:MA,baseSearch:yD(TA),paginationType:`page_number`,label:`LinkedIn post search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Keyword-based LinkedIn post search.`,tags:[G.LINKEDIN],keywords:[`content`,`social`,`engagement`,`keyword`,`activity`],docPath:bD(TA),cost:jA,provider:`crustdata`,defaultPayload:{search_id:TA,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:[]}}}},IA=`bucket:entries@1`,LA=r.object({search_id:r.literal(IA),connector:gs(),config:r.object({bucket:$s({path:`config.bucket`,groupPath:`config.general`,inputType:`text`,label:`Bucket`,sectionKey:`general`,description:`The bucket's org-unique slug. Its entries (one row each) are returned.`}),limit:L({path:`config.limit`,min:1,max:2e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of entries per page`}).default(100),cursor:$s({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),include_metadata:Zs({path:`config.include_metadata`,groupPath:`config.general`,sectionKey:`general`,label:`Include metadata`,description:`Provenance (source sheet/row/run) and expiry as extra columns.`,defaultValue:!1})})}),RA={allowManagedConnection:!0,mode:`per_search`,credits:{default:0},info:`Reading your own bucket is free.`},zA=`bucket-entries-v1-pipe0`,BA=class extends vD{billing={billableOperation:zA,cost:RA};searchId=IA;schema=LA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0_api_operation`,rateLimitRatio:1,allowManagedConnection:!0}]}},VA=LA,HA={searchId:IA,billableOperation:zA,baseSearch:yD(IA),outputFieldMode:`dynamic`,paginationType:`cursor`,label:`Read bucket entries`,categories:[`data`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`List the entries in a bucket β one row per entry, with its identifying field values (and counter number / expiry).`,tags:[G.FIELDS,G.NEW],keywords:[`claims`,`counter`,`suppression`,`list`,`lookup`,`rows`],docPath:bD(IA),cost:RA,provider:`pipe0`,defaultPayload:{search_id:IA,connector:{strategy:`first`,connections:[]},config:{bucket:``,limit:100,cursor:``,include_metadata:!1}}},UA=`sheet:rows@1`,WA=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],GA={requires:{connection:`pipe0`},enabledIf:no(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?WA:t?(await t.sheets.list({query:e})).map(e=>({label:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},KA=r.object({search_id:r.literal(UA),connector:gs(),config:r.object({sheet:nc({path:`config.sheet`,sectionKey:`general`,groupPath:`config.general`,label:`Sheet`,required:!0,info:`Pick one of your pipe0 sheets; its rows are returned.`,enabledIf:no(`pipe0`),optionsDef:GA}),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:$s({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),include_metadata:Zs({path:`config.include_metadata`,groupPath:`config.general`,sectionKey:`general`,label:`Include metadata`,description:`Widgets and prevenance tags.`,defaultValue:!1})})}),qA={allowManagedConnection:!0,mode:`per_search`,credits:{default:0},info:`Reading your own pipe0 sheet is free.`},JA=`sheet-items-v1-pipe0`,YA=class extends vD{billing={billableOperation:JA,cost:qA};searchId=UA;schema=KA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0_api_operation`,rateLimitRatio:1,allowManagedConnection:!0}]}},XA=KA,ZA={searchId:UA,billableOperation:JA,baseSearch:yD(UA),outputFieldMode:`dynamic`,paginationType:`cursor`,label:`Read sheet rows`,categories:[`data`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`List rows from a pipe0 sheet.`,tags:[G.FIELDS,G.NEW],keywords:[`lookup`,`list`,`records`,`table`,`fetch`],docPath:bD(UA),cost:qA,provider:`pipe0`,defaultPayload:{search_id:UA,connector:{strategy:`first`,connections:[]},config:{sheet:``,limit:100,cursor:``,include_metadata:!1}}},QA={"people:profiles:crustdata@1":fk,"people:profiles:crustdata@2":dA,"people:profiles:crustdata@3":SA,"companies:profiles:crustdata@1":HO,"companies:profiles:crustdata@2":iO,"people:profiles:amplemarket@1":ek,"people:profiles:amplemarket@2":Qk,"companies:profiles:amplemarket@1":AO,"companies:profiles:amplemarket@2":GD,"companies:entitysearch:parallel@1":jD,"people:entitysearch:parallel@1":wk,"people:eventguests:luma@1":zk,"posts:content:crustdata@1":NA,"sheet:rows@1":YA,"bucket:entries@1":BA,"query:postgres@1":vO,"query:databricks@1":dO},$A={"people:profiles:crustdata@1":pk,"people:profiles:crustdata@2":fA,"people:profiles:crustdata@3":CA,"companies:profiles:crustdata@1":UO,"companies:profiles:crustdata@2":aO,"people:profiles:amplemarket@1":tk,"people:profiles:amplemarket@2":$k,"companies:profiles:amplemarket@1":jO,"companies:profiles:amplemarket@2":KD,"companies:entitysearch:parallel@1":MD,"people:entitysearch:parallel@1":Tk,"people:eventguests:luma@1":Bk,"posts:content:crustdata@1":PA,"sheet:rows@1":XA,"bucket:entries@1":VA,"query:postgres@1":yO,"query:databricks@1":fO},ej={"people:profiles:crustdata@1":mk,"people:profiles:crustdata@2":pA,"people:profiles:crustdata@3":wA,"companies:profiles:crustdata@1":WO,"companies:profiles:crustdata@2":oO,"people:profiles:amplemarket@1":nk,"people:profiles:amplemarket@2":eA,"companies:profiles:amplemarket@1":MO,"companies:profiles:amplemarket@2":qD,"companies:entitysearch:parallel@1":ND,"people:entitysearch:parallel@1":Ek,"people:eventguests:luma@1":Vk,"posts:content:crustdata@1":FA,"sheet:rows@1":ZA,"bucket:entries@1":HA,"query:postgres@1":bO,"query:databricks@1":pO};function tj(e){return QA[e]}const nj=t.discriminatedUnion(`search_id`,Object.values($A).map(e=>e)).openapi(`SearchPayloadSchema`);function rj(e,t){return vt(t,ej[e].defaultPayload)}const ij=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=rj(e.search_id);return t?{...e,config:vt(e?.config||{},t.config)}:e},nj),aj=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:ij}).openapi(`SearchRequestSchema`),oj=Ti,sj=t.object({value:di,status:ui,type:ci.optional(),format:Oi.nullable().optional(),resolved_by:Pi.nullable().optional(),widgets:wi.optional()}),cj=t.record(t.string(),sj.nullable());function lj(e){return $A[e]}const uj=t.enum([`cursor`,`page_number`]),dj=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:gD,errors:t.array(oj),results:t.array(cj),organization_id:t.string(),next_page:ij.nullable(),pagination_type:uj.nullable(),total_pages:t.int32().nullable(),field_definitions:Ai.optional()}).openapi(`SearchResponseSchema`);function fj(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function pj(){let e={};for(let t of Object.values(ej)){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=fj(e.searchId);return fj(t.searchId)-n})}),e}function mj(e){return ej[e]}const hj=pj();function gj(e){let t=[];for(let[n,r]of Object.entries(hj)){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:fj(i.searchId)})}return t}function _j(e){let t=ej[e].defaultPayload.config.output_fields;return t?Object.keys(t):[]}function vj(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 _j(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:hj}}function yj(e){let t=mj(e);return{[t.provider]:t.cost.allowManagedConnection?t.cost.credits.default:0}}const bj={"prompt:run@1":mw,"agent:run@1":ul,"company:newssummary:website@1":Jf,"company:newssummary:domain@1":Vu,"company:techstack:builtwith@1":Ip,"company:techstack:builtwith@2":md,"company:websiteurl:email@1":Gp,"company:domain:workemail@1":xl,"company:funding:leadmagic@1":Bd,"company:funding:leadmagic@2":Fl,"people:workemail:waterfall@1":av,"person:workemail:waterfall@1":sw,"people:email:iswork@1":em,"email:iswork@1":mv,"people:name:split@1":kh,"person:name:split@1":CS,"people:validate:email:zerobounce@1":M_,"people:email:validate:zerobounce@2":ym,"email:validate:zerobounce@1":Rv,"people:mobilenumber:workemail:waterfall@1":yh,"person:name:join@1":pS,"company:overview@1":lp,"company:overview@2":Tp,"company:overview@3":rd,"json:extract:multi@1":Ry,"company:lookalikes:companyenrich@1":vf,"company:lookalikes:companyenrich@2":du,"company:match:logodev@1":zf,"company:match:logodev@2":Mu,"person:posts:content:crustdata@1":GS,"people:profile:workemail:crustdata@1":u_,"person:profile:workemail:crustdata@1":fC,"people:identity:email:waterfall@1":Bm,"person:identity:email:waterfall@1":hx,"person:identity:amplemarket@1":$b,"email:send:resend@1":Ov,"contact:create:resend@1":Ed,"lead:enroll:lemlist@1":ob,"email:send:gmail@1":xv,"email:write@1":qv,"fields:merge@1":Cy,"field:slugify@1":dy,"field:domainify@1":ny,"http:request@1":My,"template:fill@1":yE,"message:send:slack@1":mb,"message:write@1":Sb,"people:personalemail:profile:waterfall@1":Vh,"person:personalemail:profileurl:waterfall@1":FS,"website:scrape:firecrawl@1":rD,"website:scrapelist:firecrawl@1":fD,"website:extract:firecrawl@1":OE,"website:extract:parallel@1":LE,"website:maplinks:firecrawl@1":KE,"row:append:sheet@1":pT,"bucket:claim@1":Nw,"bucket:count@1":qw,"bucket:check@1":Bw,"row:expandappend:sheet@1":CT,"row:roundrobin:sheet@1":AT,"rows:find:sheet@1":fE,"rows:find:postgres@1":rE,"rows:find:databricks@1":YT,"people:match:role:waterfall@1":Zm,"person:match:role:waterfall@1":Fx,"company:match:crustdata@1":Df,"company:match:crustdata@2":bu,"person:match:amplemarket@1":wx,"company:identity@2":lf,"company:identity@3":Kl,"company:identity:crustdata@1":nu,"people:phone:profile:waterfall@1":Qh,"person:mobile:profileurl:waterfall@1":Kx,"person:devprofileurl:profileurl:waterfall@1":Pb,"people:phone:workemail:waterfall@1":lg,"person:mobile:workemail:waterfall@1":rS,"people:profile:waterfall@1":e_,"person:profile:waterfall@1":nC,"people:profileurl:email:waterfall@1":S_,"person:profileurl:email:waterfall@1":wC,"person:profileurl:name@1":FC,"people:email:validate:zerobounce@1":lm,"person:email:validate:millionverifier@1":Wb,"people:workemail:profileurl:waterfall@1":G_,"person:workemail:profileurl:waterfall@1":qC,"company:identity@1":Zd,"people:professionalprofile:waterfall@1":bg,"people:professionalprofileurl:name@1":Ug,"people:professionalprofileurl:email:waterfall@1":Mg,"people:mobilenumber:professionalprofile:waterfall@1":ch},xj={"prompt:run@1":hw,"agent:run@1":dl,"company:newssummary:website@1":Yf,"company:newssummary:domain@1":Hu,"company:techstack:builtwith@1":Lp,"company:techstack:builtwith@2":hd,"company:websiteurl:email@1":Kp,"company:domain:workemail@1":Sl,"company:funding:leadmagic@1":Vd,"company:funding:leadmagic@2":Il,"people:workemail:waterfall@1":ov,"person:workemail:waterfall@1":cw,"people:email:iswork@1":tm,"email:iswork@1":hv,"people:name:split@1":Ah,"person:name:split@1":wS,"people:validate:email:zerobounce@1":N_,"people:email:validate:zerobounce@2":bm,"email:validate:zerobounce@1":zv,"people:mobilenumber:workemail:waterfall@1":bh,"person:name:join@1":mS,"company:overview@1":up,"company:overview@2":Ep,"company:overview@3":id,"json:extract:multi@1":zy,"email:write@1":Jv,"fields:merge@1":wy,"field:slugify@1":fy,"field:domainify@1":ry,"http:request@1":Ny,"email:send:resend@1":kv,"contact:create:resend@1":Dd,"lead:enroll:lemlist@1":sb,"company:lookalikes:companyenrich@1":yf,"company:lookalikes:companyenrich@2":fu,"company:match:logodev@1":Bf,"company:match:logodev@2":Nu,"person:posts:content:crustdata@1":KS,"people:profile:workemail:crustdata@1":d_,"person:profile:workemail:crustdata@1":pC,"people:identity:email:waterfall@1":Vm,"person:identity:email:waterfall@1":gx,"company:match:crustdata@1":Of,"company:match:crustdata@2":xu,"person:identity:amplemarket@1":ex,"message:send:slack@1":hb,"email:send:gmail@1":Sv,"message:write@1":Cb,"template:fill@1":bE,"website:scrape:firecrawl@1":iD,"website:scrapelist:firecrawl@1":pD,"website:extract:firecrawl@1":kE,"website:extract:parallel@1":RE,"website:maplinks:firecrawl@1":qE,"row:append:sheet@1":mT,"bucket:claim@1":Pw,"bucket:count@1":Jw,"bucket:check@1":Vw,"row:expandappend:sheet@1":wT,"row:roundrobin:sheet@1":jT,"rows:find:sheet@1":pE,"rows:find:postgres@1":iE,"rows:find:databricks@1":XT,"people:match:role:waterfall@1":Qm,"person:match:role:waterfall@1":Ix,"company:identity@2":uf,"company:identity@3":ql,"company:identity:crustdata@1":ru,"people:phone:profile:waterfall@1":$h,"person:mobile:profileurl:waterfall@1":qx,"person:devprofileurl:profileurl:waterfall@1":Fb,"people:personalemail:profile:waterfall@1":Hh,"person:personalemail:profileurl:waterfall@1":IS,"people:profile:waterfall@1":t_,"person:profile:waterfall@1":rC,"people:profileurl:email:waterfall@1":C_,"person:profileurl:email:waterfall@1":TC,"person:profileurl:name@1":IC,"people:email:validate:zerobounce@1":um,"person:email:validate:millionverifier@1":Gb,"people:phone:workemail:waterfall@1":ug,"person:mobile:workemail:waterfall@1":iS,"people:workemail:profileurl:waterfall@1":K_,"person:workemail:profileurl:waterfall@1":JC,"person:match:amplemarket@1":Tx,"company:identity@1":Qd,"people:professionalprofile:waterfall@1":xg,"people:professionalprofileurl:name@1":Wg,"people:professionalprofileurl:email:waterfall@1":Ng,"people:mobilenumber:professionalprofile:waterfall@1":lh},Sj={"prompt:run@1":gw,"agent:run@1":fl,"company:newssummary:website@1":Xf,"company:newssummary:domain@1":Uu,"company:techstack:builtwith@1":Rp,"company:techstack:builtwith@2":gd,"company:websiteurl:email@1":qp,"company:domain:workemail@1":Cl,"company:funding:leadmagic@1":Hd,"company:funding:leadmagic@2":Ll,"people:workemail:waterfall@1":sv,"person:workemail:waterfall@1":lw,"people:email:iswork@1":nm,"email:iswork@1":gv,"people:name:split@1":jh,"person:name:split@1":TS,"people:validate:email:zerobounce@1":P_,"people:mobilenumber:workemail:waterfall@1":xh,"person:name:join@1":hS,"company:overview@1":dp,"company:overview@2":Dp,"company:overview@3":ad,"json:extract:multi@1":By,"email:send:resend@1":Av,"contact:create:resend@1":Od,"lead:enroll:lemlist@1":cb,"email:send:gmail@1":Cv,"message:send:slack@1":gb,"message:write@1":wb,"email:write@1":Yv,"template:fill@1":xE,"fields:merge@1":Ty,"field:slugify@1":py,"field:domainify@1":iy,"http:request@1":Py,"row:append:sheet@1":hT,"bucket:claim@1":Fw,"bucket:count@1":Yw,"bucket:check@1":Hw,"row:expandappend:sheet@1":TT,"row:roundrobin:sheet@1":MT,"rows:find:sheet@1":mE,"rows:find:postgres@1":aE,"rows:find:databricks@1":ZT,"company:lookalikes:companyenrich@1":bf,"company:lookalikes:companyenrich@2":pu,"people:match:role:waterfall@1":$m,"person:match:role:waterfall@1":Lx,"company:match:logodev@1":Vf,"company:match:logodev@2":Pu,"person:posts:content:crustdata@1":qS,"people:profile:workemail:crustdata@1":f_,"person:profile:workemail:crustdata@1":mC,"people:workemail:profileurl:waterfall@1":q_,"person:workemail:profileurl:waterfall@1":YC,"people:identity:email:waterfall@1":Hm,"person:identity:email:waterfall@1":_x,"company:match:crustdata@1":kf,"company:match:crustdata@2":Su,"person:identity:amplemarket@1":tx,"email:validate:zerobounce@1":Bv,"person:email:validate:millionverifier@1":Kb,"people:personalemail:profile:waterfall@1":Uh,"person:personalemail:profileurl:waterfall@1":LS,"people:email:validate:zerobounce@1":dm,"people:email:validate:zerobounce@2":xm,"people:phone:workemail:waterfall@1":dg,"person:mobile:workemail:waterfall@1":aS,"website:scrape:firecrawl@1":aD,"website:scrapelist:firecrawl@1":mD,"website:extract:firecrawl@1":AE,"website:extract:parallel@1":zE,"website:maplinks:firecrawl@1":JE,"person:match:amplemarket@1":Ex,"company:identity@2":df,"company:identity@3":Jl,"company:identity:crustdata@1":iu,"people:phone:profile:waterfall@1":eg,"person:mobile:profileurl:waterfall@1":Jx,"person:devprofileurl:profileurl:waterfall@1":Ib,"people:profile:waterfall@1":n_,"person:profile:waterfall@1":iC,"people:profileurl:email:waterfall@1":w_,"person:profileurl:email:waterfall@1":EC,"person:profileurl:name@1":LC,"company:identity@1":$d,"people:professionalprofile:waterfall@1":Sg,"people:professionalprofileurl:name@1":Gg,"people:professionalprofileurl:email:waterfall@1":Pg,"people:mobilenumber:professionalprofile:waterfall@1":uh};function Cj(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function wj(e){return bj[e]}function Tj(e){return Sj[e].defaultPayload}function Ej(e){return xj[e]}const Dj=r.discriminatedUnion(`pipe_id`,Object.values(xj)).openapi(`PipePayload`),Oj=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=Tj(oi.parse(e.pipe_id));return t?{...e,config:vt(e?.config||{},t.config)}:e}catch{return e}},Dj);function kj(e){return Sj[e]}function Aj(e,t){let n=kj(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 jj(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function Mj(){let e={};for(let t of Object.values(Sj)){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=jj(e.pipeId);return jj(t.pipeId)-n})}),e}const Nj=e=>{let t=kj(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},Pj=Mj();function Fj(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}`)}}Fj(Sj,ej);function Ij(e){let t=[];for(let[n,r]of Object.entries(Pj)){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:jj(i.pipeId)})}return t}function Lj(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=Nj(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of Cj(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of Rc(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:Pj}}const Rj=r.object({id:r.string(),organization_id:r.string(),order:r.array(li),field_definitions:Vi,errors:r.array(Ti),records:r.record(li,Ri),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),zj=r.object({environment:ii.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`),Bj=r.object({config:zj.openapi(`PipesRequestConfig`),field_annotations:Ai.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(Dj),input:r.array(Li.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function Vj(e){let t=kj(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 Hj(e){let t=[];for(let n of e){if(n instanceof U){t.push(n);continue}let e=Oj.parse(n);if(!kj(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(wj(n.pipe_id))(e);t.push(r)}return t}function Uj(e,t){let n=Hj(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 Wj(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 Gj(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 Kj(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 qj(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(Kj(e))return`https://${e}`;if(!Gj(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 Jj(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(Kj(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!Gj(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(Gj(i)||Kj(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function Yj(e){try{return qj(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function Xj(e,t){if(t)switch(e){case`website_url`:return Yj(t);default:return}}function Zj(e){let t;if(Qj(e))return Zj(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function Qj(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&ui.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&Qj(e.value,t++))throw new $([Q.RecursiveExpandedValue()]);return!0}return!1}function $j(e){let t=Qj(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function eM(e){return Qj(e)?eM(e.value):e}function tM(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=Qr(e,n.format)?.getStaticWidgets?.(t),i=Xj(n.format,t);return jt(At(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function nM(e,t,n){if(t==null)return{};try{let r=Qr(e,n)?.getStaticWidgets?.(t),i=Xj(n,t);return jt(At(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function rM(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 iM=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}=$j(n),c;c=s&&a.type?a.type:Zj(e);let l;$r(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]=rM(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function aM(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 oM(e){let t=aM(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of Rc(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 sM({config:e,pipes:t,input:n,field_annotations:r}){try{let i=dM({config:e,pipes:t,input:n,fieldAnnotations:r});return cM(i),i}catch(e){throw e instanceof $?e:new $([Q.ValidationFailed({error:e})])}}function cM(e){for(let t of e.orderedPipeInstances)for(let{field:n}of Rc(t.getInputRequirement()))Wc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),Gc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function lM(e,t){if(!e&&!t)throw new $([Q.MustDefineAnnotations()]);return new iM(t||{}).merge(iM.fromInput(e||[]))}function uM(e,t){let n={...t};return e.pipes.forEach((t,r)=>{for(let[i,a]of Object.entries(t.getOutputFields())){if(jc(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:Wc(e,a.type),added_by:{ref:t.pipeId,config_hash:t.getConfigHashKey(),pipe_index:r},label:i?.label||a.label,format:Gc(e,a.format),is_primary_output:a.isPrimaryOutput}}}),n}function dM(e){let t=Hj(e.pipes),n=lM(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)}),mM(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]=fM(t,n),u=uM({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 fM(e,t){let n=oM(e),r=pM(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 pM(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?Rc(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();Lc(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 mM(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 Wa(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 hM=`fields:deletesparse:input@1`,gM={},_M=r.object({effect_id:r.literal(hM),connector:T(),config:r.object({fields:Ts({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:cc({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:cc({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)})}),vM=class extends V{effectId=hM;schema=_M;payload;billableOperations=gM;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=sM({config:{environment:e.environment},pipes:e.pipes,field_annotations:t});return{next:{environment:e.environment,pipes:e.pipes,fieldAnnotations:t,validationContext:n}}}},yM=_M,bM={effectId:hM,baseEffect:B(hM),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:[G.NEW],keywords:[`empty`,`cleanup`,`prune`,`remove fields`,`unused`,`blank`],lifecycle:null,billableOperations:gM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,defaultPayload:{effect_id:hM,connector:null,config:{fields:[],probe_size:1e3,threshold_in_percent:25}}};function xM(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=>xM(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]=xM(e[i],t,n));return r}return e}function SM(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 CM(e,t,n){let r=[];for(let i of e.orderedPipePayloads){let e=xM(i,t,n);r.push(SM(e,t,n))}return r}function wM(e,t,n,r,i){if(!e.orderedPipeInstances[t])throw Error(`Pipe instance at index ${t} is not defined`);let a={...n};if(kj(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},SM(a,r,i)}return xM(a,r,i)}function TM(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(wM(e,a,o,n,r)):i.push(xM(o,n,r))}return i}function EM(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`?CM(e,t,n):TM(e,r,t,n)}const DM=`fields:patch@1`,OM={},kM=r.object({effect_id:r.literal(DM),connector:T(),config:r.object({field_name:r.string().min(1),new_name:r.string().min(1).optional(),new_format:Oi.nullable().optional(),new_type:ci.optional(),new_label:r.string().optional()})}),AM=class extends V{effectId=DM;schema=kM;payload;billableOperations=OM;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=EM(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,Em[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(Em[ee].length&&te&&!Em[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=sM({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}}},jM=kM,MM={effectId:DM,baseEffect:B(DM),label:`Edit field`,description:`Rename, retype, reformat, or relabel a field.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:OM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:DM,connector:null,config:{field_name:``}}},NM=`fields:remove@1`,PM={},FM=r.object({effect_id:r.literal(NM),connector:T(),config:r.object({field_names:r.array(r.string().min(1)).min(1)})}),IM=class extends V{effectId=NM;schema=FM;payload;billableOperations=PM;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=sM({config:{environment:e.environment},pipes:[],field_annotations:{}});return{next:{environment:e.environment,pipes:[],fieldAnnotations:{},validationContext:t}}}let n=sM({config:{environment:e.environment},pipes:e.pipes,field_annotations:t});return{next:{environment:e.environment,pipes:e.pipes,fieldAnnotations:t,validationContext:n}}}},LM=FM,RM={effectId:NM,baseEffect:B(NM),label:`Remove fields`,description:`Remove fields (input columns) from the sheet.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:PM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:NM,connector:null,config:{field_names:[]}}},zM=`pipe:add@1`,BM={},VM=r.object({effect_id:r.literal(zM),connector:T(),config:r.object({pipe_payload:Dj.optional()})}),HM=class extends V{effectId=zM;schema=VM;payload;billableOperations=BM;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=sM({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}}}},UM=VM,WM={effectId:zM,baseEffect:B(zM),label:`Add pipe`,description:`Append a pipe to the sheet's pipeline.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:BM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:zM,connector:null,config:{}}},GM=`pipe:remove@1`,KM={},qM=r.object({effect_id:r.literal(GM),connector:T(),config:r.object({config_hash:r.string(),hard:r.boolean().default(!1)})}),JM=class extends V{effectId=GM;schema=qM;payload;billableOperations=KM;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=Hj(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 iM(e.fieldAnnotations||{});for(let e of o){let t=a.fieldDefinitions[e];if(!t)continue;if(n){s=s.deleteKey(e);continue}let i=ti(e,t,a),o=$r(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=sM({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}=$j(n);t.input[e]=r}return t};return{next:{environment:e.environment,pipes:c,fieldAnnotations:s.annotations,validationContext:l},rowMigration:u}}},YM=qM,XM={effectId:GM,baseEffect:B(GM),label:`Remove pipe`,description:`Remove a pipe from the sheet's pipeline, optionally deleting its fields.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:KM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:GM,connector:null,config:{config_hash:``,hard:!1}}},ZM=`pipe:update@1`,QM={},$M=r.object({effect_id:r.literal(ZM),connector:T(),config:r.object({config_hash:r.string().min(1),pipe_payload:Dj.optional()})}),eN=class extends V{effectId=ZM;schema=$M;payload;billableOperations=QM;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=Hj(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=sM({config:{environment:e.environment},pipes:s,field_annotations:e.fieldAnnotations||{}}),l=new(wj(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 iM(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=ti(e,t,a),i=$r(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=sM({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}=$j(n);t.input[e]=r}return t}}}},tN=$M,nN={effectId:ZM,baseEffect:B(ZM),label:`Update pipe`,description:`Replace a pipe in the sheet's pipeline and re-run it.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:QM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:ZM,connector:null,config:{config_hash:``}}},rN=`row:update@1`,iN={},aN=r.object({effect_id:r.literal(rN),connector:T(),config:r.object({record_id:r.string().min(1),record:Li})}),oN=class extends V{effectId=rN;schema=aN;payload;billableOperations=iN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},sN=aN,cN={effectId:rN,baseEffect:B(rN),label:`Update row`,description:`Update a single row's values.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:iN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`shared`,lockScope:`selection`,catalogVisibility:`hidden`,defaultPayload:{effect_id:rN,connector:null,config:{record_id:``,record:{}}}},lN=`rows:add@1`,uN={},dN=r.object({effect_id:r.literal(lN),connector:T(),config:r.object({records:r.array(Li).min(1).max(100),allow_field_creation:r.boolean().default(!1),allow_empty:r.boolean().default(!1)})}),fN=class extends V{effectId=lN;schema=dN;payload;billableOperations=uN;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}},pN=dN,mN={effectId:lN,baseEffect:B(lN),label:`Add rows`,description:`Append records to the sheet.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:uN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`hidden`,defaultPayload:{effect_id:lN,connector:null,config:{records:[],allow_field_creation:!1,allow_empty:!1}}},hN=r.enum([`pending`,`failed`,`no_result`,`skipped`,`completed`]),gN=[{value:`pending`,label:`Pending`},{value:`failed`,label:`Failed`},{value:`no_result`,label:`No result`},{value:`skipped`,label:`Skipped`},{value:`completed`,label:`Completed`}],_N=[`pending`],vN=[`pending`,`failed`,`skipped`];function yN(e){return{enabled:!0,triggers:{status:e,configHashMismatch:!0,inputHashMismatch:!0}}}const bN=`rows:adopt@1`,xN={},SN=r.object({effect_id:r.literal(bN),connector:T(),config:r.object({pipes:r.array(Dj).default([]),selection:Es({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target.`,placeholder:`{"type":"all"}`},`both`),adopt_statuses:sc({options:gN,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()})}),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[]}},wN=SN,TN={effectId:bN,baseEffect:B(bN),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:xN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`selection`,catalogVisibility:`hidden`,defaultPayload:{effect_id:bN,connector:null,config:{pipes:[]}}},EN=`rows:copy_to_sheet@1`,DN={},ON=r.object({effect_id:r.literal(EN),connector:T(),config:r.object({selection:Es({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to copy as JSON.`,placeholder:`{"type":"all"}`},`both`),where:as({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:ic({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:uc({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})})}),kN=class extends V{effectId=EN;schema=ON;payload;billableOperations=DN;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))]:[]}},AN=ON,jN={effectId:EN,baseEffect:B(EN),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:[G.NEW],keywords:[`move`,`transfer`,`split`,`push`,`another sheet`],lifecycle:null,billableOperations:DN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`visible`,defaultPayload:{effect_id:EN,connector:null,config:{selection:{type:`all`},target_sheet:``,create_if_missing:!0}}},MN=`rows:dedupe@1`,NN={"rows-dedupe-v1-pipe0":{allowManagedConnection:!0,provider:`pipe0`,mode:`always`,credits:{default:0},note:`Deduplicating your own sheet is free.`}},PN=r.object({effect_id:r.literal(MN),connector:T(),config:r.object({selection:Es({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target as JSON.`,placeholder:`{"type":"all"}`},`both`),fields:Ts({path:`config.fields`,sectionKey:`general`,groupPath:`config.general`,label:`Match fields`,minItems:1,description:`Rows are duplicates when these fields match.`}),match:oc({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:oc({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`}]})})}),FN=class extends V{effectId=MN;schema=PN;payload;billableOperations=NN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0_api_operation`,rateLimitRatio:1,allowManagedConnection:!0}]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`rows-dedupe-v1-pipe0`)}getFieldReferences(){return this.payload.config.fields.map(e=>e.field_name)}},IN=PN,LN={effectId:MN,baseEffect:B(MN),label:`Remove duplicate rows`,description:`Find duplicate rows by matching fields and keep one row per group.`,categories:[`data_hygiene`],tags:[G.NEW],keywords:[`dedupe`,`deduplicate`,`merge`,`clean`,`unique`],lifecycle:null,billableOperations:NN,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:MN,connector:null,config:{fields:[],match:`all`,strategy:`keep_oldest`}}},RN=`rows:duplicate@1`,zN={"rows-duplicate-v1-pipe0":{allowManagedConnection:!0,provider:`pipe0`,mode:`always`,credits:{default:0},note:`Duplicating rows in your own sheet is free.`}},BN=r.object({effect_id:r.literal(RN),connector:T(),config:r.object({selection:Es({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target as JSON.`,placeholder:`{"type":"all"}`},`both`)})}),VN=class extends V{effectId=RN;schema=BN;payload;billableOperations=zN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0_api_operation`,rateLimitRatio:1,allowManagedConnection:!0}]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return Y(e,`rows-duplicate-v1-pipe0`)}getFieldReferences(){return[]}},HN=BN,UN={effectId:RN,baseEffect:B(RN),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:[G.NEW],keywords:[`copy`,`clone`,`replicate`],lifecycle:null,billableOperations:zN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`visible`,defaultPayload:{effect_id:RN,connector:null,config:{}}},WN=`rows:enrich@1`,GN={},KN=r.object({effect_id:r.literal(WN),connector:T(),config:r.object({pipes:r.array(Dj).default([]),selection:Es({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target.`,placeholder:`{"type":"all"}`},`both`),run_statuses:sc({options:gN,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()})}),qN=class extends V{effectId=WN;schema=KN;payload;billableOperations=GN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getRecordQueueConfig(e){return yN(this.payload.config.run_statuses??(e?.isScheduled?_N:vN))}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},JN=KN,YN={effectId:WN,baseEffect:B(WN),label:`Enrich rows`,description:`Run the sheet's pipes over the selected rows.`,categories:[`enrichment`],tags:[],keywords:[`run`,`execute`,`process`,`refresh`,`rerun`,`pipes`],lifecycle:null,billableOperations:GN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],catalogVisibility:`visible`,selectionMode:`both`,lockingMode:`shared`,lockScope:`selection`,defaultPayload:{effect_id:WN,connector:null,config:{pipes:[]}}},XN=`rows:filter:prompt@1`,ZN=`rows-filter-prompt-v1`,QN=xo(ZN),$N=r.object({effect_id:r.literal(XN),connector:bs(),config:r.object({selection:Es({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target as JSON.`,placeholder:`{"type":"all"}`},`both`),prompt:ac({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:fc({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.general`,billableOperations:QN}),fields:Ts({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.`})})}),eP=class extends V{effectId=XN;schema=$N;payload;billableOperations=QN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return ho(this.payload.config.model)}getProviderNames(){return mo(this.payload.config.model)}estimateBillableOperations(e){return Co(e,{model:this.payload.config.model,prefix:ZN,inputTokens:600,outputTokens:50})}getFieldReferences(){return(this.payload.config.fields??[]).map(e=>e.field_name)}},tP=$N,nP={effectId:XN,baseEffect:B(XN),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:[G.NEW,G.AI],keywords:[`classify`,`qualify`,`score`,`prompt`,`clean`],lifecycle:null,billableOperations:QN,allowedUserConnectionProviders:go(),managedProviders:go(),selectionMode:`both`,lockingMode:`exclusive`,shouldUpgradeSchema:!0,catalogVisibility:`visible`,defaultPayload:{effect_id:XN,connector:null,config:{model:`google-low`,prompt:``,fields:[]}}},rP=`rows:import@1`,iP={},aP=r.object({effect_id:r.literal(rP),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)})}),oP=class extends V{effectId=rP;schema=aP;payload;billableOperations=iP;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}},sP=aP,cP={effectId:rP,baseEffect:B(rP),label:`Import rows`,description:`Append records from a staging group (CSV import / search commit).`,categories:[`internal`],tags:[],keywords:[`csv`,`upload`,`excel`,`spreadsheet`,`file`],lifecycle:null,billableOperations:iP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`hidden`,defaultPayload:{effect_id:rP,connector:null,config:{staging_group_id:``,allow_field_creation:!1,event_id:null}}},lP=`rows:remove@1`,uP={},dP=r.object({effect_id:r.literal(lP),connector:T(),config:r.object({selection:Es({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to delete as JSON.sc`,placeholder:`{"type":"all"}`},`both`),where:as({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.`})})}),fP=class extends V{effectId=lP;schema=dP;payload;billableOperations=uP;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))]:[]}},pP=dP,mP={effectId:lP,baseEffect:B(lP),label:`Delete rows`,description:`Delete selected rows β all of them, or only those matching a condition.`,categories:[`data_hygiene`],tags:[],keywords:[`remove`,`drop`,`clear`,`clean`,`purge`],lifecycle:null,billableOperations:uP,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:lP,connector:null,config:{selection:{type:`rows`,record_ids:[]}}}};function hP(e){if(e instanceof vD)return e;let t=e.search_id,n=tj(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(ij.parse(e))}const gP=`search:run@1`,_P={},vP=r.object({effect_id:r.literal(gP),connector:T(),config:r.object({search_payload:pc({path:`config.search_payload`,groupPath:`config.general`,sectionKey:`general`,label:`Search`,description:`Pick and configure the search to run.`},ij),max_number_of_results:cc({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:uc({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=hP(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:lc({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.`}})})}),yP=class extends V{effectId=gP;schema=vP;payload;billableOperations=_P;constructor(e){super(),this.payload=this.validatePayload(e)}getSearch(){let e=this.payload.config.search_payload;if(!e?.search_id)return null;try{return hP(e)}catch{return null}}getConnectionsRequirements(){return[]}getProviderNames(){let e=this.getSearch();return e?[mj(e.searchId).provider]:[]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){let e=this.getSearch();return e?(mj(e.searchId).outputFieldMode??`static`)===`dynamic`:!1}},bP=vP,xP={effectId:gP,baseEffect:B(gP),label:`Search`,description:`Run a search and append the results to the sheet.`,categories:[`enrichment`],tags:[G.NEW],keywords:[`find`,`import`,`source`,`prospect`,`add rows`,`results`],lifecycle:null,billableOperations:_P,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,defaultPayload:{effect_id:gP,connector:null,config:{search_payload:{search_id:``},max_number_of_results:1e3,deduplicate:!0,stop_at_unique_rows_count:null}}},SP=`sheet:export@1`,CP={},wP=r.object({effect_id:r.literal(SP),connector:T(),config:r.object({selection:Es({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`)})}),TP=class extends V{effectId=SP;schema=wP;payload;billableOperations=CP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},EP=wP,DP={effectId:SP,baseEffect:B(SP),label:`Export sheet`,description:`Export the selected rows to a CSV download.`,categories:[`internal`],tags:[],keywords:[`csv`,`download`,`excel`,`spreadsheet`,`file`],lifecycle:null,billableOperations:CP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`hidden`,defaultPayload:{effect_id:SP,connector:null,config:{}}},OP=`sheet:reset@1`,kP={},AP=r.object({effect_id:r.literal(OP),connector:T(),config:r.object({})}),jP=class extends V{effectId=OP;schema=AP;payload;billableOperations=kP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}evolveSchema(e){let t=sM({config:{environment:e.environment},pipes:[],field_annotations:{}});return{next:{environment:e.environment,pipes:[],fieldAnnotations:{},validationContext:t}}}},MP=AP,NP={effectId:OP,baseEffect:B(OP),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:[],keywords:[`clear`,`wipe`,`empty`,`start over`,`delete all`],lifecycle:null,billableOperations:kP,shouldUpgradeSchema:!0,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,defaultPayload:{effect_id:OP,connector:null,config:{}}},PP=`sheet:update@1`,FP={},IP=r.object({effect_id:r.literal(PP),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.`)}),LP=class extends V{effectId=PP;schema=IP;payload;billableOperations=FP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},RP=IP,zP={effectId:PP,baseEffect:B(PP),label:`Update sheet`,description:`Update sheet basics (rename: name, slug).`,categories:[`internal`],tags:[`rename`,`name`,`title`,`slug`],lifecycle:null,billableOperations:FP,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:PP,connector:null,config:{}}},BP=`timetravel:create@1`,VP={},HP=r.object({effect_id:r.literal(BP),connector:T(),config:r.object({})}),UP=class extends V{effectId=BP;schema=HP;payload;billableOperations=VP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},WP=HP,GP={effectId:BP,baseEffect:B(BP),label:`Create restore point`,description:`Snapshot the current sheet state as a timetravel restore point.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:VP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,shouldUpgradeSchema:!0,catalogVisibility:`hidden`,defaultPayload:{effect_id:BP,connector:null,config:{}}},KP=`timetravel:travel@1`,qP={},JP=r.object({effect_id:r.literal(KP),connector:T(),config:r.object({schema_id:r.string().min(1)})}),YP=class extends V{effectId=KP;schema=JP;payload;billableOperations=qP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){return!0}},XP=JP,ZP={effectId:KP,baseEffect:B(KP),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:qP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:KP,connector:null,config:{schema_id:``}}},QP=r.object({reason:r.object({code:r.string(),details:r.string().optional()}),related_record_id:r.string().nullable(),resolved_by:r.object({ref:bt,config_hash:r.string()})}),$P=r.object({value:r.union([r.string(),r.number(),r.boolean(),r.null()])}),eF=QP.extend({fields:r.record(r.string(),$P)}),tF=r.object({added:QP.optional(),updated:eF.optional(),removed:QP.optional()}),nF=r.record(r.string(),tF),rF=r.object({shown:r.number().int(),total:r.number().int(),added:r.number().int(),updated:r.number().int(),removed:r.number().int()}),iF=r.object({effect_id:bt,config_hash:r.string(),status:r.enum([`completed`,`failed`,`skipped`]),error:r.string().optional(),source:r.literal(`run_added_rows`).optional()}),aF={"rows:dedupe@1":FN,"rows:duplicate@1":VN,"rows:enrich@1":qN,"rows:adopt@1":CN,"rows:add@1":fN,"rows:import@1":oP,"row:update@1":oN,"rows:remove@1":fP,"rows:copy_to_sheet@1":kN,"rows:filter:prompt@1":eP,"pipe:add@1":HM,"pipe:update@1":eN,"pipe:remove@1":JM,"fields:remove@1":IM,"fields:patch@1":AM,"fields:add@1":Dc,"fields:deletesparse:input@1":vM,"env:change@1":xc,"timetravel:create@1":UP,"timetravel:travel@1":YP,"sheet:export@1":TP,"search:run@1":yP,"sheet:reset@1":jP,"sheet:update@1":LP},oF={"rows:dedupe@1":IN,"rows:duplicate@1":HN,"rows:enrich@1":JN,"rows:adopt@1":wN,"rows:add@1":pN,"rows:import@1":sP,"row:update@1":sN,"rows:remove@1":pP,"rows:copy_to_sheet@1":AN,"rows:filter:prompt@1":tP,"pipe:add@1":UM,"pipe:update@1":tN,"pipe:remove@1":YM,"fields:remove@1":LM,"fields:patch@1":jM,"fields:add@1":Oc,"fields:deletesparse:input@1":yM,"env:change@1":Sc,"timetravel:create@1":WP,"timetravel:travel@1":XP,"sheet:export@1":EP,"search:run@1":bP,"sheet:reset@1":MP,"sheet:update@1":RP},sF={"rows:dedupe@1":LN,"rows:duplicate@1":UN,"rows:enrich@1":YN,"rows:adopt@1":TN,"rows:add@1":mN,"rows:import@1":cP,"row:update@1":cN,"rows:remove@1":mP,"rows:copy_to_sheet@1":jN,"rows:filter:prompt@1":nP,"pipe:add@1":WM,"pipe:update@1":nN,"pipe:remove@1":XM,"fields:remove@1":RM,"fields:patch@1":MM,"fields:add@1":kc,"fields:deletesparse:input@1":bM,"env:change@1":Cc,"timetravel:create@1":GP,"timetravel:travel@1":ZP,"sheet:export@1":DP,"search:run@1":xP,"sheet:reset@1":NP,"sheet:update@1":zP};function cF(e){return aF[e]}function lF(e){return sF[e]}function uF(e){return oF[e]}function dF(){return Object.keys(sF).filter(e=>sF[e].agentExposure!==`excluded`)}function fF(e){return sF[e]?.agentExposure!==`excluded`}const pF=t.discriminatedUnion(`effect_id`,Object.values(oF).map(e=>e)).openapi(`EffectPayloadSchema`);function mF(e,t){return vt(t,sF[e].defaultPayload)}const hF=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`effect_id`in e))return e;let t=mF(e.effect_id);return t?{...e,config:vt(e?.config||{},t.config)}:e},pF),gF=t.enum([`processing`,`completed`,`failed`,`canceled`,`skipped`]).openapi(`EffectsRunStatus`),_F=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(hF).min(1)}).openapi(`EffectsRequest`),vF=t.object({id:t.string(),status:gF,effects:t.array(iF),counts:rF.nullable(),diff:nF.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`),yF=t.object({effects:t.array(t.unknown()).min(1)}).openapi(`EffectsValidateRequest`),bF=t.object({index:t.number().int(),effect_id:bt,valid:t.boolean(),errors:t.array(t.string())}).openapi(`EffectsValidateStep`),xF=t.object({valid:t.boolean(),errors:t.array(t.string()),steps:t.array(bF).optional()}).openapi(`EffectsValidateResponse`);function SF(e){let t=e.split(`@`)[1];if(!t)throw Error(`No effect version found`);return Number(t)}function CF(){let e={};for(let t of Object.values(sF)){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=SF(e.effectId);return SF(t.effectId)-n})}),e}const wF=CF();function TF(){let e=[];for(let[t,n]of Object.entries(wF)){let r=n[0];if(!r)throw Error(`Found empty entry`);r.lifecycle?.deprecatedOn||r.catalogVisibility!==`hidden`&&e.push({...r,baseEffect:t,latestVersion:SF(r.effectId)})}return e}const EF={"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 DF=class extends Error{errors;constructor(e){super(e.join(`
|
|
77
|
+
`)),this.name=`SheetEffectValidationError`,this.errors=e}};function OF({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=cF(e.effect_id);if(!d){n.push(`unknown effect "${e.effect_id}"`),kF(i,r,t,e.effect_id,n);return}let f;try{f=new d(e)}catch(a){n.push(a.message),kF(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),kF(i,r,t,e.effect_id,n)}),{valid:r.length===0,steps:i,errors:r,instances:a,payloads:o,resultingFieldDefinitions:c.fieldDefinitions}}function kF(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 AF({effects:e,validationContext:t,schemaInputs:n}){let r=OF({effects:e,validationContext:t,schemaInputs:n});if(!r.valid)throw new DF(r.errors);return{instances:r.instances,payloads:r.payloads}}function jF(e){let t=(e??[]).map(e=>MF(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 MF(e){let t=e.effect_id,n=B(t),r=e.config??{};switch(n){case`pipe:add`:{let e=NF(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=NF(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} ${IF(e,`row`)}`,description:e==null?`Added rows to the sheet.`:`Added ${e} ${IF(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=PF(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=FF(t);return{title:e??t,description:e??t}}}}function NF(e){if(e&&typeof e==`object`){let t=e.pipe_id;if(typeof t==`string`&&t.length>0)return t}}function PF(e){if(e&&typeof e==`object`){let t=e.search_id;if(typeof t==`string`&&t.length>0)return t}}function FF(e){try{return lF(e)?.label}catch{return}}function IF(e,t){return e===1?t:`${t}s`}function LF(e){if(e instanceof V)return e;let t=e.effect_id,n=cF(t);if(!n)throw Error(`Unknown effect: ${e.effect_id}`);return new n(hF.parse(e))}function RF(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 zF(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 BF(e){let t=zF(e.map(RF));return e.map((e,n)=>({name:t[n],label:e}))}const VF={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function HF(e){return VF[e]}const UF=`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(`.`),WF=[`university`,`college`,`institute of technology`,`polytechnic`,`school of`],GF=e=>` ${e.toLowerCase().replace(/[^a-z ]+/g,` `).replace(/\s+/g,` `).trim()} `,KF=(e,t)=>{if(!e)return!1;let n=GF(e);return t.some(e=>n.includes(` ${e} `))};function qF(e){return KF(e.degree_name,UF)?!0:e.degree_name?!1:KF(e.institution_name,WF)}function JF(e){if(!e.start_date)return 1/0;let t=ee(e.start_date);return Number.isNaN(t.getTime())?1/0:t.getTime()}function YF(e){let t=e.education_history.filter(e=>e.is_current_education===!0&&qF(e)),n=null;for(let e of t)(n===null||JF(e)<JF(n))&&(n=e);return{...e,education_history:e.education_history.map(e=>({...e,is_primary_current_education:e===n}))}}function XF(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 ZF={shared:{}},QF={shared:{}},$F={shared:{paths:{"config.cursor":null,"config.offset":null,"config.page_number":null}}};function eI(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 tI=e=>eI(QF,e),nI=e=>eI($F,e),rI=e=>eI(ZF,e),iI={"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.bucket_creation":{order:1,label:`Bucket creation`,description:`Applied when the bucket is created on first write; ignored if it already exists.`,iconKey:`sliders`,defaultExpand:!1},"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}},aI={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}},oI=new Set([`context_select_input`,`tagged_text_input`,`condition_block_input`,`field_select_input`,`fields_select_input`,`typed_fields_select_input`]);function sI(e){let t=Ej(e),n=[];function i(e){e?.type&&oI.has(e.type)&&e.optionsDef&&n.push(e)}function a(e){let t=_.get(e);if(t&&typeof t!=`function`?i(t):typeof t==`function`&&i(t.staticMeta),typeof e==`object`&&e&&`unwrap`in e&&typeof e.unwrap==`function`&&a(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))a(t)}return a(t),n}function cI({pipePayload:e,validationContext:t,store:n,formResolvers:r,customization:i}){let a=Ej(e.pipe_id),o=Vc(e.pipe_id,e.config||{});return ls({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:kj(e.pipe_id),hash:o}):i},store:n,formResolvers:r,sectionMap:ss(aI,i?.sectionMap),groupMap:ss(iI,i?.groupMap),pathMap:i?.pathMap})}const lI={"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}},uI={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 dI({searchPayload:e,formContext:t,formResolvers:n,customization:r}){return ls({schema:lj(e.search_id),extractFromSchema:n=>{let r=v.get(n);if(t.field_options??={},r)return typeof r==`function`?r({searchPayload:e,searchEntry:mj(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:ss(uI,r?.sectionMap),groupMap:ss(lI,r?.groupMap),pathMap:r?.pathMap})}function fI(e){let t=lj(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 pI={"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}},mI={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 hI({effectPayload:e,validationContext:t,store:n,formResolvers:r,customization:i}){let a=uF(e.effect_id),o=_c(e.effect_id,e.config||{});return ls({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:lF(e.effect_id),hash:o}):i},store:n,formResolvers:r,sectionMap:ss(mI,i?.sectionMap),groupMap:ss(pI,i?.groupMap),pathMap:i?.pathMap})}function gI(e){let t=uF(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 _I=new Proxy({},{get:(e,t)=>e=>e.type===t}),vI=`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(`.`),yI=r.enum(vI),bI=r.object({provider_logo:r.object({provider:ri}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:yI}).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()}),xI=`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(xI);const SI=r.object({value:r.string(),label:r.string(),widgets:bI.optional(),data:r.record(r.string(),r.string()).optional()}),CI=r.object({field_options:r.record(r.string(),r.object({options:r.array(SI)}))}),wI=[{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}],TI=new Map(wI.map(e=>[e.id,e]));function EI(e){return TI.get(e)}function DI(){return wI}const OI={"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
78
|
Determine if the company {{ company_name }} (domain: {{ company_domain | default: "" }}) has ever raised outside funding.
|
|
79
79
|
|
|
80
80
|
Research the web for funding announcements, press releases, and investor databases before answering.
|
|
@@ -127,4 +127,4 @@ Customize the message using the name of the user: {{ name }}.
|
|
|
127
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:
|
|
128
128
|
**Name**: {{ name }}
|
|
129
129
|
**Email**: {{ email }}
|
|
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:{merge_fields:[{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,write_fields:[{field_name:`field_name`}]}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"bucket:claim@1":[{config:{environment:`production`},pipes:[{pipe_id:`bucket:claim@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{bucket:`crm-contacts`,contract:``,entry_fields:[{field_name:`email`}],new_bucket_name:``,new_bucket_ttl_in_seconds:null,new_bucket_own_entry_behavior:`block`,new_bucket_missing_value_behavior:`proceed`,allow_bucket_creation:!0}}],input:[{id:`1`,email:`test@pipe0.com`}]}],"bucket:count@1":[{config:{environment:`production`},pipes:[{pipe_id:`bucket:count@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{bucket:`lead-router`,contract:``,entry_fields:[{field_name:`email`,entry_field:`lead`}],new_bucket_name:``,new_bucket_start:1,new_bucket_step:1,allow_bucket_creation:!0}}],input:[{id:`1`,email:`test@pipe0.com`}]}],"bucket:check@1":[{config:{environment:`production`},pipes:[{pipe_id:`bucket:check@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{bucket:`do-not-contact`,contract:``,entry_fields:[{field_name:`email`}]}}],input:[{id:`1`,email:`test@pipe0.com`}]}],"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`}]}]},yI=.1,bI=[`level1`,`level2`,`level3`];function xI(e,t){let n=bI[t-1];if(n)return e[n]}function SI(e,t){for(let n=t;n>=1;n--){let t=xI(e,n);if(t)return{level:n,tier:t}}}function CI(e){let t=[];for(let n=1;n<=3;n++){let r=xI(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function wI(e){if(e.default<.1)return!1;let t=CI(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 TI(){let e=new Map;for(let t of Object.values(pj))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!wI(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:CI(i.credits),usedBy:[o]})}for(let t of Object.values(GA)){let{cost:n}=t;if(!n.allowManagedConnection||!wI(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:CI(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function EI(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=>EI(e,t))}}}function DI(e){switch(e.kind){case`field`:return e.field.resolvedName;case`optional`:return`${e.field.resolvedName} (optional)`;case`all`:return e.of.map(DI).join(` AND `);case`any`:return`(${e.of.map(DI).join(` OR `)})`}}function OI(e,t){let n=2,r=`${e}_${n}`;for(;t.has(r);)n++,r=`${e}_${n}`;return r}function kI({pipeId:e,availableFields:t,inputFieldAliases:n}){let r=pj[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?EI(a,n):a,s=o?Fc(o,i):!0,c=o?Ic(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 mj(r)){let t=i.has(e),n;t?(n=OI(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?DI(o):`(no inputs required)`,required_fields:c,missing_fields:l,output_fields:d,output_collisions:f}}const AI=[`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`],jI=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],MI=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})}),NI=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 PI(e){return!isNaN(e.getTime())}const FI=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of AI){let n=f(t,e,new Date(0));if(PI(n))return d(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),II=r.coerce.string().trim().transform(e=>{for(let t of jI){let n=f(e,t,new Date(0));if(PI(n))return d(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),LI=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`}),RI=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()),zI=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 BI(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return MI.parse(e);case`email`:return NI.parse(e);case`datetime`:return FI.parse(e);case`date`:return II.parse(e);case`decimal`:return LI.parse(e);case`int`:return RI.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return zI.parse(e);case`website_url`:return MI.parse(e);case`profile_url`:return MI.parse(e);case`zip_code`:return zI.parse(e);case`markdown`:case`phone`:case`text`:return zI.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 ${Sm(e)} into format ${t}: ${r.message}`):r}}function VI(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(Uj(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:BI(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 HI(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&&Uj(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:VI(e,n,i)}}}function UI({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{HI(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=WI(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,GI(e,r,n?.queue?.enabled),ZI(e,r),r.errors.length>0)throw new $(r.errors);return r}catch(e){throw e instanceof $?e:new $([Q.ResponseGenerationFailed({error:e})])}}function WI(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}=XI(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function GI(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 ${fy(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 ${fy(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}=Lc(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function KI({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 qI({status:e,config:t}){return t.queue?.enabled?t.queue.triggers?.status?.includes(e)??!1:!1}function JI({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return KI({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||qI({status:n.status,config:r})}function YI({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 XI(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=Hc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},u),ee=Uc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:te,isExpanded:ne,expandedValue:p}=Wj(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=Hj(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}=YI({inputHashKey:ae,configHashKey:ie,expandedValue:p});e&&s.push(d.id)}if(ne&&p.status!==`pending`&&JI({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}=YI({inputHashKey:ae,configHashKey:ie,expandedValue:p});e&&s.push(d.id)}JI({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=BI(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 ZI(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=Kj(i,r.value,r);r.widgets=At(Mt(r.widgets),e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function QI(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:Mt(a.widgets)}:i[t]=a.value;return i}function $I(e,t={}){return Object.values(e).map(e=>QI(e.fields,t))}function eL(e,t={}){return e.map(e=>QI(e.fields,t))}function tL(e,t={}){return QI(e.fields,t)}function nL(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=Wj(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function rL(e){let t=aa[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const iL=[`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`],aL=r.enum(iL);function oL(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 sL(e,t){let n={name:e,config:t};return mc.hashObject(n)}var cL=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 sL(this.searchId,this.payload)}};function lL(e){return e.split(`@`)[0]}function uL(e){return`/docs/search-catalog/${lL(e)}/${e.split(`@`)[1]}`}const dL=`companies:profiles:crustdata@1`,fL=g(`company_name`),pL=g(`company_website_url`),mL=g(`company_description`),hL=g(`company_profile_url`),gL=g(`crustdata_company_match`),_L=r.object({search_id:r.literal(dL),connector:Ji.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:Zs({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:fL.name}),[mL.name]:N({fieldName:mL.name}),[hL.name]:N({fieldName:hL.name}),[gL.name]:N({fieldName:gL.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:qs({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:qs({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=>{oL(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 cL{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_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return vL}},bL=_L,xL={searchId:dL,billableOperation:`companies-profiles-crustdata`,baseSearch:lL(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[G.COMPANY_PROFILES],docPath:uL(dL),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:dL,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:[]}}}},SL=`companies:profiles:exa@1`,CL=g(`company_name`),wL=g(`company_website_url`),TL=g(`company_description`),EL=g(`company_industry`),DL=g(`headcount`),OL=g(`exa_match_evaluation`),kL=r.object({search_id:r.literal(SL),connector:Ji.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({[CL.name]:N({fieldName:CL.name}),[wL.name]:N({fieldName:CL.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:Qs({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})})})}),AL={default:{input:[{fields:[]}]}},jL=class extends cL{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:`companies-profiles-exa`,baseSearch:lL(`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:[G.COMPANY_PROFILES],docPath:uL(SL),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:SL,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:``}}}},PL=`companies:profiles:icypeas@1`,FL=g(`company_industry`),IL=g(`company_name`),LL=g(`company_description`),RL=g(`company_website_url`),zL=g(`headcount`),BL=g(`company_region`),VL=g(`company_profile_url`),HL=g(`icypeas_company_match`),UL=r.object({search_id:r.literal(PL),connector:Ji.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:IL.name}),company_industry:N({fieldName:FL.name}),company_description:N({fieldName:LL.name}),company_website_url:N({fieldName:RL.name}),headcount:N({fieldName:zL.name}),company_region:N({fieldName:BL.name}),company_profile_url:N({fieldName:VL.name}),icypeas_company_match:N({fieldName:HL.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:qs({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=>{oL(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),WL={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},GL=class extends cL{searchId=PL;schema=UL;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[IL.name]:this.catalogOutput(IL),[FL.name]:this.catalogOutput(FL),[VL.name]:this.catalogOutput(VL),[RL.name]:this.catalogOutput(RL),[LL.name]:this.catalogOutput(LL),[zL.name]:this.catalogOutput(zL),[BL.name]:this.catalogOutput(BL),[HL.name]:this.catalogOutput(HL)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return WL}},KL=UL,qL={searchId:PL,billableOperation:`companies-profiles-icypeas`,baseSearch:lL(`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:[G.COMPANY_PROFILES],docPath:uL(PL),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:PL,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:[]}}}}},JL=`people:profiles:clado@1`,YL=g(`name`),XL=g(`job_title`),ZL=g(`company_name`),QL=g(`company_profile_url`),$L=g(`profile_url`),eR=g(`clado_person_match`),tR=r.object({search_id:r.literal(JL),connector:Ji.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({[YL.name]:N({fieldName:YL.name}),[XL.name]:N({fieldName:XL.name}),[QL.name]:N({fieldName:QL.name}),[ZL.name]:N({fieldName:ZL.name}),[$L.name]:N({fieldName:$L.name}),[eR.name]:N({fieldName:eR.name})})),filters:r.object({query:Qs({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})})})}),nR={default:{input:[{fields:[{outputField:`profile_url`}]}]}},rR=class extends cL{searchId=JL;schema=tR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[YL.name]:this.catalogOutput(YL),[XL.name]:this.catalogOutput(XL),[ZL.name]:this.catalogOutput(ZL),[$L.name]:this.catalogOutput($L),[QL.name]:this.catalogOutput(QL),[eR.name]:this.catalogOutput(eR)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return nR}},iR=tR,aR={searchId:JL,billableOperation:`people-profiles-clado`,baseSearch:Zn(`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:[G.PEOPLE_PROFILES],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_search`,creditsPerSearch:3},provider:`clado`,defaultPayload:{search_id:JL,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:``}}}},oR=`people:profiles:clado@2`,sR=g(`name`),cR=g(`job_title`),lR=g(`company_name`),uR=g(`company_profile_url`),dR=g(`profile_url`),fR=g(`clado_person_match_v2`),pR=r.object({search_id:r.literal(oR),connector:Ji.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:Zs({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({[sR.name]:N({fieldName:sR.name}),[cR.name]:N({fieldName:cR.name}),[uR.name]:N({fieldName:uR.name}),[lR.name]:N({fieldName:lR.name}),[dR.name]:N({fieldName:dR.name}),[fR.name]:N({fieldName:fR.name})})),filters:r.object({query:Qs({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`]})}),mR={default:{input:[{fields:[{outputField:`profile_url`}]}]}},hR=class extends cL{searchId=oR;schema=pR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[sR.name]:this.catalogOutput(sR),[cR.name]:this.catalogOutput(cR),[lR.name]:this.catalogOutput(lR),[dR.name]:this.catalogOutput(dR),[uR.name]:this.catalogOutput(uR),[fR.name]:this.catalogOutput(fR)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return mR}},gR=pR,_R={searchId:oR,billableOperation:`people-profiles-clado`,baseSearch:Zn(`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:oR,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:``}}}},vR=`people:employees:leadmagic@1`,yR=g(`name`),bR=g(`job_title`),xR=g(`company_website_url`),SR=g(`company_name`),CR=r.object({search_id:r.literal(vR),connector:Ji.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({[yR.name]:N({fieldName:yR.name}),[SR.name]:N({fieldName:SR.name}),[xR.name]:N({fieldName:xR.name}),[bR.name]:N({fieldName:bR.name})})),filters:r.object({company_website_url:Zs({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()})})}),wR={default:{input:[{fields:[{outputField:xR.name}]}]}},TR=class extends cL{searchId=vR;schema=CR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[yR.name]:this.catalogOutput(yR),[bR.name]:this.catalogOutput(bR),[xR.name]:this.catalogOutput(xR),[SR.name]:this.catalogOutput(SR)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return wR}},ER=CR,DR={searchId:vR,billableOperation:`people-employees-leadmagic`,baseSearch:lL(`people:employees:leadmagic@1`),label:`Employee finder`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search for employees of a company.`,tags:[G.PEOPLE_PROFILES],docPath:uL(vR),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:vR,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:``}}}},OR=`people:profiles:crustdata@1`,kR=g(`name`),AR=g(`company_website_url`),jR=g(`profile_url`),MR=g(`job_title`),NR=g(`crustdata_person_match`),PR=r.object({search_id:r.literal(OR),connector:Ji.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:Zs({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}).nullable(),output_fields:R(r.object({[kR.name]:N({fieldName:kR.name}),[AR.name]:N({fieldName:AR.name}),[jR.name]:N({fieldName:jR.name}),[MR.name]:N({fieldName:MR.name}),[NR.name]:N({fieldName:NR.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:Ws({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:Ws({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:Xs({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=>{oL(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),FR={default:{input:[{fields:[]}]}},IR=class extends cL{searchId=OR;schema=PR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[kR.name]:this.catalogOutput(kR),[AR.name]:this.catalogOutput(AR),[jR.name]:this.catalogOutput(jR),[MR.name]:this.catalogOutput(MR),[NR.name]:this.catalogOutput(NR)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return FR}},LR=PR,RR={searchId:OR,billableOperation:`people-profiles-crustdata`,baseSearch:lL(`people:profiles:crustdata@1`),label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[G.PEOPLE_PROFILES],docPath:uL(OR),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:OR,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:[]}}}},zR=`people:profiles:exa@1`,BR=g(`name`),VR=g(`profile_url`),HR=g(`job_title`),UR=g(`company_name`),WR=g(`company_region`),GR=g(`exa_match_evaluation`),KR=r.object({search_id:r.literal(zR),connector:Ji.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({[BR.name]:N({fieldName:BR.name}),[VR.name]:N({fieldName:VR.name}),[HR.name]:N({fieldName:HR.name}),[UR.name]:N({fieldName:UR.name}),[WR.name]:N({fieldName:WR.name}),[GR.name]:N({fieldName:GR.name})})),filters:r.object({query:Qs({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})})})}),qR={default:{input:[{fields:[]}]}},JR=class extends cL{searchId=zR;schema=KR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[BR.name]:this.catalogOutput(BR),[VR.name]:this.catalogOutput(VR),[HR.name]:this.catalogOutput(HR),[UR.name]:this.catalogOutput(UR),[WR.name]:this.catalogOutput(WR),[GR.name]:this.catalogOutput(GR)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return qR}},YR=KR,XR={searchId:zR,billableOperation:`people-profiles-exa`,baseSearch:lL(`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:[G.COMPANY_PROFILES],docPath:uL(zR),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:zR,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:``}}}},ZR=`people:profiles:icypeas@1`,QR=g(`name`),$R=g(`job_title`),ez=g(`profile_headline`),tz=g(`company_website_url`),nz=g(`company_profile_url`),rz=g(`profile_url`),iz=g(`icypeas_person_match`),az=r.object({search_id:r.literal(ZR),connector:Ji.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({[QR.name]:N({fieldName:QR.name}),[$R.name]:N({fieldName:$R.name}),[ez.name]:N({fieldName:ez.name}),[tz.name]:N({fieldName:tz.name}),[nz.name]:N({fieldName:nz.name}),[rz.name]:N({fieldName:rz.name}),[iz.name]:N({fieldName:iz.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=>{oL(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),oz={default:{input:[{fields:[{outputField:`profile_url`}]}]}},sz=class extends cL{searchId=ZR;schema=az;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[QR.name]:this.catalogOutput(QR),[$R.name]:this.catalogOutput($R),[ez.name]:this.catalogOutput(ez),[tz.name]:this.catalogOutput(tz),[nz.name]:this.catalogOutput(nz),[rz.name]:this.catalogOutput(rz),[iz.name]:this.catalogOutput(iz)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return oz}},cz=az,lz={searchId:ZR,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:lL(ZR),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:[G.PEOPLE_PROFILES],docPath:uL(ZR),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:ZR,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:[]}}}}},uz={"people:profiles:crustdata@1":IR,"companies:profiles:crustdata@1":yL,"companies:profiles:exa@1":jL,"people:profiles:exa@1":JR,"people:profiles:icypeas@1":sz,"companies:profiles:icypeas@1":GL,"people:employees:leadmagic@1":TR,"people:profiles:clado@1":rR,"people:profiles:clado@2":hR},dz={"people:profiles:crustdata@1":LR,"companies:profiles:crustdata@1":bL,"companies:profiles:exa@1":ML,"people:profiles:exa@1":YR,"people:profiles:icypeas@1":cz,"companies:profiles:icypeas@1":KL,"people:employees:leadmagic@1":ER,"people:profiles:clado@1":iR,"people:profiles:clado@2":gR},fz={"people:profiles:crustdata@1":RR,"companies:profiles:crustdata@1":xL,"companies:profiles:exa@1":NL,"people:profiles:exa@1":XR,"people:profiles:icypeas@1":lz,"companies:profiles:icypeas@1":qL,"people:employees:leadmagic@1":DR,"people:profiles:clado@1":aR,"people:profiles:clado@2":_R};function pz(e){return uz[e]}function mz(e){return dz[e]}function hz(e){return fz[e].defaultPayload}const gz=t.discriminatedUnion(`search_id`,Object.values(dz).map(e=>e)),_z=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=hz(e.search_id);return t?{...e,config:vt(e?.config||{},t.config)}:e},gz);function vz(e){return Object.keys(fz[e].defaultPayload.config.output_fields)}const yz=Ti,bz=t.object({value:di,status:ui,type:ci.optional(),format:Oi.nullable().optional(),resolved_by:Pi.nullable().optional(),widgets:wi.optional()}),xz=t.record(t.string(),bz.nullable()),Sz=t.object({search:t.object({ref:aL}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(yz),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()})}),Cz=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(xz),search_statuses:t.array(Sz),organizationId:t.string()}).openapi(`SearchesResponseSchema`),wz=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),Tz=wz.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),Ez=t.object({config:Tz.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(_z)}).openapi(`SearchesRequestSchema`);function Dz(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function Oz(){let e={};for(let t of Object.values(fz)){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=Dz(e.searchId);return Dz(t.searchId)-n})}),e}const kz=Oz();function Az(e){let t=[];for(let[n,r]of Object.entries(kz)){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:Dz(i.searchId)})}return t}function jz(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 vz(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:kz}}function Mz(e){return fz[e]}function Nz(e){let t=Mz(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function Pz(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e,is_default:!0}))}function Fz(e){return Pz(bj(e).allowedUserConnectionProviders)}function Iz(e){return Pz([aj(e).provider])}function Lz(e){return Pz([Mz(e).provider])}const Rz=[{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}],zz=new Map(Rz.map(e=>[e.id,e]));function Bz(e){return zz.get(e)}function Vz(){return Rz}const Hz={"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}}],"bucket:entries@1":[{search_id:`bucket:entries@1`,connector:{strategy:`first`,connections:[]},config:{bucket:`crm-contacts`,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 Uz(e,t,n){if(t==null)return{};try{let r=Qr(e,n)?.getStaticWidgets?.(t),i=Vj(n,t);return jt(At(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}var Wz=class extends gy{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function Gz(e){let t=[];for(let n of e){if(n instanceof cL){t.push(n);continue}let e=n.search_id,r=pz(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(_z.parse(n));t.push(i)}return t}function Kz(e){try{return Gz(e.searches)}catch(e){throw e instanceof Wz?e:new $([Q.ValidationFailed({error:e})])}}const qz=/[\\^$.+()|[\]{}]/g,Jz=new Map;function Yz(e){let t=Jz.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(qz,`\\$&`)}let r=RegExp(`^${n}$`);return Jz.set(e,r),r}function Xz(e,t){return Yz(t).test(e)}function Zz(e,t){if(!t||t.length===0)return!1;for(let n of t)if(Xz(e,n))return!0;return!1}function Qz(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!Zz(e,n)||r&&r.length>0&&Zz(e,r))}function $z(e,t){return Qz(e,t?.providers)}function eB(e,t){if(!t)return!0;if(!Qz(e,t.pipes))return!1;if(t.providers){let n=wj(e);if(n.length===0)return!0;if(!n.some(e=>$z(e,t)))return!1}return!0}function tB(e,t,n){return t?!(!Qz(e,t.searches)||n!==void 0&&!$z(n,t)):!0}function nB(e,t,n){return t?!(!Qz(e,t.searchesMulti)||n!==void 0&&!$z(n,t)):!0}function rB(e,t){return t?e.filter(e=>eB(e.pipeId,t)):e.slice()}function iB(e,t){return t?e.filter(e=>tB(e.searchId,t,e.provider)):e.slice()}function aB(e,t){return t?e.filter(e=>nB(e.searchId,t,e.provider)):e.slice()}function oB(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function sB(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function cB(e){return e.cost.allowManagedConnection?e.cost.credits.default:0}function lB(e){let t=Object.values(e.billableOperations).map(e=>e?.allowManagedConnection?e.credits.default:0);return t.length?Math.min(...t):0}function uB(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 dB(e){let t=zj(e);if(!t)return``;try{return te(t)||new URL(t).hostname}catch{return``}}const fB=[`http://`,`https://`,`mailto:`],pB=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function mB(e){return e?hB(e):[]}function hB(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&&pB.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=gB(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=gB(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:hB(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=gB(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:hB(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=gB(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:hB(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=gB(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=gB(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(fB.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:hB(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function gB(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(_B(e,r,n))return r;r+=1}return-1}function _B(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{oo as AI_MODELS,so as AI_MODEL_CATALOG,po as AI_MODEL_RAW_USD,wr as B2BPostMatchSchema,ze as BUCKET_TYPES,We as BucketClaimConfigSchema,Ge as BucketCounterConfigSchema,He as BucketFieldDefSchema,Ve as BucketFieldTypeSchema,Ue as BucketSchemaSchema,co as CREDIT_USD_VALUE,Be as CURRENT_BUCKET_TYPE_VERSION,zi as CatalogSchemaRefSchema,WP as ConciseFieldValueSchema,na as ConditionBlockSchema,st as ConditionEvaluationError,ot as ConditionFieldNotFoundError,Ui as ConditionOperatorsSchema,St as EffectAllSelectionSchema,xt as EffectRowsSelectionSchema,wt as EffectSelectionSchema,Ct as EffectWindowSelectionSchema,cF as EffectsRequestSchema,lF as EffectsResponseSchema,sF as EffectsRunStatusSchema,uF as EffectsValidateRequestSchema,fF as EffectsValidateResponseSchema,dF as EffectsValidateStepSchema,Ii as ExpandedFieldValueSchema,Vc as FIELD_PLACEHOLDERS,ki as FieldAnnotationSchema,Yj as FieldAnnotations,Ai as FieldAnnotationsSchema,ni as FieldNameSchema,Ei as FieldReasonSchema,di as FieldValueSchema,pI as FormStoreSchema,yI as HIGH_VOLUME_PRICING_MIN_CREDITS,Hi as JSONExtractSchema,fi as JSONMetaSchema,lo as MANAGED_TOKEN_MARGIN,lN as MANUAL_DEFAULT,Xi as NoConnectorSchema,mc as ObjectHasher,Ji as OptionalConnectorSchema,Ua as PIPE0_DEFAULT_API_KEY_METADATA_FLAG,Ha as PIPE0_DEFAULT_CONNECTION_PUBLIC_ID,ai as PIPE_IDS,tj as PaginationTypeSchema,Sr as PersonProfileFieldSchema,sw as PersonWorkemailWaterfall1Entry,ow as PersonWorkemailWaterfall1PayloadSchema,aw as PersonWorkemailWaterfall1PipeClass,U as Pipe,gy as Pipe0Error,oi as PipeIdSchema,vj as PipePayloadSchema,ia as PipeRunIfSchema,$ as PipelineValidationError,ii as PipesEnvironmentSchema,Ti as PipesErrorSchema,Bi as PipesFieldDefinitionSchema,Vi as PipesFieldDefinitionsSchema,Li as PipesInputSchema,Aj as PipesRequestConfigSchema,jj as PipesRequestSchema,kj as PipesResponseSchema,yj as ProcessedPipePayloadSchema,YA as ProcessedSearchPayloadSchema,_z as ProcessedSearchesPayloadSchema,oF as ProcessedSheetEffectPayloadSchema,ri as ProviderNameSchema,Di as RECORD_FIELD_FORMATS,si as RECORD_FIELD_TYPES,Oc as RESERVED_FIELD_NAMES,Wi as RUN_IF_OPERATOR_LABELS,Ki as RUN_IF_STATUS_OPERATORS,Gi as RUN_IF_VALUE_OPERATORS,sN as RUN_STATUS_OPTIONS,UP as RecordActionDetailSchema,Ni as RecordClaimedBySchema,KP as RecordDiffEntrySchema,Oi as RecordFieldFormatSchema,Fi as RecordFieldSchema,ui as RecordFieldStatusSchema,ci as RecordFieldTypeSchema,li as RecordIdSchema,Pi as RecordResolvedBySchema,Ri as RecordSchema,hy as RequestValidationError,Yi as RequiredConnectorSchema,Qi as RunIfStatusOperatorsSchema,$i as RunIfStatusValueSchema,Zi as RunIfValueOperatorsSchema,oN as RunStatusSchema,cN as SCHEDULED_DEFAULT,iL as SEARCHES_IDS,oD as SEARCH_IDS,nr as SENIORITY_LEVELS,yt as SHEET_EFFECT_IDS,lD as Search,ZA as SearchErrorSchema,sD as SearchIdSchema,qA as SearchPayloadSchema,XA as SearchRequestSchema,nj as SearchResponseSchema,QA as SearchResultFieldSchema,$A as SearchResultSchema,yz as SearchesErrorSchema,aL as SearchesIdSchema,gz as SearchesPayloadSchema,wz as SearchesRequestBaseConfigSchema,Ez as SearchesRequestSchema,Cz as SearchesResponseSchema,bz as SearchesResultFieldSchema,xz as SearchesResultSchema,cL as SearchesSearch,Sz as SearchesStatusSchema,V as SheetEffect,bt as SheetEffectIdSchema,iF as SheetEffectPayloadSchema,YP as SheetEffectStepSummarySchema,vF as SheetEffectValidationError,JP as SheetEffectsCountsSchema,qP as SheetEffectsDiffSchema,uo as TOKEN_BLOCK_SIZE_INPUT,fo as TOKEN_BLOCK_SIZE_OUTPUT,wm as TYPES_TO_FORMATS,wo as TokenBlockAccumulator,GP as UpdatedActionDetailSchema,ra as ValueConditionBlockSchema,uI as WidgetsByKindSchema,wi as WidgetsSchema,Mc as all,Ta as analyzeLiquidTemplate,kI as analyzePipeFit,io as and,Nc as any,Ej as assertUniqueBillableOperations,h as autocomplete,Tr as b2bPostMatchExample,Ke as bucketConfigSchemaFor,$e as bucketSchemaFieldNames,et as bucketSchemasEqual,Qe as bucketSlugValue,xo as buildAiModelTokenBillableOperations,Zj as buildDependencyGraph,Kc as buildInputRequirementFromTemplates,jF as buildResultColumns,bo as buildTokenNote,J as catalogInput,uB as chunkBySize,fc as cleanObject,zj as cleanUrl,Rj as cleanWebsiteUrl,Jc as collectConstantReferencesFromTemplates,ZF as collectPipeContextSelectFields,Ic as collectRequirementFields,nI as collectSearchContextSelectFields,qc as collectSecretReferencesFromTemplates,oI as collectSheetEffectContextSelectFields,Yz as compilePattern,VF as computeTenure,vt as configDefaults,vo as creditsPerBlock,it as decodeBucketContract,AF as dedupeColumnNames,qe as defaultBucketConfig,py as describeRequirement,rt as encodeBucketContract,kt as entityLogoFavicon,Ot as entityLogoProfessionalProfileUrl,fl as estimateGuardCredits,pt as evaluateConditionBlock,ls as extractFormMetadata,H as field,Zr as fieldBehaviorCatalog,Xr as fieldCatalog,fy as fieldNameStr,Hj as fieldTypeFromValue,QI as fieldsToObject,rB as filterPipeEntries,iB as filterSearchEntries,aB as filterSearchesEntries,nF as getAgentAllowedEffectIds,ho as getAiModelConnectionRequirements,mo as getAiModelProviders,So as getAiModelTokenBillingKeys,yo as getAiModelTokenCredits,go as getAllAiModelProviders,K as getBasePipeName,B as getBaseSheetEffectName,mj as getDefaultOutputFields,wj as getDefaultPipeProviders,cj as getDefaultSearchOutputFields,vz as getDefaultSearchesOutputFields,Pj as getDependentPipeNamesForInputProperty,Fj as getDependentPipeNamesForPipe,dB as getDomain,Wj as getExpansionState,Et as getFaviconUrlGoogle,g as getField,Qr as getFieldBehavior,bm as getFieldDisplayLabel,Kj as getFieldWidgets,sj as getInitialSearchTableData,Az as getInitialSearchesTableData,gF as getInitialSheetEffectTableData,Dj as getInitialTableData,Bc as getInputHash,Eo as getJsonMetaForFieldDef,cB as getLoweestSearchCreditAmount,sB as getLoweestSearchesCreditAmount,oB as getLowestPipeCreditAmount,lB as getLowestSheetEffectCreditAmount,ti as getOutputFieldInfoFromDef,xj as getPipeBillableOperationDef,_I as getPipeCategoryEntries,gI as getPipeCategoryEntry,hj as getPipeClass,zc as getPipeConfigHash,gj as getPipeDefaultPayload,q as getPipeDocsURI,bj as getPipeEntry,KF as getPipeFormMask,Nj as getPipeInstances,QF as getPipePayloadFormConfig,_j as getPipePayloadSchema,Sj as getPipeVersion,Z as getProviderBillableOperation,Yc as getProviderCreditsFromBillableOperations,rL as getProviderEntry,NF as getReadableFieldStatus,Pz as getSandboxConnections,Fz as getSandboxConnectionsForPipe,Iz as getSandboxConnectionsForSearch,Lz as getSandboxConnectionsForSearches,Vz as getSearchCategoryEntries,Bz as getSearchCategoryEntry,KA as getSearchClass,JA as getSearchDefaultPayload,aj as getSearchEntry,Uz as getSearchFieldWidgets,qF as getSearchFormMask,oP as getSearchInstance,tI as getSearchPayloadFormConfig,ej as getSearchPayloadSchema,lj as getSearchTableDataAggregates,rj as getSearchVersion,pz as getSearchesClass,hz as getSearchesDefaultPayload,Mz as getSearchesEntry,qj as getSearchesFieldWidgets,Gz as getSearchesInstances,mz as getSearchesPayloadSchema,jz as getSearchesTableDataAggregates,Dz as getSearchesVersion,xr as getSeniorityEmojiFromTitle,br as getSeniorityLevelFromTitle,_t as getSheetEffectCategoryEntries,gt as getSheetEffectCategoryEntry,$P as getSheetEffectClass,hc as getSheetEffectConfigHash,aF as getSheetEffectDefaultPayload,eF as getSheetEffectEntry,JF as getSheetEffectFormMask,OF as getSheetEffectInstance,aI as getSheetEffectPayloadFormConfig,tF as getSheetEffectPayloadSchema,Mj as getStartingCostPerPipesProvider,uj as getStartingCostPerSearchProvider,Nz as getStartingCostPerSearchesProvider,Oj as getTableDataAggregates,xI as getTier,Gj as getUnexpandedValue,Dt as ifDefined,z as inputFields,tL as inputFromRecord,eL as inputFromRecordArr,$I as inputFromRecords,sI as inputGuards,rF as isAgentAllowedEffect,ei as isCatalogField,Xn as isEmptyValue,$r as isFieldName,wI as isHighVolumeEligible,eB as isPipeAllowed,$z as isProviderAllowed,Fc as isRequirementMet,Lc as isRequirementSatisfiedByRecord,kc as isReservedFieldName,tB as isSearchAllowed,nB as isSearchesAllowed,_o as isTokenBilledOperations,Ga as joinConnectionString,TI as listHighVolumeEligibleOperations,CI as listTiers,dl as managedDefaultCreditOf,Ze as mappedBucketFieldNames,Zc as markRecordFieldAsComplete,el as markRecordFieldAsFailed,$c as markRecordFieldAsNoResult,Qc as markRecordFieldAsPending,nl as markRecordFieldAsProcessing,tl as markRecordFieldAsSkipped,Zz as matchesAny,Xz as matchesPattern,ss as mergeFormConfig,At as mergeWidgets,w as noConnectorInput,kF as normalizeColumnName,Pc as optional,C as optionalConnectorInput,ao as or,R as outputFields,wa as parseLiquidTemplate,va as parseOutputTagArgs,BI as parseRecordValueOrError,Ya as parseRelaxedObject,mB as parseRichText,Y as perUnit,Cr as personProfileMatchExample1,pj as pipeCatalog,mI as pipeCategoryCatalog,dj as pipeClassCatalog,fj as pipePayloadSchemaCatalog,js as pipesAsyncIncludeExcludeSelectInput,os as pipesConditionInput,Us as pipesContextSelectInput,Ns as pipesDateRangeInput,Ps as pipesDestinationFieldConfig,Ss as pipesFieldsSelectInput,Ts as pipesIncludeExcludeInput,As as pipesIncludeExcludeSelectInput,E as pipesInputField,Bs as pipesIntInput,Io as pipesJsonExtractionInput,Hs as pipesJsonSchemaField,Rs as pipesLLMSelectInput,ks as pipesLooseObjectInput,Es as pipesMultiCreateInput,zs as pipesMultiSelectInput,Vs as pipesNumberInput,O as pipesOptionalBooleanInput,Ds as pipesOrderedMultiCreateInput,k as pipesOutputField,_ as pipesPayloadRegistry,ds as pipesPromptInput,D as pipesProviderInput,Ms as pipesRangeInput,x as pipesRunIfInput,Ls as pipesSelectInput,vI as pipesSnippetCatalog,Os as pipesTaggedOrderedMultiCreateInput,S as pipesTaggedTextInput,fs as pipesTemplateInput,Fs as pipesTextInput,Is as pipesTextareaInput,W as placeholder,nL as processInputObjects,Ye as providedCreationName,Je as providedCreationPolicy,aa as providerCatalog,X as rateLimitRatioFallingProgression,_M as renameFieldInPipePayloads,Sa as renderLiquidTemplate,Ca as renderLiquidTemplateSync,ms as requiredConnectorInput,Xc as requirementToInputFields,my as requirementUnmetMessage,no as requiresConnection,ro as requiresField,GF as resolveFormMask,Xe as resolveMappingEntry,yF as runSheetEffectsValidation,uN as runStatusesToQueueConfig,GA as searchCatalog,Rz as searchCategoryCatalog,UA as searchClassCatalog,WA as searchPayloadSchemaCatalog,Hz as searchSnippetCatalog,I as searchesAsyncIncludeExcludeSelectInput,F as searchesAsyncMultiSelectInput,fz as searchesCatalog,uz as searchesClassCatalog,ec as searchesContextSelectInput,Js as searchesDateRangeInput,Ks as searchesExactRangeInput,j as searchesIncludeExcludeInput,M as searchesIncludeExcludeSelectInput,L as searchesIntInput,Gs as searchesMinMaxIntInput,A as searchesMultiCreateInput,P as searchesMultiSelectInput,tc as searchesNumberField,Ys as searchesOptionalBooleanInput,_s as searchesOptionalConnectorInput,Xs as searchesOptionalNullableBooleanInput,Ws as searchesOrderedMultiCreateInput,N as searchesOutputField,v as searchesPayloadRegistry,dz as searchesPayloadSchemaCatalog,qs as searchesRangeInput,gs as searchesRequiredConnectorInput,$s as searchesSelectInput,Zs as searchesTextInput,Qs as searchesTextareaField,rr as seniorityLevelSchema,QP as sheetEffectCatalog,mt as sheetEffectCategoryCatalog,XP as sheetEffectClassCatalog,ZP as sheetEffectPayloadSchemaCatalog,_F as sheetEffectSnippetCatalog,as as sheetEffectsConditionInput,lc as sheetEffectsContextSelectInput,Cs as sheetEffectsFieldsSelectInput,oc as sheetEffectsIntInput,uc as sheetEffectsLLMSelectInput,ac as sheetEffectsMultiSelectInput,T as sheetEffectsNoConnectorInput,cc as sheetEffectsOptionalBooleanInput,bs as sheetEffectsOptionalConnectorInput,sc as sheetEffectsOptionalIntInput,y as sheetEffectsPayloadRegistry,ys as sheetEffectsRequiredConnectorInput,dc as sheetEffectsSearchPayloadInput,ic as sheetEffectsSelectInput,ws as sheetEffectsSelectionInput,nc as sheetEffectsTextInput,rc as sheetEffectsTextareaInput,Cm as sortObjectKeys,Cj as sortPipeCatalogByBasePipe,ij as sortSearchCatalogByBaseSearch,Oz as sortSearchesCatalogByBaseSearch,mF as sortSheetEffectCatalogByBaseEffect,Wa as splitConnectionString,Re as staticAutocomplete,m as staticOptions,Sm as stringify,Mt as stripStaticWidgets,SF as summarizeEffectRun,BF as tagPrimaryCurrentEducation,jt as tagStaticWidgets,xm as testPrint,SI as tierAtOrBelow,Co as tokenEstimate,UI as transformIntoResponse,at as tryDecodeBucketContract,Xa as tryParseRelaxedObject,Qj as validatePipesOrError,Kz as validateSearches,xF 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:{merge_fields:[{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,write_fields:[{field_name:`field_name`}]}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"bucket:claim@1":[{config:{environment:`production`},pipes:[{pipe_id:`bucket:claim@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{bucket:`crm-contacts`,contract:``,entry_fields:[{field_name:`email`}],new_bucket_name:``,new_bucket_ttl_in_seconds:null,new_bucket_own_entry_behavior:`block`,new_bucket_missing_value_behavior:`proceed`,allow_bucket_creation:!0}}],input:[{id:`1`,email:`test@pipe0.com`}]}],"bucket:count@1":[{config:{environment:`production`},pipes:[{pipe_id:`bucket:count@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{bucket:`lead-router`,contract:``,entry_fields:[{field_name:`email`,entry_field:`lead`}],new_bucket_name:``,new_bucket_start:1,new_bucket_step:1,allow_bucket_creation:!0}}],input:[{id:`1`,email:`test@pipe0.com`}]}],"bucket:check@1":[{config:{environment:`production`},pipes:[{pipe_id:`bucket:check@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{bucket:`do-not-contact`,contract:``,entry_fields:[{field_name:`email`}]}}],input:[{id:`1`,email:`test@pipe0.com`}]}],"row:roundrobin:sheet@1":[{config:{environment:`production`},pipes:[{pipe_id:`row:roundrobin:sheet@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`sellers`,sheet_where:{logic:`and`,conditions:[{property:`value`,field_name:`segment`,operator:`eq`,value:`ENT`}]},sheet_unique_field:{field_name:`email`},sheet_copy_fields:[{field_name:`email`,type:`string`,format:`email`},{field_name:`name`,type:`string`}],sheet_weight_field:{field_name:``},counter_field:{field_name:`email`}}}],input:[{id:`1`,email:`lead@acme.com`}]}],"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`}]}]},kI=.1,AI=[`level1`,`level2`,`level3`];function jI(e,t){let n=AI[t-1];if(n)return e[n]}function MI(e,t){for(let n=t;n>=1;n--){let t=jI(e,n);if(t)return{level:n,tier:t}}}function NI(e){let t=[];for(let n=1;n<=3;n++){let r=jI(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function PI(e){if(e.default<.1)return!1;let t=NI(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 FI(){let e=new Map;for(let t of Object.values(Sj))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!PI(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:NI(i.credits),usedBy:[o]})}for(let t of Object.values(ej)){let{cost:n}=t;if(!n.allowManagedConnection||!PI(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:NI(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function II(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=>II(e,t))}}}function LI(e){switch(e.kind){case`field`:return e.field.resolvedName;case`optional`:return`${e.field.resolvedName} (optional)`;case`all`:return e.of.map(LI).join(` AND `);case`any`:return`(${e.of.map(LI).join(` OR `)})`}}function RI(e,t){let n=2,r=`${e}_${n}`;for(;t.has(r);)n++,r=`${e}_${n}`;return r}function zI({pipeId:e,availableFields:t,inputFieldAliases:n}){let r=Sj[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?II(a,n):a,s=o?Lc(o,i):!0,c=o?Rc(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 Cj(r)){let t=i.has(e),n;t?(n=RI(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?LI(o):`(no inputs required)`,required_fields:c,missing_fields:l,output_fields:d,output_collisions:f}}const BI=[`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`],VI=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],HI=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})}),UI=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 WI(e){return!isNaN(e.getTime())}const GI=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of BI){let n=f(t,e,new Date(0));if(WI(n))return d(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),KI=r.coerce.string().trim().transform(e=>{for(let t of VI){let n=f(e,t,new Date(0));if(WI(n))return d(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),qI=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`}),JI=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()),YI=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 XI(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return HI.parse(e);case`email`:return UI.parse(e);case`datetime`:return GI.parse(e);case`date`:return KI.parse(e);case`decimal`:return qI.parse(e);case`int`:return JI.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return YI.parse(e);case`website_url`:return HI.parse(e);case`profile_url`:return HI.parse(e);case`zip_code`:return YI.parse(e);case`markdown`:case`phone`:case`text`:return YI.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 ${wm(e)} into format ${t}: ${r.message}`):r}}function ZI(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(Qj(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:XI(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 QI(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&&Qj(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:ZI(e,n,i)}}}function $I({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{QI(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=eL(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,tL(e,r,n?.queue?.enabled),sL(e,r),r.errors.length>0)throw new $(r.errors);return r}catch(e){throw e instanceof $?e:new $([Q.ResponseGenerationFailed({error:e})])}}function eL(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}=oL(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function tL(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 ${my(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 ${my(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}=zc(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function nL({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 rL({status:e,config:t}){return t.queue?.enabled?t.queue.triggers?.status?.includes(e)??!1:!1}function iL({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return nL({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||rL({status:n.status,config:r})}function aL({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 oL(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=Wc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},u),ee=Gc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:te,isExpanded:ne,expandedValue:p}=$j(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=Zj(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}=aL({inputHashKey:ae,configHashKey:ie,expandedValue:p});e&&s.push(d.id)}if(ne&&p.status!==`pending`&&iL({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}=aL({inputHashKey:ae,configHashKey:ie,expandedValue:p});e&&s.push(d.id)}iL({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=XI(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 sL(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=tM(i,r.value,r);r.widgets=At(Mt(r.widgets),e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function cL(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:Mt(a.widgets)}:i[t]=a.value;return i}function lL(e,t={}){return Object.values(e).map(e=>cL(e.fields,t))}function uL(e,t={}){return e.map(e=>cL(e.fields,t))}function dL(e,t={}){return cL(e.fields,t)}function fL(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=$j(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function pL(e){let t=aa[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const mL=[`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`],hL=r.enum(mL);function gL(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 _L(e,t){let n={name:e,config:t};return gc.hashObject(n)}var vL=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 _L(this.searchId,this.payload)}};function yL(e){return e.split(`@`)[0]}function bL(e){return`/docs/search-catalog/${yL(e)}/${e.split(`@`)[1]}`}const xL=`companies:profiles:crustdata@1`,SL=g(`company_name`),CL=g(`company_website_url`),wL=g(`company_description`),TL=g(`company_profile_url`),EL=g(`crustdata_company_match`),DL=r.object({search_id:r.literal(xL),connector:Ji.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:$s({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}).nullable(),output_fields:R(r.object({[SL.name]:N({fieldName:SL.name}),[CL.name]:N({fieldName:SL.name}),[wL.name]:N({fieldName:wL.name}),[TL.name]:N({fieldName:TL.name}),[EL.name]:N({fieldName:EL.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:Ys({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:Ys({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=>{gL(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),OL={default:{input:[{fields:[]}]}},kL=class extends vL{searchId=xL;schema=DL;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[SL.name]:this.catalogOutput(SL),[CL.name]:this.catalogOutput(CL),[wL.name]:this.catalogOutput(wL),[TL.name]:this.catalogOutput(TL),[EL.name]:this.catalogOutput(EL)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return OL}},AL=DL,jL={searchId:xL,billableOperation:`companies-profiles-crustdata`,baseSearch:yL(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[G.COMPANY_PROFILES],docPath:bL(xL),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:xL,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:[]}}}},ML=`companies:profiles:exa@1`,NL=g(`company_name`),PL=g(`company_website_url`),FL=g(`company_description`),IL=g(`company_industry`),LL=g(`headcount`),RL=g(`exa_match_evaluation`),zL=r.object({search_id:r.literal(ML),connector:Ji.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({[NL.name]:N({fieldName:NL.name}),[PL.name]:N({fieldName:NL.name}),[FL.name]:N({fieldName:FL.name}),[IL.name]:N({fieldName:IL.name}),[LL.name]:N({fieldName:LL.name}),[RL.name]:N({fieldName:RL.name})})),filters:r.object({query:ec({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})})})}),BL={default:{input:[{fields:[]}]}},VL=class extends vL{searchId=ML;schema=zL;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[NL.name]:this.catalogOutput(NL),[PL.name]:this.catalogOutput(PL),[FL.name]:this.catalogOutput(FL),[IL.name]:this.catalogOutput(IL),[LL.name]:this.catalogOutput(LL),[RL.name]:this.catalogOutput(RL)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return BL}},HL=zL,UL={searchId:ML,billableOperation:`companies-profiles-exa`,baseSearch:yL(`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:[G.COMPANY_PROFILES],docPath:bL(ML),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:ML,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:``}}}},WL=`companies:profiles:icypeas@1`,GL=g(`company_industry`),KL=g(`company_name`),qL=g(`company_description`),JL=g(`company_website_url`),YL=g(`headcount`),XL=g(`company_region`),ZL=g(`company_profile_url`),QL=g(`icypeas_company_match`),$L=r.object({search_id:r.literal(WL),connector:Ji.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:KL.name}),company_industry:N({fieldName:GL.name}),company_description:N({fieldName:qL.name}),company_website_url:N({fieldName:JL.name}),headcount:N({fieldName:YL.name}),company_region:N({fieldName:XL.name}),company_profile_url:N({fieldName:ZL.name}),icypeas_company_match:N({fieldName:QL.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:Ys({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=>{gL(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),eR={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},tR=class extends vL{searchId=WL;schema=$L;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[KL.name]:this.catalogOutput(KL),[GL.name]:this.catalogOutput(GL),[ZL.name]:this.catalogOutput(ZL),[JL.name]:this.catalogOutput(JL),[qL.name]:this.catalogOutput(qL),[YL.name]:this.catalogOutput(YL),[XL.name]:this.catalogOutput(XL),[QL.name]:this.catalogOutput(QL)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return eR}},nR=$L,rR={searchId:WL,billableOperation:`companies-profiles-icypeas`,baseSearch:yL(`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:[G.COMPANY_PROFILES],docPath:bL(WL),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:WL,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:[]}}}}},iR=`people:profiles:clado@1`,aR=g(`name`),oR=g(`job_title`),sR=g(`company_name`),cR=g(`company_profile_url`),lR=g(`profile_url`),uR=g(`clado_person_match`),dR=r.object({search_id:r.literal(iR),connector:Ji.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({[aR.name]:N({fieldName:aR.name}),[oR.name]:N({fieldName:oR.name}),[cR.name]:N({fieldName:cR.name}),[sR.name]:N({fieldName:sR.name}),[lR.name]:N({fieldName:lR.name}),[uR.name]:N({fieldName:uR.name})})),filters:r.object({query:ec({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})})})}),fR={default:{input:[{fields:[{outputField:`profile_url`}]}]}},pR=class extends vL{searchId=iR;schema=dR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[aR.name]:this.catalogOutput(aR),[oR.name]:this.catalogOutput(oR),[sR.name]:this.catalogOutput(sR),[lR.name]:this.catalogOutput(lR),[cR.name]:this.catalogOutput(cR),[uR.name]:this.catalogOutput(uR)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return fR}},mR=dR,hR={searchId:iR,billableOperation:`people-profiles-clado`,baseSearch:Zn(`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:[G.PEOPLE_PROFILES],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_search`,creditsPerSearch:3},provider:`clado`,defaultPayload:{search_id:iR,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:``}}}},gR=`people:profiles:clado@2`,_R=g(`name`),vR=g(`job_title`),yR=g(`company_name`),bR=g(`company_profile_url`),xR=g(`profile_url`),SR=g(`clado_person_match_v2`),CR=r.object({search_id:r.literal(gR),connector:Ji.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:$s({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({[_R.name]:N({fieldName:_R.name}),[vR.name]:N({fieldName:vR.name}),[bR.name]:N({fieldName:bR.name}),[yR.name]:N({fieldName:yR.name}),[xR.name]:N({fieldName:xR.name}),[SR.name]:N({fieldName:SR.name})})),filters:r.object({query:ec({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`]})}),wR={default:{input:[{fields:[{outputField:`profile_url`}]}]}},TR=class extends vL{searchId=gR;schema=CR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[_R.name]:this.catalogOutput(_R),[vR.name]:this.catalogOutput(vR),[yR.name]:this.catalogOutput(yR),[xR.name]:this.catalogOutput(xR),[bR.name]:this.catalogOutput(bR),[SR.name]:this.catalogOutput(SR)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return wR}},ER=CR,DR={searchId:gR,billableOperation:`people-profiles-clado`,baseSearch:Zn(`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:gR,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:``}}}},OR=`people:employees:leadmagic@1`,kR=g(`name`),AR=g(`job_title`),jR=g(`company_website_url`),MR=g(`company_name`),NR=r.object({search_id:r.literal(OR),connector:Ji.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({[kR.name]:N({fieldName:kR.name}),[MR.name]:N({fieldName:MR.name}),[jR.name]:N({fieldName:jR.name}),[AR.name]:N({fieldName:AR.name})})),filters:r.object({company_website_url:$s({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()})})}),PR={default:{input:[{fields:[{outputField:jR.name}]}]}},FR=class extends vL{searchId=OR;schema=NR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[kR.name]:this.catalogOutput(kR),[AR.name]:this.catalogOutput(AR),[jR.name]:this.catalogOutput(jR),[MR.name]:this.catalogOutput(MR)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return PR}},IR=NR,LR={searchId:OR,billableOperation:`people-employees-leadmagic`,baseSearch:yL(`people:employees:leadmagic@1`),label:`Employee finder`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search for employees of a company.`,tags:[G.PEOPLE_PROFILES],docPath:bL(OR),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:OR,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:``}}}},RR=`people:profiles:crustdata@1`,zR=g(`name`),BR=g(`company_website_url`),VR=g(`profile_url`),HR=g(`job_title`),UR=g(`crustdata_person_match`),WR=r.object({search_id:r.literal(RR),connector:Ji.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:$s({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}).nullable(),output_fields:R(r.object({[zR.name]:N({fieldName:zR.name}),[BR.name]:N({fieldName:BR.name}),[VR.name]:N({fieldName:VR.name}),[HR.name]:N({fieldName:HR.name}),[UR.name]:N({fieldName:UR.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:Ks({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:Ks({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:Qs({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=>{gL(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),GR={default:{input:[{fields:[]}]}},KR=class extends vL{searchId=RR;schema=WR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[zR.name]:this.catalogOutput(zR),[BR.name]:this.catalogOutput(BR),[VR.name]:this.catalogOutput(VR),[HR.name]:this.catalogOutput(HR),[UR.name]:this.catalogOutput(UR)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return GR}},qR=WR,JR={searchId:RR,billableOperation:`people-profiles-crustdata`,baseSearch:yL(`people:profiles:crustdata@1`),label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[G.PEOPLE_PROFILES],docPath:bL(RR),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:RR,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:[]}}}},YR=`people:profiles:exa@1`,XR=g(`name`),ZR=g(`profile_url`),QR=g(`job_title`),$R=g(`company_name`),ez=g(`company_region`),tz=g(`exa_match_evaluation`),nz=r.object({search_id:r.literal(YR),connector:Ji.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({[XR.name]:N({fieldName:XR.name}),[ZR.name]:N({fieldName:ZR.name}),[QR.name]:N({fieldName:QR.name}),[$R.name]:N({fieldName:$R.name}),[ez.name]:N({fieldName:ez.name}),[tz.name]:N({fieldName:tz.name})})),filters:r.object({query:ec({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})})})}),rz={default:{input:[{fields:[]}]}},iz=class extends vL{searchId=YR;schema=nz;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[XR.name]:this.catalogOutput(XR),[ZR.name]:this.catalogOutput(ZR),[QR.name]:this.catalogOutput(QR),[$R.name]:this.catalogOutput($R),[ez.name]:this.catalogOutput(ez),[tz.name]:this.catalogOutput(tz)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return rz}},az=nz,oz={searchId:YR,billableOperation:`people-profiles-exa`,baseSearch:yL(`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:[G.COMPANY_PROFILES],docPath:bL(YR),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:YR,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:``}}}},sz=`people:profiles:icypeas@1`,cz=g(`name`),lz=g(`job_title`),uz=g(`profile_headline`),dz=g(`company_website_url`),fz=g(`company_profile_url`),pz=g(`profile_url`),mz=g(`icypeas_person_match`),hz=r.object({search_id:r.literal(sz),connector:Ji.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({[cz.name]:N({fieldName:cz.name}),[lz.name]:N({fieldName:lz.name}),[uz.name]:N({fieldName:uz.name}),[dz.name]:N({fieldName:dz.name}),[fz.name]:N({fieldName:fz.name}),[pz.name]:N({fieldName:pz.name}),[mz.name]:N({fieldName:mz.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=>{gL(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),gz={default:{input:[{fields:[{outputField:`profile_url`}]}]}},_z=class extends vL{searchId=sz;schema=hz;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[cz.name]:this.catalogOutput(cz),[lz.name]:this.catalogOutput(lz),[uz.name]:this.catalogOutput(uz),[dz.name]:this.catalogOutput(dz),[fz.name]:this.catalogOutput(fz),[pz.name]:this.catalogOutput(pz),[mz.name]:this.catalogOutput(mz)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return gz}},vz=hz,yz={searchId:sz,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:yL(sz),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:[G.PEOPLE_PROFILES],docPath:bL(sz),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:sz,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:[]}}}}},bz={"people:profiles:crustdata@1":KR,"companies:profiles:crustdata@1":kL,"companies:profiles:exa@1":VL,"people:profiles:exa@1":iz,"people:profiles:icypeas@1":_z,"companies:profiles:icypeas@1":tR,"people:employees:leadmagic@1":FR,"people:profiles:clado@1":pR,"people:profiles:clado@2":TR},xz={"people:profiles:crustdata@1":qR,"companies:profiles:crustdata@1":AL,"companies:profiles:exa@1":HL,"people:profiles:exa@1":az,"people:profiles:icypeas@1":vz,"companies:profiles:icypeas@1":nR,"people:employees:leadmagic@1":IR,"people:profiles:clado@1":mR,"people:profiles:clado@2":ER},Sz={"people:profiles:crustdata@1":JR,"companies:profiles:crustdata@1":jL,"companies:profiles:exa@1":UL,"people:profiles:exa@1":oz,"people:profiles:icypeas@1":yz,"companies:profiles:icypeas@1":rR,"people:employees:leadmagic@1":LR,"people:profiles:clado@1":hR,"people:profiles:clado@2":DR};function Cz(e){return bz[e]}function wz(e){return xz[e]}function Tz(e){return Sz[e].defaultPayload}const Ez=t.discriminatedUnion(`search_id`,Object.values(xz).map(e=>e)),Dz=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=Tz(e.search_id);return t?{...e,config:vt(e?.config||{},t.config)}:e},Ez);function Oz(e){return Object.keys(Sz[e].defaultPayload.config.output_fields)}const kz=Ti,Az=t.object({value:di,status:ui,type:ci.optional(),format:Oi.nullable().optional(),resolved_by:Pi.nullable().optional(),widgets:wi.optional()}),jz=t.record(t.string(),Az.nullable()),Mz=t.object({search:t.object({ref:hL}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(kz),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()})}),Nz=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(jz),search_statuses:t.array(Mz),organizationId:t.string()}).openapi(`SearchesResponseSchema`),Pz=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),Fz=Pz.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),Iz=t.object({config:Fz.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(Dz)}).openapi(`SearchesRequestSchema`);function Lz(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function Rz(){let e={};for(let t of Object.values(Sz)){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=Lz(e.searchId);return Lz(t.searchId)-n})}),e}const zz=Rz();function Bz(e){let t=[];for(let[n,r]of Object.entries(zz)){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:Lz(i.searchId)})}return t}function Vz(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 Oz(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:zz}}function Hz(e){return Sz[e]}function Uz(e){let t=Hz(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function Wz(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e,is_default:!0}))}function Gz(e){return Wz(kj(e).allowedUserConnectionProviders)}function Kz(e){return Wz([mj(e).provider])}function qz(e){return Wz([Hz(e).provider])}const Jz=[{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}],Yz=new Map(Jz.map(e=>[e.id,e]));function Xz(e){return Yz.get(e)}function Zz(){return Jz}const Qz={"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}}],"bucket:entries@1":[{search_id:`bucket:entries@1`,connector:{strategy:`first`,connections:[]},config:{bucket:`crm-contacts`,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 $z(e,t,n){if(t==null)return{};try{let r=Qr(e,n)?.getStaticWidgets?.(t),i=Xj(n,t);return jt(At(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}var eB=class extends vy{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function tB(e){let t=[];for(let n of e){if(n instanceof vL){t.push(n);continue}let e=n.search_id,r=Cz(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(Dz.parse(n));t.push(i)}return t}function nB(e){try{return tB(e.searches)}catch(e){throw e instanceof eB?e:new $([Q.ValidationFailed({error:e})])}}const rB=/[\\^$.+()|[\]{}]/g,iB=new Map;function aB(e){let t=iB.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(rB,`\\$&`)}let r=RegExp(`^${n}$`);return iB.set(e,r),r}function oB(e,t){return aB(t).test(e)}function sB(e,t){if(!t||t.length===0)return!1;for(let n of t)if(oB(e,n))return!0;return!1}function cB(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!sB(e,n)||r&&r.length>0&&sB(e,r))}function lB(e,t){return cB(e,t?.providers)}function uB(e,t){if(!t)return!0;if(!cB(e,t.pipes))return!1;if(t.providers){let n=Nj(e);if(n.length===0)return!0;if(!n.some(e=>lB(e,t)))return!1}return!0}function dB(e,t,n){return t?!(!cB(e,t.searches)||n!==void 0&&!lB(n,t)):!0}function fB(e,t,n){return t?!(!cB(e,t.searchesMulti)||n!==void 0&&!lB(n,t)):!0}function pB(e,t){return t?e.filter(e=>uB(e.pipeId,t)):e.slice()}function mB(e,t){return t?e.filter(e=>dB(e.searchId,t,e.provider)):e.slice()}function hB(e,t){return t?e.filter(e=>fB(e.searchId,t,e.provider)):e.slice()}function gB(e){return e.toLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean)}function _B(e){return e?e.flatMap(gB):[]}const vB={label:{prefix:100,exact:120},labelFirstWordBonus:40,keyword:{prefix:60,exact:70},tag:{prefix:40,exact:45},provider:{prefix:35,exact:40},id:{prefix:30,exact:35},description:{prefix:5,exact:6},exactLabelBonus:200},yB=vB;function bB(e){let t=gB(e.label);return{labelWords:t,keywordWords:_B(e.keywords),tagWords:_B(e.tags),providerWords:_B(e.providers),idWords:gB(e.id),descriptionWords:e.description?gB(e.description):[],normalizedLabel:t.join(` `)}}function xB(e,t,n){let r=0;for(let i of t){let t=i===e?n.exact:i.startsWith(e)?n.prefix:0;t>r&&(r=t)}return r}function SB(e,t){let n=0;for(let r=0;r<t.length;r++){let i=t[r],a=i===e?yB.label.exact:i.startsWith(e)?yB.label.prefix:0;a>0&&r===0&&(a+=yB.labelFirstWordBonus),a>n&&(n=a)}return n}function CB(e,t){let n=gB(t);if(n.length===0)return 0;let r=0;for(let t of n){let n=Math.max(SB(t,e.labelWords),xB(t,e.keywordWords,yB.keyword),xB(t,e.tagWords,yB.tag),xB(t,e.providerWords,yB.provider),xB(t,e.idWords,yB.id),xB(t,e.descriptionWords,yB.description));if(n===0)return 0;r+=n}return e.normalizedLabel===n.join(` `)&&(r+=yB.exactLabelBonus),r}function wB(e){return e.keywords}function TB(e){let t=new Set(e.deprecatedProviders),n=Array.from(new Set([...e.managedProviders,...e.allowedUserConnectionProviders])).filter(e=>!t.has(e));return bB({label:e.label,id:e.pipeId,keywords:wB(e),tags:e.tags,providers:n,description:e.description})}function EB(e){return bB({label:e.label,id:e.searchId,keywords:wB(e),tags:e.tags,providers:[e.provider],description:e.description})}function DB(e){return bB({label:e.label,id:e.searchId,keywords:wB(e),tags:e.tags,providers:[e.provider],description:e.description})}function OB(e){return bB({label:e.label,id:e.effectId,keywords:wB(e),tags:e.tags,providers:Array.from(new Set([...e.managedProviders,...e.allowedUserConnectionProviders])),description:e.description})}function kB(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function AB(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function jB(e){return e.cost.allowManagedConnection?e.cost.credits.default:0}function MB(e){let t=Object.values(e.billableOperations).map(e=>e?.allowManagedConnection?e.credits.default:0);return t.length?Math.min(...t):0}function NB(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 PB(e){let t=Jj(e);if(!t)return``;try{return te(t)||new URL(t).hostname}catch{return``}}const FB=[`http://`,`https://`,`mailto:`],IB=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function LB(e){return e?RB(e):[]}function RB(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&&IB.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=zB(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=zB(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:RB(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=zB(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:RB(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=zB(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:RB(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=zB(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=zB(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(FB.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:RB(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function zB(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(BB(e,r,n))return r;r+=1}return-1}function BB(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{oo as AI_MODELS,so as AI_MODEL_CATALOG,po as AI_MODEL_RAW_USD,wr as B2BPostMatchSchema,ze as BUCKET_TYPES,We as BucketClaimConfigSchema,Ge as BucketCounterConfigSchema,He as BucketFieldDefSchema,Ve as BucketFieldTypeSchema,Ue as BucketSchemaSchema,vB as CATALOG_SEARCH_WEIGHTS,co as CREDIT_USD_VALUE,Be as CURRENT_BUCKET_TYPE_VERSION,zi as CatalogSchemaRefSchema,$P as ConciseFieldValueSchema,na as ConditionBlockSchema,st as ConditionEvaluationError,ot as ConditionFieldNotFoundError,Ui as ConditionOperatorsSchema,St as EffectAllSelectionSchema,xt as EffectRowsSelectionSchema,wt as EffectSelectionSchema,Ct as EffectWindowSelectionSchema,_F as EffectsRequestSchema,vF as EffectsResponseSchema,gF as EffectsRunStatusSchema,yF as EffectsValidateRequestSchema,xF as EffectsValidateResponseSchema,bF as EffectsValidateStepSchema,Ii as ExpandedFieldValueSchema,Uc as FIELD_PLACEHOLDERS,ki as FieldAnnotationSchema,iM as FieldAnnotations,Ai as FieldAnnotationsSchema,ni as FieldNameSchema,Ei as FieldReasonSchema,di as FieldValueSchema,CI as FormStoreSchema,kI as HIGH_VOLUME_PRICING_MIN_CREDITS,Hi as JSONExtractSchema,fi as JSONMetaSchema,lo as MANAGED_TOKEN_MARGIN,vN as MANUAL_DEFAULT,Xi as NoConnectorSchema,gc as ObjectHasher,Ji as OptionalConnectorSchema,Ua as PIPE0_DEFAULT_API_KEY_METADATA_FLAG,Ha as PIPE0_DEFAULT_CONNECTION_PUBLIC_ID,ai as PIPE_IDS,uj as PaginationTypeSchema,Sr as PersonProfileFieldSchema,lw as PersonWorkemailWaterfall1Entry,cw as PersonWorkemailWaterfall1PayloadSchema,sw as PersonWorkemailWaterfall1PipeClass,U as Pipe,vy as Pipe0Error,oi as PipeIdSchema,Dj as PipePayloadSchema,ia as PipeRunIfSchema,$ as PipelineValidationError,ii as PipesEnvironmentSchema,Ti as PipesErrorSchema,Bi as PipesFieldDefinitionSchema,Vi as PipesFieldDefinitionsSchema,Li as PipesInputSchema,zj as PipesRequestConfigSchema,Bj as PipesRequestSchema,Rj as PipesResponseSchema,Oj as ProcessedPipePayloadSchema,ij as ProcessedSearchPayloadSchema,Dz as ProcessedSearchesPayloadSchema,hF as ProcessedSheetEffectPayloadSchema,ri as ProviderNameSchema,Di as RECORD_FIELD_FORMATS,si as RECORD_FIELD_TYPES,Ac as RESERVED_FIELD_NAMES,Wi as RUN_IF_OPERATOR_LABELS,Ki as RUN_IF_STATUS_OPERATORS,Gi as RUN_IF_VALUE_OPERATORS,gN as RUN_STATUS_OPTIONS,QP as RecordActionDetailSchema,Ni as RecordClaimedBySchema,tF as RecordDiffEntrySchema,Oi as RecordFieldFormatSchema,Fi as RecordFieldSchema,ui as RecordFieldStatusSchema,ci as RecordFieldTypeSchema,li as RecordIdSchema,Pi as RecordResolvedBySchema,Ri as RecordSchema,_y as RequestValidationError,Yi as RequiredConnectorSchema,Qi as RunIfStatusOperatorsSchema,$i as RunIfStatusValueSchema,Zi as RunIfValueOperatorsSchema,hN as RunStatusSchema,_N as SCHEDULED_DEFAULT,mL as SEARCHES_IDS,hD as SEARCH_IDS,nr as SENIORITY_LEVELS,yt as SHEET_EFFECT_IDS,vD as Search,oj as SearchErrorSchema,gD as SearchIdSchema,nj as SearchPayloadSchema,aj as SearchRequestSchema,dj as SearchResponseSchema,sj as SearchResultFieldSchema,cj as SearchResultSchema,kz as SearchesErrorSchema,hL as SearchesIdSchema,Ez as SearchesPayloadSchema,Pz as SearchesRequestBaseConfigSchema,Iz as SearchesRequestSchema,Nz as SearchesResponseSchema,Az as SearchesResultFieldSchema,jz as SearchesResultSchema,vL as SearchesSearch,Mz as SearchesStatusSchema,V as SheetEffect,bt as SheetEffectIdSchema,pF as SheetEffectPayloadSchema,iF as SheetEffectStepSummarySchema,DF as SheetEffectValidationError,rF as SheetEffectsCountsSchema,nF as SheetEffectsDiffSchema,uo as TOKEN_BLOCK_SIZE_INPUT,fo as TOKEN_BLOCK_SIZE_OUTPUT,Em as TYPES_TO_FORMATS,wo as TokenBlockAccumulator,eF as UpdatedActionDetailSchema,ra as ValueConditionBlockSchema,bI as WidgetsByKindSchema,wi as WidgetsSchema,Pc as all,Ta as analyzeLiquidTemplate,zI as analyzePipeFit,io as and,Fc as any,Fj as assertUniqueBillableOperations,h as autocomplete,Tr as b2bPostMatchExample,Ke as bucketConfigSchemaFor,$e as bucketSchemaFieldNames,et as bucketSchemasEqual,Qe as bucketSlugValue,xo as buildAiModelTokenBillableOperations,bB as buildCatalogSearchTarget,oM as buildDependencyGraph,Jc as buildInputRequirementFromTemplates,BF as buildResultColumns,bo as buildTokenNote,J as catalogInput,NB as chunkBySize,mc as cleanObject,Jj as cleanUrl,qj as cleanWebsiteUrl,Xc as collectConstantReferencesFromTemplates,sI as collectPipeContextSelectFields,Rc as collectRequirementFields,fI as collectSearchContextSelectFields,Yc as collectSecretReferencesFromTemplates,gI as collectSheetEffectContextSelectFields,aB as compilePattern,XF as computeTenure,vt as configDefaults,vo as creditsPerBlock,it as decodeBucketContract,zF as dedupeColumnNames,qe as defaultBucketConfig,hy as describeRequirement,rt as encodeBucketContract,kt as entityLogoFavicon,Ot as entityLogoProfessionalProfileUrl,ml as estimateGuardCredits,pt as evaluateConditionBlock,ls as extractFormMetadata,H as field,Zr as fieldBehaviorCatalog,Xr as fieldCatalog,my as fieldNameStr,Zj as fieldTypeFromValue,cL as fieldsToObject,pB as filterPipeEntries,mB as filterSearchEntries,hB as filterSearchesEntries,dF as getAgentAllowedEffectIds,ho as getAiModelConnectionRequirements,mo as getAiModelProviders,So as getAiModelTokenBillingKeys,yo as getAiModelTokenCredits,go as getAllAiModelProviders,K as getBasePipeName,B as getBaseSheetEffectName,Cj as getDefaultOutputFields,Nj as getDefaultPipeProviders,_j as getDefaultSearchOutputFields,Oz as getDefaultSearchesOutputFields,Uj as getDependentPipeNamesForInputProperty,Wj as getDependentPipeNamesForPipe,PB as getDomain,$j as getExpansionState,Et as getFaviconUrlGoogle,g as getField,Qr as getFieldBehavior,Sm as getFieldDisplayLabel,tM as getFieldWidgets,gj as getInitialSearchTableData,Bz as getInitialSearchesTableData,TF as getInitialSheetEffectTableData,Ij as getInitialTableData,Hc as getInputHash,Eo as getJsonMetaForFieldDef,jB as getLoweestSearchCreditAmount,AB as getLoweestSearchesCreditAmount,kB as getLowestPipeCreditAmount,MB as getLowestSheetEffectCreditAmount,ti as getOutputFieldInfoFromDef,Aj as getPipeBillableOperationDef,DI as getPipeCategoryEntries,EI as getPipeCategoryEntry,wj as getPipeClass,Vc as getPipeConfigHash,Tj as getPipeDefaultPayload,q as getPipeDocsURI,kj as getPipeEntry,tI as getPipeFormMask,Hj as getPipeInstances,cI as getPipePayloadFormConfig,Ej as getPipePayloadSchema,TB as getPipeSearchTarget,jj as getPipeVersion,Z as getProviderBillableOperation,Zc as getProviderCreditsFromBillableOperations,pL as getProviderEntry,HF as getReadableFieldStatus,Wz as getSandboxConnections,Gz as getSandboxConnectionsForPipe,Kz as getSandboxConnectionsForSearch,qz as getSandboxConnectionsForSearches,Zz as getSearchCategoryEntries,Xz as getSearchCategoryEntry,tj as getSearchClass,rj as getSearchDefaultPayload,mj as getSearchEntry,$z as getSearchFieldWidgets,nI as getSearchFormMask,hP as getSearchInstance,dI as getSearchPayloadFormConfig,lj as getSearchPayloadSchema,EB as getSearchSearchTarget,vj as getSearchTableDataAggregates,fj as getSearchVersion,Cz as getSearchesClass,Tz as getSearchesDefaultPayload,Hz as getSearchesEntry,nM as getSearchesFieldWidgets,tB as getSearchesInstances,wz as getSearchesPayloadSchema,DB as getSearchesSearchTarget,Vz as getSearchesTableDataAggregates,Lz as getSearchesVersion,xr as getSeniorityEmojiFromTitle,br as getSeniorityLevelFromTitle,_t as getSheetEffectCategoryEntries,gt as getSheetEffectCategoryEntry,cF as getSheetEffectClass,_c as getSheetEffectConfigHash,mF as getSheetEffectDefaultPayload,lF as getSheetEffectEntry,rI as getSheetEffectFormMask,LF as getSheetEffectInstance,hI as getSheetEffectPayloadFormConfig,uF as getSheetEffectPayloadSchema,OB as getSheetEffectSearchTarget,Vj as getStartingCostPerPipesProvider,yj as getStartingCostPerSearchProvider,Uz as getStartingCostPerSearchesProvider,Lj as getTableDataAggregates,jI as getTier,eM as getUnexpandedValue,Dt as ifDefined,z as inputFields,dL as inputFromRecord,uL as inputFromRecordArr,lL as inputFromRecords,_I as inputGuards,fF as isAgentAllowedEffect,ei as isCatalogField,Xn as isEmptyValue,$r as isFieldName,PI as isHighVolumeEligible,uB as isPipeAllowed,lB as isProviderAllowed,Lc as isRequirementMet,zc as isRequirementSatisfiedByRecord,jc as isReservedFieldName,dB as isSearchAllowed,fB as isSearchesAllowed,_o as isTokenBilledOperations,Ga as joinConnectionString,FI as listHighVolumeEligibleOperations,NI as listTiers,pl as managedDefaultCreditOf,Ze as mappedBucketFieldNames,$c as markRecordFieldAsComplete,nl as markRecordFieldAsFailed,tl as markRecordFieldAsNoResult,el as markRecordFieldAsPending,il as markRecordFieldAsProcessing,rl as markRecordFieldAsSkipped,sB as matchesAny,oB as matchesPattern,ss as mergeFormConfig,At as mergeWidgets,w as noConnectorInput,RF as normalizeColumnName,Ic as optional,C as optionalConnectorInput,ao as or,R as outputFields,wa as parseLiquidTemplate,va as parseOutputTagArgs,XI as parseRecordValueOrError,Ya as parseRelaxedObject,LB as parseRichText,Y as perUnit,Cr as personProfileMatchExample1,Sj as pipeCatalog,wI as pipeCategoryCatalog,bj as pipeClassCatalog,xj as pipePayloadSchemaCatalog,Ns as pipesAsyncIncludeExcludeSelectInput,os as pipesConditionInput,Gs as pipesContextSelectInput,Fs as pipesDateRangeInput,Is as pipesDestinationFieldConfig,ws as pipesFieldSelectInput,Ss as pipesFieldsSelectInput,Ds as pipesIncludeExcludeInput,Ms as pipesIncludeExcludeSelectInput,E as pipesInputField,Hs as pipesIntInput,Io as pipesJsonExtractionInput,Ws as pipesJsonSchemaField,Bs as pipesLLMSelectInput,js as pipesLooseObjectInput,Os as pipesMultiCreateInput,Vs as pipesMultiSelectInput,Us as pipesNumberInput,O as pipesOptionalBooleanInput,ks as pipesOrderedMultiCreateInput,k as pipesOutputField,_ as pipesPayloadRegistry,ds as pipesPromptInput,D as pipesProviderInput,Ps as pipesRangeInput,x as pipesRunIfInput,zs as pipesSelectInput,OI as pipesSnippetCatalog,As as pipesTaggedOrderedMultiCreateInput,S as pipesTaggedTextInput,fs as pipesTemplateInput,Ls as pipesTextInput,Rs as pipesTextareaInput,Cs as pipesTypedFieldsSelectInput,W as placeholder,fL as processInputObjects,iT as projectOptionsDef,rT as projectScopedSheetOptionsDef,Ye as providedCreationName,Je as providedCreationPolicy,aa as providerCatalog,X as rateLimitRatioFallingProgression,EM as renameFieldInPipePayloads,Sa as renderLiquidTemplate,Ca as renderLiquidTemplateSync,ms as requiredConnectorInput,Qc as requirementToInputFields,gy as requirementUnmetMessage,no as requiresConnection,ro as requiresField,eI as resolveFormMask,Xe as resolveMappingEntry,eT as roundrobinBucketSlug,$w as roundrobinFilterKey,OF as runSheetEffectsValidation,yN as runStatusesToQueueConfig,CB as scoreCatalogSearch,ej as searchCatalog,Jz as searchCategoryCatalog,QA as searchClassCatalog,$A as searchPayloadSchemaCatalog,Qz as searchSnippetCatalog,I as searchesAsyncIncludeExcludeSelectInput,F as searchesAsyncMultiSelectInput,Sz as searchesCatalog,bz as searchesClassCatalog,nc as searchesContextSelectInput,Xs as searchesDateRangeInput,Js as searchesExactRangeInput,j as searchesIncludeExcludeInput,M as searchesIncludeExcludeSelectInput,L as searchesIntInput,qs as searchesMinMaxIntInput,A as searchesMultiCreateInput,P as searchesMultiSelectInput,rc as searchesNumberField,Zs as searchesOptionalBooleanInput,_s as searchesOptionalConnectorInput,Qs as searchesOptionalNullableBooleanInput,Ks as searchesOrderedMultiCreateInput,N as searchesOutputField,v as searchesPayloadRegistry,xz as searchesPayloadSchemaCatalog,Ys as searchesRangeInput,gs as searchesRequiredConnectorInput,tc as searchesSelectInput,$s as searchesTextInput,ec as searchesTextareaField,rr as seniorityLevelSchema,sT as sheetColumnsOptionsDef,sF as sheetEffectCatalog,mt as sheetEffectCategoryCatalog,aF as sheetEffectClassCatalog,oF as sheetEffectPayloadSchemaCatalog,EF as sheetEffectSnippetCatalog,as as sheetEffectsConditionInput,dc as sheetEffectsContextSelectInput,Ts as sheetEffectsFieldsSelectInput,cc as sheetEffectsIntInput,fc as sheetEffectsLLMSelectInput,sc as sheetEffectsMultiSelectInput,T as sheetEffectsNoConnectorInput,uc as sheetEffectsOptionalBooleanInput,bs as sheetEffectsOptionalConnectorInput,lc as sheetEffectsOptionalIntInput,y as sheetEffectsPayloadRegistry,ys as sheetEffectsRequiredConnectorInput,pc as sheetEffectsSearchPayloadInput,oc as sheetEffectsSelectInput,Es as sheetEffectsSelectionInput,ic as sheetEffectsTextInput,ac as sheetEffectsTextareaInput,nT as sheetOptionsDef,Tm as sortObjectKeys,Mj as sortPipeCatalogByBasePipe,pj as sortSearchCatalogByBaseSearch,Rz as sortSearchesCatalogByBaseSearch,CF as sortSheetEffectCatalogByBaseEffect,Wa as splitConnectionString,Re as staticAutocomplete,m as staticOptions,wm as stringify,Mt as stripStaticWidgets,jF as summarizeEffectRun,YF as tagPrimaryCurrentEducation,jt as tagStaticWidgets,Cm as testPrint,MI as tierAtOrBelow,Co as tokenEstimate,$I as transformIntoResponse,at as tryDecodeBucketContract,Xa as tryParseRelaxedObject,sM as validatePipesOrError,nB as validateSearches,AF as validateSheetEffectsOrError,Q as validationErrorMessages};
|