@pipe0/base 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -70,35 +70,35 @@ How do you...`]}},crustdata_post_list:{label:`Crustdata Post list`,type:`json`,f
70
70
 
71
71
  …`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[Zm.name]:k({fieldName:Zm.name})}))})}),$m={"email-send-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},eh=class extends U{pipeId=Xm;payload;payloadSchema=Qm;billableOperations=$m;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`email-send-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 Hm(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[Zm.name]:this.catalogOutput(Zm)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},th=Qm,nh={pipeId:Xm,basePipe:W(Xm),label:`Send email with Resend`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Resend.`,detailed_description:"Send an email via Resend. From, To, Reply-To, Subject and Body are templated config fields — reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Resend vault connection (call list_connections to find one).",tags:[B.EMAIL],docPath:G(Xm),billableOperations:$m,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Xm,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},rh=`email:validate:zerobounce@1`,ih=_(`email`),ah=_(`zerobounce_validation_status`),oh=_(`zerobounce_validation_match`),sh=r.object({pipe_id:r.literal(rh),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[ih.name]:E({fieldName:ih.name})})),output_fields:R(r.object({[oh.name]:k({fieldName:oh.name}),[ah.name]:k({fieldName:ah.name})}))}).optional()}),ch=e=>V(K(ih,e)),lh={"validate-email-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:.3,mode:`always`}},uh=class extends U{pipeId=rh;payload;payloadSchema=sh;billableOperations=lh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`validate-email-zerobounce`]}getInputRequirement(){return ch(this.payload.config)}getRawOutputFields(){return{[ah.name]:this.catalogOutput(ah),[oh.name]:this.catalogOutput(oh)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},dh=sh,fh={pipeId:rh,basePipe:W(rh),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:[B.EMAIL],docPath:G(rh),billableOperations:lh,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:ch(null),defaultPayload:{pipe_id:rh,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},ph={title:`Software Engineer, CEO, ...`,seniority:`C-Suite, Senior, ...`,department:`Consulting, Finance, ...`,certification:`CISSP, AWS, ...`,crunchbase_category:`3D Printing, Big Date, ...`,honor:`Cum Laude, 40 Under 40, ...`,field_of_study:`Engineering, Computer Science, ...`,degree_name:`Bachelor of Science, ...`,extracurricular:`Athelete, Debate Team, ...`,job_function:`Accounting, Advertising, ...`,location:`USA, Germany, France, ...`,company_name:`Google, Anthropic, ...`,company_domain:`google.com, openai.com, ...`,company_profile_keyword:`B2B, Software, ...`,headline_keywords:`Founder, JavaScript, ...`,profile_keywords:`Coach, Scrum, ...`,languages:`German, English, ...`,languages_1:`Spanish, Italian, ...`,skills:`TypeScript, Playwright, ...`,industry:`IT, Agriculture, ...`,investor:`a16z, Inside Partners, ...`,school:`MIT, Harvard, ...`,prompt:`Enter prompt here...`,template:`Enter template here...`};function Z(e){return ph[e]}const mh=`email:write@1`,hh=ti(`write-email`),gh=_(`email_subject`),_h=_(`email_body`),vh=r.object({pipe_id:r.literal(mh),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:Z(`prompt`),groupPath:`config.prompt`,required:!0}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:hh}),signature:ia({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:aa({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({[gh.name]:k({fieldName:gh.name}),[_h.name]:k({fieldName:_h.name})}))})}),yh=class extends U{pipeId=mh;payload;payloadSchema=vh;billableOperations=hh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ni(this.payload.config.model)}estimateBillableOperations(){return[ri(this.payload.config.model,`write-email`)]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[gh.name]:this.catalogOutput(gh),[_h.name]:this.catalogOutput(_h)}}getConnectionsRequirements(){return ii(this.payload.config.model)}},bh=vh,xh={pipeId:mh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(mh),label:`Email writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing emails.`,detailed_description:`AI email composer. Outputs: email_subject, email_body. Pair with email:send:gmail@1 or email:send:resend@1 to send the composed email. Requires 'email' field in input records for the sender pipe.`,tags:[B.AI],docPath:G(mh),defaultInputRequirement:null,billableOperations:hh,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:mh,connector:null,run_if:null,config:{template:``,output_fields:{email_body:{alias:``,enabled:!0},email_subject:{alias:``,enabled:!0}},persona:`sales`,model:`openai-gpt-latest`,signature:``}}},Sh=`field:domainify@1`,Ch=_(`url_input`),wh=_(`domain`),Th=r.object({pipe_id:r.literal(Sh),run_if:S(),connector:T(),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})}))}).optional()}),Eh=e=>V(K(Ch,e)),Dh={"field-domainify-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},Oh=class extends U{pipeId=Sh;payload;payloadSchema=Th;billableOperations=Dh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Eh(this.payload.config)}getRawOutputFields(){return{[wh.name]:this.catalogOutput(wh)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},kh=Th,Ah={pipeId:Sh,basePipe:W(Sh),label:`Extract domain`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Transform URL input into a domain. Example: 'https://go.com' to 'go.com'.`,tags:[B.LOGIC,B.FIELDS],docPath:G(Sh),billableOperations:Dh,defaultInputRequirement:Eh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Sh,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},jh=`field:slugify@1`,Mh=_(`string_input`),Nh=_(`slugified`),Ph=r.object({pipe_id:r.literal(jh),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Mh.name]:E({fieldName:Mh.name})})),output_fields:R(r.object({[Nh.name]:k({fieldName:Nh.name})}))}).optional()}),Fh=e=>V(K(Mh,e)),Ih={"field-slugify-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},Lh=class extends U{pipeId=jh;payload;payloadSchema=Ph;billableOperations=Ih;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Fh(this.payload.config)}getRawOutputFields(){return{[Nh.name]:this.catalogOutput(Nh)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Rh=Ph,zh={pipeId:jh,basePipe:W(jh),label:`Slugify field`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Strip a field value of characters not commonly found in slugs.`,tags:[B.LOGIC,B.FIELDS],docPath:G(jh),billableOperations:Ih,defaultInputRequirement:Fh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:jh,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function Bh({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function Vh(e){switch(e.kind){case`field`:return Bh(e.field);case`optional`:return`[optional ${Bh(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?Vh(e.of[0]):`(${e.of.map(Vh).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?Vh(e.of[0]):`(${e.of.map(Vh).join(` OR `)})`}}function Hh(e){return`Pipe input requirement is not satisfied: ${Vh(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var Uh=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})=>({code:`RequirementUnmet`,message:Hh(e)}),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 ${Bh(t)} to pipeline because it already exists. Try renaming it.`}),InputDataDoesNotMatchOutputField:({index:e,resolvedName:t,type:n,inputValueType:r})=>({code:`InputDataDoesNotMatchOutputField`,message:`Input at position ${e} provided data for field '${t}' that did not match expected type. Expected: '${n}', Actual: '${r}'.`}),AmbiguousDependency:({fieldName:e})=>({code:`AmbiguousDependency`,message:`Found more than one pipe that produces field: ${e}. Rename or disable the field to add it.`}),EmptyObjectProperty:()=>({code:`EmptyObjectProperty`,message:`Input data contains empty object property "". This is not allowed.`}),JSONSchemaMissing:({schemaRef:e,outputName:t})=>({code:`JSONSchemaMissing`,message:`Missing jsonSchema '${e}' for output with name '${t}'.`}),InvalidJSONSchema:({schemaRef:e})=>({code:`InvalidJSONSchema`,message:`JSON Schema (ref: ${e}) is invalid.`}),MissingOutputFieldDescription:({outputName:e})=>({code:`MissingOutputFieldDescription`,message:`The output field ${e} is missing a "description" property. Define it {{ ${e} description="Foo bar" }}`}),InvalidFormatTag:({outputName:e,format:t})=>({code:`InvalidFormatTag`,message:`The output field ${e} has an invalid format tag ${t}.`}),RecursiveExpandedValue:()=>({code:`RecursiveExpandedValue`,message:`Your input values contain a recursive expanded valuetype `})};var Wh=class extends Error{},$=class extends Wh{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 Gh=`fields:merge@1`,Kh=_(`merge_result`),qh=r.object({pipe_id:r.literal(Gh),connector:T(),run_if:S(),config:r.object({sources:qi({sectionKey:`general`,groupPath:`config.general`,path:`config.sources`,info:`Provide references to input fields`,minItems:2}),output_fields:R(r.object({[Kh.name]:k({fieldName:Kh.name})}))})}),Jh={"field-or-pipe0":{credits:0,allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Yh=class extends U{pipeId=Gh;payload;payloadSchema=qh;billableOperations=Jh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`field-or-pipe0`]}getInputRequirement(){let e=this.payload.config.sources.map(e=>e.field_name),t;return H(...this.payload.config.sources.map(n=>V({format:null,type:r=>{let i=Bm(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{[Kh.name]:this.catalogOutput(Kh,{resolveType:e=>{let t=Bm(e,this.payload.config.sources.map(e=>e.field_name));return Object.values(t).find(e=>!!e.type)?.type||`string`}})}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Xh=qh,Zh={pipeId:Gh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(Gh),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:[B.FIELDS,B.LOGIC],docPath:G(Gh),defaultInputRequirement:null,billableOperations:Jh,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Gh,connector:null,run_if:null,config:{sources:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},Qh=`http:request@1`,$h=_(`http_response_status`),eg=_(`http_response_body`),tg=_(`http_response_headers`),ng=r.object({pipe_id:r.literal(Qh),connector:T(),run_if:S(),config:r.object({method:aa({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:C({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:Qi({sectionKey:`general`,groupPath:`config.general`,path:`config.query_params`,label:`Query parameters`,info:"Appended to the URL. Type `@` to insert a field reference or `$` to insert a secret reference in either column.",keyLabel:`Key`,valueLabel:`Value`,keyPlaceholder:`page`,valuePlaceholder:`1`,maxItems:50}),body:C({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Sent verbatim as the request body. Type `@` to insert a field reference or `$` to insert a secret reference. Set Content-Type via Headers.",placeholder:`{
72
72
  "key": "value"
73
- }`,inputType:`text`,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`text`,multiline:!0}),headers:Qi({sectionKey:`general`,groupPath:`config.general`,path:`config.headers`,label:`Headers`,info:"Type `@` to insert a field reference or `$` to insert a secret reference in either column (e.g. `Bearer $token`).",keyLabel:`Header`,valueLabel:`Value`,keyPlaceholder:`Authorization`,valuePlaceholder:`Bearer {{ secret … }}`,maxItems:50}),expected_response_schema:ua({sectionKey:`general`,groupPath:`config.advanced`,path:`config.expected_response_schema`,label:`Expected response shape`,description:`Optional JSON Schema. Successful responses that don't satisfy it are marked failed. Extra properties are always tolerated (whitelist).`,required:!1,allowEmpty:!0}),output_fields:R(r.object({[$h.name]:k({fieldName:$h.name}),[eg.name]:k({fieldName:eg.name}),[tg.name]:k({fieldName:tg.name})}))})}),rg={"http-request-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:.001,mode:`always`}},ig=class extends U{pipeId=Qh;payload;payloadSchema=ng;billableOperations=rg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`http-request-pipe0`]}getTemplatedFields(){let e=[this.payload.config.url,this.payload.config.body];for(let t of this.payload.config.query_params??[])e.push(t.key,t.value);for(let t of this.payload.config.headers??[])e.push(t.key,t.value);return e}getInputRequirement(){return Hm(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[$h.name]:this.catalogOutput($h),[eg.name]:this.catalogOutput(eg),[tg.name]:this.catalogOutput(tg)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},ag=ng,og={pipeId:Qh,basePipe:W(Qh),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:[B.LOGIC,B.JSON,B.NEW],docPath:G(Qh),billableOperations:rg,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Qh,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}}}}},sg=`json:extract:multi@1`,cg=r.object({pipe_id:r.literal(sg),run_if:S(),connector:T(),config:r.object({json_extraction:hi()})}),lg={"extract-json-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},ug=class extends U{pipeId=sg;payload;payloadSchema=cg;billableOperations=lg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`extract-json-pipe0`]}getInputRequirement(){return V({description:``,name:this.payload.config.json_extraction.field_name,format:null,label:``,type:`json`,resolvedName:this.payload.config.json_extraction.field_name})}getRawOutputFields(){let e={};for(let t of this.payload.config.json_extraction.extractions)e[t.output_field.name||t.output_field.name]={description:`Extracted value from JSON input field ${this.payload.config.json_extraction.field_name}.`,enabled:!0,format:t.output_field.format||null,label:t.output_field.label||`Extract JSON`,name:t.output_field.name,resolvedName:t.output_field.name,jsonMeta:null,type:t.output_field.type,isCatalogFIeld:!1,isPrimaryOutput:!1};return e}getConnectionsRequirements(){return[]}},dg=cg,fg={pipeId:sg,basePipe:W(sg),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:G(sg),tags:[B.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:lg,defaultInputRequirement:null,defaultPayload:{pipe_id:sg,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},pg=`message:send:slack@1`,mg=_(`slack_message_success`),hg=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],gg=r.object({pipe_id:r.literal(pg),connector:Gi(),run_if:S(),config:r.object({channel_id:C({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 hg;if(!t)throw new Rs.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 Rs.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new Rs.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:C({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({[mg.name]:k({fieldName:mg.name})}))})}),_g={"message-send-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},vg=class extends U{pipeId=pg;payload;payloadSchema=gg;billableOperations=_g;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(){return[`message-send-slack`]}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return Hm(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[mg.name]:this.catalogOutput(mg)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},yg=gg,bg={pipeId:pg,basePipe:W(pg),label:`Send message into channel`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send a Slack message to a channel.`,detailed_description:"Send a Slack message. The channel ID and message body are templated config fields — reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Slack vault connection (call list_connections to find one).",tags:[B.CHAT],docPath:G(pg),billableOperations:_g,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:pg,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},xg=`message:write@1`,Sg=_(`message`),Cg=ti(`write-message`),wg=r.object({pipe_id:r.literal(xg),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:Z(`prompt`),groupPath:`config.prompt`,required:!0}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Cg}),output_fields:R(r.object({[Sg.name]:k({fieldName:Sg.name})}))})}),Tg=class extends U{pipeId=xg;payload;payloadSchema=wg;billableOperations=Cg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ni(this.payload.config.model)}estimateBillableOperations(){return[ri(this.payload.config.model,`write-message`)]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[Sg.name]:this.catalogOutput(Sg)}}getConnectionsRequirements(){return ii(this.payload.config.model)}},Eg=wg,Dg={pipeId:xg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(xg),label:`Message writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing messages for modern workplace communication platforms (Slack, Teams, Discord, etc.)`,detailed_description:`AI message composer for Slack/Teams/Discord. Outputs: message. Pair with message:send:slack@1 to send.`,tags:[B.AI],docPath:G(xg),defaultInputRequirement:null,billableOperations:Cg,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:xg,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},Og=`person:email:validate:millionverifier@1`,kg=_(`email`),Ag=_(`email_validation_status`),jg=_(`million_validation_match`),Mg=r.object({pipe_id:r.literal(Og),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[kg.name]:E({fieldName:kg.name})})),output_fields:R(r.object({[Ag.name]:k({fieldName:Ag.name}),[jg.name]:k({fieldName:jg.name})}))}).optional()}),Ng=e=>V(K(kg,e)),Pg={"validate-email-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:.1,mode:`always`}},Fg=class extends U{pipeId=Og;payload;payloadSchema=Mg;billableOperations=Pg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`validate-email-millionverifier`]}getInputRequirement(){return Ng(this.payload.config)}getRawOutputFields(){return{[Ag.name]:this.catalogOutput(Ag),[jg.name]:this.catalogOutput(jg)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},Ig=Mg,Lg={pipeId:Og,basePipe:W(Og),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[B.EMAIL],docPath:G(Og),billableOperations:Pg,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:Ng(null),defaultPayload:{pipe_id:Og,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},Rg=_(`email`),zg=_(`amplemarket_person_match`),Bg=`person:identity:amplemarket@1`,Vg=r.object({pipe_id:r.literal(Bg),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Rg.name]:E({fieldName:Rg.name})})),output_fields:R(r.object({[zg.name]:k({fieldName:zg.name})}))}).optional()}),Hg=e=>V(K(Rg,e)),Ug={"person-identity-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},Wg=class extends U{pipeId=Bg;payload;payloadSchema=Vg;billableOperations=Ug;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return Hg(this.payload.config)}getRawOutputFields(){return{[zg.name]:this.catalogOutput(zg)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},Gg=Vg,Kg={pipeId:Bg,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Bg),label:`Person identity`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their email`,tags:[B.PEOPLE_PROFILES],docPath:G(Bg),billableOperations:Ug,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:Hg(null),defaultPayload:{pipe_id:Bg,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},qg=`person:identity:email:waterfall@1`,Jg=_(`email`),Yg=_(`company_domain`),Xg=_(`name`),Zg=_(`job_title`),Qg=_(`profile_url`),$g=_(`company_profile_url`),e_=_(`company_name`),t_=[`findymail`,`hunter`,`crustdata`],n_=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],r_=r.object({pipe_id:r.literal(qg),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:t_,defaultProviders:n_,sectionKey:`general`}),input_fields:z(r.object({[Jg.name]:E({fieldName:Jg.name})})),output_fields:R(r.object({[Xg.name]:k({fieldName:Xg.name}),[Qg.name]:k({fieldName:Qg.name}),[Zg.name]:k({fieldName:Zg.name}),[Yg.name]:k({fieldName:Yg.name}),[e_.name]:k({fieldName:e_.name}),[$g.name]:k({fieldName:$g.name})}))}).optional()}),i_=e=>V(K(Jg,e)),a_={"reverse-email-lookup-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"reverse-email-lookup-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"reverse-email-lookup-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:5,mode:`onSuccess`}},o_=class extends U{pipeId=qg;payload;payloadSchema=r_;billableOperations=a_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return i_(this.payload.config)}getRawOutputFields(){return{[Xg.name]:this.catalogOutput(Xg,{isPrimaryOutput:!0}),[Qg.name]:this.catalogOutput(Qg,{isPrimaryOutput:!0}),[Zg.name]:this.catalogOutput(Zg,{isPrimaryOutput:!0}),[e_.name]:this.catalogOutput(e_,{isPrimaryOutput:!0}),[$g.name]:this.catalogOutput($g,{isPrimaryOutput:!0}),[Yg.name]:this.catalogOutput(Yg,{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:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},s_=r_,c_={pipeId:qg,basePipe:W(qg),label:`Person identity from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find identity of a person from their email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(qg),managedProviders:t_,deprecatedProviders:[],allowedUserConnectionProviders:t_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:a_,defaultInputRequirement:i_(null),defaultPayload:{pipe_id:qg,connector:null,run_if:null,config:{providers:n_,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}}}}},l_=_(`profile_url`),u_=_(`amplemarket_person_match`),d_=`person:match:amplemarket@1`,f_=r.object({pipe_id:r.literal(d_),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[l_.name]:E({fieldName:l_.name})})),output_fields:R(r.object({[u_.name]:k({fieldName:u_.name})}))}).optional()}),p_=e=>V(K(l_,e)),m_={"person-match-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},h_=class extends U{pipeId=d_;payload;payloadSchema=f_;billableOperations=m_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return p_(this.payload.config)}getRawOutputFields(){return{[u_.name]:this.catalogOutput(u_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},g_=f_,__={pipeId:d_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(d_),label:`Person match`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their LinkedIn profile URL.`,tags:[B.PEOPLE_PROFILES],docPath:G(d_),billableOperations:m_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:p_(null),defaultPayload:{pipe_id:d_,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},v_=`person:match:role:waterfall@1`,y_=_(`company_domain`),b_=_(`role_finder_match`),x_=[`leadmagic`],S_=[{provider:`leadmagic`}],C_=r.object({pipe_id:r.literal(v_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:S_,availableProviders:x_}),roles:Zi({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1,suggestionsDef:g(`titles`),expectedTagType:`string`}),input_fields:z(r.object({[y_.name]:E({fieldName:y_.name})})),output_fields:R(r.object({[b_.name]:k({fieldName:b_.name})}))})}),w_=e=>H(K(y_,e)),T_={"find-role-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:1,mode:`onSuccess`}},E_=class extends U{pipeId=v_;payload;payloadSchema=C_;billableOperations=T_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return w_(this.payload.config)}getSecretRequirements(){return Y(this.payload.config?.roles??[])}getConstantRequirements(){return X(this.payload.config?.roles??[])}getRawOutputFields(){return{[b_.name]:this.catalogOutput(b_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},D_=C_,O_={pipeId:v_,basePipe:W(v_),managedProviders:x_,deprecatedProviders:[],allowedUserConnectionProviders:x_,label:`Role finder`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[B.PEOPLE_PROFILES],docPath:G(v_),billableOperations:T_,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:w_(null),defaultPayload:{pipe_id:v_,run_if:null,connector:null,config:{roles:[],providers:S_,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},k_=`person:mobile:profileurl:waterfall@1`,A_=_(`profile_url`),j_=_(`mobile`),M_=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],N_=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],P_=r.object({pipe_id:r.literal(k_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:N_,availableProviders:M_}),input_fields:z(r.object({[A_.name]:E({fieldName:A_.name})})),output_fields:R(r.object({[j_.name]:k({fieldName:j_.name})}))}).optional()}),F_=e=>V(K(A_,e)),I_={"mobile-from-profile-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"mobile-from-profile-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:5,mode:`onSuccess`},"mobile-from-profile-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:6,mode:`onSuccess`},"phone-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:4,mode:`onSuccess`}},L_=class extends U{pipeId=k_;payload;payloadSchema=P_;billableOperations=I_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return F_(this.payload.config)}getRawOutputFields(){return{[j_.name]:this.catalogOutput(j_,{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:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},R_=P_,z_={pipeId:k_,basePipe:W(k_),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:G(k_),tags:[B.PHONE,B.WATERFALL],billableOperations:I_,defaultInputRequirement:F_(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:M_,allowedUserConnectionProviders:M_,deprecatedProviders:[],defaultPayload:{pipe_id:k_,connector:null,run_if:null,config:{providers:N_,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},B_=`person:mobile:workemail:waterfall@1`,V_=_(`work_email`),H_=_(`mobile`),U_=[`leadmagic`,`amplemarket`],W_=[{provider:`leadmagic`},{provider:`amplemarket`}],G_=r.object({pipe_id:r.literal(B_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:U_,defaultProviders:W_}),input_fields:z(r.object({[V_.name]:E({fieldName:V_.name})})),output_fields:R(r.object({[H_.name]:k({fieldName:H_.name})}))}).optional()}),K_=e=>V(K(V_,e)),q_={"mobile-from-workemail-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"email-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:4,mode:`onSuccess`}},J_=class extends U{pipeId=B_;payload;payloadSchema=G_;billableOperations=q_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return K_(this.payload.config)}getRawOutputFields(){return{[H_.name]:this.catalogOutput(H_,{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:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Y_=G_,X_={pipeId:B_,basePipe:W(B_),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for a prospect.`,tags:[B.PHONE,B.WATERFALL],docPath:G(B_),billableOperations:q_,defaultInputRequirement:K_(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:U_,managedProviders:U_,deprecatedProviders:[],defaultPayload:{pipe_id:B_,connector:null,run_if:null,config:{providers:W_,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Z_=`person:name:join@1`,Q_=_(`first_name`),$_=_(`last_name`),ev=_(`name`),tv=r.object({pipe_id:r.literal(Z_),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Q_.name]:E({fieldName:Q_.name}),[$_.name]:E({fieldName:$_.name})})),output_fields:R(r.object({[ev.name]:k({fieldName:ev.name})}))}).optional()}),nv=e=>Ea(K(Q_,e),K($_,e)),rv={"join-name-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},iv=class extends U{pipeId=Z_;payload;payloadSchema=tv;billableOperations=rv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`join-name-pipe0`]}getInputRequirement(){return nv(this.payload.config)}getRawOutputFields(){return{[ev.name]:this.catalogOutput(ev)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},av=tv,ov={pipeId:Z_,basePipe:W(Z_),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:[B.NAMES],docPath:G(Z_),billableOperations:rv,defaultInputRequirement:nv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Z_,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},sv=`person:name:split@1`,cv=_(`name`),lv=_(`first_name`),uv=_(`last_name`),dv=r.object({pipe_id:r.literal(sv),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[cv.name]:E({fieldName:cv.name})})),output_fields:R(r.object({[lv.name]:k({fieldName:lv.name}),[uv.name]:k({fieldName:uv.name})}))}).optional()}),fv=e=>V(K(cv,e)),pv={"split-name-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},mv=class extends U{pipeId=sv;payload;payloadSchema=dv;billableOperations=pv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`split-name-pipe0`]}getInputRequirement(){return fv(this.payload.config)}getRawOutputFields(){return{[lv.name]:this.catalogOutput(lv),[uv.name]:this.catalogOutput(uv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},hv=dv,gv={pipeId:sv,basePipe:W(sv),label:`Split name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Split a full name into first and last name.`,tags:[B.NAMES],docPath:G(sv),billableOperations:pv,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:fv(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:sv,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},_v=`person:personalemail:profileurl:waterfall@1`,vv=_(`profile_url`),yv=_(`personal_email`),bv=_(`alternate_personal_emails`),xv=[`leadmagic`,`mixrank`],Sv=[{provider:`leadmagic`},{provider:`mixrank`}],Cv=r.object({pipe_id:r.literal(_v),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:xv,defaultProviders:Sv}),input_fields:z(r.object({[vv.name]:E({fieldName:vv.name})})),output_fields:R(r.object({[yv.name]:k({fieldName:yv.name}),[bv.name]:k({fieldName:bv.name})}))}).optional()}),wv=e=>V(K(vv,e)),Tv={"personal-email-from-profile-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"personal-email-reveal-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:1,mode:`onSuccess`}},Ev=class extends U{pipeId=_v;payload;payloadSchema=Cv;billableOperations=Tv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return wv(this.payload.config)}getRawOutputFields(){return{[yv.name]:this.catalogOutput(yv,{isPrimaryOutput:!0}),[bv.name]:this.catalogOutput(bv)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Dv=Cv,Ov={pipeId:_v,basePipe:W(_v),allowedUserConnectionProviders:xv,managedProviders:xv,deprecatedProviders:[],label:`Find personal email`,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:[B.EMAIL,B.PERSONAL_EMAIL],docPath:G(_v),billableOperations:Tv,defaultInputRequirement:wv(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:_v,connector:null,run_if:null,config:{providers:Sv,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},kv=_(`profile_url`),Av=_(`post_list_string`),jv=_(`crustdata_post_list`),Mv=`person:posts:crustdata@1`,Nv=r.object({pipe_id:r.literal(Mv),run_if:S(),connector:w(),config:r.object({limit:ca({path:`config.limit`,groupPath:`config.general`,max:100,min:1,required:!0,sectionKey:`general`,info:``,label:`Limit`,legend:`Max. 100`}),input_fields:z(r.object({[kv.name]:E({fieldName:kv.name})})),output_fields:R(r.object({[Av.name]:k({fieldName:Av.name}),[jv.name]:k({fieldName:jv.name})}))}).optional()}),Pv=e=>V(K(kv,e)),Fv={"single-post-fetch-crustdata":{allowManagedConnection:!0,credits:1.5,mode:`onSuccess`,note:`1.5 credits per post. Posts are fetched in increments of 5.`,provider:`crustdata`}},Iv=class extends U{pipeId=Mv;payload;payloadSchema=Nv;billableOperations=Fv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`single-post-fetch-crustdata`]}getInputRequirement(){return Pv(this.payload.config)}getRawOutputFields(){return{[Av.name]:this.catalogOutput(Av),[jv.name]:this.catalogOutput(jv)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},Lv=Nv,Rv={pipeId:Mv,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Mv),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[B.LINKEDIN],docPath:G(Mv),billableOperations:Fv,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Pv(null),defaultPayload:{pipe_id:Mv,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}}}}},zv=`person:profile:waterfall@1`,Bv=_(`profile`),Vv=_(`profile_url`),Hv=[`prospeo`,`icypeas`,`amplemarket`],Uv=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Wv=r.object({pipe_id:r.literal(zv),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Hv,defaultProviders:Uv}),input_fields:z(r.object({[Vv.name]:E({fieldName:Vv.name})})),output_fields:R(r.object({[Bv.name]:k({fieldName:Bv.name})}))}).optional()}),Gv=e=>V(K(Vv,e)),Kv={"professional-profile-icypeas":{provider:`icypeas`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"professional-profile-prospeo":{provider:`prospeo`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"person-match-amplemarket":{provider:`amplemarket`,credits:1,mode:`onSuccess`,allowManagedConnection:!0}},qv=class extends U{pipeId=zv;payload;payloadSchema=Wv;billableOperations=Kv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Gv(this.payload.config)}getRawOutputFields(){return{[Bv.name]:this.catalogOutput(Bv,{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:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Jv=Wv,Yv={pipeId:zv,basePipe:W(zv),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:G(zv),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:Hv,deprecatedProviders:[],allowedUserConnectionProviders:Hv,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Kv,defaultInputRequirement:Gv(null),defaultPayload:{pipe_id:zv,run_if:null,connector:null,config:{providers:Uv,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Xv=_(`work_email`),Zv=_(`crustdata_person_match`),Qv=_(`crustdata_profile_match_score`),$v=`person:profile:workemail:crustdata@1`,ey=r.object({pipe_id:r.literal($v),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Xv.name]:E({fieldName:Xv.name})})),output_fields:R(r.object({[Zv.name]:k({fieldName:Zv.name}),[Qv.name]:k({fieldName:Qv.name})}))}).optional()}),ty=e=>V(K(Xv,e)),ny={"profile-from-workemail-crustdata":{allowManagedConnection:!0,credits:5,mode:`onSuccess`,provider:`crustdata`}},ry=class extends U{pipeId=$v;payload;payloadSchema=ey;billableOperations=ny;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`profile-from-workemail-crustdata`]}getInputRequirement(){return ty(this.payload.config)}getRawOutputFields(){return{[Zv.name]:this.catalogOutput(Zv),[Qv.name]:this.catalogOutput(Qv)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},iy=ey,ay={pipeId:$v,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W($v),label:`Profile from work email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find person profile by their work email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G($v),billableOperations:ny,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:ty(null),defaultPayload:{pipe_id:$v,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}}}}},oy=`person:profileurl:email:waterfall@1`,sy=_(`email`),cy=_(`work_email`),ly=_(`profile_url`),uy=[`leadmagic`],dy=[{provider:`leadmagic`}],fy=r.object({pipe_id:r.literal(oy),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:dy,availableProviders:uy}),input_fields:z(r.object({[sy.name]:E({fieldName:sy.name}),[cy.name]:E({fieldName:cy.name})})),output_fields:R(r.object({[ly.name]:k({fieldName:ly.name})}))}).optional()}),py=e=>H(K(sy,e),K(cy,e)),my={"profileurl-from-email-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:3.5,mode:`onSuccess`}},hy=class extends U{pipeId=oy;payload;payloadSchema=fy;billableOperations=my;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return py(this.payload.config)}getRawOutputFields(){return{[ly.name]:this.catalogOutput(ly,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},gy=fy,_y={pipeId:oy,basePipe:W(oy),managedProviders:uy,deprecatedProviders:[],allowedUserConnectionProviders:uy,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:[B.LINKEDIN],docPath:G(oy),billableOperations:my,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:py(null),defaultPayload:{pipe_id:oy,run_if:null,connector:null,config:{providers:dy,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},vy=`person:profileurl:name@1`,yy=_(`name`),by=_(`company_name`),xy=_(`location_hint`),Sy=_(`profile_url`),Cy=r.object({pipe_id:r.literal(vy),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[yy.name]:E({fieldName:yy.name}),[by.name]:E({fieldName:by.name}),[xy.name]:E({fieldName:xy.name})})),output_fields:R(r.object({[Sy.name]:k({fieldName:Sy.name})}))}).optional()}),wy=e=>Ea(V(K(yy,e)),V(K(by,e)),Da(K(xy,e))),Ty={"profileurl-from-name-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:.6,mode:`always`}},Ey=class extends U{pipeId=vy;payload;payloadSchema=Cy;billableOperations=Ty;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`profileurl-from-name-pipe0`]}getInputRequirement(){return wy(this.payload.config)}getRawOutputFields(){return{[Sy.name]:this.catalogOutput(Sy)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},Dy=Cy,Oy={pipeId:vy,basePipe:W(vy),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:G(vy),tags:[B.LINKEDIN],billableOperations:Ty,defaultInputRequirement:wy(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:vy,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},ky=`person:workemail:profileurl:waterfall@1`,Ay=_(`profile_url`),jy=_(`work_email`),My=_(`email_validation_status`),Ny=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],Py=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Fy=r.object({pipe_id:r.literal(ky),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:Ny,defaultProviders:Py,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({[Ay.name]:E({fieldName:Ay.name})})),output_fields:R(r.object({[jy.name]:k({fieldName:jy.name}),[My.name]:k({fieldName:My.name})}))}).optional()}),Iy=e=>V(K(Ay,e)),Ly={"workemail-from-profileurl-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"workemail-from-profileurl-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"workemail-from-profileurl-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"workemail-from-profileurl-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:3,mode:`onSuccess`},"email-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:2.5,mode:`onSuccess`}},Ry=class extends U{pipeId=ky;payload;payloadSchema=Fy;billableOperations=Ly;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Iy(this.payload.config)}getRawOutputFields(){return{[jy.name]:this.catalogOutput(jy,{isPrimaryOutput:!0}),[My.name]:this.catalogOutput(My,{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:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},zy=Fy,By={pipeId:ky,basePipe:W(ky),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses from B2B profile.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(ky),managedProviders:Ny,allowedUserConnectionProviders:Ny,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Ly,defaultInputRequirement:Iy(null),defaultPayload:{pipe_id:ky,connector:null,run_if:null,config:{providers:Py,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}}}}},Vy=`person:workemail:waterfall@1`,Hy=_(`name`),Uy=_(`company_domain`),Wy=_(`company_name`),Gy=_(`work_email`),Ky=_(`email_validation_status`),qy=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Jy=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Yy={"work-email-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:.5,mode:`onSuccess`},"work-email-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:.5,mode:`onSuccess`},"work-email-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"work-email-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"work-email-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"email-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:2.5,mode:`onSuccess`}},Xy=r.object({pipe_id:r.literal(Vy),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:qy,defaultProviders:Jy,sectionKey:`general`,providerCredits:La(Yy,qy)}),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({[Hy.name]:E({fieldName:Hy.name}),[Uy.name]:E({fieldName:Uy.name}),[Wy.name]:E({fieldName:Wy.name})})),output_fields:R(r.object({[Gy.name]:k({fieldName:Gy.name}),[Ky.name]:k({fieldName:Ky.name})}))}).optional()}),Zy=e=>Ea(V(K(Hy,e)),H(K(Uy,e),K(Wy,e))),Qy=class extends U{pipeId=Vy;payload;payloadSchema=Xy;billableOperations=Yy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Zy(this.payload.config)}getRawOutputFields(){return{[Gy.name]:this.catalogOutput(Gy,{isPrimaryOutput:!0}),[Ky.name]:this.catalogOutput(Ky,{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:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},$y=Xy,eb={pipeId:Vy,basePipe:W(Vy),label:`Work email from name`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses in a waterfall motion.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(Vy),managedProviders:qy,deprecatedProviders:[],allowedUserConnectionProviders:qy,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Yy,defaultInputRequirement:Zy(null),defaultPayload:{pipe_id:Vy,connector:null,run_if:null,config:{providers:Jy,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}}}}},tb=`prompt:run@1`,nb=ti(`prompt`),rb=r.object({pipe_id:r.literal(tb),connector:w(),run_if:S(),config:r.object({prompt:Hi({sectionKey:`general`,path:`config.prompt`,placeholder:Z(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:nb})})}),ib=class extends U{pipeId=tb;payload;payloadSchema=rb;billableOperations=nb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ni(this.payload.config.model)}estimateBillableOperations(){return[ri(this.payload.config.model,`prompt`)]}getInputRequirement(){return Hm([this.payload.config.prompt.template])}getSecretRequirements(){return Y([this.payload.config.prompt.template])}getConstantRequirements(){return X([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=jr(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 ii(this.payload.config.model)}},ab=rb,ob={pipeId:tb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(tb),label:`AI prompt`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,description:`Executes configurable AI prompts with structured output fields.`,detailed_description:`General-purpose AI prompt runner. Inputs and outputs are fully dynamic — defined by the tags in the prompt template.`,tags:[B.AI],docPath:G(tb),defaultInputRequirement:null,billableOperations:nb,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:tb,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},sb=`sheet:row:append@1`,cb=_(`sheet_record_id`),lb=_(`created_sheet`),ub=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],db=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],fb={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?ub: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`}}},pb={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?db:t?(await t.teams.list({query:e})).map(e=>({label:e.name,value:e.id})):[],widgets:{provider_logo:{provider:`pipe0`}}},mb=r.object({pipe_id:r.literal(sb),connector:Gi(),run_if:S(),config:r.object({sheet:C({label:`Destination sheet`,info:"Sheet identifier. Either a literal slug, or type `@` to insert a field reference / `$` to insert a secret reference.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:fb}),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_field_creation:O({label:`Create unkown fields`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_field_creation`,sectionKey:`general`,description:`Add unkown fields as new sheet columns.`}),allow_sheet_creation:O({label:`Create missing sheets`,description:`Create new sheet if none exists with the provided name`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_sheet_creation`,sectionKey:`general`}),new_sheet_team_id:da({label:`Team`,info:`Optional hint for the team where the sheet should be created. Only used when a new sheet is created.`,placeholder:`Select a team…`,required:!1,groupPath:`config.advanced`,path:`config.new_sheet_team_id`,sectionKey:`general`,optionsDef:pb,enabledIf:e=>e.config?.allow_sheet_creation?{disabled:!1}:{disabled:!0,message:`Turn on “Upsert sheets” to specify a team.`}}),included_fields:qi({label:`Fields`,info:`All fields are written if empty.`,groupPath:`config.general`,path:`config.included_fields`,sectionKey:`general`,disableSearch:!0}),output_fields:R(r.object({[cb.name]:k({fieldName:cb.name}),[lb.name]:k({fieldName:lb.name})}))})}),hb={"sheet-row-append-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},gb=class extends U{pipeId=sb;payload;payloadSchema=mb;billableOperations=hb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-append-pipe0`]}getInputRequirement(){let e=[Hm([this.payload.config.sheet],{expectedType:`string`,expectedFormat:`text`})];if(this.payload.config.included_fields?.length)for(let t of this.payload.config.included_fields)e.push(V({name:t.field_name,resolvedName:t.field_name,label:``,description:``,type:e=>{let n=Vm(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 Ea(...e)}getSecretRequirements(){return Y([this.payload.config.sheet])}getConstantRequirements(){return X([this.payload.config.sheet])}getRawOutputFields(){return{[cb.name]:this.catalogOutput(cb),[lb.name]:this.catalogOutput(lb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},_b=mb,vb={pipeId:sb,basePipe:W(sb),label:`Append row to sheet`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:"Add rows to a pipe0 sheet. The sheet identifier may be a literal slug or a `{{ field_name }}` tag.",docPath:G(sb),tags:[B.FIELDS],billableOperations:hb,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:sb,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,run:!0,allow_field_creation:!0,allow_sheet_creation:!0,new_sheet_team_id:``,included_fields:[],output_fields:{sheet_record_id:{alias:``,enabled:!0},created_sheet:{alias:``,enabled:!0}}}}},yb=`sheet:row:expandappend@1`,bb=_(`sheet_record_ids`),xb=_(`input_objects`),Sb=r.object({pipe_id:r.literal(yb),connector:Gi(),run_if:S(),config:r.object({sheet:ra({label:`Sheet name`,info:`Unique identifier for the sheet`,groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3}),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_field_creation:O({defaultValue:!0,groupPath:`config.general`,path:`config.allow_field_creation`,sectionKey:`general`,info:`Add unkown object fields to the sheet definition.`,label:`Allow field creation`}),input_fields:z(r.object({[xb.name]:E({fieldName:xb.name})})),output_fields:R(r.object({[bb.name]:k({fieldName:bb.name})}))})}),Cb={"sheet-row-appendexpand-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},wb=e=>V(K(xb,e)),Tb=class extends U{pipeId=yb;payload;payloadSchema=Sb;billableOperations=Cb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-appendexpand-pipe0`]}getInputRequirement(){return wb(this.payload.config)}getRawOutputFields(){return{[bb.name]:this.catalogOutput(bb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},Eb=Sb,Db={pipeId:yb,basePipe:W(yb),label:`Object list to sheet rows`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Expand a list of nested objects into sheet rows.`,docPath:G(yb),tags:[B.FIELDS],billableOperations:Cb,defaultInputRequirement:wb(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:yb,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,run:!0,allow_field_creation:!0,input_fields:{input_objects:{alias:``}},output_fields:{sheet_record_ids:{alias:``,enabled:!0}}}}},Ob=`template:fill@1`,kb=_(`template_output`),Ab=r.object({pipe_id:r.literal(Ob),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:Z(`template`),groupPath:`config.general`,required:!0}),output_fields:R(r.object({[kb.name]:k({fieldName:kb.name})}))})}),jb={"template-fill-pipe0":{credits:0,allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Mb=class extends U{pipeId=Ob;payload;payloadSchema=Ab;billableOperations=jb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill-pipe0`]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[kb.name]:this.catalogOutput(kb)}}getConnectionsRequirements(){return[]}},Nb=Ab,Pb={pipeId:Ob,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(Ob),label:`Fill a text template`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Replaces template tags like {{ input name type="string" }} with actual values.`,tags:[B.TEXT],docPath:G(Ob),defaultInputRequirement:null,billableOperations:jb,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ob,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},Fb=`website:extract:firecrawl@1`,Ib=_(`website_url`),Lb=_(`firecrawl_extract_result`),Rb=r.object({pipe_id:r.literal(Fb),connector:w(),run_if:S(),config:r.object({json_schema:ua({sectionKey:`general`,groupPath:`config.extraction`,path:`config.json_schema`,label:`Output JSON schema`,info:`Specify the data you want to extract as a JSON schema.`,allowEmpty:!1,required:!0}),extraction_prompt:ia({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({[Ib.name]:E({fieldName:Ib.name})})),output_fields:R(r.object({[Lb.name]:k({fieldName:Lb.name})}))})}),zb=e=>V(K(Ib,e)),Bb={"website-extract-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:2,mode:`onSuccess`}},Vb=class extends U{pipeId=Fb;payload;payloadSchema=Rb;billableOperations=Bb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-extract-firecrawl`]}getInputRequirement(){return zb(this.payload.config)}getRawOutputFields(){return{[Lb.name]:this.catalogOutput(Lb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Hb=Rb,Ub={pipeId:Fb,basePipe:W(Fb),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:[B.SCRAPE],docPath:G(Fb),billableOperations:Bb,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:zb(null),defaultPayload:{pipe_id:Fb,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}}}}},Wb=`website:maplinks:firecrawl@1`,Gb={"website-maplinks-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:1,mode:`onSuccess`}},Kb=_(`website_url`),qb=_(`mapped_links`),Jb=r.object({pipe_id:r.literal(Wb),connector:w(),run_if:S(),config:r.object({page_limit:ca({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,required:!1,path:`config.page_limit`,sectionKey:`general`}),sitemap:aa({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:ra({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).default(``),input_fields:z(r.object({[Kb.name]:E({fieldName:Kb.name})})),output_fields:R(r.object({[qb.name]:k({fieldName:qb.name})}))}).optional()}),Yb=e=>V(K(Kb,e)),Xb=class extends U{pipeId=Wb;payload;payloadSchema=Jb;billableOperations=Gb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-maplinks-firecrawl`]}getInputRequirement(){return Yb(this.payload.config)}getRawOutputFields(){return{[qb.name]:this.catalogOutput(qb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},Zb=Jb,Qb={pipeId:Wb,basePipe:W(Wb),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:[B.SCRAPE],docPath:G(Wb),billableOperations:Gb,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Yb(null),defaultPayload:{pipe_id:Wb,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},$b=`website:scrape:firecrawl@1`,ex=_(`website_url`),tx=_(`website_markdown`),nx=_(`website_html`),rx=_(`website_links`),ix=r.object({pipe_id:r.literal($b),connector:w(),run_if:S(),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({[ex.name]:E({fieldName:ex.name})})),output_fields:R(r.object({[tx.name]:k({fieldName:tx.name}),[nx.name]:k({fieldName:nx.name}),[rx.name]:k({fieldName:rx.name})}))}).optional()}),ax=e=>V(K(ex,e)),ox={"website-scrape-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:.1,mode:`onSuccess`}},sx=class extends U{pipeId=$b;payload;payloadSchema=ix;billableOperations=ox;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-scrape-firecrawl`]}getInputRequirement(){return ax(this.payload.config)}getRawOutputFields(){return{[tx.name]:this.catalogOutput(tx),[nx.name]:this.catalogOutput(nx),[rx.name]:this.catalogOutput(rx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},cx=ix,lx={pipeId:$b,basePipe:W($b),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[B.SCRAPE],docPath:G($b),billableOperations:ox,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:ax(null),defaultPayload:{pipe_id:$b,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}}}}},ux=`website:scrapelist:firecrawl@1`,dx={"list-url-scrape-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:.1,mode:`onSuccess`,note:`You are charged per url that is scraped.`}},fx=_(`urls`),px=_(`scrape_list_response`),mx=r.object({pipe_id:r.literal(ux),connector:w(),run_if:S(),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:sa({options:[{label:`Markdown`,value:`markdown`},{label:`HTML`,value:`html`},{label:`Links`,value:`links`}],disableSearch:!0,info:`Choose what you want to scrape from the website`,required:!1,label:`Formats`,sectionKey:`general`,groupPath:`config.general`,path:`config.formats`}),input_fields:z(r.object({[fx.name]:E({fieldName:fx.name})})),output_fields:R(r.object({[px.name]:k({fieldName:px.name})}))}).optional()}),hx=e=>V(K(fx,e)),gx=class extends U{pipeId=ux;payload;payloadSchema=mx;billableOperations=dx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`list-url-scrape-firecrawl`)}getInputRequirement(){return hx(this.payload.config)}getRawOutputFields(){return{[px.name]:this.catalogOutput(px)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},_x=mx,vx={pipeId:ux,basePipe:W(ux),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[B.SCRAPE],docPath:G(ux),billableOperations:dx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:hx(null),defaultPayload:{pipe_id:ux,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}}}}},yx={"prompt:run@1":ib,"company:newssummary:website@1":ml,"company:newssummary:domain@1":cs,"company:techstack:builtwith@1":nu,"company:techstack:builtwith@2":Fs,"company:websiteurl:email@1":du,"company:domain:workemail@1":Za,"company:funding:leadmagic@1":sc,"company:funding:leadmagic@2":fo,"people:workemail:waterfall@1":Em,"person:workemail:waterfall@1":Qy,"people:email:iswork@1":bu,"email:iswork@1":Fm,"people:name:split@1":Yd,"person:name:split@1":mv,"people:validate:email:zerobounce@1":$p,"people:email:validate:zerobounce@2":zu,"email:validate:zerobounce@1":uh,"people:mobilenumber:workemail:waterfall@1":zd,"person:name:join@1":iv,"company:overview@1":kl,"company:overview@2":Gl,"company:overview@3":ws,"json:extract:multi@1":ug,"company:lookalikes:companyenrich@1":Rc,"company:lookalikes:companyenrich@2":Mo,"company:match:logodev@1":al,"company:match:logodev@2":$o,"person:posts:crustdata@1":Iv,"people:profile:workemail:crustdata@1":jp,"person:profile:workemail:crustdata@1":ry,"people:identity:email:waterfall@1":od,"person:identity:email:waterfall@1":o_,"person:identity:amplemarket@1":Wg,"email:send:resend@1":eh,"contact:create:resend@1":qs,"email:send:gmail@1":qm,"email:write@1":yh,"fields:merge@1":Yh,"field:slugify@1":Lh,"field:domainify@1":Oh,"http:request@1":ig,"template:fill@1":Mb,"message:send:slack@1":vg,"message:write@1":Tg,"people:personalemail:profile:waterfall@1":cf,"person:personalemail:profileurl:waterfall@1":Ev,"website:scrape:firecrawl@1":sx,"website:scrapelist:firecrawl@1":gx,"website:extract:firecrawl@1":Vb,"website:maplinks:firecrawl@1":Xb,"sheet:row:append@1":gb,"sheet:row:expandappend@1":Tb,"people:match:role:waterfall@1":_d,"person:match:role:waterfall@1":E_,"company:match:crustdata@1":qc,"company:match:crustdata@2":Vo,"person:match:amplemarket@1":h_,"company:identity@2":kc,"company:identity@3":Co,"people:phone:profile:waterfall@1":yf,"person:mobile:profileurl:waterfall@1":L_,"people:phone:workemail:waterfall@1":Af,"person:mobile:workemail:waterfall@1":J_,"people:profile:waterfall@1":xp,"person:profile:waterfall@1":qv,"people:profileurl:email:waterfall@1":Up,"person:profileurl:email:waterfall@1":hy,"person:profileurl:name@1":Ey,"people:email:validate:zerobounce@1":ku,"person:email:validate:millionverifier@1":Fg,"people:workemail:profileurl:waterfall@1":fm,"person:workemail:profileurl:waterfall@1":Ry,"company:identity@1":vc,"people:professionalprofile:waterfall@1":Vf,"people:professionalprofileurl:name@1":up,"people:professionalprofileurl:email:waterfall@1":$f,"people:mobilenumber:professionalprofile:waterfall@1":Od},bx={"prompt:run@1":ab,"company:newssummary:website@1":hl,"company:newssummary:domain@1":ls,"company:techstack:builtwith@1":ru,"company:techstack:builtwith@2":Is,"company:websiteurl:email@1":fu,"company:domain:workemail@1":Qa,"company:funding:leadmagic@1":cc,"company:funding:leadmagic@2":po,"people:workemail:waterfall@1":Dm,"person:workemail:waterfall@1":$y,"people:email:iswork@1":xu,"email:iswork@1":Im,"people:name:split@1":Xd,"person:name:split@1":hv,"people:validate:email:zerobounce@1":em,"people:email:validate:zerobounce@2":Bu,"email:validate:zerobounce@1":dh,"people:mobilenumber:workemail:waterfall@1":Bd,"person:name:join@1":av,"company:overview@1":Al,"company:overview@2":Kl,"company:overview@3":Ts,"json:extract:multi@1":dg,"email:write@1":bh,"fields:merge@1":Xh,"field:slugify@1":Rh,"field:domainify@1":kh,"http:request@1":ag,"email:send:resend@1":th,"contact:create:resend@1":Js,"company:lookalikes:companyenrich@1":zc,"company:lookalikes:companyenrich@2":No,"company:match:logodev@1":ol,"company:match:logodev@2":es,"person:posts:crustdata@1":Lv,"people:profile:workemail:crustdata@1":Mp,"person:profile:workemail:crustdata@1":iy,"people:identity:email:waterfall@1":sd,"person:identity:email:waterfall@1":s_,"company:match:crustdata@1":Jc,"company:match:crustdata@2":Ho,"person:identity:amplemarket@1":Gg,"message:send:slack@1":yg,"email:send:gmail@1":Jm,"message:write@1":Eg,"template:fill@1":Nb,"website:scrape:firecrawl@1":cx,"website:scrapelist:firecrawl@1":_x,"website:extract:firecrawl@1":Hb,"website:maplinks:firecrawl@1":Zb,"sheet:row:append@1":_b,"sheet:row:expandappend@1":Eb,"people:match:role:waterfall@1":vd,"person:match:role:waterfall@1":D_,"company:identity@2":Ac,"company:identity@3":wo,"people:phone:profile:waterfall@1":bf,"person:mobile:profileurl:waterfall@1":R_,"people:personalemail:profile:waterfall@1":lf,"person:personalemail:profileurl:waterfall@1":Dv,"people:profile:waterfall@1":Sp,"person:profile:waterfall@1":Jv,"people:profileurl:email:waterfall@1":Wp,"person:profileurl:email:waterfall@1":gy,"person:profileurl:name@1":Dy,"people:email:validate:zerobounce@1":Au,"person:email:validate:millionverifier@1":Ig,"people:phone:workemail:waterfall@1":jf,"person:mobile:workemail:waterfall@1":Y_,"people:workemail:profileurl:waterfall@1":pm,"person:workemail:profileurl:waterfall@1":zy,"person:match:amplemarket@1":g_,"company:identity@1":yc,"people:professionalprofile:waterfall@1":Hf,"people:professionalprofileurl:name@1":dp,"people:professionalprofileurl:email:waterfall@1":ep,"people:mobilenumber:professionalprofile:waterfall@1":kd},xx={"prompt:run@1":ob,"company:newssummary:website@1":gl,"company:newssummary:domain@1":us,"company:techstack:builtwith@1":iu,"company:techstack:builtwith@2":Ls,"company:websiteurl:email@1":pu,"company:domain:workemail@1":$a,"company:funding:leadmagic@1":lc,"company:funding:leadmagic@2":mo,"people:workemail:waterfall@1":Om,"person:workemail:waterfall@1":eb,"people:email:iswork@1":Su,"email:iswork@1":Lm,"people:name:split@1":Zd,"person:name:split@1":gv,"people:validate:email:zerobounce@1":tm,"people:mobilenumber:workemail:waterfall@1":Vd,"person:name:join@1":ov,"company:overview@1":jl,"company:overview@2":ql,"company:overview@3":Es,"json:extract:multi@1":fg,"email:send:resend@1":nh,"contact:create:resend@1":Ys,"email:send:gmail@1":Ym,"message:send:slack@1":bg,"message:write@1":Dg,"email:write@1":xh,"template:fill@1":Pb,"fields:merge@1":Zh,"field:slugify@1":zh,"field:domainify@1":Ah,"http:request@1":og,"sheet:row:append@1":vb,"sheet:row:expandappend@1":Db,"company:lookalikes:companyenrich@1":Bc,"company:lookalikes:companyenrich@2":Po,"people:match:role:waterfall@1":yd,"person:match:role:waterfall@1":O_,"company:match:logodev@1":sl,"company:match:logodev@2":ts,"person:posts:crustdata@1":Rv,"people:profile:workemail:crustdata@1":Np,"person:profile:workemail:crustdata@1":ay,"people:workemail:profileurl:waterfall@1":mm,"person:workemail:profileurl:waterfall@1":By,"people:identity:email:waterfall@1":cd,"person:identity:email:waterfall@1":c_,"company:match:crustdata@1":Yc,"company:match:crustdata@2":Uo,"person:identity:amplemarket@1":Kg,"people:personalemail:profile:waterfall@1":uf,"person:personalemail:profileurl:waterfall@1":Ov,"people:email:validate:zerobounce@1":ju,"people:email:validate:zerobounce@2":Vu,"email:validate:zerobounce@1":fh,"person:email:validate:millionverifier@1":Lg,"people:phone:workemail:waterfall@1":Mf,"person:mobile:workemail:waterfall@1":X_,"website:scrape:firecrawl@1":lx,"website:scrapelist:firecrawl@1":vx,"website:extract:firecrawl@1":Ub,"website:maplinks:firecrawl@1":Qb,"person:match:amplemarket@1":__,"company:identity@2":jc,"company:identity@3":To,"people:phone:profile:waterfall@1":xf,"person:mobile:profileurl:waterfall@1":z_,"people:profile:waterfall@1":Cp,"person:profile:waterfall@1":Yv,"people:profileurl:email:waterfall@1":Gp,"person:profileurl:email:waterfall@1":_y,"person:profileurl:name@1":Oy,"company:identity@1":bc,"people:professionalprofile:waterfall@1":Uf,"people:professionalprofileurl:name@1":fp,"people:professionalprofileurl:email:waterfall@1":tp,"people:mobilenumber:professionalprofile:waterfall@1":Ad};function Sx(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function Cx(e){return yx[e]}function wx(e){return xx[e].defaultPayload}function Tx(e){return bx[e]}const Ex=r.discriminatedUnion(`pipe_id`,Object.values(bx)).openapi(`PipePayload`),Dx=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=wx(vn.parse(e.pipe_id));return t?{...e,config:Ca(e?.config||{},t.config)}:e}catch{return e}},Ex);function Ox(e){return xx[e]}function kx(e,t){let n=Ox(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 Ax(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function jx(){let e={};for(let t of Object.values(xx)){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=Ax(e.pipeId);return Ax(t.pipeId)-n})}),e}const Mx=e=>{let t=Ox(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},Nx=jx();function Px(e){let t=[];for(let[n,r]of Object.entries(Nx)){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:Ax(i.pipeId)})}return t}function Fx(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=Mx(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of Sx(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of ka(e.defaultInputRequirement))r[t.name]??=[],r[t.name]?.push(e.defaultPayload.pipe_id);for(let t of e.tags)a[t]??=[],a[t].push(e.defaultPayload.pipe_id)}return{pipeIdsByInputField:r,pipeIdsByOutputField:i,pipeIdsByTag:a,pipeIdsByProvider:o,sortedTagEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),sortedInputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(o).sort((e,t)=>e[0].localeCompare(t[0])),pipeEntriesByBasePipe:Nx}}const Ix=r.object({id:r.string(),organization_id:r.string(),order:r.array(xn),field_definitions:Qn,errors:r.array(In),records:r.record(xn,Yn),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),Lx=r.object({environment:gn.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`),Rx=r.object({config:Lx.openapi(`PipesRequestConfig`),field_annotations:Vn.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(Ex),input:r.array(Jn.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function zx(e){let t=Ox(e);return Object.values(t.billableOperations).reduce((e,t)=>{let n=t.credits||0;return e[t.provider]??=n,e[t.provider]=Math.min(e[t.provider],n),e},{})}const Bx={"config.prompt":{order:1,label:`Prompt`,iconKey:`sparkles`,defaultExpand:!0},"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:0,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},"config.input_fields":{order:0,label:`Input config`,description:`Point pipe inputs to new fields.`,iconKey:`input`,defaultExpand:!1},connector:{order:99,label:`Custom 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}},Vx={general:{type:`form_section`,path:`general`,label:`Behavior`,description:`How this pipe runs and selects providers.`},pagination:{type:`form_section`,path:`pagination`,label:`Behavior`},pipe_io:{type:`form_section`,path:``,label:`I/O & conditions`},"config.filters":{type:`form_section`,path:`config.filters`,label:`I/O & conditions`}},Hx={general:1,pagination:2,"config.input_fields":10,"config.pipe_io":11,"config.output_fields":12,"config.extractions":13,"config.filters":14,conditions:15,connector:16};function Ux(e){let t=Tx(e),n=[];function i(e){let t=y.get(e);if(t&&typeof t!=`function`)(t.type===`context_select_input`||t.type===`tagged_text_input`)&&t.optionsDef&&n.push(t);else if(typeof t==`function`){let e=t.staticMeta;e&&e.type===`tagged_text_input`&&e.optionsDef&&n.push(e)}if(typeof e==`object`&&e&&`unwrap`in e&&typeof e.unwrap==`function`&&i(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))i(t)}return i(t),n}function Wx({pipePayload:e,validationContext:t,sectionOrder:n=Hx,store:r,groupPathMatch:i=Bx,formResolvers:a}){let o=Tx(e.pipe_id),s=Fa(e.pipe_id,e.config||{});return Bi({schema:o,groupPathMatch:i,extractFromSchema:n=>{let i=y.get(n);if(r.field_options??={},i)return i&&typeof i==`function`?i({validationContext:t,pipePayload:e,userConnections:`connections`in r.field_options?(r.field_options.connections.options||[]).map(e=>{let t=e.widgets?.provider_logo?.provider;if(!t)throw Error(`Option is missing provider type'`);return{public_id:e.value,provider:t}}):[],pipeEntry:Ox(e.pipe_id),hash:s}):i},sectionOrder:n,sectionMap:Vx,store:r,formResolvers:a})}const Gx=[`companies:profiles:crustdata@1`,`companies:profiles:crustdata@2`,`companies:profiles:amplemarket@1`,`companies:profiles:amplemarket@2`,`people:profiles:crustdata@1`,`people:profiles:crustdata@2`,`people:profiles:amplemarket@1`,`people:profiles:amplemarket@2`],Kx=r.enum(Gx);function qx(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 Jx(e,t){let n={name:e,config:t};return Pa.hashObject(n)}var Yx=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 Jx(this.searchId,this.payload)}};function Xx(e){return e.split(`@`)[0]}function Zx(e){return`/docs/searches/searches-catalog/${Xx(e)}/${e.split(`@`)[1]}`}function Qx(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function $x(e,t){return e==null?void 0:t(e)}function eS(){return tS({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function tS({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:Qx(e),entity:t||e}}function nS(e,t){let n=JSON.parse(JSON.stringify({...e}));if(!t)return n;for(let e in t)!(e in n)&&t[e]!=null&&(n[e]=t[e]);return n}const rS=`companies:profiles:amplemarket@2`,iS=_(`company_name`),aS=_(`company_domain`),oS=_(`company_description`),sS=_(`company_profile_url`),cS=_(`amplemarket_company_match`),lS=r.object({search_id:r.literal(rS),connector:v.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`,required:!0,sectionKey:`pagination`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[iS.name]:N({fieldName:iS.name}),[aS.name]:N({fieldName:aS.name}),[oS.name]:N({fieldName:oS.name}),[sS.name]:N({fieldName:sS.name}),[cS.name]:N({fieldName:cS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Z(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_names`)}),company_domains:j({sectionKey:`config.filters`,path:`config.filters.company_domains`,label:`Company domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:Qx(e.value)}})})}),company_profile_urls:j({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),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}),investors:F({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:g(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Z(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:M({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:h(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),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`}),keywords:j({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),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`}),founded_year:pa({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_position_titles:A({path:`config.filters.open_position_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Z(`title`),suggestionsDef:g(`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`}),headcount_growth_l6m_in_percent:pa({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),uS={default:{input:[{fields:[]}]}},dS=class extends Yx{searchId=rS;schema=lS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[iS.name]:this.catalogOutput(iS),[aS.name]:this.catalogOutput(aS),[oS.name]:this.catalogOutput(oS),[sS.name]:this.catalogOutput(sS),[cS.name]:this.catalogOutput(cS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return uS}},fS=lS,pS={searchId:rS,billableOperation:`companies-profiles-amplemarket`,baseSearch:Xx(`companies:profiles:amplemarket@2`),label:`Company search`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Zx(rS),cost:{mode:`per_page`,creditsPerPage:2},provider:`amplemarket`,defaultPayload:{search_id:rS,connector:null,config:{limit:100,page_number:1,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},amplemarket_company_match:{enabled:!0,alias:``}},filters:{company_industries:{include:[],exclude:[]},company_names:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_domains:{include:[],exclude:[]},customer_types:[],headcount_growth_l6m_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_position_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}},mS=`companies:profiles:crustdata@2`,hS=_(`company_name`),gS=_(`company_domain`),_S=_(`company_description`),vS=_(`company_profile_url`),yS=_(`crustdata_company_match`),bS=r.object({search_id:r.literal(mS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[hS.name]:N({fieldName:hS.name}),[gS.name]:N({fieldName:gS.name}),[_S.name]:N({fieldName:_S.name}),[vS.name]:N({fieldName:vS.name}),[yS.name]:N({fieldName:yS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Z(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:g(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.crunchbase_investors.crustdata`)}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.tracxn_investors.crustdata`)}),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`}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:g(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:g(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:I({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:g(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),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`}),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`}),revenue_in_usd:ha({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`}),last_funding_amount:ha({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`}),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`}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Z(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_domains:j({path:`config.filters.competitor_domains`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domain`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:Qx(e.value)}})})})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),xS={default:{input:[{fields:[]}]}},SS=class extends Yx{searchId=mS;schema=bS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[hS.name]:this.catalogOutput(hS),[gS.name]:this.catalogOutput(gS),[_S.name]:this.catalogOutput(_S),[vS.name]:this.catalogOutput(vS),[yS.name]:this.catalogOutput(yS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return xS}},CS=bS,wS={searchId:mS,billableOperation:`companies-profiles-crustdata`,baseSearch:Xx(`companies:profiles:crustdata@2`),label:`Company search`,categories:[`companies`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Zx(mS),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:mS,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:{include:[],exclude:[]},linkedin_industries:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},crunchbase_categories:{include:[],exclude:[]},markets:{include:[],exclude:[]},revenue_in_usd:{from:null,to:null},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},follower_growth_l6m_in_percent:[],headcount:{include:[],exclude:[]},hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[],exclude:[]}}}}},TS=`companies:profiles:amplemarket@1`,ES=_(`company_name`),DS=_(`company_website_url`),OS=_(`company_description`),kS=_(`company_profile_url`),AS=_(`amplemarket_company_match`),jS=r.object({search_id:r.literal(TS),connector:v.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`,required:!0,sectionKey:`pagination`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[ES.name]:N({fieldName:ES.name}),[DS.name]:N({fieldName:DS.name}),[OS.name]:N({fieldName:OS.name}),[kS.name]:N({fieldName:kS.name}),[AS.name]:N({fieldName:AS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Z(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_names`)}),company_website_urls:j({sectionKey:`config.filters`,path:`config.filters.company_website_urls`,label:`Company domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),company_profile_urls:j({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),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}),investors:F({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:g(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Z(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:M({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:h(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),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`}),keywords:j({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),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`}),founded_year:pa({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_positions_titles:A({path:`config.filters.open_positions_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Z(`title`),suggestionsDef:g(`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`}),headcount_growth_last_6_months_in_percent:pa({path:`config.filters.headcount_growth_last_6_months_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),MS={default:{input:[{fields:[]}]}},NS=class extends Yx{searchId=TS;schema=jS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[ES.name]:this.catalogOutput(ES),[DS.name]:this.catalogOutput(DS),[OS.name]:this.catalogOutput(OS),[kS.name]:this.catalogOutput(kS),[AS.name]:this.catalogOutput(AS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return MS}},PS=jS,FS={searchId:TS,billableOperation:`companies-profiles-amplemarket`,baseSearch:Xx(`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:[B.COMPANY_PROFILES],docPath:Zx(TS),cost:{mode:`per_page`,creditsPerPage:2},provider:`amplemarket`,defaultPayload:{search_id:TS,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:[]}}}}},IS=`companies:profiles:crustdata@1`,LS=_(`company_name`),RS=_(`company_website_url`),zS=_(`company_description`),BS=_(`company_profile_url`),VS=_(`crustdata_company_match`),HS=r.object({search_id:r.literal(IS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[LS.name]:N({fieldName:LS.name}),[RS.name]:N({fieldName:LS.name}),[zS.name]:N({fieldName:zS.name}),[BS.name]:N({fieldName:BS.name}),[VS.name]:N({fieldName:VS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Z(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:g(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.crunchbase_investors.crustdata`)}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.tracxn_investors.crustdata`)}),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`}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:g(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:g(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:I({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:g(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),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`}),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`}),revenue_in_usd:ha({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`}),last_funding_amount:ha({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`}),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`}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Z(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_websites:j({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),US={default:{input:[{fields:[]}]}},WS=class extends Yx{searchId=IS;schema=HS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[LS.name]:this.catalogOutput(LS),[RS.name]:this.catalogOutput(RS),[zS.name]:this.catalogOutput(zS),[BS.name]:this.catalogOutput(BS),[VS.name]:this.catalogOutput(VS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return US}},GS=HS,KS={searchId:IS,billableOperation:`companies-profiles-crustdata`,baseSearch:Xx(`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:[B.COMPANY_PROFILES],docPath:Zx(IS),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:IS,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:[]}}}}},qS=`people:profiles:amplemarket@1`,JS=_(`name`),YS=_(`company_website_url`),XS=_(`profile_url`),ZS=_(`job_title`),QS=_(`amplemarket_person_match`),$S=r.object({search_id:r.literal(qS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[JS.name]:N({fieldName:JS.name}),[YS.name]:N({fieldName:YS.name}),[XS.name]:N({fieldName:XS.name}),[ZS.name]:N({fieldName:ZS.name}),[QS.name]:N({fieldName:QS.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:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:Z(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_seniority_levels:P({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:Z(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:P({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:Z(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:P({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:Z(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:I({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:g(`locations`),groupPath:`config.filters.current_company`,placeholder:Z(`location`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`company_name`),suggestionsDef:g(`company_names`)}),current_employer_website_urls:j({path:`config.filters.current_employer_website_urls`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:Z(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employer_linkedin_industries:P({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`industry`),required:!1,options:m(`linkedin.industries`)}),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`)}),current_employer_founded_year:pa({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:A({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Z(`investor`),description:``}),current_employer_open_positions_titles:A({path:`config.filters.current_employer_open_positions_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),eC={default:{input:[{fields:[]}]}},tC=class extends Yx{searchId=qS;schema=$S;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[JS.name]:this.catalogOutput(JS),[YS.name]:this.catalogOutput(YS),[XS.name]:this.catalogOutput(XS),[ZS.name]:this.catalogOutput(ZS),[QS.name]:this.catalogOutput(QS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return eC}},nC=$S,rC={searchId:qS,billableOperation:`people-profiles-amplemarket`,baseSearch:Xx(`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:[B.PEOPLE_PROFILES],docPath:Zx(qS),cost:{mode:`per_page`,creditsPerPage:3,info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:qS,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:[]}}}},iC=`people:profiles:crustdata@1`,aC=_(`name`),oC=_(`company_website_url`),sC=_(`profile_url`),cC=_(`job_title`),lC=_(`crustdata_person_match`),uC=r.object({search_id:r.literal(iC),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[aC.name]:N({fieldName:aC.name}),[oC.name]:N({fieldName:oC.name}),[sC.name]:N({fieldName:sC.name}),[cC.name]:N({fieldName:cC.name}),[lC.name]:N({fieldName:lC.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Z(`location`),optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Z(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_employers:j({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employers_website_urls:j({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Z(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employers_linkedin_industries:I({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Z(`industry`),description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),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`)}),previous_employers_website_urls:j({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Z(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Z(`seniority`),disableSearch:!0,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:j({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Z(`title`),groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),previous_employers_linkedin_industries:I({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Z(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:j({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`headline_keywords`)}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`profile_keywords`)}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Z(`languages`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Z(`languages_1`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Z(`skills`),groupPath:`config.filters.skills`,optionsDef:g(`skills`)}),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`}),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Z(`seniority`),optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`certification`),description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`honor`),description:``}),recently_changed_jobs:va({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:I({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Z(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_field_of_study.crustdata`)}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Z(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_degree.crustdata`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Z(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),dC={default:{input:[{fields:[]}]}},fC=class extends Yx{searchId=iC;schema=uC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[aC.name]:this.catalogOutput(aC),[oC.name]:this.catalogOutput(oC),[sC.name]:this.catalogOutput(sC),[cC.name]:this.catalogOutput(cC),[lC.name]:this.catalogOutput(lC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return dC}},pC=uC,mC={searchId:iC,billableOperation:`people-profiles-crustdata`,baseSearch:Xx(`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:[B.PEOPLE_PROFILES],docPath:Zx(iC),cost:{mode:`per_page`,creditsPerPage:5,info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:iC,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:[]}}}}},hC=`people:profiles:amplemarket@2`,gC=_(`name`),_C=_(`company_domain`),vC=_(`profile_url`),yC=_(`job_title`),bC=_(`amplemarket_person_match`),xC=r.object({search_id:r.literal(hC),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[gC.name]:N({fieldName:gC.name}),[_C.name]:N({fieldName:_C.name}),[vC.name]:N({fieldName:vC.name}),[yC.name]:N({fieldName:yC.name}),[bC.name]:N({fieldName:bC.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:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:Z(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_seniority_levels:P({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:Z(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:P({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:Z(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:P({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:Z(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:I({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:g(`locations`),groupPath:`config.filters.current_company`,placeholder:Z(`location`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`company_name`),suggestionsDef:g(`company_names`)}),current_employer_domains:j({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:Z(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:Qx(e.value)}})})}),current_employer_linkedin_industries:P({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`industry`),required:!1,options:m(`linkedin.industries`)}),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`)}),current_employer_founded_year:pa({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:A({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Z(`investor`),description:``}),current_employer_open_position_titles:A({path:`config.filters.current_employer_open_position_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),SC={default:{input:[{fields:[]}]}},CC=class extends Yx{searchId=hC;schema=xC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[gC.name]:this.catalogOutput(gC),[_C.name]:this.catalogOutput(_C),[vC.name]:this.catalogOutput(vC),[yC.name]:this.catalogOutput(yC),[bC.name]:this.catalogOutput(bC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return SC}},wC=xC,TC={searchId:hC,billableOperation:`people-profiles-amplemarket`,baseSearch:Xx(`people:profiles:amplemarket@2`),paginationType:`page_number`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Zx(hC),cost:{mode:`per_page`,creditsPerPage:3,info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:hC,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:[]}}}},EC=`people:profiles:crustdata@2`,DC=_(`name`),OC=_(`company_domain`),kC=_(`profile_url`),AC=_(`job_title`),jC=_(`crustdata_person_match`),MC=r.object({search_id:r.literal(EC),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[DC.name]:N({fieldName:DC.name}),[OC.name]:N({fieldName:OC.name}),[kC.name]:N({fieldName:kC.name}),[AC.name]:N({fieldName:AC.name}),[jC.name]:N({fieldName:jC.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Z(`location`),optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Z(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employer_domains:j({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Z(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:Qx(e.value)}})})}),current_employer_industries:I({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Z(`industry`),description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),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`)}),previous_employer_domains:j({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Z(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:Qx(e.value)}})})}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Z(`seniority`),disableSearch:!0,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employer_names:j({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Z(`title`),groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),previous_employer_industries:I({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Z(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:j({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`headline_keywords`)}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`profile_keywords`)}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Z(`languages`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Z(`languages_1`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Z(`skills`),groupPath:`config.filters.skills`,optionsDef:g(`skills`)}),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`}),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Z(`seniority`),optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`certification`),description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`honor`),description:``}),recently_changed_jobs:va({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:I({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Z(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_field_of_study.crustdata`)}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Z(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_degree.crustdata`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Z(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),NC={default:{input:[{fields:[]}]}},PC=class extends Yx{searchId=EC;schema=MC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[DC.name]:this.catalogOutput(DC),[OC.name]:this.catalogOutput(OC),[kC.name]:this.catalogOutput(kC),[AC.name]:this.catalogOutput(AC),[jC.name]:this.catalogOutput(jC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return NC}},FC=MC,IC={searchId:EC,billableOperation:`people-profiles-crustdata`,baseSearch:Xx(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Zx(EC),cost:{mode:`per_page`,creditsPerPage:5,info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:EC,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:[]}}}}},LC={"people:profiles:crustdata@1":fC,"people:profiles:crustdata@2":PC,"companies:profiles:crustdata@1":WS,"companies:profiles:crustdata@2":SS,"people:profiles:amplemarket@1":tC,"people:profiles:amplemarket@2":CC,"companies:profiles:amplemarket@1":NS,"companies:profiles:amplemarket@2":dS},RC={"people:profiles:crustdata@1":pC,"people:profiles:crustdata@2":FC,"companies:profiles:crustdata@1":GS,"companies:profiles:crustdata@2":CS,"people:profiles:amplemarket@1":nC,"people:profiles:amplemarket@2":wC,"companies:profiles:amplemarket@1":PS,"companies:profiles:amplemarket@2":fS},zC={"people:profiles:crustdata@1":mC,"people:profiles:crustdata@2":IC,"companies:profiles:crustdata@1":KS,"companies:profiles:crustdata@2":wS,"people:profiles:amplemarket@1":rC,"people:profiles:amplemarket@2":TC,"companies:profiles:amplemarket@1":FS,"companies:profiles:amplemarket@2":pS};function BC(e){return LC[e]}const VC=t.discriminatedUnion(`search_id`,Object.values(RC).map(e=>e)).openapi(`SearchPayloadSchema`);function HC(e,t){return Ca(t,zC[e].defaultPayload)}const UC=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=HC(e.search_id);return t?{...e,config:Ca(e?.config||{},t.config)}:e},VC),WC=t.object({config:t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}).default({environment:`production`,widgets:{enabled:!1}}),search:UC}).openapi(`SearchRequestSchema`),GC=In,KC=t.object({value:Cn,status:Sn,type:bn.optional(),format:zn.nullable().optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),qC=t.record(t.string(),KC.nullable());function JC(e){return RC[e]}const YC=t.enum([`cursor`,`page_number`]),XC=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:Kx,errors:t.array(GC),results:t.array(qC),organization_id:t.string(),next_page:UC.nullable(),pagination_type:YC.nullable(),total_pages:t.int32().nullable()}).openapi(`SearchResponseSchema`);function ZC(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function QC(){let e={};for(let t of Object.values(zC)){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=ZC(e.searchId);return ZC(t.searchId)-n})}),e}function $C(e){return zC[e]}const ew=QC();function tw(e){let t=[];for(let[n,r]of Object.entries(ew)){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:ZC(i.searchId)})}return t}function nw(e){return Object.keys(zC[e].defaultPayload.config.output_fields)}function rw(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 nw(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:ew}}function iw(e){let t=$C(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}const aw={"config.pagination":{order:0,label:`Pagination`,iconKey:`list`,defaultExpand:!0},"config.prompt":{order:1,label:`Prompt`,iconKey:`sparkles`,defaultExpand:!0},"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:0,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},"config.continue_existing_search":{order:0,label:`Continue existing search`,iconKey:`history`,defaultExpand:!1},"config.output_fields":{order:10,label:`Outputs`,iconKey:`output`,defaultExpand:!1},"config.filters.query":{order:2,label:`Query`,iconKey:`text`,defaultExpand:!0},"config.filters.personal_information":{label:`Personal information`,order:6,iconKey:`user`,defaultExpand:!1},"config.filters.job_information":{label:`Job information`,order:6,iconKey:`job`,defaultExpand:!1},"config.filters.company_information":{order:1,label:`Company information`,iconKey:`office`,defaultExpand:!1},"config.filters.education":{label:`Education`,iconKey:`school`,defaultExpand:!1},"config.filters.geografic":{label:`Location`,iconKey:`location`,defaultExpand:!1},"config.filters.location":{label:`Location`,iconKey:`location`,defaultExpand:!1},"config.filters.general":{label:`General`,iconKey:`filter`,defaultExpand:!1,order:1},"config.filters.job_openings":{label:`Job openings`,iconKey:`calendar`,defaultExpand:!1},"config.filters.website":{label:`Website`,iconKey:`web`,defaultExpand:!1},"config.filters.web_presence":{label:`Web presence`,iconKey:`web`,defaultExpand:!1},"config.filters.keywords":{label:`Keywords`,iconKey:`tags`,defaultExpand:!1},"config.filters.competitors":{label:`Competitors`,iconKey:`cometition`,defaultExpand:!1},"config.filters.categories":{label:`Categories`,iconKey:`boxes`,defaultExpand:!1},"config.filters.investors":{label:`Investors`,iconKey:`handshake`,defaultExpand:!1},"config.filters.account_activities":{label:`Account Activities`,iconKey:`activity`,defaultExpand:!1},"config.filters.financials":{label:`Financials`,iconKey:`chart`,defaultExpand:!1},"config.filters.languages":{label:`Languages`,iconKey:`language`,defaultExpand:!1},"config.filters.company_size":{label:`Company size`,iconKey:`office`,defaultExpand:!1},"config.filters.linkedin":{label:`LinkedIn`,iconKey:`linkedin`,defaultExpand:!1},"config.filters.skills":{label:`Skills`,iconKey:`brain`,defaultExpand:!1},"config.filters.activities":{label:`Activities`,iconKey:`bolt`,defaultExpand:!1},"config.filters.certifications_honors":{label:`Certifications & honors`,iconKey:`award`,defaultExpand:!1},"config.filters.profile":{label:`Profile`,iconKey:`contact`,defaultExpand:!1},"config.filters.experience":{label:`Employment history`,iconKey:`history`,defaultExpand:!1},"config.filters.current_employer":{label:`Current job`,iconKey:`briefcase`,defaultExpand:!1},"config.filters.current_company":{label:`Current Company`,iconKey:`office`,defaultExpand:!1},"config.filters.industry":{label:`Industries`,iconKey:`factory`,defaultExpand:!1},"config.filters.general_search":{label:`General search`,iconKey:`search`,defaultExpand:!1}},ow={general:{type:`form_section`,path:`general`,label:`General`,description:`Search settings and pagination.`},pagination:{type:`form_section`,path:`pagination`,label:`General`},"config.filters":{type:`form_section`,path:`config.filters`,label:`Filters`,description:`Narrow the search results.`},pipe_io:{type:`form_section`,path:``,label:`Output fields`}},sw={general:1,pagination:2,"config.filters":10,"config.output_fields":20,"config.input_fields":21,"config.pipe_io":22,"config.extractions":23,conditions:90,connector:91};function cw({searchPayload:e,sectionOrder:t=sw,formContext:n,groupPathMatch:r=aw,formResolvers:i}){return Bi({schema:JC(e.search_id),groupPathMatch:r,extractFromSchema:e=>b.get(e),sectionOrder:t,sectionMap:ow,store:n,formResolvers:i})}const lw=new Proxy({},{get:(e,t)=>e=>e.type===t}),uw=`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(`.`),dw=r.enum(uw),fw=r.object({provider_logo:r.object({provider:hn}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:dw}).optional(),logo_url:r.object({url:r.string(),alt:r.string().optional()}).optional(),pricing:r.object({credits:r.number()}).optional(),field_type:r.object({type:r.string(),format:r.string().optional()}).optional()}),pw=`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(pw);const mw=r.object({value:r.string(),label:r.string(),widgets:fw.optional()}),hw=r.object({field_options:r.record(r.string(),r.object({options:r.array(mw)}))}),gw=[{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}],_w=new Map(gw.map(e=>[e.id,e]));function vw(e){return _w.get(e)}function yw(){return gw}const bw={"company:funding:leadmagic@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:funding:leadmagic@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"company:identity@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@1`}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@2`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@3`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:overview@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@1`}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"people:phone:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:phone:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"person:mobile:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:mobile:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"people:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_website_url:`https://pipe0.com`}]}],"person:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_domain:`pipe0.com`}]}],"company:techstack:builtwith@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:techstack:builtwith@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"prompt:run@1":[{config:{environment:`production`},pipes:[{pipe_id:`prompt:run@1`,config:{model:`openai-gpt-latest`,prompt:{template:`
74
- Tell me if {{ input name required="true" type="string" }} fits the ICP criteria for my company <YOUR_COMPANY_NAME>.
73
+ }`,inputType:`text`,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`text`,multiline:!0}),headers:Qi({sectionKey:`general`,groupPath:`config.general`,path:`config.headers`,label:`Headers`,info:"Type `@` to insert a field reference or `$` to insert a secret reference in either column (e.g. `Bearer $token`).",keyLabel:`Header`,valueLabel:`Value`,keyPlaceholder:`Authorization`,valuePlaceholder:`Bearer {{ secret … }}`,maxItems:50}),expected_response_schema:ua({sectionKey:`general`,groupPath:`config.advanced`,path:`config.expected_response_schema`,label:`Expected response shape`,description:`Optional JSON Schema. Successful responses that don't satisfy it are marked failed. Extra properties are always tolerated (whitelist).`,required:!1,allowEmpty:!0}),output_fields:R(r.object({[$h.name]:k({fieldName:$h.name}),[eg.name]:k({fieldName:eg.name}),[tg.name]:k({fieldName:tg.name})}))})}),rg={"http-request-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:.001,mode:`always`}},ig=class extends U{pipeId=Qh;payload;payloadSchema=ng;billableOperations=rg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`http-request-pipe0`]}getTemplatedFields(){let e=[this.payload.config.url,this.payload.config.body];for(let t of this.payload.config.query_params??[])e.push(t.key,t.value);for(let t of this.payload.config.headers??[])e.push(t.key,t.value);return e}getInputRequirement(){return Hm(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[$h.name]:this.catalogOutput($h),[eg.name]:this.catalogOutput(eg),[tg.name]:this.catalogOutput(tg)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},ag=ng,og={pipeId:Qh,basePipe:W(Qh),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:[B.LOGIC,B.JSON,B.NEW],docPath:G(Qh),billableOperations:rg,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Qh,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}}}}},sg=`json:extract:multi@1`,cg=r.object({pipe_id:r.literal(sg),run_if:S(),connector:T(),config:r.object({json_extraction:hi()})}),lg={"extract-json-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},ug=class extends U{pipeId=sg;payload;payloadSchema=cg;billableOperations=lg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`extract-json-pipe0`]}getInputRequirement(){return V({description:``,name:this.payload.config.json_extraction.field_name,format:null,label:``,type:`json`,resolvedName:this.payload.config.json_extraction.field_name})}getRawOutputFields(){let e={};for(let t of this.payload.config.json_extraction.extractions)e[t.output_field.name||t.output_field.name]={description:`Extracted value from JSON input field ${this.payload.config.json_extraction.field_name}.`,enabled:!0,format:t.output_field.format||null,label:t.output_field.label||`Extract JSON`,name:t.output_field.name,resolvedName:t.output_field.name,jsonMeta:null,type:t.output_field.type,isCatalogFIeld:!1,isPrimaryOutput:!1};return e}getConnectionsRequirements(){return[]}},dg=cg,fg={pipeId:sg,basePipe:W(sg),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:G(sg),tags:[B.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:lg,defaultInputRequirement:null,defaultPayload:{pipe_id:sg,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},pg=`message:send:slack@1`,mg=_(`slack_message_success`),hg=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],gg=r.object({pipe_id:r.literal(pg),connector:Gi(),run_if:S(),config:r.object({channel_id:C({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 hg;if(!t)throw new Rs.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 Rs.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new Rs.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:C({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({[mg.name]:k({fieldName:mg.name})}))})}),_g={"message-send-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},vg=class extends U{pipeId=pg;payload;payloadSchema=gg;billableOperations=_g;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(){return[`message-send-slack`]}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return Hm(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[mg.name]:this.catalogOutput(mg)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},yg=gg,bg={pipeId:pg,basePipe:W(pg),label:`Send message into channel`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send a Slack message to a channel.`,detailed_description:"Send a Slack message. The channel ID and message body are templated config fields — reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Slack vault connection (call list_connections to find one).",tags:[B.CHAT],docPath:G(pg),billableOperations:_g,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:pg,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},xg=`message:write@1`,Sg=_(`message`),Cg=ti(`write-message`),wg=r.object({pipe_id:r.literal(xg),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:Z(`prompt`),groupPath:`config.prompt`,required:!0}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Cg}),output_fields:R(r.object({[Sg.name]:k({fieldName:Sg.name})}))})}),Tg=class extends U{pipeId=xg;payload;payloadSchema=wg;billableOperations=Cg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ni(this.payload.config.model)}estimateBillableOperations(){return[ri(this.payload.config.model,`write-message`)]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[Sg.name]:this.catalogOutput(Sg)}}getConnectionsRequirements(){return ii(this.payload.config.model)}},Eg=wg,Dg={pipeId:xg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(xg),label:`Message writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing messages for modern workplace communication platforms (Slack, Teams, Discord, etc.)`,detailed_description:`AI message composer for Slack/Teams/Discord. Outputs: message. Pair with message:send:slack@1 to send.`,tags:[B.AI],docPath:G(xg),defaultInputRequirement:null,billableOperations:Cg,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:xg,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},Og=`person:email:validate:millionverifier@1`,kg=_(`email`),Ag=_(`email_validation_status`),jg=_(`million_validation_match`),Mg=r.object({pipe_id:r.literal(Og),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[kg.name]:E({fieldName:kg.name})})),output_fields:R(r.object({[Ag.name]:k({fieldName:Ag.name}),[jg.name]:k({fieldName:jg.name})}))}).optional()}),Ng=e=>V(K(kg,e)),Pg={"validate-email-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:.1,mode:`always`}},Fg=class extends U{pipeId=Og;payload;payloadSchema=Mg;billableOperations=Pg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`validate-email-millionverifier`]}getInputRequirement(){return Ng(this.payload.config)}getRawOutputFields(){return{[Ag.name]:this.catalogOutput(Ag),[jg.name]:this.catalogOutput(jg)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},Ig=Mg,Lg={pipeId:Og,basePipe:W(Og),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[B.EMAIL],docPath:G(Og),billableOperations:Pg,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:Ng(null),defaultPayload:{pipe_id:Og,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},Rg=_(`email`),zg=_(`amplemarket_person_match`),Bg=`person:identity:amplemarket@1`,Vg=r.object({pipe_id:r.literal(Bg),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Rg.name]:E({fieldName:Rg.name})})),output_fields:R(r.object({[zg.name]:k({fieldName:zg.name})}))}).optional()}),Hg=e=>V(K(Rg,e)),Ug={"person-identity-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},Wg=class extends U{pipeId=Bg;payload;payloadSchema=Vg;billableOperations=Ug;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return Hg(this.payload.config)}getRawOutputFields(){return{[zg.name]:this.catalogOutput(zg)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},Gg=Vg,Kg={pipeId:Bg,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Bg),label:`Person identity`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their email`,tags:[B.PEOPLE_PROFILES],docPath:G(Bg),billableOperations:Ug,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:Hg(null),defaultPayload:{pipe_id:Bg,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},qg=`person:identity:email:waterfall@1`,Jg=_(`email`),Yg=_(`company_domain`),Xg=_(`name`),Zg=_(`job_title`),Qg=_(`profile_url`),$g=_(`company_profile_url`),e_=_(`company_name`),t_=[`findymail`,`hunter`,`crustdata`],n_=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],r_=r.object({pipe_id:r.literal(qg),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:t_,defaultProviders:n_,sectionKey:`general`}),input_fields:z(r.object({[Jg.name]:E({fieldName:Jg.name})})),output_fields:R(r.object({[Xg.name]:k({fieldName:Xg.name}),[Qg.name]:k({fieldName:Qg.name}),[Zg.name]:k({fieldName:Zg.name}),[Yg.name]:k({fieldName:Yg.name}),[e_.name]:k({fieldName:e_.name}),[$g.name]:k({fieldName:$g.name})}))}).optional()}),i_=e=>V(K(Jg,e)),a_={"reverse-email-lookup-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"reverse-email-lookup-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"reverse-email-lookup-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:5,mode:`onSuccess`}},o_=class extends U{pipeId=qg;payload;payloadSchema=r_;billableOperations=a_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return i_(this.payload.config)}getRawOutputFields(){return{[Xg.name]:this.catalogOutput(Xg,{isPrimaryOutput:!0}),[Qg.name]:this.catalogOutput(Qg,{isPrimaryOutput:!0}),[Zg.name]:this.catalogOutput(Zg,{isPrimaryOutput:!0}),[e_.name]:this.catalogOutput(e_,{isPrimaryOutput:!0}),[$g.name]:this.catalogOutput($g,{isPrimaryOutput:!0}),[Yg.name]:this.catalogOutput(Yg,{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:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},s_=r_,c_={pipeId:qg,basePipe:W(qg),label:`Person identity from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find identity of a person from their email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(qg),managedProviders:t_,deprecatedProviders:[],allowedUserConnectionProviders:t_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:a_,defaultInputRequirement:i_(null),defaultPayload:{pipe_id:qg,connector:null,run_if:null,config:{providers:n_,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}}}}},l_=_(`profile_url`),u_=_(`amplemarket_person_match`),d_=`person:match:amplemarket@1`,f_=r.object({pipe_id:r.literal(d_),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[l_.name]:E({fieldName:l_.name})})),output_fields:R(r.object({[u_.name]:k({fieldName:u_.name})}))}).optional()}),p_=e=>V(K(l_,e)),m_={"person-match-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},h_=class extends U{pipeId=d_;payload;payloadSchema=f_;billableOperations=m_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return p_(this.payload.config)}getRawOutputFields(){return{[u_.name]:this.catalogOutput(u_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},g_=f_,__={pipeId:d_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(d_),label:`Person match`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their LinkedIn profile URL.`,tags:[B.PEOPLE_PROFILES],docPath:G(d_),billableOperations:m_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:p_(null),defaultPayload:{pipe_id:d_,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},v_=`person:match:role:waterfall@1`,y_=_(`company_domain`),b_=_(`role_finder_match`),x_=[`leadmagic`],S_=[{provider:`leadmagic`}],C_=r.object({pipe_id:r.literal(v_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:S_,availableProviders:x_}),roles:Zi({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1,suggestionsDef:g(`titles`),expectedTagType:`string`}),input_fields:z(r.object({[y_.name]:E({fieldName:y_.name})})),output_fields:R(r.object({[b_.name]:k({fieldName:b_.name})}))})}),w_=e=>H(K(y_,e)),T_={"find-role-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:1,mode:`onSuccess`}},E_=class extends U{pipeId=v_;payload;payloadSchema=C_;billableOperations=T_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return w_(this.payload.config)}getSecretRequirements(){return Y(this.payload.config?.roles??[])}getConstantRequirements(){return X(this.payload.config?.roles??[])}getRawOutputFields(){return{[b_.name]:this.catalogOutput(b_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},D_=C_,O_={pipeId:v_,basePipe:W(v_),managedProviders:x_,deprecatedProviders:[],allowedUserConnectionProviders:x_,label:`Role finder`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[B.PEOPLE_PROFILES],docPath:G(v_),billableOperations:T_,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:w_(null),defaultPayload:{pipe_id:v_,run_if:null,connector:null,config:{roles:[],providers:S_,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},k_=`person:mobile:profileurl:waterfall@1`,A_=_(`profile_url`),j_=_(`mobile`),M_=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],N_=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],P_=r.object({pipe_id:r.literal(k_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:N_,availableProviders:M_}),input_fields:z(r.object({[A_.name]:E({fieldName:A_.name})})),output_fields:R(r.object({[j_.name]:k({fieldName:j_.name})}))}).optional()}),F_=e=>V(K(A_,e)),I_={"mobile-from-profile-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"mobile-from-profile-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:5,mode:`onSuccess`},"mobile-from-profile-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:6,mode:`onSuccess`},"phone-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:4,mode:`onSuccess`}},L_=class extends U{pipeId=k_;payload;payloadSchema=P_;billableOperations=I_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return F_(this.payload.config)}getRawOutputFields(){return{[j_.name]:this.catalogOutput(j_,{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:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},R_=P_,z_={pipeId:k_,basePipe:W(k_),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:G(k_),tags:[B.PHONE,B.WATERFALL],billableOperations:I_,defaultInputRequirement:F_(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:M_,allowedUserConnectionProviders:M_,deprecatedProviders:[],defaultPayload:{pipe_id:k_,connector:null,run_if:null,config:{providers:N_,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},B_=`person:mobile:workemail:waterfall@1`,V_=_(`work_email`),H_=_(`mobile`),U_=[`leadmagic`,`amplemarket`],W_=[{provider:`leadmagic`},{provider:`amplemarket`}],G_=r.object({pipe_id:r.literal(B_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:U_,defaultProviders:W_}),input_fields:z(r.object({[V_.name]:E({fieldName:V_.name})})),output_fields:R(r.object({[H_.name]:k({fieldName:H_.name})}))}).optional()}),K_=e=>V(K(V_,e)),q_={"mobile-from-workemail-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"email-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:4,mode:`onSuccess`}},J_=class extends U{pipeId=B_;payload;payloadSchema=G_;billableOperations=q_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return K_(this.payload.config)}getRawOutputFields(){return{[H_.name]:this.catalogOutput(H_,{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:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Y_=G_,X_={pipeId:B_,basePipe:W(B_),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for a prospect.`,tags:[B.PHONE,B.WATERFALL],docPath:G(B_),billableOperations:q_,defaultInputRequirement:K_(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:U_,managedProviders:U_,deprecatedProviders:[],defaultPayload:{pipe_id:B_,connector:null,run_if:null,config:{providers:W_,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Z_=`person:name:join@1`,Q_=_(`first_name`),$_=_(`last_name`),ev=_(`name`),tv=r.object({pipe_id:r.literal(Z_),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Q_.name]:E({fieldName:Q_.name}),[$_.name]:E({fieldName:$_.name})})),output_fields:R(r.object({[ev.name]:k({fieldName:ev.name})}))}).optional()}),nv=e=>Ea(K(Q_,e),K($_,e)),rv={"join-name-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},iv=class extends U{pipeId=Z_;payload;payloadSchema=tv;billableOperations=rv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`join-name-pipe0`]}getInputRequirement(){return nv(this.payload.config)}getRawOutputFields(){return{[ev.name]:this.catalogOutput(ev)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},av=tv,ov={pipeId:Z_,basePipe:W(Z_),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:[B.NAMES],docPath:G(Z_),billableOperations:rv,defaultInputRequirement:nv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Z_,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},sv=`person:name:split@1`,cv=_(`name`),lv=_(`first_name`),uv=_(`last_name`),dv=r.object({pipe_id:r.literal(sv),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[cv.name]:E({fieldName:cv.name})})),output_fields:R(r.object({[lv.name]:k({fieldName:lv.name}),[uv.name]:k({fieldName:uv.name})}))}).optional()}),fv=e=>V(K(cv,e)),pv={"split-name-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},mv=class extends U{pipeId=sv;payload;payloadSchema=dv;billableOperations=pv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`split-name-pipe0`]}getInputRequirement(){return fv(this.payload.config)}getRawOutputFields(){return{[lv.name]:this.catalogOutput(lv),[uv.name]:this.catalogOutput(uv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},hv=dv,gv={pipeId:sv,basePipe:W(sv),label:`Split name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Split a full name into first and last name.`,tags:[B.NAMES],docPath:G(sv),billableOperations:pv,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:fv(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:sv,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},_v=`person:personalemail:profileurl:waterfall@1`,vv=_(`profile_url`),yv=_(`personal_email`),bv=_(`alternate_personal_emails`),xv=[`leadmagic`,`mixrank`],Sv=[{provider:`leadmagic`},{provider:`mixrank`}],Cv=r.object({pipe_id:r.literal(_v),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:xv,defaultProviders:Sv}),input_fields:z(r.object({[vv.name]:E({fieldName:vv.name})})),output_fields:R(r.object({[yv.name]:k({fieldName:yv.name}),[bv.name]:k({fieldName:bv.name})}))}).optional()}),wv=e=>V(K(vv,e)),Tv={"personal-email-from-profile-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"personal-email-reveal-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:1,mode:`onSuccess`}},Ev=class extends U{pipeId=_v;payload;payloadSchema=Cv;billableOperations=Tv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return wv(this.payload.config)}getRawOutputFields(){return{[yv.name]:this.catalogOutput(yv,{isPrimaryOutput:!0}),[bv.name]:this.catalogOutput(bv)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Dv=Cv,Ov={pipeId:_v,basePipe:W(_v),allowedUserConnectionProviders:xv,managedProviders:xv,deprecatedProviders:[],label:`Find personal email`,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:[B.EMAIL,B.PERSONAL_EMAIL],docPath:G(_v),billableOperations:Tv,defaultInputRequirement:wv(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:_v,connector:null,run_if:null,config:{providers:Sv,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},kv=_(`profile_url`),Av=_(`post_list_string`),jv=_(`crustdata_post_list`),Mv=`person:posts:crustdata@1`,Nv=r.object({pipe_id:r.literal(Mv),run_if:S(),connector:w(),config:r.object({limit:ca({path:`config.limit`,groupPath:`config.general`,max:100,min:1,required:!0,sectionKey:`general`,info:``,label:`Limit`,legend:`Max. 100`}),input_fields:z(r.object({[kv.name]:E({fieldName:kv.name})})),output_fields:R(r.object({[Av.name]:k({fieldName:Av.name}),[jv.name]:k({fieldName:jv.name})}))}).optional()}),Pv=e=>V(K(kv,e)),Fv={"single-post-fetch-crustdata":{allowManagedConnection:!0,credits:1.5,mode:`onSuccess`,note:`1.5 credits per post. Posts are fetched in increments of 5.`,provider:`crustdata`}},Iv=class extends U{pipeId=Mv;payload;payloadSchema=Nv;billableOperations=Fv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`single-post-fetch-crustdata`]}getInputRequirement(){return Pv(this.payload.config)}getRawOutputFields(){return{[Av.name]:this.catalogOutput(Av),[jv.name]:this.catalogOutput(jv)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},Lv=Nv,Rv={pipeId:Mv,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Mv),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[B.LINKEDIN],docPath:G(Mv),billableOperations:Fv,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Pv(null),defaultPayload:{pipe_id:Mv,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}}}}},zv=`person:profile:waterfall@1`,Bv=_(`profile`),Vv=_(`profile_url`),Hv=[`prospeo`,`icypeas`,`amplemarket`],Uv=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Wv=r.object({pipe_id:r.literal(zv),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Hv,defaultProviders:Uv}),input_fields:z(r.object({[Vv.name]:E({fieldName:Vv.name})})),output_fields:R(r.object({[Bv.name]:k({fieldName:Bv.name})}))}).optional()}),Gv=e=>V(K(Vv,e)),Kv={"professional-profile-icypeas":{provider:`icypeas`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"professional-profile-prospeo":{provider:`prospeo`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"person-match-amplemarket":{provider:`amplemarket`,credits:1,mode:`onSuccess`,allowManagedConnection:!0}},qv=class extends U{pipeId=zv;payload;payloadSchema=Wv;billableOperations=Kv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Gv(this.payload.config)}getRawOutputFields(){return{[Bv.name]:this.catalogOutput(Bv,{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:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Jv=Wv,Yv={pipeId:zv,basePipe:W(zv),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:G(zv),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:Hv,deprecatedProviders:[],allowedUserConnectionProviders:Hv,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Kv,defaultInputRequirement:Gv(null),defaultPayload:{pipe_id:zv,run_if:null,connector:null,config:{providers:Uv,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Xv=_(`work_email`),Zv=_(`crustdata_person_match`),Qv=_(`crustdata_profile_match_score`),$v=`person:profile:workemail:crustdata@1`,ey=r.object({pipe_id:r.literal($v),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Xv.name]:E({fieldName:Xv.name})})),output_fields:R(r.object({[Zv.name]:k({fieldName:Zv.name}),[Qv.name]:k({fieldName:Qv.name})}))}).optional()}),ty=e=>V(K(Xv,e)),ny={"profile-from-workemail-crustdata":{allowManagedConnection:!0,credits:5,mode:`onSuccess`,provider:`crustdata`}},ry=class extends U{pipeId=$v;payload;payloadSchema=ey;billableOperations=ny;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`profile-from-workemail-crustdata`]}getInputRequirement(){return ty(this.payload.config)}getRawOutputFields(){return{[Zv.name]:this.catalogOutput(Zv),[Qv.name]:this.catalogOutput(Qv)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},iy=ey,ay={pipeId:$v,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W($v),label:`Profile from work email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find person profile by their work email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G($v),billableOperations:ny,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:ty(null),defaultPayload:{pipe_id:$v,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}}}}},oy=`person:profileurl:email:waterfall@1`,sy=_(`email`),cy=_(`work_email`),ly=_(`profile_url`),uy=[`leadmagic`],dy=[{provider:`leadmagic`}],fy=r.object({pipe_id:r.literal(oy),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:dy,availableProviders:uy}),input_fields:z(r.object({[sy.name]:E({fieldName:sy.name}),[cy.name]:E({fieldName:cy.name})})),output_fields:R(r.object({[ly.name]:k({fieldName:ly.name})}))}).optional()}),py=e=>H(K(sy,e),K(cy,e)),my={"profileurl-from-email-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:3.5,mode:`onSuccess`}},hy=class extends U{pipeId=oy;payload;payloadSchema=fy;billableOperations=my;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return py(this.payload.config)}getRawOutputFields(){return{[ly.name]:this.catalogOutput(ly,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},gy=fy,_y={pipeId:oy,basePipe:W(oy),managedProviders:uy,deprecatedProviders:[],allowedUserConnectionProviders:uy,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:[B.LINKEDIN],docPath:G(oy),billableOperations:my,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:py(null),defaultPayload:{pipe_id:oy,run_if:null,connector:null,config:{providers:dy,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},vy=`person:profileurl:name@1`,yy=_(`name`),by=_(`company_name`),xy=_(`location_hint`),Sy=_(`profile_url`),Cy=r.object({pipe_id:r.literal(vy),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[yy.name]:E({fieldName:yy.name}),[by.name]:E({fieldName:by.name}),[xy.name]:E({fieldName:xy.name})})),output_fields:R(r.object({[Sy.name]:k({fieldName:Sy.name})}))}).optional()}),wy=e=>Ea(V(K(yy,e)),V(K(by,e)),Da(K(xy,e))),Ty={"profileurl-from-name-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:.6,mode:`always`}},Ey=class extends U{pipeId=vy;payload;payloadSchema=Cy;billableOperations=Ty;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`profileurl-from-name-pipe0`]}getInputRequirement(){return wy(this.payload.config)}getRawOutputFields(){return{[Sy.name]:this.catalogOutput(Sy)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},Dy=Cy,Oy={pipeId:vy,basePipe:W(vy),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:G(vy),tags:[B.LINKEDIN],billableOperations:Ty,defaultInputRequirement:wy(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:vy,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},ky=`person:workemail:profileurl:waterfall@1`,Ay=_(`profile_url`),jy=_(`work_email`),My=_(`email_validation_status`),Ny=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],Py=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Fy=r.object({pipe_id:r.literal(ky),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:Ny,defaultProviders:Py,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({[Ay.name]:E({fieldName:Ay.name})})),output_fields:R(r.object({[jy.name]:k({fieldName:jy.name}),[My.name]:k({fieldName:My.name})}))}).optional()}),Iy=e=>V(K(Ay,e)),Ly={"workemail-from-profileurl-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"workemail-from-profileurl-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"workemail-from-profileurl-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"workemail-from-profileurl-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:3,mode:`onSuccess`},"email-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:2.5,mode:`onSuccess`}},Ry=class extends U{pipeId=ky;payload;payloadSchema=Fy;billableOperations=Ly;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Iy(this.payload.config)}getRawOutputFields(){return{[jy.name]:this.catalogOutput(jy,{isPrimaryOutput:!0}),[My.name]:this.catalogOutput(My,{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:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},zy=Fy,By={pipeId:ky,basePipe:W(ky),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses from B2B profile.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(ky),managedProviders:Ny,allowedUserConnectionProviders:Ny,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Ly,defaultInputRequirement:Iy(null),defaultPayload:{pipe_id:ky,connector:null,run_if:null,config:{providers:Py,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}}}}},Vy=`person:workemail:waterfall@1`,Hy=_(`name`),Uy=_(`company_domain`),Wy=_(`company_name`),Gy=_(`work_email`),Ky=_(`email_validation_status`),qy=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Jy=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Yy={"work-email-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:.5,mode:`onSuccess`},"work-email-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:.5,mode:`onSuccess`},"work-email-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"work-email-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"work-email-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"email-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:2.5,mode:`onSuccess`}},Xy=r.object({pipe_id:r.literal(Vy),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:qy,defaultProviders:Jy,sectionKey:`general`,providerCredits:La(Yy,qy)}),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({[Hy.name]:E({fieldName:Hy.name}),[Uy.name]:E({fieldName:Uy.name}),[Wy.name]:E({fieldName:Wy.name})})),output_fields:R(r.object({[Gy.name]:k({fieldName:Gy.name}),[Ky.name]:k({fieldName:Ky.name})}))}).optional()}),Zy=e=>Ea(V(K(Hy,e)),H(K(Uy,e),K(Wy,e))),Qy=class extends U{pipeId=Vy;payload;payloadSchema=Xy;billableOperations=Yy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Zy(this.payload.config)}getRawOutputFields(){return{[Gy.name]:this.catalogOutput(Gy,{isPrimaryOutput:!0}),[Ky.name]:this.catalogOutput(Ky,{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:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},$y=Xy,eb={pipeId:Vy,basePipe:W(Vy),label:`Work email from name`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses in a waterfall motion.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(Vy),managedProviders:qy,deprecatedProviders:[],allowedUserConnectionProviders:qy,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Yy,defaultInputRequirement:Zy(null),defaultPayload:{pipe_id:Vy,connector:null,run_if:null,config:{providers:Jy,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}}}}},tb=`prompt:run@1`,nb=ti(`prompt`),rb=r.object({pipe_id:r.literal(tb),connector:w(),run_if:S(),config:r.object({prompt:Hi({sectionKey:`general`,path:`config.prompt`,placeholder:Z(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:nb})})}),ib=class extends U{pipeId=tb;payload;payloadSchema=rb;billableOperations=nb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ni(this.payload.config.model)}estimateBillableOperations(){return[ri(this.payload.config.model,`prompt`)]}getInputRequirement(){return Hm([this.payload.config.prompt.template])}getSecretRequirements(){return Y([this.payload.config.prompt.template])}getConstantRequirements(){return X([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=jr(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 ii(this.payload.config.model)}},ab=rb,ob={pipeId:tb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(tb),label:`AI prompt`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,description:`Executes configurable AI prompts with structured output fields.`,detailed_description:`General-purpose AI prompt runner. Inputs and outputs are fully dynamic — defined by the tags in the prompt template.`,tags:[B.AI],docPath:G(tb),defaultInputRequirement:null,billableOperations:nb,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:tb,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},sb=`sheet:row:append@1`,cb=_(`sheet_record_id`),lb=_(`created_sheet`),ub=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],db=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],fb={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?ub: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`}}},pb={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?db:t?(await t.teams.list({query:e})).map(e=>({label:e.name,value:e.id})):[],widgets:{provider_logo:{provider:`pipe0`}}},mb=r.object({pipe_id:r.literal(sb),connector:Gi(),run_if:S(),config:r.object({sheet:C({label:`Destination sheet`,info:"Sheet identifier. Either a literal slug, or type `@` to insert a field reference / `$` to insert a secret reference.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:fb}),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_field_creation:O({label:`Create unkown fields`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_field_creation`,sectionKey:`general`,description:`Add unkown fields as new sheet columns.`}),allow_sheet_creation:O({label:`Create missing sheets`,description:`Create new sheet if none exists with the provided name`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_sheet_creation`,sectionKey:`general`}),new_sheet_team_id:da({label:`Team`,info:`Optional hint for the team where the sheet should be created. Only used when a new sheet is created.`,placeholder:`Select a team…`,required:!1,groupPath:`config.advanced`,path:`config.new_sheet_team_id`,sectionKey:`general`,optionsDef:pb,enabledIf:e=>e.config?.allow_sheet_creation?{disabled:!1}:{disabled:!0,message:`Turn on “Upsert sheets” to specify a team.`}}),included_fields:qi({label:`Fields`,info:`All fields are written if empty.`,groupPath:`config.general`,path:`config.included_fields`,sectionKey:`general`,disableSearch:!0}),output_fields:R(r.object({[cb.name]:k({fieldName:cb.name}),[lb.name]:k({fieldName:lb.name})}))})}),hb={"sheet-row-append-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},gb=class extends U{pipeId=sb;payload;payloadSchema=mb;billableOperations=hb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-append-pipe0`]}getInputRequirement(){let e=[Hm([this.payload.config.sheet],{expectedType:`string`,expectedFormat:`text`})];if(this.payload.config.included_fields?.length)for(let t of this.payload.config.included_fields)e.push(V({name:t.field_name,resolvedName:t.field_name,label:``,description:``,type:e=>{let n=Vm(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 Ea(...e)}getSecretRequirements(){return Y([this.payload.config.sheet])}getConstantRequirements(){return X([this.payload.config.sheet])}getRawOutputFields(){return{[cb.name]:this.catalogOutput(cb),[lb.name]:this.catalogOutput(lb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},_b=mb,vb={pipeId:sb,basePipe:W(sb),label:`Append row to sheet`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:"Add rows to a pipe0 sheet. The sheet identifier may be a literal slug or a `{{ field_name }}` tag.",docPath:G(sb),tags:[B.FIELDS],billableOperations:hb,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:sb,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,run:!0,allow_field_creation:!0,allow_sheet_creation:!0,new_sheet_team_id:``,included_fields:[],output_fields:{sheet_record_id:{alias:``,enabled:!0},created_sheet:{alias:``,enabled:!0}}}}},yb=`sheet:row:expandappend@1`,bb=_(`sheet_record_ids`),xb=_(`input_objects`),Sb=r.object({pipe_id:r.literal(yb),connector:Gi(),run_if:S(),config:r.object({sheet:ra({label:`Sheet name`,info:`Unique identifier for the sheet`,groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3}),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_field_creation:O({defaultValue:!0,groupPath:`config.general`,path:`config.allow_field_creation`,sectionKey:`general`,info:`Add unkown object fields to the sheet definition.`,label:`Allow field creation`}),input_fields:z(r.object({[xb.name]:E({fieldName:xb.name})})),output_fields:R(r.object({[bb.name]:k({fieldName:bb.name})}))})}),Cb={"sheet-row-appendexpand-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},wb=e=>V(K(xb,e)),Tb=class extends U{pipeId=yb;payload;payloadSchema=Sb;billableOperations=Cb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-appendexpand-pipe0`]}getInputRequirement(){return wb(this.payload.config)}getRawOutputFields(){return{[bb.name]:this.catalogOutput(bb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},Eb=Sb,Db={pipeId:yb,basePipe:W(yb),label:`Object list to sheet rows`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Expand a list of nested objects into sheet rows.`,docPath:G(yb),tags:[B.FIELDS],billableOperations:Cb,defaultInputRequirement:wb(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:yb,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,run:!0,allow_field_creation:!0,input_fields:{input_objects:{alias:``}},output_fields:{sheet_record_ids:{alias:``,enabled:!0}}}}},Ob=`template:fill@1`,kb=_(`template_output`),Ab=r.object({pipe_id:r.literal(Ob),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:Z(`template`),groupPath:`config.general`,required:!0}),output_fields:R(r.object({[kb.name]:k({fieldName:kb.name})}))})}),jb={"template-fill-pipe0":{credits:0,allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Mb=class extends U{pipeId=Ob;payload;payloadSchema=Ab;billableOperations=jb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill-pipe0`]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[kb.name]:this.catalogOutput(kb)}}getConnectionsRequirements(){return[]}},Nb=Ab,Pb={pipeId:Ob,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(Ob),label:`Fill a text template`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Replaces template tags like {{ name }} with actual values.`,tags:[B.TEXT],docPath:G(Ob),defaultInputRequirement:null,billableOperations:jb,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ob,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},Fb=`website:extract:firecrawl@1`,Ib=_(`website_url`),Lb=_(`firecrawl_extract_result`),Rb=r.object({pipe_id:r.literal(Fb),connector:w(),run_if:S(),config:r.object({json_schema:ua({sectionKey:`general`,groupPath:`config.extraction`,path:`config.json_schema`,label:`Output JSON schema`,info:`Specify the data you want to extract as a JSON schema.`,allowEmpty:!1,required:!0}),extraction_prompt:ia({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({[Ib.name]:E({fieldName:Ib.name})})),output_fields:R(r.object({[Lb.name]:k({fieldName:Lb.name})}))})}),zb=e=>V(K(Ib,e)),Bb={"website-extract-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:2,mode:`onSuccess`}},Vb=class extends U{pipeId=Fb;payload;payloadSchema=Rb;billableOperations=Bb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-extract-firecrawl`]}getInputRequirement(){return zb(this.payload.config)}getRawOutputFields(){return{[Lb.name]:this.catalogOutput(Lb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Hb=Rb,Ub={pipeId:Fb,basePipe:W(Fb),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:[B.SCRAPE],docPath:G(Fb),billableOperations:Bb,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:zb(null),defaultPayload:{pipe_id:Fb,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}}}}},Wb=`website:maplinks:firecrawl@1`,Gb={"website-maplinks-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:1,mode:`onSuccess`}},Kb=_(`website_url`),qb=_(`mapped_links`),Jb=r.object({pipe_id:r.literal(Wb),connector:w(),run_if:S(),config:r.object({page_limit:ca({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,required:!1,path:`config.page_limit`,sectionKey:`general`}),sitemap:aa({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:ra({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).default(``),input_fields:z(r.object({[Kb.name]:E({fieldName:Kb.name})})),output_fields:R(r.object({[qb.name]:k({fieldName:qb.name})}))}).optional()}),Yb=e=>V(K(Kb,e)),Xb=class extends U{pipeId=Wb;payload;payloadSchema=Jb;billableOperations=Gb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-maplinks-firecrawl`]}getInputRequirement(){return Yb(this.payload.config)}getRawOutputFields(){return{[qb.name]:this.catalogOutput(qb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},Zb=Jb,Qb={pipeId:Wb,basePipe:W(Wb),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:[B.SCRAPE],docPath:G(Wb),billableOperations:Gb,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Yb(null),defaultPayload:{pipe_id:Wb,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},$b=`website:scrape:firecrawl@1`,ex=_(`website_url`),tx=_(`website_markdown`),nx=_(`website_html`),rx=_(`website_links`),ix=r.object({pipe_id:r.literal($b),connector:w(),run_if:S(),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({[ex.name]:E({fieldName:ex.name})})),output_fields:R(r.object({[tx.name]:k({fieldName:tx.name}),[nx.name]:k({fieldName:nx.name}),[rx.name]:k({fieldName:rx.name})}))}).optional()}),ax=e=>V(K(ex,e)),ox={"website-scrape-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:.1,mode:`onSuccess`}},sx=class extends U{pipeId=$b;payload;payloadSchema=ix;billableOperations=ox;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-scrape-firecrawl`]}getInputRequirement(){return ax(this.payload.config)}getRawOutputFields(){return{[tx.name]:this.catalogOutput(tx),[nx.name]:this.catalogOutput(nx),[rx.name]:this.catalogOutput(rx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},cx=ix,lx={pipeId:$b,basePipe:W($b),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[B.SCRAPE],docPath:G($b),billableOperations:ox,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:ax(null),defaultPayload:{pipe_id:$b,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}}}}},ux=`website:scrapelist:firecrawl@1`,dx={"list-url-scrape-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:.1,mode:`onSuccess`,note:`You are charged per url that is scraped.`}},fx=_(`urls`),px=_(`scrape_list_response`),mx=r.object({pipe_id:r.literal(ux),connector:w(),run_if:S(),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:sa({options:[{label:`Markdown`,value:`markdown`},{label:`HTML`,value:`html`},{label:`Links`,value:`links`}],disableSearch:!0,info:`Choose what you want to scrape from the website`,required:!1,label:`Formats`,sectionKey:`general`,groupPath:`config.general`,path:`config.formats`}),input_fields:z(r.object({[fx.name]:E({fieldName:fx.name})})),output_fields:R(r.object({[px.name]:k({fieldName:px.name})}))}).optional()}),hx=e=>V(K(fx,e)),gx=class extends U{pipeId=ux;payload;payloadSchema=mx;billableOperations=dx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`list-url-scrape-firecrawl`)}getInputRequirement(){return hx(this.payload.config)}getRawOutputFields(){return{[px.name]:this.catalogOutput(px)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},_x=mx,vx={pipeId:ux,basePipe:W(ux),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[B.SCRAPE],docPath:G(ux),billableOperations:dx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:hx(null),defaultPayload:{pipe_id:ux,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}}}}},yx={"prompt:run@1":ib,"company:newssummary:website@1":ml,"company:newssummary:domain@1":cs,"company:techstack:builtwith@1":nu,"company:techstack:builtwith@2":Fs,"company:websiteurl:email@1":du,"company:domain:workemail@1":Za,"company:funding:leadmagic@1":sc,"company:funding:leadmagic@2":fo,"people:workemail:waterfall@1":Em,"person:workemail:waterfall@1":Qy,"people:email:iswork@1":bu,"email:iswork@1":Fm,"people:name:split@1":Yd,"person:name:split@1":mv,"people:validate:email:zerobounce@1":$p,"people:email:validate:zerobounce@2":zu,"email:validate:zerobounce@1":uh,"people:mobilenumber:workemail:waterfall@1":zd,"person:name:join@1":iv,"company:overview@1":kl,"company:overview@2":Gl,"company:overview@3":ws,"json:extract:multi@1":ug,"company:lookalikes:companyenrich@1":Rc,"company:lookalikes:companyenrich@2":Mo,"company:match:logodev@1":al,"company:match:logodev@2":$o,"person:posts:crustdata@1":Iv,"people:profile:workemail:crustdata@1":jp,"person:profile:workemail:crustdata@1":ry,"people:identity:email:waterfall@1":od,"person:identity:email:waterfall@1":o_,"person:identity:amplemarket@1":Wg,"email:send:resend@1":eh,"contact:create:resend@1":qs,"email:send:gmail@1":qm,"email:write@1":yh,"fields:merge@1":Yh,"field:slugify@1":Lh,"field:domainify@1":Oh,"http:request@1":ig,"template:fill@1":Mb,"message:send:slack@1":vg,"message:write@1":Tg,"people:personalemail:profile:waterfall@1":cf,"person:personalemail:profileurl:waterfall@1":Ev,"website:scrape:firecrawl@1":sx,"website:scrapelist:firecrawl@1":gx,"website:extract:firecrawl@1":Vb,"website:maplinks:firecrawl@1":Xb,"sheet:row:append@1":gb,"sheet:row:expandappend@1":Tb,"people:match:role:waterfall@1":_d,"person:match:role:waterfall@1":E_,"company:match:crustdata@1":qc,"company:match:crustdata@2":Vo,"person:match:amplemarket@1":h_,"company:identity@2":kc,"company:identity@3":Co,"people:phone:profile:waterfall@1":yf,"person:mobile:profileurl:waterfall@1":L_,"people:phone:workemail:waterfall@1":Af,"person:mobile:workemail:waterfall@1":J_,"people:profile:waterfall@1":xp,"person:profile:waterfall@1":qv,"people:profileurl:email:waterfall@1":Up,"person:profileurl:email:waterfall@1":hy,"person:profileurl:name@1":Ey,"people:email:validate:zerobounce@1":ku,"person:email:validate:millionverifier@1":Fg,"people:workemail:profileurl:waterfall@1":fm,"person:workemail:profileurl:waterfall@1":Ry,"company:identity@1":vc,"people:professionalprofile:waterfall@1":Vf,"people:professionalprofileurl:name@1":up,"people:professionalprofileurl:email:waterfall@1":$f,"people:mobilenumber:professionalprofile:waterfall@1":Od},bx={"prompt:run@1":ab,"company:newssummary:website@1":hl,"company:newssummary:domain@1":ls,"company:techstack:builtwith@1":ru,"company:techstack:builtwith@2":Is,"company:websiteurl:email@1":fu,"company:domain:workemail@1":Qa,"company:funding:leadmagic@1":cc,"company:funding:leadmagic@2":po,"people:workemail:waterfall@1":Dm,"person:workemail:waterfall@1":$y,"people:email:iswork@1":xu,"email:iswork@1":Im,"people:name:split@1":Xd,"person:name:split@1":hv,"people:validate:email:zerobounce@1":em,"people:email:validate:zerobounce@2":Bu,"email:validate:zerobounce@1":dh,"people:mobilenumber:workemail:waterfall@1":Bd,"person:name:join@1":av,"company:overview@1":Al,"company:overview@2":Kl,"company:overview@3":Ts,"json:extract:multi@1":dg,"email:write@1":bh,"fields:merge@1":Xh,"field:slugify@1":Rh,"field:domainify@1":kh,"http:request@1":ag,"email:send:resend@1":th,"contact:create:resend@1":Js,"company:lookalikes:companyenrich@1":zc,"company:lookalikes:companyenrich@2":No,"company:match:logodev@1":ol,"company:match:logodev@2":es,"person:posts:crustdata@1":Lv,"people:profile:workemail:crustdata@1":Mp,"person:profile:workemail:crustdata@1":iy,"people:identity:email:waterfall@1":sd,"person:identity:email:waterfall@1":s_,"company:match:crustdata@1":Jc,"company:match:crustdata@2":Ho,"person:identity:amplemarket@1":Gg,"message:send:slack@1":yg,"email:send:gmail@1":Jm,"message:write@1":Eg,"template:fill@1":Nb,"website:scrape:firecrawl@1":cx,"website:scrapelist:firecrawl@1":_x,"website:extract:firecrawl@1":Hb,"website:maplinks:firecrawl@1":Zb,"sheet:row:append@1":_b,"sheet:row:expandappend@1":Eb,"people:match:role:waterfall@1":vd,"person:match:role:waterfall@1":D_,"company:identity@2":Ac,"company:identity@3":wo,"people:phone:profile:waterfall@1":bf,"person:mobile:profileurl:waterfall@1":R_,"people:personalemail:profile:waterfall@1":lf,"person:personalemail:profileurl:waterfall@1":Dv,"people:profile:waterfall@1":Sp,"person:profile:waterfall@1":Jv,"people:profileurl:email:waterfall@1":Wp,"person:profileurl:email:waterfall@1":gy,"person:profileurl:name@1":Dy,"people:email:validate:zerobounce@1":Au,"person:email:validate:millionverifier@1":Ig,"people:phone:workemail:waterfall@1":jf,"person:mobile:workemail:waterfall@1":Y_,"people:workemail:profileurl:waterfall@1":pm,"person:workemail:profileurl:waterfall@1":zy,"person:match:amplemarket@1":g_,"company:identity@1":yc,"people:professionalprofile:waterfall@1":Hf,"people:professionalprofileurl:name@1":dp,"people:professionalprofileurl:email:waterfall@1":ep,"people:mobilenumber:professionalprofile:waterfall@1":kd},xx={"prompt:run@1":ob,"company:newssummary:website@1":gl,"company:newssummary:domain@1":us,"company:techstack:builtwith@1":iu,"company:techstack:builtwith@2":Ls,"company:websiteurl:email@1":pu,"company:domain:workemail@1":$a,"company:funding:leadmagic@1":lc,"company:funding:leadmagic@2":mo,"people:workemail:waterfall@1":Om,"person:workemail:waterfall@1":eb,"people:email:iswork@1":Su,"email:iswork@1":Lm,"people:name:split@1":Zd,"person:name:split@1":gv,"people:validate:email:zerobounce@1":tm,"people:mobilenumber:workemail:waterfall@1":Vd,"person:name:join@1":ov,"company:overview@1":jl,"company:overview@2":ql,"company:overview@3":Es,"json:extract:multi@1":fg,"email:send:resend@1":nh,"contact:create:resend@1":Ys,"email:send:gmail@1":Ym,"message:send:slack@1":bg,"message:write@1":Dg,"email:write@1":xh,"template:fill@1":Pb,"fields:merge@1":Zh,"field:slugify@1":zh,"field:domainify@1":Ah,"http:request@1":og,"sheet:row:append@1":vb,"sheet:row:expandappend@1":Db,"company:lookalikes:companyenrich@1":Bc,"company:lookalikes:companyenrich@2":Po,"people:match:role:waterfall@1":yd,"person:match:role:waterfall@1":O_,"company:match:logodev@1":sl,"company:match:logodev@2":ts,"person:posts:crustdata@1":Rv,"people:profile:workemail:crustdata@1":Np,"person:profile:workemail:crustdata@1":ay,"people:workemail:profileurl:waterfall@1":mm,"person:workemail:profileurl:waterfall@1":By,"people:identity:email:waterfall@1":cd,"person:identity:email:waterfall@1":c_,"company:match:crustdata@1":Yc,"company:match:crustdata@2":Uo,"person:identity:amplemarket@1":Kg,"people:personalemail:profile:waterfall@1":uf,"person:personalemail:profileurl:waterfall@1":Ov,"people:email:validate:zerobounce@1":ju,"people:email:validate:zerobounce@2":Vu,"email:validate:zerobounce@1":fh,"person:email:validate:millionverifier@1":Lg,"people:phone:workemail:waterfall@1":Mf,"person:mobile:workemail:waterfall@1":X_,"website:scrape:firecrawl@1":lx,"website:scrapelist:firecrawl@1":vx,"website:extract:firecrawl@1":Ub,"website:maplinks:firecrawl@1":Qb,"person:match:amplemarket@1":__,"company:identity@2":jc,"company:identity@3":To,"people:phone:profile:waterfall@1":xf,"person:mobile:profileurl:waterfall@1":z_,"people:profile:waterfall@1":Cp,"person:profile:waterfall@1":Yv,"people:profileurl:email:waterfall@1":Gp,"person:profileurl:email:waterfall@1":_y,"person:profileurl:name@1":Oy,"company:identity@1":bc,"people:professionalprofile:waterfall@1":Uf,"people:professionalprofileurl:name@1":fp,"people:professionalprofileurl:email:waterfall@1":tp,"people:mobilenumber:professionalprofile:waterfall@1":Ad};function Sx(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function Cx(e){return yx[e]}function wx(e){return xx[e].defaultPayload}function Tx(e){return bx[e]}const Ex=r.discriminatedUnion(`pipe_id`,Object.values(bx)).openapi(`PipePayload`),Dx=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=wx(vn.parse(e.pipe_id));return t?{...e,config:Ca(e?.config||{},t.config)}:e}catch{return e}},Ex);function Ox(e){return xx[e]}function kx(e,t){let n=Ox(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 Ax(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function jx(){let e={};for(let t of Object.values(xx)){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=Ax(e.pipeId);return Ax(t.pipeId)-n})}),e}const Mx=e=>{let t=Ox(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},Nx=jx();function Px(e){let t=[];for(let[n,r]of Object.entries(Nx)){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:Ax(i.pipeId)})}return t}function Fx(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=Mx(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of Sx(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of ka(e.defaultInputRequirement))r[t.name]??=[],r[t.name]?.push(e.defaultPayload.pipe_id);for(let t of e.tags)a[t]??=[],a[t].push(e.defaultPayload.pipe_id)}return{pipeIdsByInputField:r,pipeIdsByOutputField:i,pipeIdsByTag:a,pipeIdsByProvider:o,sortedTagEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),sortedInputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(o).sort((e,t)=>e[0].localeCompare(t[0])),pipeEntriesByBasePipe:Nx}}const Ix=r.object({id:r.string(),organization_id:r.string(),order:r.array(xn),field_definitions:Qn,errors:r.array(In),records:r.record(xn,Yn),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),Lx=r.object({environment:gn.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`),Rx=r.object({config:Lx.openapi(`PipesRequestConfig`),field_annotations:Vn.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(Ex),input:r.array(Jn.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function zx(e){let t=Ox(e);return Object.values(t.billableOperations).reduce((e,t)=>{let n=t.credits||0;return e[t.provider]??=n,e[t.provider]=Math.min(e[t.provider],n),e},{})}const Bx={"config.prompt":{order:1,label:`Prompt`,iconKey:`sparkles`,defaultExpand:!0},"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:0,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},"config.input_fields":{order:0,label:`Input config`,description:`Point pipe inputs to new fields.`,iconKey:`input`,defaultExpand:!1},connector:{order:99,label:`Custom 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}},Vx={general:{type:`form_section`,path:`general`,label:`Behavior`,description:`How this pipe runs and selects providers.`},pagination:{type:`form_section`,path:`pagination`,label:`Behavior`},pipe_io:{type:`form_section`,path:``,label:`I/O & conditions`},"config.filters":{type:`form_section`,path:`config.filters`,label:`I/O & conditions`}},Hx={general:1,pagination:2,"config.input_fields":10,"config.pipe_io":11,"config.output_fields":12,"config.extractions":13,"config.filters":14,conditions:15,connector:16};function Ux(e){let t=Tx(e),n=[];function i(e){let t=y.get(e);if(t&&typeof t!=`function`)(t.type===`context_select_input`||t.type===`tagged_text_input`)&&t.optionsDef&&n.push(t);else if(typeof t==`function`){let e=t.staticMeta;e&&e.type===`tagged_text_input`&&e.optionsDef&&n.push(e)}if(typeof e==`object`&&e&&`unwrap`in e&&typeof e.unwrap==`function`&&i(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))i(t)}return i(t),n}function Wx({pipePayload:e,validationContext:t,sectionOrder:n=Hx,store:r,groupPathMatch:i=Bx,formResolvers:a}){let o=Tx(e.pipe_id),s=Fa(e.pipe_id,e.config||{});return Bi({schema:o,groupPathMatch:i,extractFromSchema:n=>{let i=y.get(n);if(r.field_options??={},i)return i&&typeof i==`function`?i({validationContext:t,pipePayload:e,userConnections:`connections`in r.field_options?(r.field_options.connections.options||[]).map(e=>{let t=e.widgets?.provider_logo?.provider;if(!t)throw Error(`Option is missing provider type'`);return{public_id:e.value,provider:t}}):[],pipeEntry:Ox(e.pipe_id),hash:s}):i},sectionOrder:n,sectionMap:Vx,store:r,formResolvers:a})}const Gx=[`companies:profiles:crustdata@1`,`companies:profiles:crustdata@2`,`companies:profiles:amplemarket@1`,`companies:profiles:amplemarket@2`,`people:profiles:crustdata@1`,`people:profiles:crustdata@2`,`people:profiles:amplemarket@1`,`people:profiles:amplemarket@2`],Kx=r.enum(Gx);function qx(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 Jx(e,t){let n={name:e,config:t};return Pa.hashObject(n)}var Yx=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 Jx(this.searchId,this.payload)}};function Xx(e){return e.split(`@`)[0]}function Zx(e){return`/docs/searches/searches-catalog/${Xx(e)}/${e.split(`@`)[1]}`}function Qx(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function $x(e,t){return e==null?void 0:t(e)}function eS(){return tS({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function tS({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:Qx(e),entity:t||e}}function nS(e,t){let n=JSON.parse(JSON.stringify({...e}));if(!t)return n;for(let e in t)!(e in n)&&t[e]!=null&&(n[e]=t[e]);return n}const rS=`companies:profiles:amplemarket@2`,iS=_(`company_name`),aS=_(`company_domain`),oS=_(`company_description`),sS=_(`company_profile_url`),cS=_(`amplemarket_company_match`),lS=r.object({search_id:r.literal(rS),connector:v.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`,required:!0,sectionKey:`pagination`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[iS.name]:N({fieldName:iS.name}),[aS.name]:N({fieldName:aS.name}),[oS.name]:N({fieldName:oS.name}),[sS.name]:N({fieldName:sS.name}),[cS.name]:N({fieldName:cS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Z(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_names`)}),company_domains:j({sectionKey:`config.filters`,path:`config.filters.company_domains`,label:`Company domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:Qx(e.value)}})})}),company_profile_urls:j({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),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}),investors:F({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:g(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Z(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:M({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:h(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),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`}),keywords:j({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),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`}),founded_year:pa({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_position_titles:A({path:`config.filters.open_position_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Z(`title`),suggestionsDef:g(`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`}),headcount_growth_l6m_in_percent:pa({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),uS={default:{input:[{fields:[]}]}},dS=class extends Yx{searchId=rS;schema=lS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[iS.name]:this.catalogOutput(iS),[aS.name]:this.catalogOutput(aS),[oS.name]:this.catalogOutput(oS),[sS.name]:this.catalogOutput(sS),[cS.name]:this.catalogOutput(cS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return uS}},fS=lS,pS={searchId:rS,billableOperation:`companies-profiles-amplemarket`,baseSearch:Xx(`companies:profiles:amplemarket@2`),label:`Company search`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Zx(rS),cost:{mode:`per_page`,creditsPerPage:2},provider:`amplemarket`,defaultPayload:{search_id:rS,connector:null,config:{limit:100,page_number:1,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},amplemarket_company_match:{enabled:!0,alias:``}},filters:{company_industries:{include:[],exclude:[]},company_names:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_domains:{include:[],exclude:[]},customer_types:[],headcount_growth_l6m_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_position_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}},mS=`companies:profiles:crustdata@2`,hS=_(`company_name`),gS=_(`company_domain`),_S=_(`company_description`),vS=_(`company_profile_url`),yS=_(`crustdata_company_match`),bS=r.object({search_id:r.literal(mS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[hS.name]:N({fieldName:hS.name}),[gS.name]:N({fieldName:gS.name}),[_S.name]:N({fieldName:_S.name}),[vS.name]:N({fieldName:vS.name}),[yS.name]:N({fieldName:yS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Z(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:g(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.crunchbase_investors.crustdata`)}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.tracxn_investors.crustdata`)}),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`}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:g(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:g(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:I({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:g(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),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`}),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`}),revenue_in_usd:ha({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`}),last_funding_amount:ha({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`}),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`}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Z(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_domains:j({path:`config.filters.competitor_domains`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domain`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:Qx(e.value)}})})})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),xS={default:{input:[{fields:[]}]}},SS=class extends Yx{searchId=mS;schema=bS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[hS.name]:this.catalogOutput(hS),[gS.name]:this.catalogOutput(gS),[_S.name]:this.catalogOutput(_S),[vS.name]:this.catalogOutput(vS),[yS.name]:this.catalogOutput(yS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return xS}},CS=bS,wS={searchId:mS,billableOperation:`companies-profiles-crustdata`,baseSearch:Xx(`companies:profiles:crustdata@2`),label:`Company search`,categories:[`companies`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Zx(mS),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:mS,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:{include:[],exclude:[]},linkedin_industries:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},crunchbase_categories:{include:[],exclude:[]},markets:{include:[],exclude:[]},revenue_in_usd:{from:null,to:null},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},follower_growth_l6m_in_percent:[],headcount:{include:[],exclude:[]},hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[],exclude:[]}}}}},TS=`companies:profiles:amplemarket@1`,ES=_(`company_name`),DS=_(`company_website_url`),OS=_(`company_description`),kS=_(`company_profile_url`),AS=_(`amplemarket_company_match`),jS=r.object({search_id:r.literal(TS),connector:v.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`,required:!0,sectionKey:`pagination`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[ES.name]:N({fieldName:ES.name}),[DS.name]:N({fieldName:DS.name}),[OS.name]:N({fieldName:OS.name}),[kS.name]:N({fieldName:kS.name}),[AS.name]:N({fieldName:AS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Z(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_names`)}),company_website_urls:j({sectionKey:`config.filters`,path:`config.filters.company_website_urls`,label:`Company domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),company_profile_urls:j({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),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}),investors:F({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:g(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Z(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:M({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:h(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),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`}),keywords:j({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),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`}),founded_year:pa({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_positions_titles:A({path:`config.filters.open_positions_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Z(`title`),suggestionsDef:g(`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`}),headcount_growth_last_6_months_in_percent:pa({path:`config.filters.headcount_growth_last_6_months_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),MS={default:{input:[{fields:[]}]}},NS=class extends Yx{searchId=TS;schema=jS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[ES.name]:this.catalogOutput(ES),[DS.name]:this.catalogOutput(DS),[OS.name]:this.catalogOutput(OS),[kS.name]:this.catalogOutput(kS),[AS.name]:this.catalogOutput(AS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return MS}},PS=jS,FS={searchId:TS,billableOperation:`companies-profiles-amplemarket`,baseSearch:Xx(`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:[B.COMPANY_PROFILES],docPath:Zx(TS),cost:{mode:`per_page`,creditsPerPage:2},provider:`amplemarket`,defaultPayload:{search_id:TS,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:[]}}}}},IS=`companies:profiles:crustdata@1`,LS=_(`company_name`),RS=_(`company_website_url`),zS=_(`company_description`),BS=_(`company_profile_url`),VS=_(`crustdata_company_match`),HS=r.object({search_id:r.literal(IS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[LS.name]:N({fieldName:LS.name}),[RS.name]:N({fieldName:LS.name}),[zS.name]:N({fieldName:zS.name}),[BS.name]:N({fieldName:BS.name}),[VS.name]:N({fieldName:VS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Z(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:g(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.crunchbase_investors.crustdata`)}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.tracxn_investors.crustdata`)}),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`}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:g(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:g(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:I({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:g(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),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`}),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`}),revenue_in_usd:ha({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`}),last_funding_amount:ha({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`}),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`}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Z(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_websites:j({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),US={default:{input:[{fields:[]}]}},WS=class extends Yx{searchId=IS;schema=HS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[LS.name]:this.catalogOutput(LS),[RS.name]:this.catalogOutput(RS),[zS.name]:this.catalogOutput(zS),[BS.name]:this.catalogOutput(BS),[VS.name]:this.catalogOutput(VS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return US}},GS=HS,KS={searchId:IS,billableOperation:`companies-profiles-crustdata`,baseSearch:Xx(`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:[B.COMPANY_PROFILES],docPath:Zx(IS),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:IS,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:[]}}}}},qS=`people:profiles:amplemarket@1`,JS=_(`name`),YS=_(`company_website_url`),XS=_(`profile_url`),ZS=_(`job_title`),QS=_(`amplemarket_person_match`),$S=r.object({search_id:r.literal(qS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[JS.name]:N({fieldName:JS.name}),[YS.name]:N({fieldName:YS.name}),[XS.name]:N({fieldName:XS.name}),[ZS.name]:N({fieldName:ZS.name}),[QS.name]:N({fieldName:QS.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:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:Z(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_seniority_levels:P({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:Z(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:P({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:Z(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:P({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:Z(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:I({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:g(`locations`),groupPath:`config.filters.current_company`,placeholder:Z(`location`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`company_name`),suggestionsDef:g(`company_names`)}),current_employer_website_urls:j({path:`config.filters.current_employer_website_urls`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:Z(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employer_linkedin_industries:P({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`industry`),required:!1,options:m(`linkedin.industries`)}),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`)}),current_employer_founded_year:pa({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:A({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Z(`investor`),description:``}),current_employer_open_positions_titles:A({path:`config.filters.current_employer_open_positions_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),eC={default:{input:[{fields:[]}]}},tC=class extends Yx{searchId=qS;schema=$S;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[JS.name]:this.catalogOutput(JS),[YS.name]:this.catalogOutput(YS),[XS.name]:this.catalogOutput(XS),[ZS.name]:this.catalogOutput(ZS),[QS.name]:this.catalogOutput(QS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return eC}},nC=$S,rC={searchId:qS,billableOperation:`people-profiles-amplemarket`,baseSearch:Xx(`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:[B.PEOPLE_PROFILES],docPath:Zx(qS),cost:{mode:`per_page`,creditsPerPage:3,info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:qS,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:[]}}}},iC=`people:profiles:crustdata@1`,aC=_(`name`),oC=_(`company_website_url`),sC=_(`profile_url`),cC=_(`job_title`),lC=_(`crustdata_person_match`),uC=r.object({search_id:r.literal(iC),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[aC.name]:N({fieldName:aC.name}),[oC.name]:N({fieldName:oC.name}),[sC.name]:N({fieldName:sC.name}),[cC.name]:N({fieldName:cC.name}),[lC.name]:N({fieldName:lC.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Z(`location`),optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Z(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_employers:j({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employers_website_urls:j({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Z(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employers_linkedin_industries:I({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Z(`industry`),description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),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`)}),previous_employers_website_urls:j({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Z(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Z(`seniority`),disableSearch:!0,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:j({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Z(`title`),groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),previous_employers_linkedin_industries:I({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Z(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:j({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`headline_keywords`)}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`profile_keywords`)}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Z(`languages`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Z(`languages_1`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Z(`skills`),groupPath:`config.filters.skills`,optionsDef:g(`skills`)}),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`}),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Z(`seniority`),optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`certification`),description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`honor`),description:``}),recently_changed_jobs:va({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:I({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Z(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_field_of_study.crustdata`)}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Z(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_degree.crustdata`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Z(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),dC={default:{input:[{fields:[]}]}},fC=class extends Yx{searchId=iC;schema=uC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[aC.name]:this.catalogOutput(aC),[oC.name]:this.catalogOutput(oC),[sC.name]:this.catalogOutput(sC),[cC.name]:this.catalogOutput(cC),[lC.name]:this.catalogOutput(lC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return dC}},pC=uC,mC={searchId:iC,billableOperation:`people-profiles-crustdata`,baseSearch:Xx(`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:[B.PEOPLE_PROFILES],docPath:Zx(iC),cost:{mode:`per_page`,creditsPerPage:5,info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:iC,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:[]}}}}},hC=`people:profiles:amplemarket@2`,gC=_(`name`),_C=_(`company_domain`),vC=_(`profile_url`),yC=_(`job_title`),bC=_(`amplemarket_person_match`),xC=r.object({search_id:r.literal(hC),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[gC.name]:N({fieldName:gC.name}),[_C.name]:N({fieldName:_C.name}),[vC.name]:N({fieldName:vC.name}),[yC.name]:N({fieldName:yC.name}),[bC.name]:N({fieldName:bC.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:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:Z(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_seniority_levels:P({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:Z(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:P({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:Z(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:P({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:Z(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:I({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:g(`locations`),groupPath:`config.filters.current_company`,placeholder:Z(`location`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`company_name`),suggestionsDef:g(`company_names`)}),current_employer_domains:j({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:Z(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:Qx(e.value)}})})}),current_employer_linkedin_industries:P({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`industry`),required:!1,options:m(`linkedin.industries`)}),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`)}),current_employer_founded_year:pa({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:A({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Z(`investor`),description:``}),current_employer_open_position_titles:A({path:`config.filters.current_employer_open_position_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),SC={default:{input:[{fields:[]}]}},CC=class extends Yx{searchId=hC;schema=xC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[gC.name]:this.catalogOutput(gC),[_C.name]:this.catalogOutput(_C),[vC.name]:this.catalogOutput(vC),[yC.name]:this.catalogOutput(yC),[bC.name]:this.catalogOutput(bC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return SC}},wC=xC,TC={searchId:hC,billableOperation:`people-profiles-amplemarket`,baseSearch:Xx(`people:profiles:amplemarket@2`),paginationType:`page_number`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Zx(hC),cost:{mode:`per_page`,creditsPerPage:3,info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:hC,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:[]}}}},EC=`people:profiles:crustdata@2`,DC=_(`name`),OC=_(`company_domain`),kC=_(`profile_url`),AC=_(`job_title`),jC=_(`crustdata_person_match`),MC=r.object({search_id:r.literal(EC),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[DC.name]:N({fieldName:DC.name}),[OC.name]:N({fieldName:OC.name}),[kC.name]:N({fieldName:kC.name}),[AC.name]:N({fieldName:AC.name}),[jC.name]:N({fieldName:jC.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Z(`location`),optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Z(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employer_domains:j({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Z(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:Qx(e.value)}})})}),current_employer_industries:I({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Z(`industry`),description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),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`)}),previous_employer_domains:j({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Z(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:Qx(e.value)}})})}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Z(`seniority`),disableSearch:!0,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employer_names:j({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Z(`title`),groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),previous_employer_industries:I({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Z(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:j({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`headline_keywords`)}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`profile_keywords`)}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Z(`languages`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Z(`languages_1`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Z(`skills`),groupPath:`config.filters.skills`,optionsDef:g(`skills`)}),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`}),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Z(`seniority`),optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`certification`),description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`honor`),description:``}),recently_changed_jobs:va({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:I({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Z(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_field_of_study.crustdata`)}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Z(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_degree.crustdata`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Z(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{qx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),NC={default:{input:[{fields:[]}]}},PC=class extends Yx{searchId=EC;schema=MC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[DC.name]:this.catalogOutput(DC),[OC.name]:this.catalogOutput(OC),[kC.name]:this.catalogOutput(kC),[AC.name]:this.catalogOutput(AC),[jC.name]:this.catalogOutput(jC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return NC}},FC=MC,IC={searchId:EC,billableOperation:`people-profiles-crustdata`,baseSearch:Xx(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Zx(EC),cost:{mode:`per_page`,creditsPerPage:5,info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:EC,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:[]}}}}},LC={"people:profiles:crustdata@1":fC,"people:profiles:crustdata@2":PC,"companies:profiles:crustdata@1":WS,"companies:profiles:crustdata@2":SS,"people:profiles:amplemarket@1":tC,"people:profiles:amplemarket@2":CC,"companies:profiles:amplemarket@1":NS,"companies:profiles:amplemarket@2":dS},RC={"people:profiles:crustdata@1":pC,"people:profiles:crustdata@2":FC,"companies:profiles:crustdata@1":GS,"companies:profiles:crustdata@2":CS,"people:profiles:amplemarket@1":nC,"people:profiles:amplemarket@2":wC,"companies:profiles:amplemarket@1":PS,"companies:profiles:amplemarket@2":fS},zC={"people:profiles:crustdata@1":mC,"people:profiles:crustdata@2":IC,"companies:profiles:crustdata@1":KS,"companies:profiles:crustdata@2":wS,"people:profiles:amplemarket@1":rC,"people:profiles:amplemarket@2":TC,"companies:profiles:amplemarket@1":FS,"companies:profiles:amplemarket@2":pS};function BC(e){return LC[e]}const VC=t.discriminatedUnion(`search_id`,Object.values(RC).map(e=>e)).openapi(`SearchPayloadSchema`);function HC(e,t){return Ca(t,zC[e].defaultPayload)}const UC=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=HC(e.search_id);return t?{...e,config:Ca(e?.config||{},t.config)}:e},VC),WC=t.object({config:t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}).default({environment:`production`,widgets:{enabled:!1}}),search:UC}).openapi(`SearchRequestSchema`),GC=In,KC=t.object({value:Cn,status:Sn,type:bn.optional(),format:zn.nullable().optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),qC=t.record(t.string(),KC.nullable());function JC(e){return RC[e]}const YC=t.enum([`cursor`,`page_number`]),XC=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:Kx,errors:t.array(GC),results:t.array(qC),organization_id:t.string(),next_page:UC.nullable(),pagination_type:YC.nullable(),total_pages:t.int32().nullable()}).openapi(`SearchResponseSchema`);function ZC(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function QC(){let e={};for(let t of Object.values(zC)){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=ZC(e.searchId);return ZC(t.searchId)-n})}),e}function $C(e){return zC[e]}const ew=QC();function tw(e){let t=[];for(let[n,r]of Object.entries(ew)){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:ZC(i.searchId)})}return t}function nw(e){return Object.keys(zC[e].defaultPayload.config.output_fields)}function rw(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 nw(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:ew}}function iw(e){let t=$C(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}const aw={"config.pagination":{order:0,label:`Pagination`,iconKey:`list`,defaultExpand:!0},"config.prompt":{order:1,label:`Prompt`,iconKey:`sparkles`,defaultExpand:!0},"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:0,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},"config.continue_existing_search":{order:0,label:`Continue existing search`,iconKey:`history`,defaultExpand:!1},"config.output_fields":{order:10,label:`Outputs`,iconKey:`output`,defaultExpand:!1},"config.filters.query":{order:2,label:`Query`,iconKey:`text`,defaultExpand:!0},"config.filters.personal_information":{label:`Personal information`,order:6,iconKey:`user`,defaultExpand:!1},"config.filters.job_information":{label:`Job information`,order:6,iconKey:`job`,defaultExpand:!1},"config.filters.company_information":{order:1,label:`Company information`,iconKey:`office`,defaultExpand:!1},"config.filters.education":{label:`Education`,iconKey:`school`,defaultExpand:!1},"config.filters.geografic":{label:`Location`,iconKey:`location`,defaultExpand:!1},"config.filters.location":{label:`Location`,iconKey:`location`,defaultExpand:!1},"config.filters.general":{label:`General`,iconKey:`filter`,defaultExpand:!1,order:1},"config.filters.job_openings":{label:`Job openings`,iconKey:`calendar`,defaultExpand:!1},"config.filters.website":{label:`Website`,iconKey:`web`,defaultExpand:!1},"config.filters.web_presence":{label:`Web presence`,iconKey:`web`,defaultExpand:!1},"config.filters.keywords":{label:`Keywords`,iconKey:`tags`,defaultExpand:!1},"config.filters.competitors":{label:`Competitors`,iconKey:`cometition`,defaultExpand:!1},"config.filters.categories":{label:`Categories`,iconKey:`boxes`,defaultExpand:!1},"config.filters.investors":{label:`Investors`,iconKey:`handshake`,defaultExpand:!1},"config.filters.account_activities":{label:`Account Activities`,iconKey:`activity`,defaultExpand:!1},"config.filters.financials":{label:`Financials`,iconKey:`chart`,defaultExpand:!1},"config.filters.languages":{label:`Languages`,iconKey:`language`,defaultExpand:!1},"config.filters.company_size":{label:`Company size`,iconKey:`office`,defaultExpand:!1},"config.filters.linkedin":{label:`LinkedIn`,iconKey:`linkedin`,defaultExpand:!1},"config.filters.skills":{label:`Skills`,iconKey:`brain`,defaultExpand:!1},"config.filters.activities":{label:`Activities`,iconKey:`bolt`,defaultExpand:!1},"config.filters.certifications_honors":{label:`Certifications & honors`,iconKey:`award`,defaultExpand:!1},"config.filters.profile":{label:`Profile`,iconKey:`contact`,defaultExpand:!1},"config.filters.experience":{label:`Employment history`,iconKey:`history`,defaultExpand:!1},"config.filters.current_employer":{label:`Current job`,iconKey:`briefcase`,defaultExpand:!1},"config.filters.current_company":{label:`Current Company`,iconKey:`office`,defaultExpand:!1},"config.filters.industry":{label:`Industries`,iconKey:`factory`,defaultExpand:!1},"config.filters.general_search":{label:`General search`,iconKey:`search`,defaultExpand:!1}},ow={general:{type:`form_section`,path:`general`,label:`General`,description:`Search settings and pagination.`},pagination:{type:`form_section`,path:`pagination`,label:`General`},"config.filters":{type:`form_section`,path:`config.filters`,label:`Filters`,description:`Narrow the search results.`},pipe_io:{type:`form_section`,path:``,label:`Output fields`}},sw={general:1,pagination:2,"config.filters":10,"config.output_fields":20,"config.input_fields":21,"config.pipe_io":22,"config.extractions":23,conditions:90,connector:91};function cw({searchPayload:e,sectionOrder:t=sw,formContext:n,groupPathMatch:r=aw,formResolvers:i}){return Bi({schema:JC(e.search_id),groupPathMatch:r,extractFromSchema:e=>b.get(e),sectionOrder:t,sectionMap:ow,store:n,formResolvers:i})}const lw=new Proxy({},{get:(e,t)=>e=>e.type===t}),uw=`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(`.`),dw=r.enum(uw),fw=r.object({provider_logo:r.object({provider:hn}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:dw}).optional(),logo_url:r.object({url:r.string(),alt:r.string().optional()}).optional(),pricing:r.object({credits:r.number()}).optional(),field_type:r.object({type:r.string(),format:r.string().optional()}).optional()}),pw=`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(pw);const mw=r.object({value:r.string(),label:r.string(),widgets:fw.optional()}),hw=r.object({field_options:r.record(r.string(),r.object({options:r.array(mw)}))}),gw=[{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}],_w=new Map(gw.map(e=>[e.id,e]));function vw(e){return _w.get(e)}function yw(){return gw}const bw={"company:funding:leadmagic@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:funding:leadmagic@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"company:identity@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@1`}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@2`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@3`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:overview@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@1`}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"people:phone:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:phone:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"person:mobile:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:mobile:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"people:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_website_url:`https://pipe0.com`}]}],"person:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_domain:`pipe0.com`}]}],"company:techstack:builtwith@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:techstack:builtwith@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"prompt:run@1":[{config:{environment:`production`},pipes:[{pipe_id:`prompt:run@1`,config:{model:`openai-gpt-latest`,prompt:{template:`
74
+ Tell me if {{ name }} fits the ICP criteria for my company <YOUR_COMPANY_NAME>.
75
75
 
76
76
  My company, <YOUR_COMPANY_NAME>, can be described as follows: <ADD_COMPANY_DESCRIPTION>.
77
77
 
78
78
  Use the following information to make your decision:
79
79
 
80
- Job title: {{ input job_title type="string" }}.
80
+ Job title: {{ job_title }}.
81
81
 
82
- Profile headline (optional): {{ input profile_headline type="string" required="false" }}
82
+ Profile headline (optional): {{ profile_headline | default: "" }}
83
83
 
84
84
  Output three fields:
85
85
 
86
- {{ output is_icp_fit type="boolean" description="A boolean flag indicating if the user is a good ICP fit for us" }}
86
+ {% output is_icp_fit, type: "boolean", description: "A boolean flag indicating if the user is a good ICP fit for us" %}
87
87
 
88
- {{ output reason type="string" description="A text explanation of your decision process" }}
88
+ {% output reason, type: "string", description: "A text explanation of your decision process" %}
89
89
 
90
- {{ output json_summary type="json" schema="summary" description="A JSON object that combines both fields" }}
90
+ {% output json_summary, type: "json", schema: "summary", description: "A JSON object that combines both fields" %}
91
91
  `,json_schemas:{summary:{type:`object`,properties:{is_icp_fit:{type:`boolean`,description:`A boolean flag indicating if the user is a good ICP fit for us`},reason:{type:`string`,description:`A text explanation of the decision process`}},required:[`is_icp_fit`,`reason`]}}}}}],input:[{id:`1`,name:`John Doe`,job_title:`Founder`},{id:`2`,name:`Jane Doe`,job_title:`CTO`,profile_headline:`CTO for a big tech company.`}]}],"people:email:iswork@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:email:iswork@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"email:iswork@1":[{config:{environment:`production`},pipes:[{pipe_id:`email:iswork@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"people:name:split@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:name:split@1`}],input:[{id:`1`,name:`John Doe`}]}],"person:name:split@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:name:split@1`}],input:[{id:`1`,name:`John Doe`}]}],"person:name:join@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:name:join@1`}],input:[{id:`1`,first_name:`John`,last_name:`Doe`}]}],"people:personalemail:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:personalemail:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/in/jane-doe-uth6-dk`}]}],"person:personalemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:personalemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/in/jane-doe-uth6-dk`}]}],"people:email:validate:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:email:validate:zerobounce@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"people:email:validate:zerobounce@2":[{config:{environment:`production`},pipes:[{pipe_id:`people:email:validate:zerobounce@2`}],input:[{id:`1`,email:`jane@pipe0.com`}]}],"email:validate:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`email:validate:zerobounce@1`}],input:[{id:`1`,email:`jane@pipe0.com`}]}],"people:phone:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:phone:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"person:mobile:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:mobile:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"people:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"person:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"company:newssummary:website@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:newssummary:website@1`,config:{}}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:newssummary:domain@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:newssummary:domain@1`,config:{}}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"company:websiteurl:email@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:websiteurl:email@1`}],input:[{id:`1`,email:`https://pipe0.com`}]}],"company:domain:workemail@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:domain:workemail@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"json:extract:multi@1":[{config:{environment:`production`},pipes:[{pipe_id:`json:extract:multi@1`,config:{json_extraction:{field_name:`example_json`,extractions:[{path:`name`,output_field:{format:null,name:`extracted_name`,label:`Simple Example Using Jsonata Path`,type:`string`}},{path:`{ "fullName": name, "count": $count(nested) }`,output_field:{format:null,name:`reshaped_object`,label:`Complex Transformation Using Jasonata`,type:`json`}}]}}}],input:[{id:`1`,example_json:{name:`John Doe`,nested:[1,2,3]}}]}],"message:write@1":[{config:{environment:`production`},pipes:[{pipe_id:`message:write@1`,config:{model:`openai-gpt-latest`,template:`
92
92
  Write an internal slack message that notifies the team about a high value signup
93
93
  that customer success should reach out to personally.
94
94
 
95
95
  Include the name of the new signup in your message:
96
96
 
97
- {{ input name type="string" }}
97
+ {{ name }}
98
98
 
99
99
  As well as the company name they work for:
100
100
 
101
- {{ input company_name type="string" }}
101
+ {{ company_name }}
102
102
  `}}],input:[{id:`1`,name:`https://pipe0.com`,company_name:`Pipe0`}]}],"email:write@1":[{config:{environment:`production`},pipes:[{pipe_id:`email:write@1`,config:{model:`openai-gpt-latest`,persona:`customer_success`,signature:`
103
103
  John Doe
104
104
  Head of Customer Success
@@ -109,10 +109,10 @@ Write a welcome message for new users of my app Pipe0.
109
109
  Pipe0 is a data enrichment framework that serves both software engineers working on products that
110
110
  use data enrichment and GTM professionals.
111
111
 
112
- Use the job title of the user to figure out which function the new user has: {{ input job_title type="string" required="true" }}.
112
+ Use the job title of the user to figure out which function the new user has: {{ job_title }}.
113
113
 
114
- Customize the message using the name of the user: {{ input name type="string" required="true" }}.
114
+ Customize the message using the name of the user: {{ name }}.
115
115
  `}}],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:
116
- **Name**: {{ input name type="string" }}
117
- **Email**: {{ input email type="string" }}
116
+ **Name**: {{ name }}
117
+ **Email**: {{ email }}
118
118
  `}}],input:[{id:`1`,name:`John`,email:`john@pipe0.com`}]}],"email:send:resend@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`resend_123`,type:`vault`}]},pipe_id:`email:send:resend@1`,config:{from:`<FROM_EMAIL_ADDRESS>`,to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"email:send:gmail@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`gmail_123`,type:`vault`}]},pipe_id:`email:send:gmail@1`,config:{to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"message:send:slack@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`slack_123`,type:`vault`}]},pipe_id:`message:send:slack@1`,config:{channel_id:`<SLACK_CHANNEL_ID>`,message:`{{ message }}`}}],input:[{id:`1`,message:`<MESSAGE_TEXT>`}]}],"people:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"person:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"people:validate:email:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:validate:email:zerobounce@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:mobilenumber:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:workemail:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`john@pipe0.com`}]}],"people:professionalprofileurl:name@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:name@1`}],input:[{id:`1`,name:`John`,company_name:`Pipe0`,location_int:`Berlin`}]}],"people:professionalprofileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:email:waterfall@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"people:mobilenumber:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`https://linkedin.com/li/john`}]}],"company:overview@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@2`,config:{}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"company:overview@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@3`,config:{}}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"fields:merge@1":[{config:{environment:`production`},pipes:[{pipe_id:`fields:merge@1`,config:{sources:[{field_name:`field_1`},{field_name:`field_2`}]}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:scrape:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrape:firecrawl@1`,config:{scrape_main_only:!0,input_fields:{website_url:{alias:``}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:extract:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:extract:firecrawl@1`,config:{extraction_prompt:`Extract the company mission as well as the latest news.`,enable_full_domain_crawl:!0,enable_web_search:!0,json_schema:{type:`object`,required:[`company_mission`,`latest_news`],properties:{company_mission:{type:`string`},latest_news:{type:`string`}}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"person:email:validate:millionverifier@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:email:validate:millionverifier@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"website:scrapelist:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrapelist:firecrawl@1`,config:{scrape_main_only:!0,formats:[`markdown`,`links`]}}],input:[{id:`1`,urls:[`https://pipe0.com`,`https://pipe0.com/docs`]}]}],"website:maplinks:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:maplinks:firecrawl@1`,config:{sitemap:`include`,page_limit:20,search:``}}],input:[{id:`1`,urls:[`https://pipe0.com`,`https://pipe0.com/docs`]}]}],"contact:create:resend@1":[{config:{environment:`production`},pipes:[{pipe_id:`contact:create:resend@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`resend_123`}]},config:{segment_id:`segment_id_12xeeb12`,add_as_subscribed:!0}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"sheet:row:append@1":[{config:{environment:`production`},pipes:[{pipe_id:`sheet:row:append@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`sheet_id`,run:!0,allow_field_creation:!0,allow_sheet_creation:!0,new_sheet_team_id:``,included_fields:[{field_name:`field_name`}]}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"sheet:row:expandappend@1":[{config:{environment:`production`},pipes:[{pipe_id:`sheet:row:expandappend@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`sheet_id`,run:!0,allow_field_creation:!0}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"people:match:role:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:match:role:waterfall@1`,config:{providers:[{provider:`leadmagic`}],roles:[`CEO`]}}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"person:match:role:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:match:role:waterfall@1`,config:{providers:[{provider:`leadmagic`}],roles:[`CEO`]}}],input:[{id:`1`,company_domain:`acme.com`}]}],"company:match:logodev@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:logodev@1`}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"company:match:logodev@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:logodev@2`}],input:[{id:`1`,company_domain:`acme.com`}]}],"company:lookalikes:companyenrich@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:lookalikes:companyenrich@1`}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"company:lookalikes:companyenrich@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:lookalikes:companyenrich@2`}],input:[{id:`1`,company_domain:`acme.com`}]}],"person:posts:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:posts:crustdata@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-doe-3445`}]}],"people:identity:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:identity:email:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"person:identity:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:identity:email:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:profile:workemail:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profile:workemail:crustdata@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"person:profile:workemail:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profile:workemail:crustdata@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:workemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-123abc`}]}],"person:workemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-123abc`}]}],"company:match:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:crustdata@1`}],input:[{id:`1`,company_website_url:`https://microsoft.com`}]}],"company:match:crustdata@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:crustdata@2`}],input:[{id:`1`,company_domain:`microsoft.com`}]}],"person:identity:amplemarket@1":[{pipes:[{pipe_id:`person:identity:amplemarket@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`amplemarket_123`}]}}],input:[{id:`1`,email:`hallp@pipe0.com`}]}],"person:match:amplemarket@1":[{pipes:[{pipe_id:`person:match:amplemarket@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`amplemarket_123`}]}}],input:[{id:`1`,profile_url:`https://linkedin.com/li/johndoe`}]}],"field:domainify@1":[{pipes:[{pipe_id:`field:domainify@1`}],input:[{id:`1`,url_input:`https://google.com`}]}],"field:slugify@1":[{pipes:[{pipe_id:`field:slugify@1`}],input:[{id:`1`,string_input:`input value`}]}],"http:request@1":[{pipes:[{pipe_id:`http:request@1`,config:{method:`GET`,url:`https://api.example.com/v1/companies/{{ company_name }}`,query_params:[{key:`limit`,value:`10`}],body:``,headers:[{key:`Authorization`,value:`Bearer SECRET`}],expected_response_schema:{},output_fields:{http_response_status:{alias:``,enabled:!0},http_response_body:{alias:``,enabled:!0},http_response_headers:{alias:``,enabled:!1}}}}],input:[{id:`1`,company_name:`Acme`}]}]};function xw(e){let t=[];for(let n of e){if(n instanceof U){t.push(n);continue}let e=Dx.parse(n);if(!Ox(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(Cx(n.pipe_id))(e);t.push(r)}return t}function Sw(e,t){let n=xw(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 Cw(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 ww(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 Tw(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 Ew(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(Tw(e))return`https://${e}`;if(!ww(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 Dw(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(Tw(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!ww(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(ww(i)||Tw(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function Ow(e){try{return Ew(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function kw(e,t){if(t)switch(e){case`website_url`:return Ow(t);default:return}}function Aw(e){let t;if(jw(e))return Aw(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function jw(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&Sn.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&jw(e.value,t++))throw new $([Q.RecursiveExpandedValue()]);return!0}return!1}function Mw(e){let t=jw(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function Nw(e){return jw(e)?Nw(e.value):e}function Pw(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=rn(e,n.format)?.getStaticWidgets?.(t),i=kw(n.format,t);return nS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function Fw(e,t,n){if(t==null)return{};try{let r=rn(e,n)?.getStaticWidgets?.(t),i=kw(n,t);return nS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function Iw(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 Lw=class e{annotations;constructor(e){this.annotations=e||{}}getAnnotation(e){return this.annotations[e]}static fromInput(t,{probeCount:n=1e5,inferCatalogFields:i=!0}={probeCount:1e5,inferCatalogFields:!0}){let a={},o=0;for(let e of t){if(o++,o>n)break;for(let[t,n]of Object.entries(e)){if(t===``||t==null)continue;let{resolvedInputValue:e,expandedValue:o,isExpanded:s}=Mw(n),c;c=s&&o.type?o.type:Aw(e);let l;an(t)&&(l=_(t));let u=l&&(l.type===c||c===`unknown`);(!a[t]||a[t].type===`unknown`&&c!==`unknown`)&&(a[t]={type:c===`unknown`&&u&&i&&l?.type?l.type:c,format:u&&i&&l?.format||null,label:l&&i?l.label:null,json_metadata:u&&i&&l?.jsonMeta?{schema:l.jsonMeta.zodSchema?r.toJSONSchema(l.jsonMeta.zodSchema):null,example_value:l.jsonMeta.exampleValue||null}:null})}}return a.id||={format:null,type:`string`,json_metadata:null,label:null},new e(a)}merge(t,n=!1){let r=structuredClone(this.annotations),i=t instanceof e?t.annotations:t;for(let[e,t]of Object.entries(i))if(r[e]===void 0||n)r[e]=t;else{let n=r[e];r[e]=Iw(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function Rw(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 zw(e){let t=Rw(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of ka(i.getInputRequirement())){let o=t[n.resolvedName];if(r===o)throw new $([{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 Bw({config:e,pipes:t,input:n,field_annotations:r}){try{let i=Ww({config:e,pipes:t,input:n,fieldAnnotations:r});return Vw(i),i}catch(e){throw e instanceof $?e:new $([Q.ValidationFailed({error:e})])}}function Vw(e){for(let t of e.orderedPipeInstances)for(let{field:n}of ka(t.getInputRequirement()))Rm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),zm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function Hw(e,t){if(!e&&!t)throw new $([Q.MustDefineAnnotations()]);return new Lw(t||{}).merge(Lw.fromInput(e||[]))}function Uw(e,t){let n={...t};return e.pipes.forEach((t,r)=>{for(let[i,a]of Object.entries(t.getOutputFields())){let i=n[a.resolvedName];if(i&&i.added_by.ref!==`input`)throw new $([Q.DuplicatePipeOutput({pipeId:t.pipeId,outputField:a})]);n[a.resolvedName]={type:Rm(e,a.type),added_by:{ref:t.pipeId,config_hash:t.getConfigHashKey(),pipe_index:r},label:i?.label||a.label,format:zm(e,a.format),is_primary_output:a.isPrimaryOutput}}}),n}function Ww(e){let t=xw(e.pipes),n=Hw(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)}),qw(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]=Gw(t,n),u=Uw({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 Gw(e,t){let n=zw(e),r=Kw(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 Kw(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?ka(n.getInputRequirement()).length>0:!1},l=(n,r=[])=>{if(o.has(n)){let e=n,i=r[r.length-1]||0,a={idx:i,pipe_id:t[i]?.pipeId},o={idx:e,pipeId:t[e]?.pipeId};throw new $([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 ee=new Set(Object.keys(n.annotations));for(let e of i){let n=t[e];if(!n)throw Error(`Pipe not defined`);Object.values(n.getOutputFields()).forEach(e=>{ee.add(e.resolvedName)})}for(let[n,r]of t.entries()){let a=r.getInputRequirement();Oa(a,ee)||s.push(Q.RequirementUnmet({requirement:a}));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(!ee.has(e))throw new $([Q.ConditionTargetFieldNotFound({fieldName:e,pipeId:r.pipeId,pipeIdx:n})])})}if(s.length>0)throw new $(s);return i}function qw(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 Jr(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 Jw=[`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`],Yw=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],Xw=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})}),Zw=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 Qw(e){return!isNaN(e.getTime())}const $w=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of Jw){let n=ee(t,e,new Date(0));if(Qw(n))return u(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),eT=r.coerce.string().trim().transform(e=>{for(let t of Yw){let n=ee(e,t,new Date(0));if(Qw(n))return u(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),tT=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`}),nT=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()),rT=r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`});function iT(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return Xw.parse(e);case`email`:return Zw.parse(e);case`datetime`:return $w.parse(e);case`date`:return eT.parse(e);case`decimal`:return tT.parse(e);case`int`:return nT.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return rT.parse(e);case`website_url`:return Xw.parse(e);case`profile_url`:return Xw.parse(e);case`zip_code`:return rT.parse(e);case`markdown`:case`phone`:case`text`:return rT.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 ${Wu(e)} into format ${t}: ${r.message}`):r}}function aT(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(jw(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:iT(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 oT(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];i.id||=crypto.randomUUID();let{id:a}=i;if(typeof a!=`string`&&typeof a!=`number`){n.errors.push(Q.InvalidId());continue}if(n.records[a]){n.errors.push(Q.IDConflict({index:r,id:a}));continue}n.order.push(a),n.records[a]={id:a,fields:aT(e,n,i)}}}function sT({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{oT(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=cT(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,lT(e,r,n?.queue?.enabled),hT(e,r),r.errors.length>0)throw new $(r.errors);return r}catch(e){throw e instanceof $?e:new $([Q.ResponseGenerationFailed({error:e})])}}function cT(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}=mT(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function lT(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 ${Bh(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 ${Bh(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}=Aa(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function uT({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 dT({status:e,config:t}){return t.queue?.enabled?!!(e===`failed`&&t.queue?.triggers?.fieldIsFailed||e===`no_result`&&t.queue?.triggers?.fieldIsNoResult):!1}function fT({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return uT({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||dT({status:n.status,config:r})}function pT({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 mT(e,t,n,r,i){let a=Object.entries(r.records),o=[],s=[];for(let c=0;c<a.length;c++){let[l,u]=a[c];for(let a of Object.values(n.getOutputFields())){let{resolvedName:l,type:ee}=a,te=Rm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},ee),ne=zm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:d,isExpanded:re,expandedValue:f}=Mw(t[c]?.[l]??null),ie=u.fields[l],p=n.getConfigHashKey(),ae=n.getInputHashKey(u),oe={type:te,format:ne,claimed_by:{ref:n.pipeId,config_hash:p}};if(r.errors.length>0&&d===null){u.fields[l]={...oe,value:null,status:`failed`,reason:{summary:`Validation error`,...r.errors[0]},claimed_by:{ref:d===void 0?n.pipeId:`input`,config_hash:d===void 0?p:null},resolved_by:{ref:`system`,environment:e.environment,config_hash:null,input_hash:null},widgets:{}};continue}let se=Aw(d);if(se!==`unknown`&&se!==te){let t=i.queue?.triggers?.outputFieldTypeError&&i.queue.enabled;u.fields[l]={...oe,value:t?null:d,status:t?`queued`:`completed`,reason:null,resolved_by:t?{environment:e.environment,ref:`system`,config_hash:p,input_hash:ae}:{environment:e.environment,ref:`input`,config_hash:null,input_hash:null},widgets:t?{}:f?.widgets||ie?.widgets||{},format:t?ne:f?.format||ne};continue}if(d==null){let t=re&&i.queue?.enabled&&(f.status===`pending`||f.status===`skipped`),n=re&&!t;if(re&&i.adopt?.enabled===!0){let{didAdopt:e}=pT({inputHashKey:ae,configHashKey:p,expandedValue:f});e&&s.push(u.id)}if(re&&f.status!==`pending`&&fT({inputHashKey:ae,configHashKey:p,config:i,expandedValue:f})&&i.queue?.enabled)o.push(u.id),u.fields[l]={...oe,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:p,input_hash:ae},widgets:{}};else if(n)u.fields[l]={...oe,value:null,status:f.status,type:f.type||te,reason:f.reason||null,resolved_by:f.resolved_by||null,widgets:f.widgets||{},format:f.format||ne};else{let t=i.queue?.enabled?`queued`:`pending`;t===`queued`&&o.push(u.id),u.fields[l]={...oe,value:null,status:t,reason:null,resolved_by:t===`queued`?{environment:e.environment,ref:`system`,config_hash:p,input_hash:ae}:null,widgets:{}}}continue}if(re){if(re&&i.adopt?.enabled===!0){let{didAdopt:e}=pT({inputHashKey:ae,configHashKey:p,expandedValue:f});e&&s.push(u.id)}fT({inputHashKey:ae,configHashKey:p,expandedValue:f,config:i})&&r.errors.length===0?(o.push(u.id),u.fields[l]={...oe,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:null,input_hash:null},widgets:{}}):u.fields[l]={...oe,value:d,status:`completed`,type:f.type||te,reason:f.reason||null,resolved_by:f.resolved_by||{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:f.widgets||ie?.widgets||{},format:f.format||ne}}else try{let e=iT(d,ne);u.fields[l]={...oe,value:e,status:`completed`,reason:null,resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:ie?.widgets||{}}}catch{let t=i.queue?.enabled?`queued`:`failed`;t===`queued`&&o.push(u.id),u.fields[l]={...oe,value:d,status:t,reason:{code:`InvalidFormat`,message:`Field is of invalid format. Expected: ${a.format}`,summary:`Invalid Format`},resolved_by:{ref:`system`,environment:e.environment,config_hash:p,input_hash:ae},widgets:{}}}}}return{queuedRecordIds:o,adoptedRecordIds:s}}function hT(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=Pw(i,r.value,r);r.widgets=nS(r.widgets||{},e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function gT(e,t){let{expandAllStatuses:n=!1,expandStatuses:r=[]}=t||{},i={};for(let[t,a]of Object.entries(e))(r.includes(a.status)||n)&&t!==`id`?i[t]={...a}:i[t]=a.value;return i}function _T(e,t={}){return Object.values(e).map(e=>gT(e.fields,t))}function vT(e,t={}){return e.map(e=>gT(e.fields,t))}function yT(e,t={}){return gT(e.fields,t)}function bT(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=Mw(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function xT(e){let t=dr[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const ST=[`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`],CT=r.enum(ST);function wT(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 TT(e,t){let n={name:e,config:t};return Pa.hashObject(n)}var ET=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 TT(this.searchId,this.payload)}};function DT(e){return e.split(`@`)[0]}function OT(e){return`/docs/searches/searches-catalog/${DT(e)}/${e.split(`@`)[1]}`}const kT=`companies:profiles:crustdata@1`,AT=_(`company_name`),jT=_(`company_website_url`),MT=_(`company_description`),NT=_(`company_profile_url`),PT=_(`crustdata_company_match`),FT=r.object({search_id:r.literal(kT),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,required:!0,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),cursor:ya({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:R(r.object({[AT.name]:N({fieldName:AT.name}),[jT.name]:N({fieldName:AT.name}),[MT.name]:N({fieldName:MT.name}),[NT.name]:N({fieldName:NT.name}),[PT.name]:N({fieldName:PT.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:g(`locations`)}),crunchbase_categories:F({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.categories`,optionsDef:g(`company.crunchbase_categories.crustdata`)}),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:g(`company.crunchbase_investors.crustdata`)}),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:g(`company.tracxn_investors.crustdata`)}),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`}),linkedin_industries:F({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:g(`linkedin_industries.crustdata`),label:`Industries`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}),markets:F({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:g(`company.markets.crustdata`),label:`Markets`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}),linkedin_categories:F({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:g(`company.linkedin_categories.crustdata`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}),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`}),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`}),revenue_in_usd:ha({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`}),last_funding_amount:ha({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`}),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`}),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=>{wT(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),IT={default:{input:[{fields:[]}]}},LT=class extends ET{searchId=kT;schema=FT;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[AT.name]:this.catalogOutput(AT),[jT.name]:this.catalogOutput(jT),[MT.name]:this.catalogOutput(MT),[NT.name]:this.catalogOutput(NT),[PT.name]:this.catalogOutput(PT)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return IT}},RT=FT,zT={searchId:kT,billableOperation:`companies-profiles-crustdata`,baseSearch:DT(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:OT(kT),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:kT,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:[]}}}},BT=`companies:profiles:exa@1`,VT=_(`company_name`),HT=_(`company_website_url`),UT=_(`company_description`),WT=_(`company_industry`),GT=_(`headcount`),KT=_(`exa_match_evaluation`),qT=r.object({search_id:r.literal(BT),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,required:!0,path:`config.limit`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:R(r.object({[VT.name]:N({fieldName:VT.name}),[HT.name]:N({fieldName:VT.name}),[UT.name]:N({fieldName:UT.name}),[WT.name]:N({fieldName:WT.name}),[GT.name]:N({fieldName:GT.name}),[KT.name]:N({fieldName:KT.name})})),filters:r.object({query:ba({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})})})}),JT={default:{input:[{fields:[]}]}},YT=class extends ET{searchId=BT;schema=qT;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[VT.name]:this.catalogOutput(VT),[HT.name]:this.catalogOutput(HT),[UT.name]:this.catalogOutput(UT),[WT.name]:this.catalogOutput(WT),[GT.name]:this.catalogOutput(GT),[KT.name]:this.catalogOutput(KT)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return JT}},XT=qT,ZT={searchId:BT,billableOperation:`companies-profiles-exa`,baseSearch:DT(`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:[B.COMPANY_PROFILES],docPath:OT(BT),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:BT,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:``}}}},QT=`companies:profiles:icypeas@1`,$T=_(`company_industry`),eE=_(`company_name`),tE=_(`company_description`),nE=_(`company_website_url`),rE=_(`headcount`),iE=_(`company_region`),aE=_(`company_profile_url`),oE=_(`icypeas_company_match`),sE=r.object({search_id:r.literal(QT),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,max:5e4,min:1,path:`config.limit`,required:!0,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:R(r.object({company_name:N({fieldName:eE.name}),company_industry:N({fieldName:$T.name}),company_description:N({fieldName:tE.name}),company_website_url:N({fieldName:nE.name}),headcount:N({fieldName:rE.name}),company_region:N({fieldName:iE.name}),company_profile_url:N({fieldName:aE.name}),icypeas_company_match:N({fieldName:oE.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:h(`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:ha({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=>{wT(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),cE={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},lE=class extends ET{searchId=QT;schema=sE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[eE.name]:this.catalogOutput(eE),[$T.name]:this.catalogOutput($T),[aE.name]:this.catalogOutput(aE),[nE.name]:this.catalogOutput(nE),[tE.name]:this.catalogOutput(tE),[rE.name]:this.catalogOutput(rE),[iE.name]:this.catalogOutput(iE),[oE.name]:this.catalogOutput(oE)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return cE}},uE=sE,dE={searchId:QT,billableOperation:`companies-profiles-icypeas`,baseSearch:DT(`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:[B.COMPANY_PROFILES],docPath:OT(QT),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:QT,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:[]}}}}},fE=`people:profiles:clado@1`,pE=_(`name`),mE=_(`job_title`),hE=_(`company_name`),gE=_(`company_profile_url`),_E=_(`profile_url`),vE=_(`clado_person_match`),yE=r.object({search_id:r.literal(fE),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,path:`config.limit`,required:!0,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(20),output_fields:R(r.object({[pE.name]:N({fieldName:pE.name}),[mE.name]:N({fieldName:mE.name}),[gE.name]:N({fieldName:gE.name}),[hE.name]:N({fieldName:hE.name}),[_E.name]:N({fieldName:_E.name}),[vE.name]:N({fieldName:vE.name})})),filters:r.object({query:ba({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})})})}),bE={default:{input:[{fields:[{outputField:`profile_url`}]}]}},xE=class extends ET{searchId=fE;schema=yE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[pE.name]:this.catalogOutput(pE),[mE.name]:this.catalogOutput(mE),[hE.name]:this.catalogOutput(hE),[_E.name]:this.catalogOutput(_E),[gE.name]:this.catalogOutput(gE),[vE.name]:this.catalogOutput(vE)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return bE}},SE=yE,CE={searchId:fE,billableOperation:`people-profiles-clado`,baseSearch:Mt(`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:[B.PEOPLE_PROFILES],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_search`,creditsPerSearch:3},provider:`clado`,defaultPayload:{search_id:fE,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:``}}}},wE=`people:profiles:clado@2`,TE=_(`name`),EE=_(`job_title`),DE=_(`company_name`),OE=_(`company_profile_url`),kE=_(`profile_url`),AE=_(`clado_person_match_v2`),jE=r.object({search_id:r.literal(wE),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,path:`config.limit`,required:!0,max:1e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),search_id:ya({sectionKey:`general`,path:`config.search_id`,inputType:`text`,groupPath:`config.continue_existing_search`,label:`Search id`,description:`The id of the search you want to continue`}).default(``),offset:L({sectionKey:`general`,path:`config.offset`,required:!1,groupPath:`config.continue_existing_search`,label:`Offset`,max:1e5,min:1,description:`To continue the previous search, provide both the search_id and the last offset.`}),output_fields:R(r.object({[TE.name]:N({fieldName:TE.name}),[EE.name]:N({fieldName:EE.name}),[OE.name]:N({fieldName:OE.name}),[DE.name]:N({fieldName:DE.name}),[kE.name]:N({fieldName:kE.name}),[AE.name]:N({fieldName:AE.name})})),filters:r.object({query:ba({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`]})}),ME={default:{input:[{fields:[{outputField:`profile_url`}]}]}},NE=class extends ET{searchId=wE;schema=jE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[TE.name]:this.catalogOutput(TE),[EE.name]:this.catalogOutput(EE),[DE.name]:this.catalogOutput(DE),[kE.name]:this.catalogOutput(kE),[OE.name]:this.catalogOutput(OE),[AE.name]:this.catalogOutput(AE)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return ME}},PE=jE,FE={searchId:wE,billableOperation:`people-profiles-clado`,baseSearch:Mt(`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:wE,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:``}}}},IE=`people:employees:leadmagic@1`,LE=_(`name`),RE=_(`job_title`),zE=_(`company_website_url`),BE=_(`company_name`),VE=r.object({search_id:r.literal(IE),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,max:500,min:1,required:!0,path:`config.limit`,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(50),output_fields:R(r.object({[LE.name]:N({fieldName:LE.name}),[BE.name]:N({fieldName:BE.name}),[zE.name]:N({fieldName:zE.name}),[RE.name]:N({fieldName:RE.name})})),filters:r.object({company_website_url:ya({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`})})})}),HE={default:{input:[{fields:[{outputField:zE.name}]}]}},UE=class extends ET{searchId=IE;schema=VE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[LE.name]:this.catalogOutput(LE),[RE.name]:this.catalogOutput(RE),[zE.name]:this.catalogOutput(zE),[BE.name]:this.catalogOutput(BE)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return HE}},WE=VE,GE={searchId:IE,billableOperation:`people-employees-leadmagic`,baseSearch:DT(`people:employees:leadmagic@1`),label:`Employee finder`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search for employees of a company.`,tags:[B.PEOPLE_PROFILES],docPath:OT(IE),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:IE,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:``}}}},KE=`people:profiles:crustdata@1`,qE=_(`name`),JE=_(`company_website_url`),YE=_(`profile_url`),XE=_(`job_title`),ZE=_(`crustdata_person_match`),QE=r.object({search_id:r.literal(KE),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,required:!0,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of results`}).default(100),cursor:ya({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:R(r.object({[qE.name]:N({fieldName:qE.name}),[JE.name]:N({fieldName:JE.name}),[YE.name]:N({fieldName:YE.name}),[XE.name]:N({fieldName:XE.name}),[ZE.name]:N({fieldName:ZE.name})})),filters:r.object({locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Locations`,disableSearch:!1,required:!1,optionsDef:g(`locations`),groupPath:`config.filters.general`}),profile_headline_keywords:fa({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:fa({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`}),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`}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,placeholder:`.NET, PMO, ...`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.skills`,optionsDef:g(`skills`)}),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`}),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),current_employers:A({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Current employers`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`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:g(`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:g(`linkedin_industries.crustdata`)}),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`)}),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:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:A({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer name`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`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:g(`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:g(`linkedin_industries.crustdata`)}),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:va({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:g(`person.education_field_of_study.crustdata`)}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:g(`person.education_degree.crustdata`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:g(`schools`)}),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:g(`schools`)}),extracurricular_activities:A({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{wT(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),$E={default:{input:[{fields:[]}]}},eD=class extends ET{searchId=KE;schema=QE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[qE.name]:this.catalogOutput(qE),[JE.name]:this.catalogOutput(JE),[YE.name]:this.catalogOutput(YE),[XE.name]:this.catalogOutput(XE),[ZE.name]:this.catalogOutput(ZE)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return $E}},tD=QE,nD={searchId:KE,billableOperation:`people-profiles-crustdata`,baseSearch:DT(`people:profiles:crustdata@1`),label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:OT(KE),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:KE,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:[]}}}},rD=`people:profiles:exa@1`,iD=_(`name`),aD=_(`profile_url`),oD=_(`job_title`),sD=_(`company_name`),cD=_(`company_region`),lD=_(`exa_match_evaluation`),uD=r.object({search_id:r.literal(rD),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,sectionKey:`general`,required:!0,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:R(r.object({[iD.name]:N({fieldName:iD.name}),[aD.name]:N({fieldName:aD.name}),[oD.name]:N({fieldName:oD.name}),[sD.name]:N({fieldName:sD.name}),[cD.name]:N({fieldName:cD.name}),[lD.name]:N({fieldName:lD.name})})),filters:r.object({query:ba({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})})})}),dD={default:{input:[{fields:[]}]}},fD=class extends ET{searchId=rD;schema=uD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[iD.name]:this.catalogOutput(iD),[aD.name]:this.catalogOutput(aD),[oD.name]:this.catalogOutput(oD),[sD.name]:this.catalogOutput(sD),[cD.name]:this.catalogOutput(cD),[lD.name]:this.catalogOutput(lD)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return dD}},pD=uD,mD={searchId:rD,billableOperation:`people-profiles-exa`,baseSearch:DT(`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:[B.COMPANY_PROFILES],docPath:OT(rD),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:rD,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:``}}}},hD=`people:profiles:icypeas@1`,gD=_(`name`),_D=_(`job_title`),vD=_(`profile_headline`),yD=_(`company_website_url`),bD=_(`company_profile_url`),xD=_(`profile_url`),SD=_(`icypeas_person_match`),CD=r.object({search_id:r.literal(hD),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,sectionKey:`general`,required:!0,max:5e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:R(r.object({[gD.name]:N({fieldName:gD.name}),[_D.name]:N({fieldName:_D.name}),[vD.name]:N({fieldName:vD.name}),[yD.name]:N({fieldName:yD.name}),[bD.name]:N({fieldName:bD.name}),[xD.name]:N({fieldName:xD.name}),[SD.name]:N({fieldName:SD.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=>{wT(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),wD={default:{input:[{fields:[{outputField:`profile_url`}]}]}},TD=class extends ET{searchId=hD;schema=CD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[gD.name]:this.catalogOutput(gD),[_D.name]:this.catalogOutput(_D),[vD.name]:this.catalogOutput(vD),[yD.name]:this.catalogOutput(yD),[bD.name]:this.catalogOutput(bD),[xD.name]:this.catalogOutput(xD),[SD.name]:this.catalogOutput(SD)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return wD}},ED=CD,DD={searchId:hD,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:DT(hD),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:[B.PEOPLE_PROFILES],docPath:OT(hD),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:hD,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:[]}}}}},OD={"people:profiles:crustdata@1":eD,"companies:profiles:crustdata@1":LT,"companies:profiles:exa@1":YT,"people:profiles:exa@1":fD,"people:profiles:icypeas@1":TD,"companies:profiles:icypeas@1":lE,"people:employees:leadmagic@1":UE,"people:profiles:clado@1":xE,"people:profiles:clado@2":NE},kD={"people:profiles:crustdata@1":tD,"companies:profiles:crustdata@1":RT,"companies:profiles:exa@1":XT,"people:profiles:exa@1":pD,"people:profiles:icypeas@1":ED,"companies:profiles:icypeas@1":uE,"people:employees:leadmagic@1":WE,"people:profiles:clado@1":SE,"people:profiles:clado@2":PE},AD={"people:profiles:crustdata@1":nD,"companies:profiles:crustdata@1":zT,"companies:profiles:exa@1":ZT,"people:profiles:exa@1":mD,"people:profiles:icypeas@1":DD,"companies:profiles:icypeas@1":dE,"people:employees:leadmagic@1":GE,"people:profiles:clado@1":CE,"people:profiles:clado@2":FE};function jD(e){return OD[e]}function MD(e){return kD[e]}function ND(e){return AD[e].defaultPayload}const PD=t.discriminatedUnion(`search_id`,Object.values(kD).map(e=>e)),FD=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=ND(e.search_id);return t?{...e,config:Ca(e?.config||{},t.config)}:e},PD);function ID(e){return Object.keys(AD[e].defaultPayload.config.output_fields)}const LD=In,RD=t.object({value:Cn,status:Sn,type:bn.optional(),format:zn.nullable().optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),zD=t.record(t.string(),RD.nullable()),BD=t.object({search:t.object({ref:CT}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(LD),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()})}),VD=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(zD),search_statuses:t.array(BD),organizationId:t.string()}).openapi(`SearchesResponseSchema`),HD=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),UD=HD.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),WD=t.object({config:UD.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(FD)}).openapi(`SearchesRequestSchema`);function GD(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function KD(){let e={};for(let t of Object.values(AD)){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=GD(e.searchId);return GD(t.searchId)-n})}),e}const qD=KD();function JD(e){let t=[];for(let[n,r]of Object.entries(qD)){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:GD(i.searchId)})}return t}function YD(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 ID(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:qD}}function XD(e){return AD[e]}function ZD(e){let t=XD(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function QD(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e}))}function $D(e){return QD(Ox(e).allowedUserConnectionProviders)}function eO(e){return QD([$C(e).provider])}function tO(e){return QD([XD(e).provider])}const nO=[{id:`people`,label:`People`,color:`#8B7DFF`,order:0},{id:`companies`,label:`Companies`,color:`#10B981`,order:1},{id:`deprecated`,label:`Deprecated`,color:`#94A3B8`,order:2}],rO=new Map(nO.map(e=>[e.id,e]));function iO(e){return rO.get(e)}function aO(){return nO}const oO={"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:[]}}}}]};function sO(e,t,n){if(t==null)return{};try{let r=rn(e,n)?.getStaticWidgets?.(t),i=kw(n,t);return nS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function cO(e){if(e instanceof Yx)return e;let t=e.search_id,n=BC(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(UC.parse(e))}var lO=class extends Wh{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function uO(e){let t=[];for(let n of e){if(n instanceof ET){t.push(n);continue}let e=n.search_id,r=jD(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(FD.parse(n));t.push(i)}return t}function dO(e){try{return uO(e.searches)}catch(e){throw e instanceof lO?e:new $([Q.ValidationFailed({error:e})])}}const fO=/[\\^$.+()|[\]{}]/g,pO=new Map;function mO(e){let t=pO.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(fO,`\\$&`)}let r=RegExp(`^${n}$`);return pO.set(e,r),r}function hO(e,t){return mO(t).test(e)}function gO(e,t){if(!t||t.length===0)return!1;for(let n of t)if(hO(e,n))return!0;return!1}function _O(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!gO(e,n)||r&&r.length>0&&gO(e,r))}function vO(e,t){return _O(e,t?.providers)}function yO(e,t){if(!t)return!0;if(!_O(e,t.pipes))return!1;if(t.providers){let n=Mx(e);if(n.length===0)return!0;if(!n.some(e=>vO(e,t)))return!1}return!0}function bO(e,t,n){return t?!(!_O(e,t.searches)||n!==void 0&&!vO(n,t)):!0}function xO(e,t,n){return t?!(!_O(e,t.searchesMulti)||n!==void 0&&!vO(n,t)):!0}function SO(e,t){return t?e.filter(e=>yO(e.pipeId,t)):e.slice()}function CO(e,t){return t?e.filter(e=>bO(e.searchId,t,e.provider)):e.slice()}function wO(e,t){return t?e.filter(e=>xO(e.searchId,t,e.provider)):e.slice()}function TO(e){let t=Object.values(e.billableOperations).map(e=>e.credits||0);return Math.min(...t)}function EO(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function DO(e){let t=e.cost;return Math.min(t.mode===`per_result`?t.creditsPerResult:t.mode===`per_search`?t.creditsPerSearch:t.creditsPerPage)}function OO(e){let t=Dw(e);return te(t)||new URL(t).hostname}const kO=[`http://`,`https://`,`mailto:`],AO=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function jO(e){return e?MO(e):[]}function MO(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&&AO.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=NO(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=NO(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:MO(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=NO(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:MO(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=NO(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:MO(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=NO(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=NO(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(kO.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:MO(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function NO(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(PO(e,r,n))return r;r+=1}return-1}function PO(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{$r as AI_MODELS,ei as AI_MODEL_CATALOG,Xn as CatalogSchemaRefSchema,er as ConditionOperatorsSchema,qn as ExpandedFieldValueSchema,ph as FIELD_PLACEHOLDERS,Bn as FieldAnnotationSchema,Lw as FieldAnnotations,Vn as FieldAnnotationsSchema,mn as FieldNameSchema,Ln as FieldReasonSchema,Cn as FieldValueSchema,hw as FormStoreSchema,$n as JSONExtractSchema,wn as JSONMetaSchema,or as NoConnectorSchema,v as OptionalConnectorSchema,_n as PIPE_IDS,YC as PaginationTypeSchema,eb as PersonWorkemailWaterfall1Entry,$y as PersonWorkemailWaterfall1PayloadSchema,Qy as PersonWorkemailWaterfall1PipeClass,U as Pipe,Wh as Pipe0Error,vn as PipeIdSchema,Ex as PipePayloadSchema,ur as PipeRunIfSchema,$ as PipelineValidationError,gn as PipesEnvironmentSchema,In as PipesErrorSchema,Zn as PipesFieldDefinitionSchema,Qn as PipesFieldDefinitionsSchema,Jn as PipesInputSchema,Lx as PipesRequestConfigSchema,Rx as PipesRequestSchema,Ix as PipesResponseSchema,Dx as ProcessedPipePayloadSchema,UC as ProcessedSearchPayloadSchema,FD as ProcessedSearchesPayloadSchema,hn as ProviderNameSchema,Rn as RECORD_FIELD_FORMATS,yn as RECORD_FIELD_TYPES,tr as RUN_IF_OPERATOR_LABELS,rr as RUN_IF_STATUS_OPERATORS,nr as RUN_IF_VALUE_OPERATORS,Wn as RecordClaimedBySchema,zn as RecordFieldFormatSchema,Kn as RecordFieldSchema,Sn as RecordFieldStatusSchema,bn as RecordFieldTypeSchema,xn as RecordIdSchema,Gn as RecordResolvedBySchema,Yn as RecordSchema,Uh as RequestValidationError,ar as RequiredConnectorSchema,cr as RunIfStatusOperatorsSchema,lr as RunIfStatusValueSchema,sr as RunIfValueOperatorsSchema,ST as SEARCHES_IDS,Gx as SEARCH_IDS,Yx as Search,GC as SearchErrorSchema,Kx as SearchIdSchema,VC as SearchPayloadSchema,WC as SearchRequestSchema,XC as SearchResponseSchema,KC as SearchResultFieldSchema,qC as SearchResultSchema,LD as SearchesErrorSchema,CT as SearchesIdSchema,PD as SearchesPayloadSchema,HD as SearchesRequestBaseConfigSchema,WD as SearchesRequestSchema,VD as SearchesResponseSchema,RD as SearchesResultFieldSchema,zD as SearchesResultSchema,ET as SearchesSearch,BD as SearchesStatusSchema,Ku as TYPES_TO_FORMATS,fw as WidgetsByKindSchema,Fn as WidgetsSchema,Ea as all,jr as analyzeLiquidTemplate,dn as and,H as any,g as autocomplete,ti as buildAiModelBillableOperations,zw as buildDependencyGraph,Hm as buildInputRequirementFromTemplates,K as catalogInput,Ma as cleanObject,Dw as cleanUrl,Ew as cleanWebsiteUrl,X as collectConstantReferencesFromTemplates,Ux as collectPipeContextSelectFields,ka as collectRequirementFields,Y as collectSecretReferencesFromTemplates,mO as compilePattern,Ca as configDefaults,Ii as convertIntermediateFieldsIntoGroups,Li as defaultSectionMap,Vh as describeRequirement,tS as entityLogoFavicon,eS as entityLogoProfessionalProfileUrl,Bi as extractFormMetadata,V as field,nn as fieldBehaviorCatalog,tn as fieldCatalog,Bh as fieldNameStr,Aw as fieldTypeFromValue,gT as fieldsToObject,SO as filterPipeEntries,CO as filterSearchEntries,wO as filterSearchesEntries,ri as getAiModelBillingKey,ii as getAiModelConnectionRequirements,ni as getAiModelProviders,ai as getAllAiModelProviders,W as getBasePipeName,Sx as getDefaultOutputFields,Mx as getDefaultPipeProviders,nw as getDefaultSearchOutputFields,ID as getDefaultSearchesOutputFields,Sw as getDependentPipeNamesForInputProperty,Cw as getDependentPipeNamesForPipe,OO as getDomain,Mw as getExpansionState,Qx as getFaviconUrlGoogle,_ as getField,rn as getFieldBehavior,Hu as getFieldDisplayLabel,Pw as getFieldWidgets,tw as getInitialSearchTableData,JD as getInitialSearchesTableData,Px as getInitialTableData,Ia as getInputHash,si as getJsonMetaForFieldDef,DO as getLoweestSearchCreditAmount,EO as getLoweestSearchesCreditAmount,TO as getLowestPipeCreditAmount,pn as getOutputFieldInfoFromDef,kx as getPipeBillableOperationDef,yw as getPipeCategoryEntries,vw as getPipeCategoryEntry,Cx as getPipeClass,Fa as getPipeConfigHash,wx as getPipeDefaultPayload,G as getPipeDocsURI,Ox as getPipeEntry,xw as getPipeInstances,Wx as getPipePayloadFormConfig,Tx as getPipePayloadSchema,Ax as getPipeVersion,J as getProviderBillableOperation,La as getProviderCreditsFromBillableOperations,xT as getProviderEntry,cn as getReadableFieldStatus,QD as getSandboxConnections,$D as getSandboxConnectionsForPipe,eO as getSandboxConnectionsForSearch,tO as getSandboxConnectionsForSearches,aO as getSearchCategoryEntries,iO as getSearchCategoryEntry,BC as getSearchClass,HC as getSearchDefaultPayload,$C as getSearchEntry,sO as getSearchFieldWidgets,cO as getSearchInstance,cw as getSearchPayloadFormConfig,JC as getSearchPayloadSchema,rw as getSearchTableDataAggregates,ZC as getSearchVersion,jD as getSearchesClass,ND as getSearchesDefaultPayload,XD as getSearchesEntry,Fw as getSearchesFieldWidgets,uO as getSearchesInstances,MD as getSearchesPayloadSchema,YD as getSearchesTableDataAggregates,GD as getSearchesVersion,zx as getStartingCostPerPipesProvider,iw as getStartingCostPerSearchProvider,ZD as getStartingCostPerSearchesProvider,Fx as getTableDataAggregates,Nw as getUnexpandedValue,$x as ifDefined,z as inputFields,yT as inputFromRecord,vT as inputFromRecordArr,_T as inputFromRecords,lw as inputGuards,on as isCatalogField,jt as isEmptyValue,an as isFieldName,yO as isPipeAllowed,vO as isProviderAllowed,Oa as isRequirementMet,Aa as isRequirementSatisfiedByRecord,bO as isSearchAllowed,xO as isSearchesAllowed,Yr as joinConnectionString,za as markRecordFieldAsComplete,Ha as markRecordFieldAsFailed,Va as markRecordFieldAsNoResult,Ba as markRecordFieldAsPending,Wa as markRecordFieldAsProcessing,Ua as markRecordFieldAsSkipped,gO as matchesAny,hO as matchesPattern,nS as mergeWidgets,T as noConnectorInput,Da as optional,w as optionalConnectorInput,fn as or,R as outputFields,Ar as parseLiquidTemplate,wr as parseOutputTagArgs,iT as parseRecordValueOrError,jO as parseRichText,xx as pipeCatalog,gw as pipeCategoryCatalog,yx as pipeClassCatalog,bx as pipePayloadSchemaCatalog,ea as pipesAsyncIncludeExcludeSelectInput,da as pipesContextSelectInput,na as pipesDateRangeInput,qi as pipesFieldsSelectInput,Ji as pipesIncludeExcludeInput,$i as pipesIncludeExcludeSelectInput,E as pipesInputField,ca as pipesIntInput,hi as pipesJsonExtractionInput,ua as pipesJsonSchemaField,Qi as pipesKeyValueListInput,oa as pipesLLMSelectInput,Yi as pipesMultiCreateInput,sa as pipesMultiSelectInput,la as pipesNumberInput,O as pipesOptionalBooleanInput,Xi as pipesOrderedMultiCreateInput,k as pipesOutputField,y as pipesPayloadRegistry,Hi as pipesPromptInput,D as pipesProviderInput,ta as pipesRangeInput,S as pipesRunIfInput,aa as pipesSelectInput,bw as pipesSnippetCatalog,Zi as pipesTaggedOrderedMultiCreateInput,C as pipesTaggedTextInput,Ui as pipesTemplateInput,ra as pipesTextInput,ia as pipesTextareaInput,Z as placeholder,bT as processInputObjects,dr as providerCatalog,q as rateLimitRatioFallingProgression,Or as renderLiquidTemplate,kr as renderLiquidTemplateSync,Gi as requiredConnectorInput,Ra as requirementToInputFields,Hh as requirementUnmetMessage,ln as requiresConnection,un as requiresField,zC as searchCatalog,nO as searchCategoryCatalog,LC as searchClassCatalog,RC as searchPayloadSchemaCatalog,oO as searchSnippetCatalog,I as searchesAsyncIncludeExcludeSelectInput,F as searchesAsyncMultiSelectInput,AD as searchesCatalog,OD as searchesClassCatalog,ga as searchesDateRangeInput,ma as searchesExactRangeInput,j as searchesIncludeExcludeInput,M as searchesIncludeExcludeSelectInput,L as searchesIntInput,pa as searchesMinMaxIntInput,A as searchesMultiCreateInput,P as searchesMultiSelectInput,Sa as searchesNumberField,_a as searchesOptionalBooleanInput,va as searchesOptionalNullableBooleanInput,fa as searchesOrderedMultiCreateInput,N as searchesOutputField,b as searchesPayloadRegistry,kD as searchesPayloadSchemaCatalog,ha as searchesRangeInput,xa as searchesSelectInput,ya as searchesTextInput,ba as searchesTextareaField,Gu as sortObjectKeys,jx as sortPipeCatalogByBasePipe,QC as sortSearchCatalogByBaseSearch,KD as sortSearchesCatalogByBaseSearch,Jr as splitConnectionString,h as staticAutocomplete,m as staticOptions,Wu as stringify,Uu as testPrint,sT as transformIntoResponse,Bw as validatePipesOrError,dO as validateSearches,Q as validationErrorMessages};