@pipe0/base 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -70,7 +70,7 @@ 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-v1-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-v1-resend`]}getTemplatedFields(){return[this.payload.config.from,this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return 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={"email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.4,level1:{credits:.3,weight:1},level2:{credits:.15,weight:6}},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[`email-validate-zerobounce-v1-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=`email-write-v1`,gh=ti(hh),_h=_(`email_subject`),vh=_(`email_body`),yh=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:gh}),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({[_h.name]:k({fieldName:_h.name}),[vh.name]:k({fieldName:vh.name})}))})}),bh=class extends U{pipeId=mh;payload;payloadSchema=yh;billableOperations=gh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,hh)]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[_h.name]:this.catalogOutput(_h),[vh.name]:this.catalogOutput(vh)}}getConnectionsRequirements(){return ii(this.payload.config.model)}},xh=yh,Sh={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:gh,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:``}}},Ch=`field:domainify@1`,wh=_(`url_input`),Th=_(`domain`),Eh=r.object({pipe_id:r.literal(Ch),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[wh.name]:E({fieldName:wh.name})})),output_fields:R(r.object({[Th.name]:k({fieldName:Th.name})}))}).optional()}),Dh=e=>V(K(wh,e)),Oh={"field-domainify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},kh=class extends U{pipeId=Ch;payload;payloadSchema=Eh;billableOperations=Oh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Dh(this.payload.config)}getRawOutputFields(){return{[Th.name]:this.catalogOutput(Th)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Ah=Eh,jh={pipeId:Ch,basePipe:W(Ch),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(Ch),billableOperations:Oh,defaultInputRequirement:Dh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ch,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},Mh=`field:slugify@1`,Nh=_(`string_input`),Ph=_(`slugified`),Fh=r.object({pipe_id:r.literal(Mh),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Nh.name]:E({fieldName:Nh.name})})),output_fields:R(r.object({[Ph.name]:k({fieldName:Ph.name})}))}).optional()}),Ih=e=>V(K(Nh,e)),Lh={"field-slugify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Rh=class extends U{pipeId=Mh;payload;payloadSchema=Fh;billableOperations=Lh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Ih(this.payload.config)}getRawOutputFields(){return{[Ph.name]:this.catalogOutput(Ph)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},zh=Fh,Bh={pipeId:Mh,basePipe:W(Mh),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(Mh),billableOperations:Lh,defaultInputRequirement:Ih(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Mh,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function Vh({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function Hh(e){switch(e.kind){case`field`:return Vh(e.field);case`optional`:return`[optional ${Vh(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?Hh(e.of[0]):`(${e.of.map(Hh).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?Hh(e.of[0]):`(${e.of.map(Hh).join(` OR `)})`}}function Uh(e,t){return`Pipe input requirement is not satisfied${t?.pipeId!==void 0||t?.index!==void 0?` for pipe${t.index===void 0?``:` at index ${t.index}`}${t.pipeId===void 0?``:` (${t.pipeId})`}`:``}: ${Hh(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var Wh=class extends Error{constructor(e){super(`Request validation failed (${e.length} errors): ${e.join(`, `)}`),this.errors=e,this.name=`RequestValidationError`,Object.setPrototypeOf(this,new.target.prototype)}};const Q={ConditionTargetFieldNotFound:({fieldName:e,pipeId:t,pipeIdx:n})=>({code:`ConditionTargetFieldNotFound`,message:`${t} (idx: ${n}) has an invalid condition. Field '${e}' not found.`}),FaultyEnrichmentOrder:()=>({code:`FaultyEnrichmentOrder`,message:`Enrichment not found while ordering. Was the request invalid?`}),MustDefineAnnotations:()=>({code:`MustDefineAnnotations`,message:`Must define either input or field annoations to validate pipes payload.`}),CircularDependency:({currentPipe:e,circularPipe:t})=>({code:`CircularDependency`,message:`'${e.pipe_id}' (${e.idx}) and '${t.pipeId}' (${t.idx}) create a dependency loop. They both need the other's output to complete. Neither can complete. You can map the pipe outputs or input to fields with different names if you want the pipes to be independent or each other.`}),ValidationFailed:({error:e})=>({code:`ValidationFailed`,message:`Failed to validate task request: ${e instanceof Error?e.message:String(e)}`}),MissingCustomConnections:({pipeId:e,index:t,missingProviders:n})=>({code:`MissingCustomConnections`,message:`Pipe ${e} (index ${t}) requires you to specify custom connections for the providers ${n.join(`, `)}. Create the custom connections in the dashbard and reference them in your request.`}),ResponseGenerationFailed:({error:e})=>({code:`ResponseGenerationFailed`,message:`Failed to generate response: ${e instanceof Error?e.message:String(e)}`}),InputValuesMustHaveSameType:({pipeId:e,fieldNames:t})=>({code:`InputValuesMustHaveSameType`,message:`Pipe ${e} requires all input values to have the same type. But values ${t.join(`, `)} have different types.`}),NotValidated:()=>({code:`NotValidated`,message:`PipelineRequest must be validated before accessing results`}),MissingIdInInput:()=>({code:`MissingIdInInput`,message:`Inputs missing 'id' property.`}),InputDataTypeMismatch:({key:e,derivedInputFieldType:t,fieldType:n})=>({code:`InputDataTypeMismatch`,message:`Input data has values with matching keys '${e}' but different types. Expected type: '${t}'. Actual: '${n}'.`}),UnresolvableDependency:({index:e,dependencyIndex:t})=>({code:`UnresolvableDependency`,message:`Unresolvable dependency at index ${e} to ${t}`}),RequirementUnmet:({requirement:e,pipeId:t,index:n})=>({code:`RequirementUnmet`,message:Uh(e,{pipeId:t,index:n})}),HardInputDependencyViolation:({index:e,indexPipeId:t,dependencyIndex:n,dependencyIndexPipeId:r})=>({code:`HardInputDependencyViolation`,message:`Dependency violation: pipe at idx: ${e} (${t}) must come after pipe at idx: ${n} (${r})`}),HardConditionDependencyViolation:({index:e,indexPipeId:t,dependencyIndex:n,dependencyIndexPipeId:r})=>({code:`HardConditionDependencyViolation`,message:`Dependency violation: pipe at idx: ${e} (${t}) has a condition that points to pipe at idx: ${n} (${r}). But pipe index: ${e} (${t}) is always must be processed after pipe at index ${n} (${r}). This is due to input requirements or other conditions.`}),DuplicateInitialField:({name:e})=>({code:`DuplicateInitialField`,message:`Duplicate initial field '${e}' detected. Each field must be defined only once.`}),MissingInputId:({index:e})=>({code:`MissingInputId`,message:`Input record at index ${e} is missing a required ID field.`}),InvalidId:()=>({code:`InvalidId`,message:`Cell IDs must be numbers or strings`}),IDConflict:({index:e,id:t})=>({code:`IDConflict`,message:`Input data at index ${e} has Id conflict. Id '${t}' is not unique.`}),UnknownResolver:({pipeId:e,index:t})=>({code:`UnknownResolver`,message:`Unknown pipe '${e}' specified at position ${t}.`}),DuplicatePipeOutput:({pipeId:e,outputField:t})=>({code:`DuplicateEnrichmentOutput`,message:`Field conflict for '${e}'. Cannot add output field ${Vh(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 Gh=class extends Error{},$=class extends Gh{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 Kh=`fields:merge@1`,qh=_(`merge_result`),Jh=r.object({pipe_id:r.literal(Kh),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({[qh.name]:k({fieldName:qh.name})}))})}),Yh={"fields-merge-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Xh=class extends U{pipeId=Kh;payload;payloadSchema=Jh;billableOperations=Yh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`fields-merge-v1-pipe0`]}getInputRequirement(){let e=this.payload.config.sources.map(e=>e.field_name),t;return 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{[qh.name]:this.catalogOutput(qh,{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}]}},Zh=Jh,Qh={pipeId:Kh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(Kh),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(Kh),defaultInputRequirement:null,billableOperations:Yh,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Kh,connector:null,run_if:null,config:{sources:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},$h=`http:request@1`,eg=_(`http_response_status`),tg=_(`http_response_body`),ng=_(`http_response_headers`),rg=r.object({pipe_id:r.literal($h),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({[eg.name]:k({fieldName:eg.name}),[tg.name]:k({fieldName:tg.name}),[ng.name]:k({fieldName:ng.name})}))})}),ig={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},ag=class extends U{pipeId=$h;payload;payloadSchema=rg;billableOperations=ig;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`http-request-v1-pipe0`]}getTemplatedFields(){let e=[this.payload.config.url,this.payload.config.body];for(let t of this.payload.config.query_params??[])e.push(t.key,t.value);for(let t of this.payload.config.headers??[])e.push(t.key,t.value);return e}getInputRequirement(){return Hm(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[eg.name]:this.catalogOutput(eg),[tg.name]:this.catalogOutput(tg),[ng.name]:this.catalogOutput(ng)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},og=rg,sg={pipeId:$h,basePipe:W($h),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($h),billableOperations:ig,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:$h,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}}}}},cg=`json:extract:multi@1`,lg=r.object({pipe_id:r.literal(cg),run_if:S(),connector:T(),config:r.object({json_extraction:hi()})}),ug={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},dg=class extends U{pipeId=cg;payload;payloadSchema=lg;billableOperations=ug;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`json-extract-multi-v1-pipe0`]}getInputRequirement(){return V({description:``,name:this.payload.config.json_extraction.field_name,format:null,label:``,type:`json`,resolvedName:this.payload.config.json_extraction.field_name})}getRawOutputFields(){let e={};for(let t of this.payload.config.json_extraction.extractions)e[t.output_field.name||t.output_field.name]={description:`Extracted value from JSON input field ${this.payload.config.json_extraction.field_name}.`,enabled:!0,format:t.output_field.format||null,label:t.output_field.label||`Extract JSON`,name:t.output_field.name,resolvedName:t.output_field.name,jsonMeta:null,type:t.output_field.type,isCatalogFIeld:!1,isPrimaryOutput:!1};return e}getConnectionsRequirements(){return[]}},fg=lg,pg={pipeId:cg,basePipe:W(cg),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:G(cg),tags:[B.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:ug,defaultInputRequirement:null,defaultPayload:{pipe_id:cg,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},mg=`message:send:slack@1`,hg=_(`slack_message_success`),gg=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],_g=r.object({pipe_id:r.literal(mg),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 gg;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({[hg.name]:k({fieldName:hg.name})}))})}),vg={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},yg=class extends U{pipeId=mg;payload;payloadSchema=_g;billableOperations=vg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(){return[`message-send-slack-v1-slack`]}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return Hm(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[hg.name]:this.catalogOutput(hg)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},bg=_g,xg={pipeId:mg,basePipe:W(mg),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(mg),billableOperations:vg,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:mg,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},Sg=`message:write@1`,Cg=_(`message`),wg=`message-write-v1`,Tg=ti(wg),Eg=r.object({pipe_id:r.literal(Sg),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:Tg}),output_fields:R(r.object({[Cg.name]:k({fieldName:Cg.name})}))})}),Dg=class extends U{pipeId=Sg;payload;payloadSchema=Eg;billableOperations=Tg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,wg)]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[Cg.name]:this.catalogOutput(Cg)}}getConnectionsRequirements(){return ii(this.payload.config.model)}},Og=Eg,kg={pipeId:Sg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(Sg),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(Sg),defaultInputRequirement:null,billableOperations:Tg,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:Sg,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},Ag=`person:devprofileurl:profileurl:waterfall@1`,jg=_(`profile_url`),Mg=_(`developer_profile_url`),Ng=_(`alternative_developer_profile_urls`),Pg=[`crustdata`],Fg=[{provider:`crustdata`}],Ig=r.object({pipe_id:r.literal(Ag),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Fg,availableProviders:Pg}),input_fields:z(r.object({[jg.name]:E({fieldName:jg.name})})),output_fields:R(r.object({[Mg.name]:k({fieldName:Mg.name}),[Ng.name]:k({fieldName:Ng.name})}))}).optional()}),Lg=e=>V(K(jg,e)),Rg={"person-devprofileurl-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1.3,weight:1}},mode:`onSuccess`}},zg=class extends U{pipeId=Ag;payload;payloadSchema=Ig;billableOperations=Rg;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 Lg(this.payload.config)}getRawOutputFields(){return{[Mg.name]:this.catalogOutput(Mg,{isPrimaryOutput:!0}),[Ng.name]:this.catalogOutput(Ng,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={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}))}},Bg=Ig,Vg={pipeId:Ag,basePipe:W(Ag),label:`GitHub profile from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a developer profile URL (e.g. GitHub) for any prospect using multiple data providers in a waterfall motion.`,docPath:G(Ag),tags:[B.LINKEDIN,B.WATERFALL,B.NEW],billableOperations:Rg,defaultInputRequirement:Lg(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Pg,allowedUserConnectionProviders:Pg,deprecatedProviders:[],defaultPayload:{pipe_id:Ag,connector:null,run_if:null,config:{providers:Fg,input_fields:{profile_url:{alias:``}},output_fields:{developer_profile_url:{alias:``,enabled:!0},alternative_developer_profile_urls:{alias:``,enabled:!1}}}}},Hg=`person:email:validate:millionverifier@1`,Ug=_(`email`),Wg=_(`email_validation_status`),Gg=_(`million_validation_match`),Kg=r.object({pipe_id:r.literal(Hg),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Ug.name]:E({fieldName:Ug.name})})),output_fields:R(r.object({[Wg.name]:k({fieldName:Wg.name}),[Gg.name]:k({fieldName:Gg.name})}))}).optional()}),qg=e=>V(K(Ug,e)),Jg={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},Yg=class extends U{pipeId=Hg;payload;payloadSchema=Kg;billableOperations=Jg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`person-email-validate-millionverifier-v1-millionverifier`]}getInputRequirement(){return qg(this.payload.config)}getRawOutputFields(){return{[Wg.name]:this.catalogOutput(Wg),[Gg.name]:this.catalogOutput(Gg)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},Xg=Kg,Zg={pipeId:Hg,basePipe:W(Hg),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[B.EMAIL],docPath:G(Hg),billableOperations:Jg,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:qg(null),defaultPayload:{pipe_id:Hg,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},Qg=_(`email`),$g=_(`amplemarket_person_match`),e_=`person:identity:amplemarket@1`,t_=r.object({pipe_id:r.literal(e_),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Qg.name]:E({fieldName:Qg.name})})),output_fields:R(r.object({[$g.name]:k({fieldName:$g.name})}))}).optional()}),n_=e=>V(K(Qg,e)),r_={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},i_=class extends U{pipeId=e_;payload;payloadSchema=t_;billableOperations=r_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return n_(this.payload.config)}getRawOutputFields(){return{[$g.name]:this.catalogOutput($g)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},a_=t_,o_={pipeId:e_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(e_),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(e_),billableOperations:r_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:n_(null),defaultPayload:{pipe_id:e_,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},s_=`person:identity:email:waterfall@1`,c_=_(`email`),l_=_(`company_domain`),u_=_(`name`),d_=_(`job_title`),f_=_(`profile_url`),p_=_(`company_profile_url`),m_=_(`company_name`),h_=[`findymail`,`hunter`,`crustdata`],g_=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],__=r.object({pipe_id:r.literal(s_),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:h_,defaultProviders:g_,sectionKey:`general`}),input_fields:z(r.object({[c_.name]:E({fieldName:c_.name})})),output_fields:R(r.object({[u_.name]:k({fieldName:u_.name}),[f_.name]:k({fieldName:f_.name}),[d_.name]:k({fieldName:d_.name}),[l_.name]:k({fieldName:l_.name}),[m_.name]:k({fieldName:m_.name}),[p_.name]:k({fieldName:p_.name})}))}).optional()}),v_=e=>V(K(c_,e)),y_={"person-identity-email-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-identity-email-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-identity-email-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},b_=class extends U{pipeId=s_;payload;payloadSchema=__;billableOperations=y_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return v_(this.payload.config)}getRawOutputFields(){return{[u_.name]:this.catalogOutput(u_,{isPrimaryOutput:!0}),[f_.name]:this.catalogOutput(f_,{isPrimaryOutput:!0}),[d_.name]:this.catalogOutput(d_,{isPrimaryOutput:!0}),[m_.name]:this.catalogOutput(m_,{isPrimaryOutput:!0}),[p_.name]:this.catalogOutput(p_,{isPrimaryOutput:!0}),[l_.name]:this.catalogOutput(l_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},x_=__,S_={pipeId:s_,basePipe:W(s_),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(s_),managedProviders:h_,deprecatedProviders:[],allowedUserConnectionProviders:h_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:y_,defaultInputRequirement:v_(null),defaultPayload:{pipe_id:s_,connector:null,run_if:null,config:{providers:g_,input_fields:{email:{alias:``}},output_fields:{name:{alias:``,enabled:!0},profile_url:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_domain:{alias:``,enabled:!0}}}}},C_=_(`profile_url`),w_=_(`amplemarket_person_match`),T_=`person:match:amplemarket@1`,E_=r.object({pipe_id:r.literal(T_),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[C_.name]:E({fieldName:C_.name})})),output_fields:R(r.object({[w_.name]:k({fieldName:w_.name})}))}).optional()}),D_=e=>V(K(C_,e)),O_={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},k_=class extends U{pipeId=T_;payload;payloadSchema=E_;billableOperations=O_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return D_(this.payload.config)}getRawOutputFields(){return{[w_.name]:this.catalogOutput(w_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},A_=E_,j_={pipeId:T_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(T_),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(T_),billableOperations:O_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:D_(null),defaultPayload:{pipe_id:T_,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},M_=`person:match:role:waterfall@1`,N_=_(`company_domain`),P_=_(`role_finder_match`),F_=[`leadmagic`],I_=[{provider:`leadmagic`}],L_=r.object({pipe_id:r.literal(M_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:I_,availableProviders:F_}),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({[N_.name]:E({fieldName:N_.name})})),output_fields:R(r.object({[P_.name]:k({fieldName:P_.name})}))})}),R_=e=>H(K(N_,e)),z_={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},B_=class extends U{pipeId=M_;payload;payloadSchema=L_;billableOperations=z_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return R_(this.payload.config)}getSecretRequirements(){return Y(this.payload.config?.roles??[])}getConstantRequirements(){return X(this.payload.config?.roles??[])}getRawOutputFields(){return{[P_.name]:this.catalogOutput(P_,{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}))}},V_=L_,H_={pipeId:M_,basePipe:W(M_),managedProviders:F_,deprecatedProviders:[],allowedUserConnectionProviders:F_,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(M_),billableOperations:z_,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:R_(null),defaultPayload:{pipe_id:M_,run_if:null,connector:null,config:{roles:[],providers:I_,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},U_=`person:mobile:profileurl:waterfall@1`,W_=_(`profile_url`),G_=_(`mobile`),K_=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],q_=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],J_=r.object({pipe_id:r.literal(U_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:q_,availableProviders:K_}),input_fields:z(r.object({[W_.name]:E({fieldName:W_.name})})),output_fields:R(r.object({[G_.name]:k({fieldName:G_.name})}))}).optional()}),Y_=e=>V(K(W_,e)),X_={"person-mobile-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5,level1:{credits:3,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6,level1:{credits:4,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4,level1:{credits:3,weight:1}},mode:`onSuccess`}},Z_=class extends U{pipeId=U_;payload;payloadSchema=J_;billableOperations=X_;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 Y_(this.payload.config)}getRawOutputFields(){return{[G_.name]:this.catalogOutput(G_,{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}))}},Q_=J_,$_={pipeId:U_,basePipe:W(U_),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(U_),tags:[B.PHONE,B.WATERFALL],billableOperations:X_,defaultInputRequirement:Y_(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:K_,allowedUserConnectionProviders:K_,deprecatedProviders:[],defaultPayload:{pipe_id:U_,connector:null,run_if:null,config:{providers:q_,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},ev=`person:mobile:workemail:waterfall@1`,tv=_(`work_email`),nv=_(`mobile`),rv=[`leadmagic`,`amplemarket`],iv=[{provider:`leadmagic`},{provider:`amplemarket`}],av=r.object({pipe_id:r.literal(ev),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:rv,defaultProviders:iv}),input_fields:z(r.object({[tv.name]:E({fieldName:tv.name})})),output_fields:R(r.object({[nv.name]:k({fieldName:nv.name})}))}).optional()}),ov=e=>V(K(tv,e)),sv={"person-mobile-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-mobile-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:5,level1:{credits:4,weight:1}},mode:`onSuccess`}},cv=class extends U{pipeId=ev;payload;payloadSchema=av;billableOperations=sv;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 ov(this.payload.config)}getRawOutputFields(){return{[nv.name]:this.catalogOutput(nv,{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}))}},lv=av,uv={pipeId:ev,basePipe:W(ev),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(ev),billableOperations:sv,defaultInputRequirement:ov(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:rv,managedProviders:rv,deprecatedProviders:[],defaultPayload:{pipe_id:ev,connector:null,run_if:null,config:{providers:iv,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},dv=`person:name:join@1`,fv=_(`first_name`),pv=_(`last_name`),mv=_(`name`),hv=r.object({pipe_id:r.literal(dv),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[fv.name]:E({fieldName:fv.name}),[pv.name]:E({fieldName:pv.name})})),output_fields:R(r.object({[mv.name]:k({fieldName:mv.name})}))}).optional()}),gv=e=>Ea(K(fv,e),K(pv,e)),_v={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},vv=class extends U{pipeId=dv;payload;payloadSchema=hv;billableOperations=_v;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-join-v1-pipe0`]}getInputRequirement(){return gv(this.payload.config)}getRawOutputFields(){return{[mv.name]:this.catalogOutput(mv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},yv=hv,bv={pipeId:dv,basePipe:W(dv),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(dv),billableOperations:_v,defaultInputRequirement:gv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:dv,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},xv=`person:name:split@1`,Sv=_(`name`),Cv=_(`first_name`),wv=_(`last_name`),Tv=r.object({pipe_id:r.literal(xv),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[Sv.name]:E({fieldName:Sv.name})})),output_fields:R(r.object({[Cv.name]:k({fieldName:Cv.name}),[wv.name]:k({fieldName:wv.name})}))}).optional()}),Ev=e=>V(K(Sv,e)),Dv={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Ov=class extends U{pipeId=xv;payload;payloadSchema=Tv;billableOperations=Dv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-split-v1-pipe0`]}getInputRequirement(){return Ev(this.payload.config)}getRawOutputFields(){return{[Cv.name]:this.catalogOutput(Cv),[wv.name]:this.catalogOutput(wv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},kv=Tv,Av={pipeId:xv,basePipe:W(xv),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(xv),billableOperations:Dv,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Ev(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:xv,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},jv=`person:personalemail:profileurl:waterfall@1`,Mv=_(`profile_url`),Nv=_(`personal_email`),Pv=_(`alternate_personal_emails`),Fv=[`leadmagic`,`mixrank`],Iv=[{provider:`leadmagic`},{provider:`mixrank`}],Lv=r.object({pipe_id:r.literal(jv),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Fv,defaultProviders:Iv}),input_fields:z(r.object({[Mv.name]:E({fieldName:Mv.name})})),output_fields:R(r.object({[Nv.name]:k({fieldName:Nv.name}),[Pv.name]:k({fieldName:Pv.name})}))}).optional()}),Rv=e=>V(K(Mv,e)),zv={"person-personalemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"person-personalemail-profileurl-waterfall-v1-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Bv=class extends U{pipeId=jv;payload;payloadSchema=Lv;billableOperations=zv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Rv(this.payload.config)}getRawOutputFields(){return{[Nv.name]:this.catalogOutput(Nv,{isPrimaryOutput:!0}),[Pv.name]:this.catalogOutput(Pv)}}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}))}},Vv=Lv,Hv={pipeId:jv,basePipe:W(jv),allowedUserConnectionProviders:Fv,managedProviders:Fv,deprecatedProviders:[],label:`Personal email from LinkedIn`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[B.EMAIL,B.PERSONAL_EMAIL],docPath:G(jv),billableOperations:zv,defaultInputRequirement:Rv(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:jv,connector:null,run_if:null,config:{providers:Iv,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},Uv=_(`profile_url`),Wv=_(`post_list_string`),Gv=_(`crustdata_post_list`),Kv=`person:posts:crustdata@1`,qv=r.object({pipe_id:r.literal(Kv),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({[Uv.name]:E({fieldName:Uv.name})})),output_fields:R(r.object({[Wv.name]:k({fieldName:Wv.name}),[Gv.name]:k({fieldName:Gv.name})}))}).optional()}),Jv=e=>V(K(Uv,e)),Yv={"person-posts-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`,note:`1.5 credits per post. Posts are fetched in increments of 5.`,provider:`crustdata`}},Xv=class extends U{pipeId=Kv;payload;payloadSchema=qv;billableOperations=Yv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-posts-crustdata-v1-crustdata`]}getInputRequirement(){return Jv(this.payload.config)}getRawOutputFields(){return{[Wv.name]:this.catalogOutput(Wv),[Gv.name]:this.catalogOutput(Gv)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},Zv=qv,Qv={pipeId:Kv,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Kv),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[B.LINKEDIN],docPath:G(Kv),billableOperations:Yv,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Jv(null),defaultPayload:{pipe_id:Kv,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}}}}},$v=`person:profile:waterfall@1`,ey=_(`profile`),ty=_(`profile_url`),ny=[`prospeo`,`icypeas`,`amplemarket`],ry=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],iy=r.object({pipe_id:r.literal($v),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:ny,defaultProviders:ry}),input_fields:z(r.object({[ty.name]:E({fieldName:ty.name})})),output_fields:R(r.object({[ey.name]:k({fieldName:ey.name})}))}).optional()}),ay=e=>V(K(ty,e)),oy={"person-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0}},sy=class extends U{pipeId=$v;payload;payloadSchema=iy;billableOperations=oy;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 ay(this.payload.config)}getRawOutputFields(){return{[ey.name]:this.catalogOutput(ey,{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}))}},cy=iy,ly={pipeId:$v,basePipe:W($v),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:G($v),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:ny,deprecatedProviders:[],allowedUserConnectionProviders:ny,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:oy,defaultInputRequirement:ay(null),defaultPayload:{pipe_id:$v,run_if:null,connector:null,config:{providers:ry,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},uy=_(`work_email`),dy=_(`crustdata_person_match`),fy=_(`crustdata_profile_match_score`),py=`person:profile:workemail:crustdata@1`,my=r.object({pipe_id:r.literal(py),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[uy.name]:E({fieldName:uy.name})})),output_fields:R(r.object({[dy.name]:k({fieldName:dy.name}),[fy.name]:k({fieldName:fy.name})}))}).optional()}),hy=e=>V(K(uy,e)),gy={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},_y=class extends U{pipeId=py;payload;payloadSchema=my;billableOperations=gy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return hy(this.payload.config)}getRawOutputFields(){return{[dy.name]:this.catalogOutput(dy),[fy.name]:this.catalogOutput(fy)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},vy=my,yy={pipeId:py,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(py),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(py),billableOperations:gy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:hy(null),defaultPayload:{pipe_id:py,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}}}}},by=`person:profileurl:email:waterfall@1`,xy=_(`email`),Sy=_(`work_email`),Cy=_(`profile_url`),wy=[`leadmagic`],Ty=[{provider:`leadmagic`}],Ey=r.object({pipe_id:r.literal(by),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Ty,availableProviders:wy}),input_fields:z(r.object({[xy.name]:E({fieldName:xy.name}),[Sy.name]:E({fieldName:Sy.name})})),output_fields:R(r.object({[Cy.name]:k({fieldName:Cy.name})}))}).optional()}),Dy=e=>H(K(xy,e),K(Sy,e)),Oy={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},ky=class extends U{pipeId=by;payload;payloadSchema=Ey;billableOperations=Oy;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 Dy(this.payload.config)}getRawOutputFields(){return{[Cy.name]:this.catalogOutput(Cy,{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}))}},Ay=Ey,jy={pipeId:by,basePipe:W(by),managedProviders:wy,deprecatedProviders:[],allowedUserConnectionProviders:wy,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(by),billableOperations:Oy,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Dy(null),defaultPayload:{pipe_id:by,run_if:null,connector:null,config:{providers:Ty,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},My=`person:profileurl:name@1`,Ny=_(`name`),Py=_(`company_name`),Fy=_(`location_hint`),Iy=_(`profile_url`),Ly=r.object({pipe_id:r.literal(My),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[Ny.name]:E({fieldName:Ny.name}),[Py.name]:E({fieldName:Py.name}),[Fy.name]:E({fieldName:Fy.name})})),output_fields:R(r.object({[Iy.name]:k({fieldName:Iy.name})}))}).optional()}),Ry=e=>Ea(V(K(Ny,e)),V(K(Py,e)),Da(K(Fy,e))),zy={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},By=class extends U{pipeId=My;payload;payloadSchema=Ly;billableOperations=zy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-profileurl-name-v1-pipe0`]}getInputRequirement(){return Ry(this.payload.config)}getRawOutputFields(){return{[Iy.name]:this.catalogOutput(Iy)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},Vy=Ly,Hy={pipeId:My,basePipe:W(My),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(My),tags:[B.LINKEDIN],billableOperations:zy,defaultInputRequirement:Ry(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:My,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Uy=`person:workemail:profileurl:waterfall@1`,Wy=_(`profile_url`),Gy=_(`work_email`),Ky=_(`email_validation_status`),qy=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],Jy=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Yy=r.object({pipe_id:r.literal(Uy),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:qy,defaultProviders:Jy,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({[Wy.name]:E({fieldName:Wy.name})})),output_fields:R(r.object({[Gy.name]:k({fieldName:Gy.name}),[Ky.name]:k({fieldName:Ky.name})}))}).optional()}),Xy=e=>V(K(Wy,e)),Zy={"person-workemail-profileurl-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2,level1:{credits:.7,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.5,weight:1}},mode:`onSuccess`}},Qy=class extends U{pipeId=Uy;payload;payloadSchema=Yy;billableOperations=Zy;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 Xy(this.payload.config)}getRawOutputFields(){return{[Gy.name]:this.catalogOutput(Gy,{isPrimaryOutput:!0}),[Ky.name]:this.catalogOutput(Ky,{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}))}},$y=Yy,eb={pipeId:Uy,basePipe:W(Uy),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(Uy),managedProviders:qy,allowedUserConnectionProviders:qy,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Zy,defaultInputRequirement:Xy(null),defaultPayload:{pipe_id:Uy,connector:null,run_if:null,config:{providers:Jy,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}}}}},tb=`person:workemail:waterfall@1`,nb=_(`name`),rb=_(`company_domain`),ib=_(`company_name`),ab=_(`work_email`),ob=_(`email_validation_status`),sb=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],cb=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],lb={"person-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:.5,level1:{credits:.25,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:{default:.5,level1:{credits:.25,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:1.5,level1:{credits:.75,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1.3,level1:{credits:.75,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`}},ub=r.object({pipe_id:r.literal(tb),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:sb,defaultProviders:cb,sectionKey:`general`,providerCredits:La(lb,sb)}),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({[nb.name]:E({fieldName:nb.name}),[rb.name]:E({fieldName:rb.name}),[ib.name]:E({fieldName:ib.name})})),output_fields:R(r.object({[ab.name]:k({fieldName:ab.name}),[ob.name]:k({fieldName:ob.name})}))}).optional()}),db=e=>Ea(V(K(nb,e)),H(K(rb,e),K(ib,e))),fb=class extends U{pipeId=tb;payload;payloadSchema=ub;billableOperations=lb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return db(this.payload.config)}getRawOutputFields(){return{[ab.name]:this.catalogOutput(ab,{isPrimaryOutput:!0}),[ob.name]:this.catalogOutput(ob,{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}))}},pb=ub,mb={pipeId:tb,basePipe:W(tb),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(tb),managedProviders:sb,deprecatedProviders:[],allowedUserConnectionProviders:sb,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:lb,defaultInputRequirement:db(null),defaultPayload:{pipe_id:tb,connector:null,run_if:null,config:{providers:cb,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}}}}},hb=`prompt:run@1`,gb=`prompt-run-v1`,_b=ti(gb),vb=r.object({pipe_id:r.literal(hb),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:_b})})}),yb=class extends U{pipeId=hb;payload;payloadSchema=vb;billableOperations=_b;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,gb)]}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)}},bb=vb,xb={pipeId:hb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(hb),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(hb),defaultInputRequirement:null,billableOperations:_b,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:hb,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},Sb=`sheet:row:append@1`,Cb=_(`sheet_record_id`),wb=_(`created_sheet`),Tb=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],Eb=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],Db={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Tb: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`}}},Ob={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Eb:t?(await t.teams.list({query:e})).map(e=>({label:e.name,value:e.id})):[],widgets:{provider_logo:{provider:`pipe0`}}},kb=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:Db}),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 unknown fields`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_field_creation`,sectionKey:`general`,description:`Add unknown fields as new sheet columns.`}),allow_sheet_creation: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:Ob,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}),[wb.name]:k({fieldName:wb.name})}))})}),Ab={"sheet-row-append-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},jb=class extends U{pipeId=Sb;payload;payloadSchema=kb;billableOperations=Ab;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-append-v1-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),[wb.name]:this.catalogOutput(wb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},Mb=kb,Nb={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:Ab,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}}}}},Pb=`sheet:row:expandappend@1`,Fb=_(`sheet_record_ids`),Ib=_(`input_objects`),Lb=r.object({pipe_id:r.literal(Pb),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 unknown object fields to the sheet definition.`,label:`Allow field creation`}),input_fields:z(r.object({[Ib.name]:E({fieldName:Ib.name})})),output_fields:R(r.object({[Fb.name]:k({fieldName:Fb.name})}))})}),Rb={"sheet-row-expandappend-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},zb=e=>V(K(Ib,e)),Bb=class extends U{pipeId=Pb;payload;payloadSchema=Lb;billableOperations=Rb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-expandappend-v1-pipe0`]}getInputRequirement(){return zb(this.payload.config)}getRawOutputFields(){return{[Fb.name]:this.catalogOutput(Fb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},Vb=Lb,Hb={pipeId:Pb,basePipe:W(Pb),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(Pb),tags:[B.FIELDS],billableOperations:Rb,defaultInputRequirement:zb(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Pb,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}}}}},Ub=`template:fill@1`,Wb=_(`template_output`),Gb=r.object({pipe_id:r.literal(Ub),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({[Wb.name]:k({fieldName:Wb.name})}))})}),Kb={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},qb=class extends U{pipeId=Ub;payload;payloadSchema=Gb;billableOperations=Kb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill-v1-pipe0`]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[Wb.name]:this.catalogOutput(Wb)}}getConnectionsRequirements(){return[]}},Jb=Gb,Yb={pipeId:Ub,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(Ub),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(Ub),defaultInputRequirement:null,billableOperations:Kb,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ub,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},Xb=`website:extract:firecrawl@1`,Zb=_(`website_url`),Qb=_(`firecrawl_extract_result`),$b=r.object({pipe_id:r.literal(Xb),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({[Zb.name]:E({fieldName:Zb.name})})),output_fields:R(r.object({[Qb.name]:k({fieldName:Qb.name})}))})}),ex=e=>V(K(Zb,e)),tx={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},nx=class extends U{pipeId=Xb;payload;payloadSchema=$b;billableOperations=tx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-extract-firecrawl-v1-firecrawl`]}getInputRequirement(){return ex(this.payload.config)}getRawOutputFields(){return{[Qb.name]:this.catalogOutput(Qb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},rx=$b,ix={pipeId:Xb,basePipe:W(Xb),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(Xb),billableOperations:tx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:ex(null),defaultPayload:{pipe_id:Xb,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}}}}},ax=`website:maplinks:firecrawl@1`,ox={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},sx=_(`website_url`),cx=_(`mapped_links`),lx=r.object({pipe_id:r.literal(ax),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({[sx.name]:E({fieldName:sx.name})})),output_fields:R(r.object({[cx.name]:k({fieldName:cx.name})}))}).optional()}),ux=e=>V(K(sx,e)),dx=class extends U{pipeId=ax;payload;payloadSchema=lx;billableOperations=ox;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-maplinks-firecrawl-v1-firecrawl`]}getInputRequirement(){return ux(this.payload.config)}getRawOutputFields(){return{[cx.name]:this.catalogOutput(cx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},fx=lx,px={pipeId:ax,basePipe:W(ax),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(ax),billableOperations:ox,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:ux(null),defaultPayload:{pipe_id:ax,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},mx=`website:scrape:firecrawl@1`,hx=_(`website_url`),gx=_(`website_markdown`),_x=_(`website_html`),vx=_(`website_links`),yx=r.object({pipe_id:r.literal(mx),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({[hx.name]:E({fieldName:hx.name})})),output_fields:R(r.object({[gx.name]:k({fieldName:gx.name}),[_x.name]:k({fieldName:_x.name}),[vx.name]:k({fieldName:vx.name})}))}).optional()}),bx=e=>V(K(hx,e)),xx={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},Sx=class extends U{pipeId=mx;payload;payloadSchema=yx;billableOperations=xx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-scrape-firecrawl-v1-firecrawl`]}getInputRequirement(){return bx(this.payload.config)}getRawOutputFields(){return{[gx.name]:this.catalogOutput(gx),[_x.name]:this.catalogOutput(_x),[vx.name]:this.catalogOutput(vx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Cx=yx,wx={pipeId:mx,basePipe:W(mx),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[B.SCRAPE],docPath:G(mx),billableOperations:xx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:bx(null),defaultPayload:{pipe_id:mx,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}}}}},Tx=`website:scrapelist:firecrawl@1`,Ex={"website-scrapelist-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`,note:`You are charged per url that is scraped.`}},Dx=_(`urls`),Ox=_(`scrape_list_response`),kx=r.object({pipe_id:r.literal(Tx),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({[Dx.name]:E({fieldName:Dx.name})})),output_fields:R(r.object({[Ox.name]:k({fieldName:Ox.name})}))}).optional()}),Ax=e=>V(K(Dx,e)),jx=class extends U{pipeId=Tx;payload;payloadSchema=kx;billableOperations=Ex;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`list-url-scrape-firecrawl`)}getInputRequirement(){return Ax(this.payload.config)}getRawOutputFields(){return{[Ox.name]:this.catalogOutput(Ox)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Mx=kx,Nx={pipeId:Tx,basePipe:W(Tx),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[B.SCRAPE],docPath:G(Tx),billableOperations:Ex,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Ax(null),defaultPayload:{pipe_id:Tx,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}}}}},Px=[`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`],Fx=r.enum(Px);function Ix(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 Lx(e,t){let n={name:e,config:t};return Pa.hashObject(n)}var Rx=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 Lx(this.searchId,this.payload)}};function zx(e){return e.split(`@`)[0]}function Bx(e){return`/docs/search-catalog/${zx(e)}/${e.split(`@`)[1]}`}function Vx(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function Hx(e,t){return e==null?void 0:t(e)}function Ux(){return Wx({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function Wx({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:Vx(e),entity:t||e}}function Gx(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 Kx=`companies:profiles:amplemarket@2`,qx=_(`company_name`),Jx=_(`company_domain`),Yx=_(`company_description`),Xx=_(`company_profile_url`),Zx=_(`amplemarket_company_match`),Qx=r.object({search_id:r.literal(Kx),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`}).default(100),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({[qx.name]:N({fieldName:qx.name}),[Jx.name]:N({fieldName:Jx.name}),[Yx.name]:N({fieldName:Yx.name}),[Xx.name]:N({fieldName:Xx.name}),[Zx.name]:N({fieldName:Zx.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:Vx(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=>{Ix(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),$x={default:{input:[{fields:[]}]}},eS=class extends Rx{searchId=Kx;schema=Qx;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[qx.name]:this.catalogOutput(qx),[Jx.name]:this.catalogOutput(Jx),[Yx.name]:this.catalogOutput(Yx),[Xx.name]:this.catalogOutput(Xx),[Zx.name]:this.catalogOutput(Zx)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return $x}},tS=Qx,nS={searchId:Kx,billableOperation:`companies-profiles-amplemarket-v2`,baseSearch:zx(`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:Bx(Kx),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:Kx,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:[]}}}}},rS=`companies:profiles:crustdata@2`,iS=_(`company_name`),aS=_(`company_domain`),oS=_(`company_description`),sS=_(`company_profile_url`),cS=_(`crustdata_company_match`),lS=r.object({search_id:r.literal(rS),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`}).default(100),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),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`)}),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:Vx(e.value)}})})})}).check(e=>{Ix(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 Rx{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:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return uS}},fS=lS,pS={searchId:rS,billableOperation:`companies-profiles-crustdata-v2`,baseSearch:zx(`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:Bx(rS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:rS,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:[]}}}}},mS=`companies:profiles:amplemarket@1`,hS=_(`company_name`),gS=_(`company_website_url`),_S=_(`company_description`),vS=_(`company_profile_url`),yS=_(`amplemarket_company_match`),bS=r.object({search_id:r.literal(mS),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({[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`)}),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=>{Ix(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 Rx{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:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return xS}},CS=bS,wS={searchId:mS,billableOperation:`companies-profiles-amplemarket-v1`,baseSearch:zx(`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:Bx(mS),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:mS,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:[]}}}}},TS=`companies:profiles:crustdata@1`,ES=_(`company_name`),DS=_(`company_website_url`),OS=_(`company_description`),kS=_(`company_profile_url`),AS=_(`crustdata_company_match`),jS=r.object({search_id:r.literal(TS),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({[ES.name]:N({fieldName:ES.name}),[DS.name]:N({fieldName:ES.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`)}),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=>{Ix(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 Rx{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:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return MS}},PS=jS,FS={searchId:TS,billableOperation:`companies-profiles-crustdata-v1`,baseSearch:zx(`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:Bx(TS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:TS,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:[]}}}}},IS=`people:profiles:amplemarket@1`,LS=_(`name`),RS=_(`company_website_url`),zS=_(`profile_url`),BS=_(`job_title`),VS=_(`amplemarket_person_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,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({[LS.name]:N({fieldName:LS.name}),[RS.name]:N({fieldName:RS.name}),[zS.name]:N({fieldName:zS.name}),[BS.name]:N({fieldName:BS.name}),[VS.name]:N({fieldName:VS.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=>{Ix(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 Rx{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:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return US}},GS=HS,KS={searchId:IS,billableOperation:`people-profiles-amplemarket-v1`,baseSearch:zx(`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:Bx(IS),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:IS,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:[]}}}},qS=`people:profiles:crustdata@1`,JS=_(`name`),YS=_(`company_website_url`),XS=_(`profile_url`),ZS=_(`job_title`),QS=_(`crustdata_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,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({[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({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=>{Ix(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 Rx{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:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return eC}},nC=$S,rC={searchId:qS,billableOperation:`people-profiles-crustdata-v1`,baseSearch:zx(`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:Bx(qS),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:qS,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:[]}}}}},iC=`people:profiles:amplemarket@2`,aC=_(`name`),oC=_(`company_domain`),sC=_(`profile_url`),cC=_(`job_title`),lC=_(`amplemarket_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,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}).default(50),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({[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({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:Vx(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=>{Ix(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 Rx{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:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return dC}},pC=uC,mC={searchId:iC,billableOperation:`people-profiles-amplemarket-v2`,baseSearch:zx(`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:Bx(iC),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:iC,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:[]}}}},hC=`people:profiles:crustdata@2`,gC=_(`name`),_C=_(`company_domain`),vC=_(`profile_url`),yC=_(`job_title`),bC=_(`crustdata_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,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}).default(100),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),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({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:Vx(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:Vx(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=>{Ix(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 Rx{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:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return SC}},wC=xC,TC={searchId:hC,billableOperation:`people-profiles-crustdata-v2`,baseSearch:zx(`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:Bx(hC),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:hC,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:[]}}}}},EC={"people:profiles:crustdata@1":tC,"people:profiles:crustdata@2":CC,"companies:profiles:crustdata@1":NS,"companies:profiles:crustdata@2":dS,"people:profiles:amplemarket@1":WS,"people:profiles:amplemarket@2":fC,"companies:profiles:amplemarket@1":SS,"companies:profiles:amplemarket@2":eS},DC={"people:profiles:crustdata@1":nC,"people:profiles:crustdata@2":wC,"companies:profiles:crustdata@1":PS,"companies:profiles:crustdata@2":fS,"people:profiles:amplemarket@1":GS,"people:profiles:amplemarket@2":pC,"companies:profiles:amplemarket@1":CS,"companies:profiles:amplemarket@2":tS},OC={"people:profiles:crustdata@1":rC,"people:profiles:crustdata@2":TC,"companies:profiles:crustdata@1":FS,"companies:profiles:crustdata@2":pS,"people:profiles:amplemarket@1":KS,"people:profiles:amplemarket@2":mC,"companies:profiles:amplemarket@1":wS,"companies:profiles:amplemarket@2":nS};function kC(e){return EC[e]}const AC=t.discriminatedUnion(`search_id`,Object.values(DC).map(e=>e)).openapi(`SearchPayloadSchema`);function jC(e,t){return Ca(t,OC[e].defaultPayload)}const MC=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=jC(e.search_id);return t?{...e,config:Ca(e?.config||{},t.config)}:e},AC),NC=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:MC}).openapi(`SearchRequestSchema`),PC=In,FC=t.object({value:Cn,status:Sn,type:bn.optional(),format:zn.nullable().optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),IC=t.record(t.string(),FC.nullable());function LC(e){return DC[e]}const RC=t.enum([`cursor`,`page_number`]),zC=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:Fx,errors:t.array(PC),results:t.array(IC),organization_id:t.string(),next_page:MC.nullable(),pagination_type:RC.nullable(),total_pages:t.int32().nullable()}).openapi(`SearchResponseSchema`);function BC(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function VC(){let e={};for(let t of Object.values(OC)){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=BC(e.searchId);return BC(t.searchId)-n})}),e}function HC(e){return OC[e]}const UC=VC();function WC(e){let t=[];for(let[n,r]of Object.entries(UC)){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:BC(i.searchId)})}return t}function GC(e){return Object.keys(OC[e].defaultPayload.config.output_fields)}function KC(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 GC(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:UC}}function qC(e){let t=HC(e);return{[t.provider]:t.cost.credits.default}}const JC={"prompt:run@1":yb,"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":fb,"people:email:iswork@1":bu,"email:iswork@1":Fm,"people:name:split@1":Yd,"person:name:split@1":Ov,"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":vv,"company:overview@1":kl,"company:overview@2":Gl,"company:overview@3":ws,"json:extract:multi@1":dg,"company:lookalikes:companyenrich@1":Rc,"company:lookalikes:companyenrich@2":Mo,"company:match:logodev@1":al,"company:match:logodev@2":$o,"person:posts:crustdata@1":Xv,"people:profile:workemail:crustdata@1":jp,"person:profile:workemail:crustdata@1":_y,"people:identity:email:waterfall@1":od,"person:identity:email:waterfall@1":b_,"person:identity:amplemarket@1":i_,"email:send:resend@1":eh,"contact:create:resend@1":qs,"email:send:gmail@1":qm,"email:write@1":bh,"fields:merge@1":Xh,"field:slugify@1":Rh,"field:domainify@1":kh,"http:request@1":ag,"template:fill@1":qb,"message:send:slack@1":yg,"message:write@1":Dg,"people:personalemail:profile:waterfall@1":cf,"person:personalemail:profileurl:waterfall@1":Bv,"website:scrape:firecrawl@1":Sx,"website:scrapelist:firecrawl@1":jx,"website:extract:firecrawl@1":nx,"website:maplinks:firecrawl@1":dx,"sheet:row:append@1":jb,"sheet:row:expandappend@1":Bb,"people:match:role:waterfall@1":_d,"person:match:role:waterfall@1":B_,"company:match:crustdata@1":qc,"company:match:crustdata@2":Vo,"person:match:amplemarket@1":k_,"company:identity@2":kc,"company:identity@3":Co,"people:phone:profile:waterfall@1":yf,"person:mobile:profileurl:waterfall@1":Z_,"person:devprofileurl:profileurl:waterfall@1":zg,"people:phone:workemail:waterfall@1":Af,"person:mobile:workemail:waterfall@1":cv,"people:profile:waterfall@1":xp,"person:profile:waterfall@1":sy,"people:profileurl:email:waterfall@1":Up,"person:profileurl:email:waterfall@1":ky,"person:profileurl:name@1":By,"people:email:validate:zerobounce@1":ku,"person:email:validate:millionverifier@1":Yg,"people:workemail:profileurl:waterfall@1":fm,"person:workemail:profileurl:waterfall@1":Qy,"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},YC={"prompt:run@1":bb,"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":pb,"people:email:iswork@1":xu,"email:iswork@1":Im,"people:name:split@1":Xd,"person:name:split@1":kv,"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":yv,"company:overview@1":Al,"company:overview@2":Kl,"company:overview@3":Ts,"json:extract:multi@1":fg,"email:write@1":xh,"fields:merge@1":Zh,"field:slugify@1":zh,"field:domainify@1":Ah,"http:request@1":og,"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":Zv,"people:profile:workemail:crustdata@1":Mp,"person:profile:workemail:crustdata@1":vy,"people:identity:email:waterfall@1":sd,"person:identity:email:waterfall@1":x_,"company:match:crustdata@1":Jc,"company:match:crustdata@2":Ho,"person:identity:amplemarket@1":a_,"message:send:slack@1":bg,"email:send:gmail@1":Jm,"message:write@1":Og,"template:fill@1":Jb,"website:scrape:firecrawl@1":Cx,"website:scrapelist:firecrawl@1":Mx,"website:extract:firecrawl@1":rx,"website:maplinks:firecrawl@1":fx,"sheet:row:append@1":Mb,"sheet:row:expandappend@1":Vb,"people:match:role:waterfall@1":vd,"person:match:role:waterfall@1":V_,"company:identity@2":Ac,"company:identity@3":wo,"people:phone:profile:waterfall@1":bf,"person:mobile:profileurl:waterfall@1":Q_,"person:devprofileurl:profileurl:waterfall@1":Bg,"people:personalemail:profile:waterfall@1":lf,"person:personalemail:profileurl:waterfall@1":Vv,"people:profile:waterfall@1":Sp,"person:profile:waterfall@1":cy,"people:profileurl:email:waterfall@1":Wp,"person:profileurl:email:waterfall@1":Ay,"person:profileurl:name@1":Vy,"people:email:validate:zerobounce@1":Au,"person:email:validate:millionverifier@1":Xg,"people:phone:workemail:waterfall@1":jf,"person:mobile:workemail:waterfall@1":lv,"people:workemail:profileurl:waterfall@1":pm,"person:workemail:profileurl:waterfall@1":$y,"person:match:amplemarket@1":A_,"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},XC={"prompt:run@1":xb,"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":mb,"people:email:iswork@1":Su,"email:iswork@1":Lm,"people:name:split@1":Zd,"person:name:split@1":Av,"people:validate:email:zerobounce@1":tm,"people:mobilenumber:workemail:waterfall@1":Vd,"person:name:join@1":bv,"company:overview@1":jl,"company:overview@2":ql,"company:overview@3":Es,"json:extract:multi@1":pg,"email:send:resend@1":nh,"contact:create:resend@1":Ys,"email:send:gmail@1":Ym,"message:send:slack@1":xg,"message:write@1":kg,"email:write@1":Sh,"template:fill@1":Yb,"fields:merge@1":Qh,"field:slugify@1":Bh,"field:domainify@1":jh,"http:request@1":sg,"sheet:row:append@1":Nb,"sheet:row:expandappend@1":Hb,"company:lookalikes:companyenrich@1":Bc,"company:lookalikes:companyenrich@2":Po,"people:match:role:waterfall@1":yd,"person:match:role:waterfall@1":H_,"company:match:logodev@1":sl,"company:match:logodev@2":ts,"person:posts:crustdata@1":Qv,"people:profile:workemail:crustdata@1":Np,"person:profile:workemail:crustdata@1":yy,"people:workemail:profileurl:waterfall@1":mm,"person:workemail:profileurl:waterfall@1":eb,"people:identity:email:waterfall@1":cd,"person:identity:email:waterfall@1":S_,"company:match:crustdata@1":Yc,"company:match:crustdata@2":Uo,"person:identity:amplemarket@1":o_,"email:validate:zerobounce@1":fh,"person:email:validate:millionverifier@1":Zg,"people:personalemail:profile:waterfall@1":uf,"person:personalemail:profileurl:waterfall@1":Hv,"people:email:validate:zerobounce@1":ju,"people:email:validate:zerobounce@2":Vu,"people:phone:workemail:waterfall@1":Mf,"person:mobile:workemail:waterfall@1":uv,"website:scrape:firecrawl@1":wx,"website:scrapelist:firecrawl@1":Nx,"website:extract:firecrawl@1":ix,"website:maplinks:firecrawl@1":px,"person:match:amplemarket@1":j_,"company:identity@2":jc,"company:identity@3":To,"people:phone:profile:waterfall@1":xf,"person:mobile:profileurl:waterfall@1":$_,"person:devprofileurl:profileurl:waterfall@1":Vg,"people:profile:waterfall@1":Cp,"person:profile:waterfall@1":ly,"people:profileurl:email:waterfall@1":Gp,"person:profileurl:email:waterfall@1":jy,"person:profileurl:name@1":Hy,"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 ZC(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function QC(e){return JC[e]}function $C(e){return XC[e].defaultPayload}function ew(e){return YC[e]}const tw=r.discriminatedUnion(`pipe_id`,Object.values(YC)).openapi(`PipePayload`),nw=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=$C(vn.parse(e.pipe_id));return t?{...e,config:Ca(e?.config||{},t.config)}:e}catch{return e}},tw);function rw(e){return XC[e]}function iw(e,t){let n=rw(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 aw(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function ow(){let e={};for(let t of Object.values(XC)){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=aw(e.pipeId);return aw(t.pipeId)-n})}),e}const sw=e=>{let t=rw(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},cw=ow();function lw(e,t){let n=new Map;for(let[t,r]of Object.entries(e))for(let e of Object.keys(r.billableOperations)){let r=n.get(e)??[];r.push(`pipe ${t}`),n.set(e,r)}for(let[e,r]of Object.entries(t)){let t=r.billableOperation,i=n.get(t)??[];i.push(`search ${e}`),n.set(t,i)}let r=[...n.entries()].filter(([,e])=>e.length>1);if(r.length>0){let e=r.map(([e,t])=>` "${e}" used by ${t.join(`, `)}`).join(`
73
+ }`,inputType:`text`,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`text`,multiline:!0}),headers: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({[eg.name]:k({fieldName:eg.name}),[tg.name]:k({fieldName:tg.name}),[ng.name]:k({fieldName:ng.name})}))})}),ig={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},ag=class extends U{pipeId=$h;payload;payloadSchema=rg;billableOperations=ig;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`http-request-v1-pipe0`]}getTemplatedFields(){let e=[this.payload.config.url,this.payload.config.body];for(let t of this.payload.config.query_params??[])e.push(t.key,t.value);for(let t of this.payload.config.headers??[])e.push(t.key,t.value);return e}getInputRequirement(){return Hm(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[eg.name]:this.catalogOutput(eg),[tg.name]:this.catalogOutput(tg),[ng.name]:this.catalogOutput(ng)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},og=rg,sg={pipeId:$h,basePipe:W($h),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($h),billableOperations:ig,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:$h,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}}}}},cg=`json:extract:multi@1`,lg=r.object({pipe_id:r.literal(cg),run_if:S(),connector:T(),config:r.object({json_extraction:hi()})}),ug={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},dg=class extends U{pipeId=cg;payload;payloadSchema=lg;billableOperations=ug;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`json-extract-multi-v1-pipe0`]}getInputRequirement(){return V({description:``,name:this.payload.config.json_extraction.field_name,format:null,label:``,type:`json`,resolvedName:this.payload.config.json_extraction.field_name})}getRawOutputFields(){let e={};for(let t of this.payload.config.json_extraction.extractions)e[t.output_field.name||t.output_field.name]={description:`Extracted value from JSON input field ${this.payload.config.json_extraction.field_name}.`,enabled:!0,format:t.output_field.format||null,label:t.output_field.label||`Extract JSON`,name:t.output_field.name,resolvedName:t.output_field.name,jsonMeta:null,type:t.output_field.type,isCatalogFIeld:!1,isPrimaryOutput:!1};return e}getConnectionsRequirements(){return[]}},fg=lg,pg={pipeId:cg,basePipe:W(cg),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:G(cg),tags:[B.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:ug,defaultInputRequirement:null,defaultPayload:{pipe_id:cg,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},mg=`message:send:slack@1`,hg=_(`slack_message_success`),gg=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],_g=r.object({pipe_id:r.literal(mg),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 gg;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({[hg.name]:k({fieldName:hg.name})}))})}),vg={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},yg=class extends U{pipeId=mg;payload;payloadSchema=_g;billableOperations=vg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(){return[`message-send-slack-v1-slack`]}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return Hm(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[hg.name]:this.catalogOutput(hg)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},bg=_g,xg={pipeId:mg,basePipe:W(mg),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(mg),billableOperations:vg,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:mg,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},Sg=`message:write@1`,Cg=_(`message`),wg=`message-write-v1`,Tg=ti(wg),Eg=r.object({pipe_id:r.literal(Sg),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:Tg}),output_fields:R(r.object({[Cg.name]:k({fieldName:Cg.name})}))})}),Dg=class extends U{pipeId=Sg;payload;payloadSchema=Eg;billableOperations=Tg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,wg)]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[Cg.name]:this.catalogOutput(Cg)}}getConnectionsRequirements(){return ii(this.payload.config.model)}},Og=Eg,kg={pipeId:Sg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(Sg),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(Sg),defaultInputRequirement:null,billableOperations:Tg,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:Sg,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},Ag=`person:devprofileurl:profileurl:waterfall@1`,jg=_(`profile_url`),Mg=_(`developer_profile_url`),Ng=_(`alternative_developer_profile_urls`),Pg=[`crustdata`],Fg=[{provider:`crustdata`}],Ig=r.object({pipe_id:r.literal(Ag),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Fg,availableProviders:Pg}),input_fields:z(r.object({[jg.name]:E({fieldName:jg.name})})),output_fields:R(r.object({[Mg.name]:k({fieldName:Mg.name}),[Ng.name]:k({fieldName:Ng.name})}))}).optional()}),Lg=e=>V(K(jg,e)),Rg={"person-devprofileurl-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1.3,weight:1}},mode:`onSuccess`}},zg=class extends U{pipeId=Ag;payload;payloadSchema=Ig;billableOperations=Rg;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 Lg(this.payload.config)}getRawOutputFields(){return{[Mg.name]:this.catalogOutput(Mg,{isPrimaryOutput:!0}),[Ng.name]:this.catalogOutput(Ng,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={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}))}},Bg=Ig,Vg={pipeId:Ag,basePipe:W(Ag),label:`GitHub profile from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a developer profile URL (e.g. GitHub) for any prospect using multiple data providers in a waterfall motion.`,docPath:G(Ag),tags:[B.LINKEDIN,B.WATERFALL,B.NEW],billableOperations:Rg,defaultInputRequirement:Lg(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Pg,allowedUserConnectionProviders:Pg,deprecatedProviders:[],defaultPayload:{pipe_id:Ag,connector:null,run_if:null,config:{providers:Fg,input_fields:{profile_url:{alias:``}},output_fields:{developer_profile_url:{alias:``,enabled:!0},alternative_developer_profile_urls:{alias:``,enabled:!1}}}}},Hg=`person:email:validate:millionverifier@1`,Ug=_(`email`),Wg=_(`email_validation_status`),Gg=_(`million_validation_match`),Kg=r.object({pipe_id:r.literal(Hg),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Ug.name]:E({fieldName:Ug.name})})),output_fields:R(r.object({[Wg.name]:k({fieldName:Wg.name}),[Gg.name]:k({fieldName:Gg.name})}))}).optional()}),qg=e=>V(K(Ug,e)),Jg={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},Yg=class extends U{pipeId=Hg;payload;payloadSchema=Kg;billableOperations=Jg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`person-email-validate-millionverifier-v1-millionverifier`]}getInputRequirement(){return qg(this.payload.config)}getRawOutputFields(){return{[Wg.name]:this.catalogOutput(Wg),[Gg.name]:this.catalogOutput(Gg)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},Xg=Kg,Zg={pipeId:Hg,basePipe:W(Hg),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[B.EMAIL],docPath:G(Hg),billableOperations:Jg,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:qg(null),defaultPayload:{pipe_id:Hg,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},Qg=_(`email`),$g=_(`amplemarket_person_match`),e_=`person:identity:amplemarket@1`,t_=r.object({pipe_id:r.literal(e_),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Qg.name]:E({fieldName:Qg.name})})),output_fields:R(r.object({[$g.name]:k({fieldName:$g.name})}))}).optional()}),n_=e=>V(K(Qg,e)),r_={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},i_=class extends U{pipeId=e_;payload;payloadSchema=t_;billableOperations=r_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return n_(this.payload.config)}getRawOutputFields(){return{[$g.name]:this.catalogOutput($g)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},a_=t_,o_={pipeId:e_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(e_),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(e_),billableOperations:r_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:n_(null),defaultPayload:{pipe_id:e_,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},s_=`person:identity:email:waterfall@1`,c_=_(`email`),l_=_(`company_domain`),u_=_(`name`),d_=_(`job_title`),f_=_(`profile_url`),p_=_(`company_profile_url`),m_=_(`company_name`),h_=[`findymail`,`hunter`,`crustdata`],g_=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],__=r.object({pipe_id:r.literal(s_),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:h_,defaultProviders:g_,sectionKey:`general`}),input_fields:z(r.object({[c_.name]:E({fieldName:c_.name})})),output_fields:R(r.object({[u_.name]:k({fieldName:u_.name}),[f_.name]:k({fieldName:f_.name}),[d_.name]:k({fieldName:d_.name}),[l_.name]:k({fieldName:l_.name}),[m_.name]:k({fieldName:m_.name}),[p_.name]:k({fieldName:p_.name})}))}).optional()}),v_=e=>V(K(c_,e)),y_={"person-identity-email-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-identity-email-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-identity-email-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},b_=class extends U{pipeId=s_;payload;payloadSchema=__;billableOperations=y_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return v_(this.payload.config)}getRawOutputFields(){return{[u_.name]:this.catalogOutput(u_,{isPrimaryOutput:!0}),[f_.name]:this.catalogOutput(f_,{isPrimaryOutput:!0}),[d_.name]:this.catalogOutput(d_,{isPrimaryOutput:!0}),[m_.name]:this.catalogOutput(m_,{isPrimaryOutput:!0}),[p_.name]:this.catalogOutput(p_,{isPrimaryOutput:!0}),[l_.name]:this.catalogOutput(l_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},x_=__,S_={pipeId:s_,basePipe:W(s_),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(s_),managedProviders:h_,deprecatedProviders:[],allowedUserConnectionProviders:h_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:y_,defaultInputRequirement:v_(null),defaultPayload:{pipe_id:s_,connector:null,run_if:null,config:{providers:g_,input_fields:{email:{alias:``}},output_fields:{name:{alias:``,enabled:!0},profile_url:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_domain:{alias:``,enabled:!0}}}}},C_=_(`profile_url`),w_=_(`amplemarket_person_match`),T_=`person:match:amplemarket@1`,E_=r.object({pipe_id:r.literal(T_),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[C_.name]:E({fieldName:C_.name})})),output_fields:R(r.object({[w_.name]:k({fieldName:w_.name})}))}).optional()}),D_=e=>V(K(C_,e)),O_={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},k_=class extends U{pipeId=T_;payload;payloadSchema=E_;billableOperations=O_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return D_(this.payload.config)}getRawOutputFields(){return{[w_.name]:this.catalogOutput(w_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},A_=E_,j_={pipeId:T_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(T_),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(T_),billableOperations:O_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:D_(null),defaultPayload:{pipe_id:T_,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},M_=`person:match:role:waterfall@1`,N_=_(`company_domain`),P_=_(`role_finder_match`),F_=[`leadmagic`],I_=[{provider:`leadmagic`}],L_=r.object({pipe_id:r.literal(M_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:I_,availableProviders:F_}),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({[N_.name]:E({fieldName:N_.name})})),output_fields:R(r.object({[P_.name]:k({fieldName:P_.name})}))})}),R_=e=>H(K(N_,e)),z_={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},B_=class extends U{pipeId=M_;payload;payloadSchema=L_;billableOperations=z_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return R_(this.payload.config)}getSecretRequirements(){return Y(this.payload.config?.roles??[])}getConstantRequirements(){return X(this.payload.config?.roles??[])}getRawOutputFields(){return{[P_.name]:this.catalogOutput(P_,{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}))}},V_=L_,H_={pipeId:M_,basePipe:W(M_),managedProviders:F_,deprecatedProviders:[],allowedUserConnectionProviders:F_,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(M_),billableOperations:z_,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:R_(null),defaultPayload:{pipe_id:M_,run_if:null,connector:null,config:{roles:[],providers:I_,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},U_=`person:mobile:profileurl:waterfall@1`,W_=_(`profile_url`),G_=_(`mobile`),K_=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],q_=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],J_=r.object({pipe_id:r.literal(U_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:q_,availableProviders:K_}),input_fields:z(r.object({[W_.name]:E({fieldName:W_.name})})),output_fields:R(r.object({[G_.name]:k({fieldName:G_.name})}))}).optional()}),Y_=e=>V(K(W_,e)),X_={"person-mobile-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5,level1:{credits:3,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6,level1:{credits:4,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4,level1:{credits:3,weight:1}},mode:`onSuccess`}},Z_=class extends U{pipeId=U_;payload;payloadSchema=J_;billableOperations=X_;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 Y_(this.payload.config)}getRawOutputFields(){return{[G_.name]:this.catalogOutput(G_,{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}))}},Q_=J_,$_={pipeId:U_,basePipe:W(U_),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(U_),tags:[B.PHONE,B.WATERFALL],billableOperations:X_,defaultInputRequirement:Y_(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:K_,allowedUserConnectionProviders:K_,deprecatedProviders:[],defaultPayload:{pipe_id:U_,connector:null,run_if:null,config:{providers:q_,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},ev=`person:mobile:workemail:waterfall@1`,tv=_(`work_email`),nv=_(`mobile`),rv=[`leadmagic`,`amplemarket`],iv=[{provider:`leadmagic`},{provider:`amplemarket`}],av=r.object({pipe_id:r.literal(ev),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:rv,defaultProviders:iv}),input_fields:z(r.object({[tv.name]:E({fieldName:tv.name})})),output_fields:R(r.object({[nv.name]:k({fieldName:nv.name})}))}).optional()}),ov=e=>V(K(tv,e)),sv={"person-mobile-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-mobile-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:5,level1:{credits:4,weight:1}},mode:`onSuccess`}},cv=class extends U{pipeId=ev;payload;payloadSchema=av;billableOperations=sv;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 ov(this.payload.config)}getRawOutputFields(){return{[nv.name]:this.catalogOutput(nv,{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}))}},lv=av,uv={pipeId:ev,basePipe:W(ev),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(ev),billableOperations:sv,defaultInputRequirement:ov(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:rv,managedProviders:rv,deprecatedProviders:[],defaultPayload:{pipe_id:ev,connector:null,run_if:null,config:{providers:iv,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},dv=`person:name:join@1`,fv=_(`first_name`),pv=_(`last_name`),mv=_(`name`),hv=r.object({pipe_id:r.literal(dv),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[fv.name]:E({fieldName:fv.name}),[pv.name]:E({fieldName:pv.name})})),output_fields:R(r.object({[mv.name]:k({fieldName:mv.name})}))}).optional()}),gv=e=>Ea(K(fv,e),K(pv,e)),_v={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},vv=class extends U{pipeId=dv;payload;payloadSchema=hv;billableOperations=_v;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-join-v1-pipe0`]}getInputRequirement(){return gv(this.payload.config)}getRawOutputFields(){return{[mv.name]:this.catalogOutput(mv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},yv=hv,bv={pipeId:dv,basePipe:W(dv),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(dv),billableOperations:_v,defaultInputRequirement:gv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:dv,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},xv=`person:name:split@1`,Sv=_(`name`),Cv=_(`first_name`),wv=_(`last_name`),Tv=r.object({pipe_id:r.literal(xv),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[Sv.name]:E({fieldName:Sv.name})})),output_fields:R(r.object({[Cv.name]:k({fieldName:Cv.name}),[wv.name]:k({fieldName:wv.name})}))}).optional()}),Ev=e=>V(K(Sv,e)),Dv={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Ov=class extends U{pipeId=xv;payload;payloadSchema=Tv;billableOperations=Dv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-split-v1-pipe0`]}getInputRequirement(){return Ev(this.payload.config)}getRawOutputFields(){return{[Cv.name]:this.catalogOutput(Cv),[wv.name]:this.catalogOutput(wv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},kv=Tv,Av={pipeId:xv,basePipe:W(xv),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(xv),billableOperations:Dv,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Ev(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:xv,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},jv=`person:personalemail:profileurl:waterfall@1`,Mv=_(`profile_url`),Nv=_(`personal_email`),Pv=_(`alternate_personal_emails`),Fv=[`leadmagic`,`mixrank`],Iv=[{provider:`leadmagic`},{provider:`mixrank`}],Lv=r.object({pipe_id:r.literal(jv),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Fv,defaultProviders:Iv}),input_fields:z(r.object({[Mv.name]:E({fieldName:Mv.name})})),output_fields:R(r.object({[Nv.name]:k({fieldName:Nv.name}),[Pv.name]:k({fieldName:Pv.name})}))}).optional()}),Rv=e=>V(K(Mv,e)),zv={"person-personalemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"person-personalemail-profileurl-waterfall-v1-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Bv=class extends U{pipeId=jv;payload;payloadSchema=Lv;billableOperations=zv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Rv(this.payload.config)}getRawOutputFields(){return{[Nv.name]:this.catalogOutput(Nv,{isPrimaryOutput:!0}),[Pv.name]:this.catalogOutput(Pv)}}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}))}},Vv=Lv,Hv={pipeId:jv,basePipe:W(jv),allowedUserConnectionProviders:Fv,managedProviders:Fv,deprecatedProviders:[],label:`Personal email from LinkedIn`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[B.EMAIL,B.PERSONAL_EMAIL],docPath:G(jv),billableOperations:zv,defaultInputRequirement:Rv(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:jv,connector:null,run_if:null,config:{providers:Iv,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},Uv=_(`profile_url`),Wv=_(`post_list_string`),Gv=_(`crustdata_post_list`),Kv=`person:posts:crustdata@1`,qv=r.object({pipe_id:r.literal(Kv),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({[Uv.name]:E({fieldName:Uv.name})})),output_fields:R(r.object({[Wv.name]:k({fieldName:Wv.name}),[Gv.name]:k({fieldName:Gv.name})}))}).optional()}),Jv=e=>V(K(Uv,e)),Yv={"person-posts-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`,note:`1.5 credits per post. Posts are fetched in increments of 5.`,provider:`crustdata`}},Xv=class extends U{pipeId=Kv;payload;payloadSchema=qv;billableOperations=Yv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-posts-crustdata-v1-crustdata`]}getInputRequirement(){return Jv(this.payload.config)}getRawOutputFields(){return{[Wv.name]:this.catalogOutput(Wv),[Gv.name]:this.catalogOutput(Gv)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},Zv=qv,Qv={pipeId:Kv,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Kv),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[B.LINKEDIN],docPath:G(Kv),billableOperations:Yv,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Jv(null),defaultPayload:{pipe_id:Kv,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}}}}},$v=`person:profile:waterfall@1`,ey=_(`profile`),ty=_(`profile_url`),ny=[`prospeo`,`icypeas`,`amplemarket`],ry=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],iy=r.object({pipe_id:r.literal($v),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:ny,defaultProviders:ry}),input_fields:z(r.object({[ty.name]:E({fieldName:ty.name})})),output_fields:R(r.object({[ey.name]:k({fieldName:ey.name})}))}).optional()}),ay=e=>V(K(ty,e)),oy={"person-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0}},sy=class extends U{pipeId=$v;payload;payloadSchema=iy;billableOperations=oy;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 ay(this.payload.config)}getRawOutputFields(){return{[ey.name]:this.catalogOutput(ey,{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}))}},cy=iy,ly={pipeId:$v,basePipe:W($v),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:G($v),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:ny,deprecatedProviders:[],allowedUserConnectionProviders:ny,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:oy,defaultInputRequirement:ay(null),defaultPayload:{pipe_id:$v,run_if:null,connector:null,config:{providers:ry,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},uy=_(`work_email`),dy=_(`crustdata_person_match`),fy=_(`crustdata_profile_match_score`),py=`person:profile:workemail:crustdata@1`,my=r.object({pipe_id:r.literal(py),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[uy.name]:E({fieldName:uy.name})})),output_fields:R(r.object({[dy.name]:k({fieldName:dy.name}),[fy.name]:k({fieldName:fy.name})}))}).optional()}),hy=e=>V(K(uy,e)),gy={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},_y=class extends U{pipeId=py;payload;payloadSchema=my;billableOperations=gy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return hy(this.payload.config)}getRawOutputFields(){return{[dy.name]:this.catalogOutput(dy),[fy.name]:this.catalogOutput(fy)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},vy=my,yy={pipeId:py,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(py),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(py),billableOperations:gy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:hy(null),defaultPayload:{pipe_id:py,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}}}}},by=`person:profileurl:email:waterfall@1`,xy=_(`email`),Sy=_(`work_email`),Cy=_(`profile_url`),wy=[`leadmagic`],Ty=[{provider:`leadmagic`}],Ey=r.object({pipe_id:r.literal(by),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Ty,availableProviders:wy}),input_fields:z(r.object({[xy.name]:E({fieldName:xy.name}),[Sy.name]:E({fieldName:Sy.name})})),output_fields:R(r.object({[Cy.name]:k({fieldName:Cy.name})}))}).optional()}),Dy=e=>H(K(xy,e),K(Sy,e)),Oy={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},ky=class extends U{pipeId=by;payload;payloadSchema=Ey;billableOperations=Oy;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 Dy(this.payload.config)}getRawOutputFields(){return{[Cy.name]:this.catalogOutput(Cy,{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}))}},Ay=Ey,jy={pipeId:by,basePipe:W(by),managedProviders:wy,deprecatedProviders:[],allowedUserConnectionProviders:wy,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(by),billableOperations:Oy,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Dy(null),defaultPayload:{pipe_id:by,run_if:null,connector:null,config:{providers:Ty,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},My=`person:profileurl:name@1`,Ny=_(`name`),Py=_(`company_name`),Fy=_(`location_hint`),Iy=_(`profile_url`),Ly=r.object({pipe_id:r.literal(My),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[Ny.name]:E({fieldName:Ny.name}),[Py.name]:E({fieldName:Py.name}),[Fy.name]:E({fieldName:Fy.name})})),output_fields:R(r.object({[Iy.name]:k({fieldName:Iy.name})}))}).optional()}),Ry=e=>Ea(V(K(Ny,e)),V(K(Py,e)),Da(K(Fy,e))),zy={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},By=class extends U{pipeId=My;payload;payloadSchema=Ly;billableOperations=zy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-profileurl-name-v1-pipe0`]}getInputRequirement(){return Ry(this.payload.config)}getRawOutputFields(){return{[Iy.name]:this.catalogOutput(Iy)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},Vy=Ly,Hy={pipeId:My,basePipe:W(My),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(My),tags:[B.LINKEDIN],billableOperations:zy,defaultInputRequirement:Ry(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:My,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Uy=`person:workemail:profileurl:waterfall@1`,Wy=_(`profile_url`),Gy=_(`work_email`),Ky=_(`email_validation_status`),qy=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],Jy=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Yy=r.object({pipe_id:r.literal(Uy),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:qy,defaultProviders:Jy,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({[Wy.name]:E({fieldName:Wy.name})})),output_fields:R(r.object({[Gy.name]:k({fieldName:Gy.name}),[Ky.name]:k({fieldName:Ky.name})}))}).optional()}),Xy=e=>V(K(Wy,e)),Zy={"person-workemail-profileurl-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2,level1:{credits:.7,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.5,weight:1}},mode:`onSuccess`}},Qy=class extends U{pipeId=Uy;payload;payloadSchema=Yy;billableOperations=Zy;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 Xy(this.payload.config)}getRawOutputFields(){return{[Gy.name]:this.catalogOutput(Gy,{isPrimaryOutput:!0}),[Ky.name]:this.catalogOutput(Ky,{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}))}},$y=Yy,eb={pipeId:Uy,basePipe:W(Uy),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(Uy),managedProviders:qy,allowedUserConnectionProviders:qy,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Zy,defaultInputRequirement:Xy(null),defaultPayload:{pipe_id:Uy,connector:null,run_if:null,config:{providers:Jy,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}}}}},tb=`person:workemail:waterfall@1`,nb=_(`name`),rb=_(`company_domain`),ib=_(`company_name`),ab=_(`work_email`),ob=_(`email_validation_status`),sb=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],cb=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],lb={"person-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:.5,level1:{credits:.25,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:{default:.5,level1:{credits:.25,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:1.5,level1:{credits:.75,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1.3,level1:{credits:.75,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`}},ub=r.object({pipe_id:r.literal(tb),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:sb,defaultProviders:cb,sectionKey:`general`,providerCredits:La(lb,sb)}),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({[nb.name]:E({fieldName:nb.name}),[rb.name]:E({fieldName:rb.name}),[ib.name]:E({fieldName:ib.name})})),output_fields:R(r.object({[ab.name]:k({fieldName:ab.name}),[ob.name]:k({fieldName:ob.name})}))}).optional()}),db=e=>Ea(V(K(nb,e)),H(K(rb,e),K(ib,e))),fb=class extends U{pipeId=tb;payload;payloadSchema=ub;billableOperations=lb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return db(this.payload.config)}getRawOutputFields(){return{[ab.name]:this.catalogOutput(ab,{isPrimaryOutput:!0}),[ob.name]:this.catalogOutput(ob,{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}))}},pb=ub,mb={pipeId:tb,basePipe:W(tb),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(tb),managedProviders:sb,deprecatedProviders:[],allowedUserConnectionProviders:sb,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:lb,defaultInputRequirement:db(null),defaultPayload:{pipe_id:tb,connector:null,run_if:null,config:{providers:cb,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}}}}},hb=`prompt:run@1`,gb=`prompt-run-v1`,_b=ti(gb),vb=r.object({pipe_id:r.literal(hb),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:_b})})}),yb=class extends U{pipeId=hb;payload;payloadSchema=vb;billableOperations=_b;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,gb)]}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)}},bb=vb,xb={pipeId:hb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(hb),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(hb),defaultInputRequirement:null,billableOperations:_b,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:hb,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},Sb=`sheet:row:append@1`,Cb=_(`sheet_record_id`),wb=_(`created_sheet`),Tb=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],Eb=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],Db={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Tb: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`}}},Ob={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Eb:t?(await t.teams.list({query:e})).map(e=>({label:e.name,value:e.id})):[],widgets:{provider_logo:{provider:`pipe0`}}},kb=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:Db}),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 unknown fields`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_field_creation`,sectionKey:`general`,description:`Add unknown fields as new sheet columns.`}),allow_sheet_creation: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:Ob,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}),[wb.name]:k({fieldName:wb.name})}))})}),Ab={"sheet-row-append-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},jb=class extends U{pipeId=Sb;payload;payloadSchema=kb;billableOperations=Ab;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-append-v1-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),[wb.name]:this.catalogOutput(wb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},Mb=kb,Nb={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:Ab,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}}}}},Pb=`sheet:row:expandappend@1`,Fb=_(`sheet_record_ids`),Ib=_(`input_objects`),Lb=r.object({pipe_id:r.literal(Pb),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 unknown object fields to the sheet definition.`,label:`Allow field creation`}),input_fields:z(r.object({[Ib.name]:E({fieldName:Ib.name})})),output_fields:R(r.object({[Fb.name]:k({fieldName:Fb.name})}))})}),Rb={"sheet-row-expandappend-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},zb=e=>V(K(Ib,e)),Bb=class extends U{pipeId=Pb;payload;payloadSchema=Lb;billableOperations=Rb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-expandappend-v1-pipe0`]}getInputRequirement(){return zb(this.payload.config)}getRawOutputFields(){return{[Fb.name]:this.catalogOutput(Fb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},Vb=Lb,Hb={pipeId:Pb,basePipe:W(Pb),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(Pb),tags:[B.FIELDS],billableOperations:Rb,defaultInputRequirement:zb(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Pb,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}}}}},Ub=`template:fill@1`,Wb=_(`template_output`),Gb=r.object({pipe_id:r.literal(Ub),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({[Wb.name]:k({fieldName:Wb.name})}))})}),Kb={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},qb=class extends U{pipeId=Ub;payload;payloadSchema=Gb;billableOperations=Kb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill-v1-pipe0`]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[Wb.name]:this.catalogOutput(Wb)}}getConnectionsRequirements(){return[]}},Jb=Gb,Yb={pipeId:Ub,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(Ub),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(Ub),defaultInputRequirement:null,billableOperations:Kb,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ub,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},Xb=`website:extract:firecrawl@1`,Zb=_(`website_url`),Qb=_(`firecrawl_extract_result`),$b=r.object({pipe_id:r.literal(Xb),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({[Zb.name]:E({fieldName:Zb.name})})),output_fields:R(r.object({[Qb.name]:k({fieldName:Qb.name})}))})}),ex=e=>V(K(Zb,e)),tx={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},nx=class extends U{pipeId=Xb;payload;payloadSchema=$b;billableOperations=tx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-extract-firecrawl-v1-firecrawl`]}getInputRequirement(){return ex(this.payload.config)}getRawOutputFields(){return{[Qb.name]:this.catalogOutput(Qb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},rx=$b,ix={pipeId:Xb,basePipe:W(Xb),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(Xb),billableOperations:tx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:ex(null),defaultPayload:{pipe_id:Xb,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}}}}},ax=`website:maplinks:firecrawl@1`,ox={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},sx=_(`website_url`),cx=_(`mapped_links`),lx=r.object({pipe_id:r.literal(ax),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({[sx.name]:E({fieldName:sx.name})})),output_fields:R(r.object({[cx.name]:k({fieldName:cx.name})}))}).optional()}),ux=e=>V(K(sx,e)),dx=class extends U{pipeId=ax;payload;payloadSchema=lx;billableOperations=ox;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-maplinks-firecrawl-v1-firecrawl`]}getInputRequirement(){return ux(this.payload.config)}getRawOutputFields(){return{[cx.name]:this.catalogOutput(cx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},fx=lx,px={pipeId:ax,basePipe:W(ax),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(ax),billableOperations:ox,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:ux(null),defaultPayload:{pipe_id:ax,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},mx=`website:scrape:firecrawl@1`,hx=_(`website_url`),gx=_(`website_markdown`),_x=_(`website_html`),vx=_(`website_links`),yx=r.object({pipe_id:r.literal(mx),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({[hx.name]:E({fieldName:hx.name})})),output_fields:R(r.object({[gx.name]:k({fieldName:gx.name}),[_x.name]:k({fieldName:_x.name}),[vx.name]:k({fieldName:vx.name})}))}).optional()}),bx=e=>V(K(hx,e)),xx={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},Sx=class extends U{pipeId=mx;payload;payloadSchema=yx;billableOperations=xx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-scrape-firecrawl-v1-firecrawl`]}getInputRequirement(){return bx(this.payload.config)}getRawOutputFields(){return{[gx.name]:this.catalogOutput(gx),[_x.name]:this.catalogOutput(_x),[vx.name]:this.catalogOutput(vx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Cx=yx,wx={pipeId:mx,basePipe:W(mx),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[B.SCRAPE],docPath:G(mx),billableOperations:xx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:bx(null),defaultPayload:{pipe_id:mx,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}}}}},Tx=`website:scrapelist:firecrawl@1`,Ex={"website-scrapelist-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`,note:`You are charged per url that is scraped.`}},Dx=_(`urls`),Ox=_(`scrape_list_response`),kx=r.object({pipe_id:r.literal(Tx),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({[Dx.name]:E({fieldName:Dx.name})})),output_fields:R(r.object({[Ox.name]:k({fieldName:Ox.name})}))}).optional()}),Ax=e=>V(K(Dx,e)),jx=class extends U{pipeId=Tx;payload;payloadSchema=kx;billableOperations=Ex;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`list-url-scrape-firecrawl`)}getInputRequirement(){return Ax(this.payload.config)}getRawOutputFields(){return{[Ox.name]:this.catalogOutput(Ox)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Mx=kx,Nx={pipeId:Tx,basePipe:W(Tx),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[B.SCRAPE],docPath:G(Tx),billableOperations:Ex,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Ax(null),defaultPayload:{pipe_id:Tx,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}}}}},Px=[`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`],Fx=r.enum(Px);function Ix(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function Lx(e,t){return e==null?void 0:t(e)}function Rx(){return zx({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function zx({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:Ix(e),entity:t||e}}function Bx(e,t){let n=JSON.parse(JSON.stringify({...e}));if(!t)return n;for(let e in t)!(e in n)&&t[e]!=null&&(n[e]=t[e]);return n}function Vx(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 Hx(e,t){let n={name:e,config:t};return Pa.hashObject(n)}var Ux=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 Hx(this.searchId,this.payload)}};function Wx(e){return e.split(`@`)[0]}function Gx(e){return`/docs/search-catalog/${Wx(e)}/${e.split(`@`)[1]}`}const Kx=`companies:profiles:amplemarket@2`,qx=_(`company_name`),Jx=_(`company_domain`),Yx=_(`company_description`),Xx=_(`company_profile_url`),Zx=_(`amplemarket_company_match`),Qx=r.object({search_id:r.literal(Kx),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`}).default(100),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({[qx.name]:N({fieldName:qx.name}),[Jx.name]:N({fieldName:Jx.name}),[Yx.name]:N({fieldName:Yx.name}),[Xx.name]:N({fieldName:Xx.name}),[Zx.name]:N({fieldName:Zx.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:Ix(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.headcount`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Company sizes`,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=>{Vx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),$x={default:{input:[{fields:[]}]}},eS=class extends Ux{searchId=Kx;schema=Qx;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[qx.name]:this.catalogOutput(qx),[Jx.name]:this.catalogOutput(Jx),[Yx.name]:this.catalogOutput(Yx),[Xx.name]:this.catalogOutput(Xx),[Zx.name]:this.catalogOutput(Zx)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return $x}},tS=Qx,nS={searchId:Kx,billableOperation:`companies-profiles-amplemarket-v2`,baseSearch:Wx(`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:Gx(Kx),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:Kx,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:[]}}}}},rS=`companies:profiles:crustdata@2`,iS=_(`company_name`),aS=_(`company_domain`),oS=_(`company_description`),sS=_(`company_profile_url`),cS=_(`crustdata_company_match`),lS=r.object({search_id:r.literal(rS),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`}).default(100),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),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`)}),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:Ix(e.value)}})})})}).check(e=>{Vx(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 Ux{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:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return uS}},fS=lS,pS={searchId:rS,billableOperation:`companies-profiles-crustdata-v2`,baseSearch:Wx(`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:Gx(rS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:rS,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:[]}}}}},mS=`companies:profiles:amplemarket@1`,hS=_(`company_name`),gS=_(`company_website_url`),_S=_(`company_description`),vS=_(`company_profile_url`),yS=_(`amplemarket_company_match`),bS=r.object({search_id:r.literal(mS),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({[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`)}),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=>{Vx(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 Ux{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:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return xS}},CS=bS,wS={searchId:mS,billableOperation:`companies-profiles-amplemarket-v1`,baseSearch:Wx(`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:Gx(mS),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:mS,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:[]}}}}},TS=`companies:profiles:crustdata@1`,ES=_(`company_name`),DS=_(`company_website_url`),OS=_(`company_description`),kS=_(`company_profile_url`),AS=_(`crustdata_company_match`),jS=r.object({search_id:r.literal(TS),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({[ES.name]:N({fieldName:ES.name}),[DS.name]:N({fieldName:ES.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`)}),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=>{Vx(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 Ux{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:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return MS}},PS=jS,FS={searchId:TS,billableOperation:`companies-profiles-crustdata-v1`,baseSearch:Wx(`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:Gx(TS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:TS,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:[]}}}}},IS=`people:profiles:amplemarket@1`,LS=_(`name`),RS=_(`company_website_url`),zS=_(`profile_url`),BS=_(`job_title`),VS=_(`amplemarket_person_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,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({[LS.name]:N({fieldName:LS.name}),[RS.name]:N({fieldName:RS.name}),[zS.name]:N({fieldName:zS.name}),[BS.name]:N({fieldName:BS.name}),[VS.name]:N({fieldName:VS.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=>{Vx(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 Ux{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:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return US}},GS=HS,KS={searchId:IS,billableOperation:`people-profiles-amplemarket-v1`,baseSearch:Wx(`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:Gx(IS),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:IS,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:[]}}}},qS=`people:profiles:crustdata@1`,JS=_(`name`),YS=_(`company_website_url`),XS=_(`profile_url`),ZS=_(`job_title`),QS=_(`crustdata_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,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({[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({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=>{Vx(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 Ux{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:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return eC}},nC=$S,rC={searchId:qS,billableOperation:`people-profiles-crustdata-v1`,baseSearch:Wx(`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:Gx(qS),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:qS,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:[]}}}}},iC=`people:profiles:amplemarket@2`,aC=_(`name`),oC=_(`company_domain`),sC=_(`profile_url`),cC=_(`job_title`),lC=_(`amplemarket_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,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}).default(50),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({[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({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:Ix(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=>{Vx(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 Ux{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:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return dC}},pC=uC,mC={searchId:iC,billableOperation:`people-profiles-amplemarket-v2`,baseSearch:Wx(`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:Gx(iC),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:iC,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:[]}}}},hC=`people:profiles:crustdata@2`,gC=_(`name`),_C=_(`company_domain`),vC=_(`profile_url`),yC=_(`job_title`),bC=_(`crustdata_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,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}).default(100),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),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({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:Ix(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:Ix(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=>{Vx(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 Ux{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:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return SC}},wC=xC,TC={searchId:hC,billableOperation:`people-profiles-crustdata-v2`,baseSearch:Wx(`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:Gx(hC),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:hC,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:[]}}}}},EC={"people:profiles:crustdata@1":tC,"people:profiles:crustdata@2":CC,"companies:profiles:crustdata@1":NS,"companies:profiles:crustdata@2":dS,"people:profiles:amplemarket@1":WS,"people:profiles:amplemarket@2":fC,"companies:profiles:amplemarket@1":SS,"companies:profiles:amplemarket@2":eS},DC={"people:profiles:crustdata@1":nC,"people:profiles:crustdata@2":wC,"companies:profiles:crustdata@1":PS,"companies:profiles:crustdata@2":fS,"people:profiles:amplemarket@1":GS,"people:profiles:amplemarket@2":pC,"companies:profiles:amplemarket@1":CS,"companies:profiles:amplemarket@2":tS},OC={"people:profiles:crustdata@1":rC,"people:profiles:crustdata@2":TC,"companies:profiles:crustdata@1":FS,"companies:profiles:crustdata@2":pS,"people:profiles:amplemarket@1":KS,"people:profiles:amplemarket@2":mC,"companies:profiles:amplemarket@1":wS,"companies:profiles:amplemarket@2":nS};function kC(e){return EC[e]}const AC=t.discriminatedUnion(`search_id`,Object.values(DC).map(e=>e)).openapi(`SearchPayloadSchema`);function jC(e,t){return Ca(t,OC[e].defaultPayload)}const MC=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=jC(e.search_id);return t?{...e,config:Ca(e?.config||{},t.config)}:e},AC),NC=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:MC}).openapi(`SearchRequestSchema`),PC=In,FC=t.object({value:Cn,status:Sn,type:bn.optional(),format:zn.nullable().optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),IC=t.record(t.string(),FC.nullable());function LC(e){return DC[e]}const RC=t.enum([`cursor`,`page_number`]),zC=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:Fx,errors:t.array(PC),results:t.array(IC),organization_id:t.string(),next_page:MC.nullable(),pagination_type:RC.nullable(),total_pages:t.int32().nullable()}).openapi(`SearchResponseSchema`);function BC(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function VC(){let e={};for(let t of Object.values(OC)){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=BC(e.searchId);return BC(t.searchId)-n})}),e}function HC(e){return OC[e]}const UC=VC();function WC(e){let t=[];for(let[n,r]of Object.entries(UC)){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:BC(i.searchId)})}return t}function GC(e){return Object.keys(OC[e].defaultPayload.config.output_fields)}function KC(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 GC(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:UC}}function qC(e){let t=HC(e);return{[t.provider]:t.cost.credits.default}}const JC={"prompt:run@1":yb,"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":fb,"people:email:iswork@1":bu,"email:iswork@1":Fm,"people:name:split@1":Yd,"person:name:split@1":Ov,"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":vv,"company:overview@1":kl,"company:overview@2":Gl,"company:overview@3":ws,"json:extract:multi@1":dg,"company:lookalikes:companyenrich@1":Rc,"company:lookalikes:companyenrich@2":Mo,"company:match:logodev@1":al,"company:match:logodev@2":$o,"person:posts:crustdata@1":Xv,"people:profile:workemail:crustdata@1":jp,"person:profile:workemail:crustdata@1":_y,"people:identity:email:waterfall@1":od,"person:identity:email:waterfall@1":b_,"person:identity:amplemarket@1":i_,"email:send:resend@1":eh,"contact:create:resend@1":qs,"email:send:gmail@1":qm,"email:write@1":bh,"fields:merge@1":Xh,"field:slugify@1":Rh,"field:domainify@1":kh,"http:request@1":ag,"template:fill@1":qb,"message:send:slack@1":yg,"message:write@1":Dg,"people:personalemail:profile:waterfall@1":cf,"person:personalemail:profileurl:waterfall@1":Bv,"website:scrape:firecrawl@1":Sx,"website:scrapelist:firecrawl@1":jx,"website:extract:firecrawl@1":nx,"website:maplinks:firecrawl@1":dx,"sheet:row:append@1":jb,"sheet:row:expandappend@1":Bb,"people:match:role:waterfall@1":_d,"person:match:role:waterfall@1":B_,"company:match:crustdata@1":qc,"company:match:crustdata@2":Vo,"person:match:amplemarket@1":k_,"company:identity@2":kc,"company:identity@3":Co,"people:phone:profile:waterfall@1":yf,"person:mobile:profileurl:waterfall@1":Z_,"person:devprofileurl:profileurl:waterfall@1":zg,"people:phone:workemail:waterfall@1":Af,"person:mobile:workemail:waterfall@1":cv,"people:profile:waterfall@1":xp,"person:profile:waterfall@1":sy,"people:profileurl:email:waterfall@1":Up,"person:profileurl:email:waterfall@1":ky,"person:profileurl:name@1":By,"people:email:validate:zerobounce@1":ku,"person:email:validate:millionverifier@1":Yg,"people:workemail:profileurl:waterfall@1":fm,"person:workemail:profileurl:waterfall@1":Qy,"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},YC={"prompt:run@1":bb,"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":pb,"people:email:iswork@1":xu,"email:iswork@1":Im,"people:name:split@1":Xd,"person:name:split@1":kv,"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":yv,"company:overview@1":Al,"company:overview@2":Kl,"company:overview@3":Ts,"json:extract:multi@1":fg,"email:write@1":xh,"fields:merge@1":Zh,"field:slugify@1":zh,"field:domainify@1":Ah,"http:request@1":og,"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":Zv,"people:profile:workemail:crustdata@1":Mp,"person:profile:workemail:crustdata@1":vy,"people:identity:email:waterfall@1":sd,"person:identity:email:waterfall@1":x_,"company:match:crustdata@1":Jc,"company:match:crustdata@2":Ho,"person:identity:amplemarket@1":a_,"message:send:slack@1":bg,"email:send:gmail@1":Jm,"message:write@1":Og,"template:fill@1":Jb,"website:scrape:firecrawl@1":Cx,"website:scrapelist:firecrawl@1":Mx,"website:extract:firecrawl@1":rx,"website:maplinks:firecrawl@1":fx,"sheet:row:append@1":Mb,"sheet:row:expandappend@1":Vb,"people:match:role:waterfall@1":vd,"person:match:role:waterfall@1":V_,"company:identity@2":Ac,"company:identity@3":wo,"people:phone:profile:waterfall@1":bf,"person:mobile:profileurl:waterfall@1":Q_,"person:devprofileurl:profileurl:waterfall@1":Bg,"people:personalemail:profile:waterfall@1":lf,"person:personalemail:profileurl:waterfall@1":Vv,"people:profile:waterfall@1":Sp,"person:profile:waterfall@1":cy,"people:profileurl:email:waterfall@1":Wp,"person:profileurl:email:waterfall@1":Ay,"person:profileurl:name@1":Vy,"people:email:validate:zerobounce@1":Au,"person:email:validate:millionverifier@1":Xg,"people:phone:workemail:waterfall@1":jf,"person:mobile:workemail:waterfall@1":lv,"people:workemail:profileurl:waterfall@1":pm,"person:workemail:profileurl:waterfall@1":$y,"person:match:amplemarket@1":A_,"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},XC={"prompt:run@1":xb,"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":mb,"people:email:iswork@1":Su,"email:iswork@1":Lm,"people:name:split@1":Zd,"person:name:split@1":Av,"people:validate:email:zerobounce@1":tm,"people:mobilenumber:workemail:waterfall@1":Vd,"person:name:join@1":bv,"company:overview@1":jl,"company:overview@2":ql,"company:overview@3":Es,"json:extract:multi@1":pg,"email:send:resend@1":nh,"contact:create:resend@1":Ys,"email:send:gmail@1":Ym,"message:send:slack@1":xg,"message:write@1":kg,"email:write@1":Sh,"template:fill@1":Yb,"fields:merge@1":Qh,"field:slugify@1":Bh,"field:domainify@1":jh,"http:request@1":sg,"sheet:row:append@1":Nb,"sheet:row:expandappend@1":Hb,"company:lookalikes:companyenrich@1":Bc,"company:lookalikes:companyenrich@2":Po,"people:match:role:waterfall@1":yd,"person:match:role:waterfall@1":H_,"company:match:logodev@1":sl,"company:match:logodev@2":ts,"person:posts:crustdata@1":Qv,"people:profile:workemail:crustdata@1":Np,"person:profile:workemail:crustdata@1":yy,"people:workemail:profileurl:waterfall@1":mm,"person:workemail:profileurl:waterfall@1":eb,"people:identity:email:waterfall@1":cd,"person:identity:email:waterfall@1":S_,"company:match:crustdata@1":Yc,"company:match:crustdata@2":Uo,"person:identity:amplemarket@1":o_,"email:validate:zerobounce@1":fh,"person:email:validate:millionverifier@1":Zg,"people:personalemail:profile:waterfall@1":uf,"person:personalemail:profileurl:waterfall@1":Hv,"people:email:validate:zerobounce@1":ju,"people:email:validate:zerobounce@2":Vu,"people:phone:workemail:waterfall@1":Mf,"person:mobile:workemail:waterfall@1":uv,"website:scrape:firecrawl@1":wx,"website:scrapelist:firecrawl@1":Nx,"website:extract:firecrawl@1":ix,"website:maplinks:firecrawl@1":px,"person:match:amplemarket@1":j_,"company:identity@2":jc,"company:identity@3":To,"people:phone:profile:waterfall@1":xf,"person:mobile:profileurl:waterfall@1":$_,"person:devprofileurl:profileurl:waterfall@1":Vg,"people:profile:waterfall@1":Cp,"person:profile:waterfall@1":ly,"people:profileurl:email:waterfall@1":Gp,"person:profileurl:email:waterfall@1":jy,"person:profileurl:name@1":Hy,"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 ZC(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function QC(e){return JC[e]}function $C(e){return XC[e].defaultPayload}function ew(e){return YC[e]}const tw=r.discriminatedUnion(`pipe_id`,Object.values(YC)).openapi(`PipePayload`),nw=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=$C(vn.parse(e.pipe_id));return t?{...e,config:Ca(e?.config||{},t.config)}:e}catch{return e}},tw);function rw(e){return XC[e]}function iw(e,t){let n=rw(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 aw(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function ow(){let e={};for(let t of Object.values(XC)){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=aw(e.pipeId);return aw(t.pipeId)-n})}),e}const sw=e=>{let t=rw(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},cw=ow();function lw(e,t){let n=new Map;for(let[t,r]of Object.entries(e))for(let e of Object.keys(r.billableOperations)){let r=n.get(e)??[];r.push(`pipe ${t}`),n.set(e,r)}for(let[e,r]of Object.entries(t)){let t=r.billableOperation,i=n.get(t)??[];i.push(`search ${e}`),n.set(t,i)}let r=[...n.entries()].filter(([,e])=>e.length>1);if(r.length>0){let e=r.map(([e,t])=>` "${e}" used by ${t.join(`, `)}`).join(`
74
74
  `);throw Error(`Catalog has ${r.length} duplicate billable-operation key(s):\n${e}`)}}lw(XC,OC);function uw(e){let t=[];for(let[n,r]of Object.entries(cw)){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:aw(i.pipeId)})}return t}function dw(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=sw(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of ZC(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:cw}}const fw=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`),pw=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`),mw=r.object({config:pw.openapi(`PipesRequestConfig`),field_annotations:Vn.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(tw),input:r.array(Jn.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function hw(e){let t=rw(e);return Object.values(t.billableOperations).reduce((e,t)=>{let n=t.allowManagedConnection?t.credits.default:0;return e[t.provider]??=n,e[t.provider]=Math.min(e[t.provider],n),e},{})}const gw={"config.prompt":{order:1,label:`Prompt`,iconKey:`sparkles`,defaultExpand:!0},"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:0,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},"config.input_fields":{order:0,label:`Input config`,description:`Point pipe inputs to new fields.`,iconKey:`input`,defaultExpand:!1},connector:{order:100,label:`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}},_w={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`}},vw={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 yw(e){let t=ew(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 bw({pipePayload:e,validationContext:t,sectionOrder:n=vw,store:r,groupPathMatch:i=gw,formResolvers:a}){let o=ew(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:rw(e.pipe_id),hash:s}):i},sectionOrder:n,sectionMap:_w,store:r,formResolvers:a})}const xw={"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}},Sw={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`}},Cw={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 ww({searchPayload:e,sectionOrder:t=Cw,formContext:n,groupPathMatch:r=xw,formResolvers:i}){return Bi({schema:LC(e.search_id),groupPathMatch:r,extractFromSchema:e=>b.get(e),sectionOrder:t,sectionMap:Sw,store:n,formResolvers:i})}const Tw=new Proxy({},{get:(e,t)=>e=>e.type===t}),Ew=`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(Ew),Ow=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()}),kw=`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(kw);const Aw=r.object({value:r.string(),label:r.string(),widgets:Ow.optional()}),jw=r.object({field_options:r.record(r.string(),r.object({options:r.array(Aw)}))}),Mw=[{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}],Nw=new Map(Mw.map(e=>[e.id,e]));function Pw(e){return Nw.get(e)}function Fw(){return Mw}const Iw={"company:funding:leadmagic@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:funding:leadmagic@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"company:identity@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@1`}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@2`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@3`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:overview@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@1`}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"people:phone:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:phone:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"person:mobile:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:mobile:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"people:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_website_url:`https://pipe0.com`}]}],"person:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_domain:`pipe0.com`}]}],"company:techstack:builtwith@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:techstack:builtwith@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"prompt:run@1":[{config:{environment:`production`},pipes:[{pipe_id:`prompt:run@1`,config:{model:`openai-gpt-latest`,prompt:{template:`
75
75
  Tell me if {{ name }} fits the ICP criteria for my company <YOUR_COMPANY_NAME>.
76
76
 
@@ -116,4 +116,4 @@ Customize the message using the name of the user: {{ name }}.
116
116
  `}}],input:[{id:`1`,job_title:`GTM Engineer`,name:`Pipe Piper`}]}],"person:profileurl:name@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profileurl:name@1`}],input:[{id:`1`,name:`John`,company_name:`Pipe0`}]}],"template:fill@1":[{config:{environment:`production`},pipes:[{pipe_id:`template:fill@1`,config:{template:`Hey team: A new user has just signed up. Here's the info:
117
117
  **Name**: {{ name }}
118
118
  **Email**: {{ email }}
119
- `}}],input:[{id:`1`,name:`John`,email:`john@pipe0.com`}]}],"email:send:resend@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`resend_123`,type:`vault`}]},pipe_id:`email:send:resend@1`,config:{from:`<FROM_EMAIL_ADDRESS>`,to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"email:send:gmail@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`gmail_123`,type:`vault`}]},pipe_id:`email:send:gmail@1`,config:{to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"message:send:slack@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`slack_123`,type:`vault`}]},pipe_id:`message:send:slack@1`,config:{channel_id:`<SLACK_CHANNEL_ID>`,message:`{{ message }}`}}],input:[{id:`1`,message:`<MESSAGE_TEXT>`}]}],"people:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"person:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"people:validate:email:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:validate:email:zerobounce@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:mobilenumber:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:workemail:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`john@pipe0.com`}]}],"people:professionalprofileurl:name@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:name@1`}],input:[{id:`1`,name:`John`,company_name:`Pipe0`,location_int:`Berlin`}]}],"people:professionalprofileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:email:waterfall@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"people:mobilenumber:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`https://linkedin.com/li/john`}]}],"company:overview@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@2`,config:{}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"company:overview@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@3`,config:{}}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"fields:merge@1":[{config:{environment:`production`},pipes:[{pipe_id:`fields:merge@1`,config:{sources:[{field_name:`field_1`},{field_name:`field_2`}]}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:scrape:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrape:firecrawl@1`,config:{scrape_main_only:!0,input_fields:{website_url:{alias:``}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:extract:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:extract:firecrawl@1`,config:{extraction_prompt:`Extract the company mission as well as the latest news.`,enable_full_domain_crawl:!0,enable_web_search:!0,json_schema:{type:`object`,required:[`company_mission`,`latest_news`],properties:{company_mission:{type:`string`},latest_news:{type:`string`}}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"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 Lw(e){let t=[];for(let n of e){if(n instanceof U){t.push(n);continue}let e=nw.parse(n);if(!rw(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(QC(n.pipe_id))(e);t.push(r)}return t}function Rw(e,t){let n=Lw(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 zw(e,t){let n=e.dependencyGraph,r=new Set;return n.forEach((e,n)=>e.forEach(e=>{e.index===t&&r.add(n)})),Array.from(r).map(t=>{let n=e.orderedPipeInstances[t];if(!n)throw Error(`Internal: Pipe with index ${t} not found.`);return n.pipeId})}const Bw=.1,Vw=[`level1`,`level2`,`level3`];function Hw(e,t){let n=Vw[t-1];if(n)return e[n]}function Uw(e,t){for(let n=t;n>=1;n--){let t=Hw(e,n);if(t)return{level:n,tier:t}}}function Ww(e){let t=[];for(let n=1;n<=3;n++){let r=Hw(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function Gw(e){if(e.default<.1)return!1;let t=Ww(e);if(t.length===0)return!1;for(let e=0;e<t.length;e++)if(t[e].level!==e+1)return!1;let n=e.default,r=0;for(let e of t){if(!(e.credits<n)||!Number.isInteger(e.weight)||e.weight<=r)return!1;n=e.credits,r=e.weight}return!0}function Kw(){let e=new Map;for(let t of Object.values(XC))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!Gw(i.credits))continue;let a=n,o={kind:`pipe`,id:t.pipeId,label:t.label,categories:[...t.categories]},s=e.get(a);if(s){s.standardCredits=Math.min(s.standardCredits,i.credits.default),s.usedBy.push(o);continue}e.set(a,{billableOperation:a,provider:i.provider,kind:`pipe`,standardCredits:i.credits.default,tiers:Ww(i.credits),usedBy:[o]})}for(let t of Object.values(OC)){let{cost:n}=t;if(!Gw(n.credits))continue;let r=t.billableOperation,i={kind:`search`,id:t.searchId,label:t.label,categories:[...t.categories]},a=e.get(r);if(a){a.standardCredits=Math.min(a.standardCredits,n.credits.default),a.usedBy.push(i);continue}e.set(r,{billableOperation:r,provider:t.provider,kind:`search`,standardCredits:n.credits.default,tiers:Ww(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function qw(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 Jw(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 Yw(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(Jw(e))return`https://${e}`;if(!qw(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 Xw(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(Jw(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!qw(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(qw(i)||Jw(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function Zw(e){try{return Yw(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function Qw(e,t){if(t)switch(e){case`website_url`:return Zw(t);default:return}}function $w(e){let t;if(eT(e))return $w(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function eT(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`&&eT(e.value,t++))throw new $([Q.RecursiveExpandedValue()]);return!0}return!1}function tT(e){let t=eT(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function nT(e){return eT(e)?nT(e.value):e}function rT(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=rn(e,n.format)?.getStaticWidgets?.(t),i=Qw(n.format,t);return Gx(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function iT(e,t,n){if(t==null)return{};try{let r=rn(e,n)?.getStaticWidgets?.(t),i=Qw(n,t);return Gx(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function aT(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 oT=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}=tT(n),c;c=s&&o.type?o.type:$w(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]=aT(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function sT(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 cT(e){let t=sT(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 lT({config:e,pipes:t,input:n,field_annotations:r}){try{let i=pT({config:e,pipes:t,input:n,fieldAnnotations:r});return uT(i),i}catch(e){throw e instanceof $?e:new $([Q.ValidationFailed({error:e})])}}function uT(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 dT(e,t){if(!e&&!t)throw new $([Q.MustDefineAnnotations()]);return new oT(t||{}).merge(oT.fromInput(e||[]))}function fT(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 pT(e){let t=Lw(e.pipes),n=dT(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)}),gT(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]=mT(t,n),u=fT({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 mT(e,t){let n=cT(e),r=hT(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 hT(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,pipeId:r.pipeId,index:n}));let o=e[n]||[],c=i.indexOf(n);for(let e of o){let r=i.indexOf(e.index);e.required&&r>c&&s.push(e.reason.includes(`input`)?Q.HardInputDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}):Q.HardConditionDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}))}r.payload.run_if&&r.payload.run_if.when.conditions.map(e=>e.field_name).forEach(e=>{if(!ee.has(e))throw new $([Q.ConditionTargetFieldNotFound({fieldName:e,pipeId:r.pipeId,pipeIdx:n})])})}if(s.length>0)throw new $(s);return i}function gT(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 _T=[`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`],vT=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],yT=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})}),bT=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 xT(e){return!isNaN(e.getTime())}const ST=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of _T){let n=ee(t,e,new Date(0));if(xT(n))return u(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),CT=r.coerce.string().trim().transform(e=>{for(let t of vT){let n=ee(e,t,new Date(0));if(xT(n))return u(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),wT=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`}),TT=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()),ET=r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`});function DT(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return yT.parse(e);case`email`:return bT.parse(e);case`datetime`:return ST.parse(e);case`date`:return CT.parse(e);case`decimal`:return wT.parse(e);case`int`:return TT.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return ET.parse(e);case`website_url`:return yT.parse(e);case`profile_url`:return yT.parse(e);case`zip_code`:return ET.parse(e);case`markdown`:case`phone`:case`text`:return ET.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 OT(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(eT(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:DT(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 kT(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:OT(e,n,i)}}}function AT({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{kT(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=jT(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,MT(e,r,n?.queue?.enabled),RT(e,r),r.errors.length>0)throw new $(r.errors);return r}catch(e){throw e instanceof $?e:new $([Q.ResponseGenerationFailed({error:e})])}}function jT(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}=LT(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function MT(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 ${Vh(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 ${Vh(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 NT({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 PT({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 NT({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||PT({status:n.status,config:r})}function IT({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 LT(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}=tT(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=$w(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}=IT({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}=IT({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=DT(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 RT(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=rT(i,r.value,r);r.widgets=Gx(r.widgets||{},e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function zT(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 BT(e,t={}){return Object.values(e).map(e=>zT(e.fields,t))}function VT(e,t={}){return e.map(e=>zT(e.fields,t))}function HT(e,t={}){return zT(e.fields,t)}function UT(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=tT(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function WT(e){let t=dr[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const GT=[`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`],KT=r.enum(GT);function qT(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 JT(e,t){let n={name:e,config:t};return Pa.hashObject(n)}var YT=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 JT(this.searchId,this.payload)}};function XT(e){return e.split(`@`)[0]}function ZT(e){return`/docs/search-catalog/${XT(e)}/${e.split(`@`)[1]}`}const QT=`companies:profiles:crustdata@1`,$T=_(`company_name`),eE=_(`company_website_url`),tE=_(`company_description`),nE=_(`company_profile_url`),rE=_(`crustdata_company_match`),iE=r.object({search_id:r.literal(QT),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({[$T.name]:N({fieldName:$T.name}),[eE.name]:N({fieldName:$T.name}),[tE.name]:N({fieldName:tE.name}),[nE.name]:N({fieldName:nE.name}),[rE.name]:N({fieldName:rE.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=>{qT(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),aE={default:{input:[{fields:[]}]}},oE=class extends YT{searchId=QT;schema=iE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[$T.name]:this.catalogOutput($T),[eE.name]:this.catalogOutput(eE),[tE.name]:this.catalogOutput(tE),[nE.name]:this.catalogOutput(nE),[rE.name]:this.catalogOutput(rE)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return aE}},sE=iE,cE={searchId:QT,billableOperation:`companies-profiles-crustdata`,baseSearch:XT(`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:ZT(QT),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:QT,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:[]}}}},lE=`companies:profiles:exa@1`,uE=_(`company_name`),dE=_(`company_website_url`),fE=_(`company_description`),pE=_(`company_industry`),mE=_(`headcount`),hE=_(`exa_match_evaluation`),gE=r.object({search_id:r.literal(lE),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({[uE.name]:N({fieldName:uE.name}),[dE.name]:N({fieldName:uE.name}),[fE.name]:N({fieldName:fE.name}),[pE.name]:N({fieldName:pE.name}),[mE.name]:N({fieldName:mE.name}),[hE.name]:N({fieldName:hE.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})})})}),_E={default:{input:[{fields:[]}]}},vE=class extends YT{searchId=lE;schema=gE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[uE.name]:this.catalogOutput(uE),[dE.name]:this.catalogOutput(dE),[fE.name]:this.catalogOutput(fE),[pE.name]:this.catalogOutput(pE),[mE.name]:this.catalogOutput(mE),[hE.name]:this.catalogOutput(hE)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return _E}},yE=gE,bE={searchId:lE,billableOperation:`companies-profiles-exa`,baseSearch:XT(`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:ZT(lE),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:lE,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:``}}}},xE=`companies:profiles:icypeas@1`,SE=_(`company_industry`),CE=_(`company_name`),wE=_(`company_description`),TE=_(`company_website_url`),EE=_(`headcount`),DE=_(`company_region`),OE=_(`company_profile_url`),kE=_(`icypeas_company_match`),AE=r.object({search_id:r.literal(xE),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:CE.name}),company_industry:N({fieldName:SE.name}),company_description:N({fieldName:wE.name}),company_website_url:N({fieldName:TE.name}),headcount:N({fieldName:EE.name}),company_region:N({fieldName:DE.name}),company_profile_url:N({fieldName:OE.name}),icypeas_company_match:N({fieldName:kE.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=>{qT(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),jE={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},ME=class extends YT{searchId=xE;schema=AE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[CE.name]:this.catalogOutput(CE),[SE.name]:this.catalogOutput(SE),[OE.name]:this.catalogOutput(OE),[TE.name]:this.catalogOutput(TE),[wE.name]:this.catalogOutput(wE),[EE.name]:this.catalogOutput(EE),[DE.name]:this.catalogOutput(DE),[kE.name]:this.catalogOutput(kE)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return jE}},NE=AE,PE={searchId:xE,billableOperation:`companies-profiles-icypeas`,baseSearch:XT(`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:ZT(xE),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:xE,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`,IE=_(`name`),LE=_(`job_title`),RE=_(`company_name`),zE=_(`company_profile_url`),BE=_(`profile_url`),VE=_(`clado_person_match`),HE=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({[IE.name]:N({fieldName:IE.name}),[LE.name]:N({fieldName:LE.name}),[zE.name]:N({fieldName:zE.name}),[RE.name]:N({fieldName:RE.name}),[BE.name]:N({fieldName:BE.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})})})}),UE={default:{input:[{fields:[{outputField:`profile_url`}]}]}},WE=class extends YT{searchId=FE;schema=HE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[IE.name]:this.catalogOutput(IE),[LE.name]:this.catalogOutput(LE),[RE.name]:this.catalogOutput(RE),[BE.name]:this.catalogOutput(BE),[zE.name]:this.catalogOutput(zE),[VE.name]:this.catalogOutput(VE)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return UE}},GE=HE,KE={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:``}}}},qE=`people:profiles:clado@2`,JE=_(`name`),YE=_(`job_title`),XE=_(`company_name`),ZE=_(`company_profile_url`),QE=_(`profile_url`),$E=_(`clado_person_match_v2`),eD=r.object({search_id:r.literal(qE),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({[JE.name]:N({fieldName:JE.name}),[YE.name]:N({fieldName:YE.name}),[ZE.name]:N({fieldName:ZE.name}),[XE.name]:N({fieldName:XE.name}),[QE.name]:N({fieldName:QE.name}),[$E.name]:N({fieldName:$E.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`]})}),tD={default:{input:[{fields:[{outputField:`profile_url`}]}]}},nD=class extends YT{searchId=qE;schema=eD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[JE.name]:this.catalogOutput(JE),[YE.name]:this.catalogOutput(YE),[XE.name]:this.catalogOutput(XE),[QE.name]:this.catalogOutput(QE),[ZE.name]:this.catalogOutput(ZE),[$E.name]:this.catalogOutput($E)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return tD}},rD=eD,iD={searchId:qE,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:qE,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:``}}}},aD=`people:employees:leadmagic@1`,oD=_(`name`),sD=_(`job_title`),cD=_(`company_website_url`),lD=_(`company_name`),uD=r.object({search_id:r.literal(aD),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({[oD.name]:N({fieldName:oD.name}),[lD.name]:N({fieldName:lD.name}),[cD.name]:N({fieldName:cD.name}),[sD.name]:N({fieldName:sD.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`})})})}),dD={default:{input:[{fields:[{outputField:cD.name}]}]}},fD=class extends YT{searchId=aD;schema=uD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[oD.name]:this.catalogOutput(oD),[sD.name]:this.catalogOutput(sD),[cD.name]:this.catalogOutput(cD),[lD.name]:this.catalogOutput(lD)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return dD}},pD=uD,mD={searchId:aD,billableOperation:`people-employees-leadmagic`,baseSearch:XT(`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:ZT(aD),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:aD,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:``}}}},hD=`people:profiles:crustdata@1`,gD=_(`name`),_D=_(`company_website_url`),vD=_(`profile_url`),yD=_(`job_title`),bD=_(`crustdata_person_match`),xD=r.object({search_id:r.literal(hD),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({[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})})),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=>{qT(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),SD={default:{input:[{fields:[]}]}},CD=class extends YT{searchId=hD;schema=xD;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)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return SD}},wD=xD,TD={searchId:hD,billableOperation:`people-profiles-crustdata`,baseSearch:XT(`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:ZT(hD),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:hD,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:[]}}}},ED=`people:profiles:exa@1`,DD=_(`name`),OD=_(`profile_url`),kD=_(`job_title`),AD=_(`company_name`),jD=_(`company_region`),MD=_(`exa_match_evaluation`),ND=r.object({search_id:r.literal(ED),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({[DD.name]:N({fieldName:DD.name}),[OD.name]:N({fieldName:OD.name}),[kD.name]:N({fieldName:kD.name}),[AD.name]:N({fieldName:AD.name}),[jD.name]:N({fieldName:jD.name}),[MD.name]:N({fieldName:MD.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})})})}),PD={default:{input:[{fields:[]}]}},FD=class extends YT{searchId=ED;schema=ND;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[DD.name]:this.catalogOutput(DD),[OD.name]:this.catalogOutput(OD),[kD.name]:this.catalogOutput(kD),[AD.name]:this.catalogOutput(AD),[jD.name]:this.catalogOutput(jD),[MD.name]:this.catalogOutput(MD)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return PD}},ID=ND,LD={searchId:ED,billableOperation:`people-profiles-exa`,baseSearch:XT(`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:ZT(ED),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:ED,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:``}}}},RD=`people:profiles:icypeas@1`,zD=_(`name`),BD=_(`job_title`),VD=_(`profile_headline`),HD=_(`company_website_url`),UD=_(`company_profile_url`),WD=_(`profile_url`),GD=_(`icypeas_person_match`),KD=r.object({search_id:r.literal(RD),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({[zD.name]:N({fieldName:zD.name}),[BD.name]:N({fieldName:BD.name}),[VD.name]:N({fieldName:VD.name}),[HD.name]:N({fieldName:HD.name}),[UD.name]:N({fieldName:UD.name}),[WD.name]:N({fieldName:WD.name}),[GD.name]:N({fieldName:GD.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=>{qT(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),qD={default:{input:[{fields:[{outputField:`profile_url`}]}]}},JD=class extends YT{searchId=RD;schema=KD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[zD.name]:this.catalogOutput(zD),[BD.name]:this.catalogOutput(BD),[VD.name]:this.catalogOutput(VD),[HD.name]:this.catalogOutput(HD),[UD.name]:this.catalogOutput(UD),[WD.name]:this.catalogOutput(WD),[GD.name]:this.catalogOutput(GD)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return qD}},YD=KD,XD={searchId:RD,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:XT(RD),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:ZT(RD),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:RD,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:[]}}}}},ZD={"people:profiles:crustdata@1":CD,"companies:profiles:crustdata@1":oE,"companies:profiles:exa@1":vE,"people:profiles:exa@1":FD,"people:profiles:icypeas@1":JD,"companies:profiles:icypeas@1":ME,"people:employees:leadmagic@1":fD,"people:profiles:clado@1":WE,"people:profiles:clado@2":nD},QD={"people:profiles:crustdata@1":wD,"companies:profiles:crustdata@1":sE,"companies:profiles:exa@1":yE,"people:profiles:exa@1":ID,"people:profiles:icypeas@1":YD,"companies:profiles:icypeas@1":NE,"people:employees:leadmagic@1":pD,"people:profiles:clado@1":GE,"people:profiles:clado@2":rD},$D={"people:profiles:crustdata@1":TD,"companies:profiles:crustdata@1":cE,"companies:profiles:exa@1":bE,"people:profiles:exa@1":LD,"people:profiles:icypeas@1":XD,"companies:profiles:icypeas@1":PE,"people:employees:leadmagic@1":mD,"people:profiles:clado@1":KE,"people:profiles:clado@2":iD};function eO(e){return ZD[e]}function tO(e){return QD[e]}function nO(e){return $D[e].defaultPayload}const rO=t.discriminatedUnion(`search_id`,Object.values(QD).map(e=>e)),iO=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=nO(e.search_id);return t?{...e,config:Ca(e?.config||{},t.config)}:e},rO);function aO(e){return Object.keys($D[e].defaultPayload.config.output_fields)}const oO=In,sO=t.object({value:Cn,status:Sn,type:bn.optional(),format:zn.nullable().optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),cO=t.record(t.string(),sO.nullable()),lO=t.object({search:t.object({ref:KT}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(oO),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()})}),uO=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(cO),search_statuses:t.array(lO),organizationId:t.string()}).openapi(`SearchesResponseSchema`),dO=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),fO=dO.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),pO=t.object({config:fO.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(iO)}).openapi(`SearchesRequestSchema`);function mO(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function hO(){let e={};for(let t of Object.values($D)){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=mO(e.searchId);return mO(t.searchId)-n})}),e}const gO=hO();function _O(e){let t=[];for(let[n,r]of Object.entries(gO)){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:mO(i.searchId)})}return t}function vO(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 aO(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:gO}}function yO(e){return $D[e]}function bO(e){let t=yO(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function xO(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e}))}function SO(e){return xO(rw(e).allowedUserConnectionProviders)}function CO(e){return xO([HC(e).provider])}function wO(e){return xO([yO(e).provider])}const TO=[{id:`people`,label:`People`,color:`#8B7DFF`,order:0},{id:`companies`,label:`Companies`,color:`#10B981`,order:1},{id:`deprecated`,label:`Deprecated`,color:`#94A3B8`,order:2}],EO=new Map(TO.map(e=>[e.id,e]));function DO(e){return EO.get(e)}function OO(){return TO}const kO={"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 AO(e,t,n){if(t==null)return{};try{let r=rn(e,n)?.getStaticWidgets?.(t),i=Qw(n,t);return Gx(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function jO(e){if(e instanceof Rx)return e;let t=e.search_id,n=kC(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(MC.parse(e))}var MO=class extends Gh{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function NO(e){let t=[];for(let n of e){if(n instanceof YT){t.push(n);continue}let e=n.search_id,r=eO(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(iO.parse(n));t.push(i)}return t}function PO(e){try{return NO(e.searches)}catch(e){throw e instanceof MO?e:new $([Q.ValidationFailed({error:e})])}}const FO=/[\\^$.+()|[\]{}]/g,IO=new Map;function LO(e){let t=IO.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 IO.set(e,r),r}function RO(e,t){return LO(t).test(e)}function zO(e,t){if(!t||t.length===0)return!1;for(let n of t)if(RO(e,n))return!0;return!1}function BO(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!zO(e,n)||r&&r.length>0&&zO(e,r))}function VO(e,t){return BO(e,t?.providers)}function HO(e,t){if(!t)return!0;if(!BO(e,t.pipes))return!1;if(t.providers){let n=sw(e);if(n.length===0)return!0;if(!n.some(e=>VO(e,t)))return!1}return!0}function UO(e,t,n){return t?!(!BO(e,t.searches)||n!==void 0&&!VO(n,t)):!0}function WO(e,t,n){return t?!(!BO(e,t.searchesMulti)||n!==void 0&&!VO(n,t)):!0}function GO(e,t){return t?e.filter(e=>HO(e.pipeId,t)):e.slice()}function KO(e,t){return t?e.filter(e=>UO(e.searchId,t,e.provider)):e.slice()}function qO(e,t){return t?e.filter(e=>WO(e.searchId,t,e.provider)):e.slice()}function JO(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function YO(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function XO(e){return e.cost.credits.default}function ZO(e){let t=Xw(e);return te(t)||new URL(t).hostname}const QO=[`http://`,`https://`,`mailto:`],$O=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function ek(e){return e?tk(e):[]}function tk(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&&$O.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=nk(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=nk(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:tk(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=nk(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:tk(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=nk(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:tk(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=nk(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=nk(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(QO.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:tk(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function nk(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(rk(e,r,n))return r;r+=1}return-1}function rk(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,oT as FieldAnnotations,Vn as FieldAnnotationsSchema,mn as FieldNameSchema,Ln as FieldReasonSchema,Cn as FieldValueSchema,jw as FormStoreSchema,Bw as HIGH_VOLUME_PRICING_MIN_CREDITS,$n as JSONExtractSchema,wn as JSONMetaSchema,or as NoConnectorSchema,v as OptionalConnectorSchema,_n as PIPE_IDS,RC as PaginationTypeSchema,mb as PersonWorkemailWaterfall1Entry,pb as PersonWorkemailWaterfall1PayloadSchema,fb as PersonWorkemailWaterfall1PipeClass,U as Pipe,Gh as Pipe0Error,vn as PipeIdSchema,tw as PipePayloadSchema,ur as PipeRunIfSchema,$ as PipelineValidationError,gn as PipesEnvironmentSchema,In as PipesErrorSchema,Zn as PipesFieldDefinitionSchema,Qn as PipesFieldDefinitionsSchema,Jn as PipesInputSchema,pw as PipesRequestConfigSchema,mw as PipesRequestSchema,fw as PipesResponseSchema,nw as ProcessedPipePayloadSchema,MC as ProcessedSearchPayloadSchema,iO 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,Wh as RequestValidationError,ar as RequiredConnectorSchema,cr as RunIfStatusOperatorsSchema,lr as RunIfStatusValueSchema,sr as RunIfValueOperatorsSchema,GT as SEARCHES_IDS,Px as SEARCH_IDS,Rx as Search,PC as SearchErrorSchema,Fx as SearchIdSchema,AC as SearchPayloadSchema,NC as SearchRequestSchema,zC as SearchResponseSchema,FC as SearchResultFieldSchema,IC as SearchResultSchema,oO as SearchesErrorSchema,KT as SearchesIdSchema,rO as SearchesPayloadSchema,dO as SearchesRequestBaseConfigSchema,pO as SearchesRequestSchema,uO as SearchesResponseSchema,sO as SearchesResultFieldSchema,cO as SearchesResultSchema,YT as SearchesSearch,lO as SearchesStatusSchema,Ku as TYPES_TO_FORMATS,Ow as WidgetsByKindSchema,Fn as WidgetsSchema,Ea as all,jr as analyzeLiquidTemplate,dn as and,H as any,lw as assertUniqueBillableOperations,g as autocomplete,ti as buildAiModelBillableOperations,cT as buildDependencyGraph,Hm as buildInputRequirementFromTemplates,K as catalogInput,Ma as cleanObject,Xw as cleanUrl,Yw as cleanWebsiteUrl,X as collectConstantReferencesFromTemplates,yw as collectPipeContextSelectFields,ka as collectRequirementFields,Y as collectSecretReferencesFromTemplates,LO as compilePattern,Ca as configDefaults,Ii as convertIntermediateFieldsIntoGroups,Li as defaultSectionMap,Hh as describeRequirement,Wx as entityLogoFavicon,Ux as entityLogoProfessionalProfileUrl,Bi as extractFormMetadata,V as field,nn as fieldBehaviorCatalog,tn as fieldCatalog,Vh as fieldNameStr,$w as fieldTypeFromValue,zT as fieldsToObject,GO as filterPipeEntries,KO as filterSearchEntries,qO as filterSearchesEntries,ni as getAiModelBillingKey,ii as getAiModelConnectionRequirements,ri as getAiModelProviders,ai as getAllAiModelProviders,W as getBasePipeName,ZC as getDefaultOutputFields,sw as getDefaultPipeProviders,GC as getDefaultSearchOutputFields,aO as getDefaultSearchesOutputFields,Rw as getDependentPipeNamesForInputProperty,zw as getDependentPipeNamesForPipe,ZO as getDomain,tT as getExpansionState,Vx as getFaviconUrlGoogle,_ as getField,rn as getFieldBehavior,Hu as getFieldDisplayLabel,rT as getFieldWidgets,WC as getInitialSearchTableData,_O as getInitialSearchesTableData,uw as getInitialTableData,Ia as getInputHash,si as getJsonMetaForFieldDef,XO as getLoweestSearchCreditAmount,YO as getLoweestSearchesCreditAmount,JO as getLowestPipeCreditAmount,pn as getOutputFieldInfoFromDef,iw as getPipeBillableOperationDef,Fw as getPipeCategoryEntries,Pw as getPipeCategoryEntry,QC as getPipeClass,Fa as getPipeConfigHash,$C as getPipeDefaultPayload,G as getPipeDocsURI,rw as getPipeEntry,Lw as getPipeInstances,bw as getPipePayloadFormConfig,ew as getPipePayloadSchema,aw as getPipeVersion,J as getProviderBillableOperation,La as getProviderCreditsFromBillableOperations,WT as getProviderEntry,cn as getReadableFieldStatus,xO as getSandboxConnections,SO as getSandboxConnectionsForPipe,CO as getSandboxConnectionsForSearch,wO as getSandboxConnectionsForSearches,OO as getSearchCategoryEntries,DO as getSearchCategoryEntry,kC as getSearchClass,jC as getSearchDefaultPayload,HC as getSearchEntry,AO as getSearchFieldWidgets,jO as getSearchInstance,ww as getSearchPayloadFormConfig,LC as getSearchPayloadSchema,KC as getSearchTableDataAggregates,BC as getSearchVersion,eO as getSearchesClass,nO as getSearchesDefaultPayload,yO as getSearchesEntry,iT as getSearchesFieldWidgets,NO as getSearchesInstances,tO as getSearchesPayloadSchema,vO as getSearchesTableDataAggregates,mO as getSearchesVersion,hw as getStartingCostPerPipesProvider,qC as getStartingCostPerSearchProvider,bO as getStartingCostPerSearchesProvider,dw as getTableDataAggregates,Hw as getTier,nT as getUnexpandedValue,Hx as ifDefined,z as inputFields,HT as inputFromRecord,VT as inputFromRecordArr,BT as inputFromRecords,Tw as inputGuards,on as isCatalogField,jt as isEmptyValue,an as isFieldName,Gw as isHighVolumeEligible,HO as isPipeAllowed,VO as isProviderAllowed,Oa as isRequirementMet,Aa as isRequirementSatisfiedByRecord,UO as isSearchAllowed,WO as isSearchesAllowed,Yr as joinConnectionString,Kw as listHighVolumeEligibleOperations,Ww as listTiers,za as markRecordFieldAsComplete,Ha as markRecordFieldAsFailed,Va as markRecordFieldAsNoResult,Ba as markRecordFieldAsPending,Wa as markRecordFieldAsProcessing,Ua as markRecordFieldAsSkipped,zO as matchesAny,RO as matchesPattern,Gx as mergeWidgets,T as noConnectorInput,Da as optional,w as optionalConnectorInput,fn as or,R as outputFields,Ar as parseLiquidTemplate,wr as parseOutputTagArgs,DT as parseRecordValueOrError,ek as parseRichText,XC as pipeCatalog,Mw as pipeCategoryCatalog,JC as pipeClassCatalog,YC 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,Iw as pipesSnippetCatalog,Zi as pipesTaggedOrderedMultiCreateInput,C as pipesTaggedTextInput,Ui as pipesTemplateInput,ra as pipesTextInput,ia as pipesTextareaInput,Z as placeholder,UT as processInputObjects,dr as providerCatalog,q as rateLimitRatioFallingProgression,Or as renderLiquidTemplate,kr as renderLiquidTemplateSync,Gi as requiredConnectorInput,Ra as requirementToInputFields,Uh as requirementUnmetMessage,ln as requiresConnection,un as requiresField,OC as searchCatalog,TO as searchCategoryCatalog,EC as searchClassCatalog,DC as searchPayloadSchemaCatalog,kO as searchSnippetCatalog,I as searchesAsyncIncludeExcludeSelectInput,F as searchesAsyncMultiSelectInput,$D as searchesCatalog,ZD 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,QD as searchesPayloadSchemaCatalog,ha as searchesRangeInput,xa as searchesSelectInput,ya as searchesTextInput,ba as searchesTextareaField,Gu as sortObjectKeys,ow as sortPipeCatalogByBasePipe,VC as sortSearchCatalogByBaseSearch,hO as sortSearchesCatalogByBaseSearch,Jr as splitConnectionString,h as staticAutocomplete,m as staticOptions,Wu as stringify,Uu as testPrint,Uw as tierAtOrBelow,AT as transformIntoResponse,lT as validatePipesOrError,PO as validateSearches,Q as validationErrorMessages};
119
+ `}}],input:[{id:`1`,name:`John`,email:`john@pipe0.com`}]}],"email:send:resend@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`resend_123`,type:`vault`}]},pipe_id:`email:send:resend@1`,config:{from:`<FROM_EMAIL_ADDRESS>`,to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"email:send:gmail@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`gmail_123`,type:`vault`}]},pipe_id:`email:send:gmail@1`,config:{to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"message:send:slack@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`slack_123`,type:`vault`}]},pipe_id:`message:send:slack@1`,config:{channel_id:`<SLACK_CHANNEL_ID>`,message:`{{ message }}`}}],input:[{id:`1`,message:`<MESSAGE_TEXT>`}]}],"people:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"person:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"people:validate:email:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:validate:email:zerobounce@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:mobilenumber:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:workemail:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`john@pipe0.com`}]}],"people:professionalprofileurl:name@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:name@1`}],input:[{id:`1`,name:`John`,company_name:`Pipe0`,location_int:`Berlin`}]}],"people:professionalprofileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:email:waterfall@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"people:mobilenumber:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`https://linkedin.com/li/john`}]}],"company:overview@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@2`,config:{}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"company:overview@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@3`,config:{}}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"fields:merge@1":[{config:{environment:`production`},pipes:[{pipe_id:`fields:merge@1`,config:{sources:[{field_name:`field_1`},{field_name:`field_2`}]}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:scrape:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrape:firecrawl@1`,config:{scrape_main_only:!0,input_fields:{website_url:{alias:``}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:extract:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:extract:firecrawl@1`,config:{extraction_prompt:`Extract the company mission as well as the latest news.`,enable_full_domain_crawl:!0,enable_web_search:!0,json_schema:{type:`object`,required:[`company_mission`,`latest_news`],properties:{company_mission:{type:`string`},latest_news:{type:`string`}}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"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 Lw(e){let t=[];for(let n of e){if(n instanceof U){t.push(n);continue}let e=nw.parse(n);if(!rw(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(QC(n.pipe_id))(e);t.push(r)}return t}function Rw(e,t){let n=Lw(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 zw(e,t){let n=e.dependencyGraph,r=new Set;return n.forEach((e,n)=>e.forEach(e=>{e.index===t&&r.add(n)})),Array.from(r).map(t=>{let n=e.orderedPipeInstances[t];if(!n)throw Error(`Internal: Pipe with index ${t} not found.`);return n.pipeId})}const Bw=.1,Vw=[`level1`,`level2`,`level3`];function Hw(e,t){let n=Vw[t-1];if(n)return e[n]}function Uw(e,t){for(let n=t;n>=1;n--){let t=Hw(e,n);if(t)return{level:n,tier:t}}}function Ww(e){let t=[];for(let n=1;n<=3;n++){let r=Hw(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function Gw(e){if(e.default<.1)return!1;let t=Ww(e);if(t.length===0)return!1;for(let e=0;e<t.length;e++)if(t[e].level!==e+1)return!1;let n=e.default,r=0;for(let e of t){if(!(e.credits<n)||!Number.isInteger(e.weight)||e.weight<=r)return!1;n=e.credits,r=e.weight}return!0}function Kw(){let e=new Map;for(let t of Object.values(XC))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!Gw(i.credits))continue;let a=n,o={kind:`pipe`,id:t.pipeId,label:t.label,categories:[...t.categories]},s=e.get(a);if(s){s.standardCredits=Math.min(s.standardCredits,i.credits.default),s.usedBy.push(o);continue}e.set(a,{billableOperation:a,provider:i.provider,kind:`pipe`,standardCredits:i.credits.default,tiers:Ww(i.credits),usedBy:[o]})}for(let t of Object.values(OC)){let{cost:n}=t;if(!Gw(n.credits))continue;let r=t.billableOperation,i={kind:`search`,id:t.searchId,label:t.label,categories:[...t.categories]},a=e.get(r);if(a){a.standardCredits=Math.min(a.standardCredits,n.credits.default),a.usedBy.push(i);continue}e.set(r,{billableOperation:r,provider:t.provider,kind:`search`,standardCredits:n.credits.default,tiers:Ww(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function qw(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 Jw(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 Yw(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(Jw(e))return`https://${e}`;if(!qw(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 Xw(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(Jw(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!qw(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(qw(i)||Jw(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function Zw(e){try{return Yw(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function Qw(e,t){if(t)switch(e){case`website_url`:return Zw(t);default:return}}function $w(e){let t;if(eT(e))return $w(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function eT(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`&&eT(e.value,t++))throw new $([Q.RecursiveExpandedValue()]);return!0}return!1}function tT(e){let t=eT(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function nT(e){return eT(e)?nT(e.value):e}function rT(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=rn(e,n.format)?.getStaticWidgets?.(t),i=Qw(n.format,t);return Bx(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function iT(e,t,n){if(t==null)return{};try{let r=rn(e,n)?.getStaticWidgets?.(t),i=Qw(n,t);return Bx(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function aT(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 oT=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}=tT(n),c;c=s&&o.type?o.type:$w(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]=aT(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function sT(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 cT(e){let t=sT(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 lT({config:e,pipes:t,input:n,field_annotations:r}){try{let i=pT({config:e,pipes:t,input:n,fieldAnnotations:r});return uT(i),i}catch(e){throw e instanceof $?e:new $([Q.ValidationFailed({error:e})])}}function uT(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 dT(e,t){if(!e&&!t)throw new $([Q.MustDefineAnnotations()]);return new oT(t||{}).merge(oT.fromInput(e||[]))}function fT(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 pT(e){let t=Lw(e.pipes),n=dT(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)}),gT(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]=mT(t,n),u=fT({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 mT(e,t){let n=cT(e),r=hT(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 hT(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,pipeId:r.pipeId,index:n}));let o=e[n]||[],c=i.indexOf(n);for(let e of o){let r=i.indexOf(e.index);e.required&&r>c&&s.push(e.reason.includes(`input`)?Q.HardInputDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}):Q.HardConditionDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}))}r.payload.run_if&&r.payload.run_if.when.conditions.map(e=>e.field_name).forEach(e=>{if(!ee.has(e))throw new $([Q.ConditionTargetFieldNotFound({fieldName:e,pipeId:r.pipeId,pipeIdx:n})])})}if(s.length>0)throw new $(s);return i}function gT(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 _T=[`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`],vT=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],yT=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})}),bT=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 xT(e){return!isNaN(e.getTime())}const ST=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of _T){let n=ee(t,e,new Date(0));if(xT(n))return u(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),CT=r.coerce.string().trim().transform(e=>{for(let t of vT){let n=ee(e,t,new Date(0));if(xT(n))return u(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),wT=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`}),TT=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()),ET=r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`});function DT(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return yT.parse(e);case`email`:return bT.parse(e);case`datetime`:return ST.parse(e);case`date`:return CT.parse(e);case`decimal`:return wT.parse(e);case`int`:return TT.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return ET.parse(e);case`website_url`:return yT.parse(e);case`profile_url`:return yT.parse(e);case`zip_code`:return ET.parse(e);case`markdown`:case`phone`:case`text`:return ET.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 OT(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(eT(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:DT(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 kT(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:OT(e,n,i)}}}function AT({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{kT(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=jT(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,MT(e,r,n?.queue?.enabled),RT(e,r),r.errors.length>0)throw new $(r.errors);return r}catch(e){throw e instanceof $?e:new $([Q.ResponseGenerationFailed({error:e})])}}function jT(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}=LT(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function MT(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 ${Vh(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 ${Vh(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 NT({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 PT({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 NT({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||PT({status:n.status,config:r})}function IT({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 LT(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}=tT(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=$w(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}=IT({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}=IT({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=DT(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 RT(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=rT(i,r.value,r);r.widgets=Bx(r.widgets||{},e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function zT(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 BT(e,t={}){return Object.values(e).map(e=>zT(e.fields,t))}function VT(e,t={}){return e.map(e=>zT(e.fields,t))}function HT(e,t={}){return zT(e.fields,t)}function UT(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=tT(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function WT(e){let t=dr[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const GT=[`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`],KT=r.enum(GT);function qT(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 JT(e,t){let n={name:e,config:t};return Pa.hashObject(n)}var YT=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 JT(this.searchId,this.payload)}};function XT(e){return e.split(`@`)[0]}function ZT(e){return`/docs/search-catalog/${XT(e)}/${e.split(`@`)[1]}`}const QT=`companies:profiles:crustdata@1`,$T=_(`company_name`),eE=_(`company_website_url`),tE=_(`company_description`),nE=_(`company_profile_url`),rE=_(`crustdata_company_match`),iE=r.object({search_id:r.literal(QT),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({[$T.name]:N({fieldName:$T.name}),[eE.name]:N({fieldName:$T.name}),[tE.name]:N({fieldName:tE.name}),[nE.name]:N({fieldName:nE.name}),[rE.name]:N({fieldName:rE.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=>{qT(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),aE={default:{input:[{fields:[]}]}},oE=class extends YT{searchId=QT;schema=iE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[$T.name]:this.catalogOutput($T),[eE.name]:this.catalogOutput(eE),[tE.name]:this.catalogOutput(tE),[nE.name]:this.catalogOutput(nE),[rE.name]:this.catalogOutput(rE)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return aE}},sE=iE,cE={searchId:QT,billableOperation:`companies-profiles-crustdata`,baseSearch:XT(`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:ZT(QT),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:QT,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:[]}}}},lE=`companies:profiles:exa@1`,uE=_(`company_name`),dE=_(`company_website_url`),fE=_(`company_description`),pE=_(`company_industry`),mE=_(`headcount`),hE=_(`exa_match_evaluation`),gE=r.object({search_id:r.literal(lE),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({[uE.name]:N({fieldName:uE.name}),[dE.name]:N({fieldName:uE.name}),[fE.name]:N({fieldName:fE.name}),[pE.name]:N({fieldName:pE.name}),[mE.name]:N({fieldName:mE.name}),[hE.name]:N({fieldName:hE.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})})})}),_E={default:{input:[{fields:[]}]}},vE=class extends YT{searchId=lE;schema=gE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[uE.name]:this.catalogOutput(uE),[dE.name]:this.catalogOutput(dE),[fE.name]:this.catalogOutput(fE),[pE.name]:this.catalogOutput(pE),[mE.name]:this.catalogOutput(mE),[hE.name]:this.catalogOutput(hE)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return _E}},yE=gE,bE={searchId:lE,billableOperation:`companies-profiles-exa`,baseSearch:XT(`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:ZT(lE),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:lE,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:``}}}},xE=`companies:profiles:icypeas@1`,SE=_(`company_industry`),CE=_(`company_name`),wE=_(`company_description`),TE=_(`company_website_url`),EE=_(`headcount`),DE=_(`company_region`),OE=_(`company_profile_url`),kE=_(`icypeas_company_match`),AE=r.object({search_id:r.literal(xE),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:CE.name}),company_industry:N({fieldName:SE.name}),company_description:N({fieldName:wE.name}),company_website_url:N({fieldName:TE.name}),headcount:N({fieldName:EE.name}),company_region:N({fieldName:DE.name}),company_profile_url:N({fieldName:OE.name}),icypeas_company_match:N({fieldName:kE.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=>{qT(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),jE={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},ME=class extends YT{searchId=xE;schema=AE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[CE.name]:this.catalogOutput(CE),[SE.name]:this.catalogOutput(SE),[OE.name]:this.catalogOutput(OE),[TE.name]:this.catalogOutput(TE),[wE.name]:this.catalogOutput(wE),[EE.name]:this.catalogOutput(EE),[DE.name]:this.catalogOutput(DE),[kE.name]:this.catalogOutput(kE)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return jE}},NE=AE,PE={searchId:xE,billableOperation:`companies-profiles-icypeas`,baseSearch:XT(`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:ZT(xE),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:xE,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`,IE=_(`name`),LE=_(`job_title`),RE=_(`company_name`),zE=_(`company_profile_url`),BE=_(`profile_url`),VE=_(`clado_person_match`),HE=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({[IE.name]:N({fieldName:IE.name}),[LE.name]:N({fieldName:LE.name}),[zE.name]:N({fieldName:zE.name}),[RE.name]:N({fieldName:RE.name}),[BE.name]:N({fieldName:BE.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})})})}),UE={default:{input:[{fields:[{outputField:`profile_url`}]}]}},WE=class extends YT{searchId=FE;schema=HE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[IE.name]:this.catalogOutput(IE),[LE.name]:this.catalogOutput(LE),[RE.name]:this.catalogOutput(RE),[BE.name]:this.catalogOutput(BE),[zE.name]:this.catalogOutput(zE),[VE.name]:this.catalogOutput(VE)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return UE}},GE=HE,KE={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:``}}}},qE=`people:profiles:clado@2`,JE=_(`name`),YE=_(`job_title`),XE=_(`company_name`),ZE=_(`company_profile_url`),QE=_(`profile_url`),$E=_(`clado_person_match_v2`),eD=r.object({search_id:r.literal(qE),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({[JE.name]:N({fieldName:JE.name}),[YE.name]:N({fieldName:YE.name}),[ZE.name]:N({fieldName:ZE.name}),[XE.name]:N({fieldName:XE.name}),[QE.name]:N({fieldName:QE.name}),[$E.name]:N({fieldName:$E.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`]})}),tD={default:{input:[{fields:[{outputField:`profile_url`}]}]}},nD=class extends YT{searchId=qE;schema=eD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[JE.name]:this.catalogOutput(JE),[YE.name]:this.catalogOutput(YE),[XE.name]:this.catalogOutput(XE),[QE.name]:this.catalogOutput(QE),[ZE.name]:this.catalogOutput(ZE),[$E.name]:this.catalogOutput($E)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return tD}},rD=eD,iD={searchId:qE,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:qE,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:``}}}},aD=`people:employees:leadmagic@1`,oD=_(`name`),sD=_(`job_title`),cD=_(`company_website_url`),lD=_(`company_name`),uD=r.object({search_id:r.literal(aD),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({[oD.name]:N({fieldName:oD.name}),[lD.name]:N({fieldName:lD.name}),[cD.name]:N({fieldName:cD.name}),[sD.name]:N({fieldName:sD.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`})})})}),dD={default:{input:[{fields:[{outputField:cD.name}]}]}},fD=class extends YT{searchId=aD;schema=uD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[oD.name]:this.catalogOutput(oD),[sD.name]:this.catalogOutput(sD),[cD.name]:this.catalogOutput(cD),[lD.name]:this.catalogOutput(lD)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return dD}},pD=uD,mD={searchId:aD,billableOperation:`people-employees-leadmagic`,baseSearch:XT(`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:ZT(aD),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:aD,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:``}}}},hD=`people:profiles:crustdata@1`,gD=_(`name`),_D=_(`company_website_url`),vD=_(`profile_url`),yD=_(`job_title`),bD=_(`crustdata_person_match`),xD=r.object({search_id:r.literal(hD),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({[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})})),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=>{qT(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),SD={default:{input:[{fields:[]}]}},CD=class extends YT{searchId=hD;schema=xD;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)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return SD}},wD=xD,TD={searchId:hD,billableOperation:`people-profiles-crustdata`,baseSearch:XT(`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:ZT(hD),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:hD,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:[]}}}},ED=`people:profiles:exa@1`,DD=_(`name`),OD=_(`profile_url`),kD=_(`job_title`),AD=_(`company_name`),jD=_(`company_region`),MD=_(`exa_match_evaluation`),ND=r.object({search_id:r.literal(ED),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({[DD.name]:N({fieldName:DD.name}),[OD.name]:N({fieldName:OD.name}),[kD.name]:N({fieldName:kD.name}),[AD.name]:N({fieldName:AD.name}),[jD.name]:N({fieldName:jD.name}),[MD.name]:N({fieldName:MD.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})})})}),PD={default:{input:[{fields:[]}]}},FD=class extends YT{searchId=ED;schema=ND;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[DD.name]:this.catalogOutput(DD),[OD.name]:this.catalogOutput(OD),[kD.name]:this.catalogOutput(kD),[AD.name]:this.catalogOutput(AD),[jD.name]:this.catalogOutput(jD),[MD.name]:this.catalogOutput(MD)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return PD}},ID=ND,LD={searchId:ED,billableOperation:`people-profiles-exa`,baseSearch:XT(`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:ZT(ED),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:ED,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:``}}}},RD=`people:profiles:icypeas@1`,zD=_(`name`),BD=_(`job_title`),VD=_(`profile_headline`),HD=_(`company_website_url`),UD=_(`company_profile_url`),WD=_(`profile_url`),GD=_(`icypeas_person_match`),KD=r.object({search_id:r.literal(RD),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({[zD.name]:N({fieldName:zD.name}),[BD.name]:N({fieldName:BD.name}),[VD.name]:N({fieldName:VD.name}),[HD.name]:N({fieldName:HD.name}),[UD.name]:N({fieldName:UD.name}),[WD.name]:N({fieldName:WD.name}),[GD.name]:N({fieldName:GD.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=>{qT(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),qD={default:{input:[{fields:[{outputField:`profile_url`}]}]}},JD=class extends YT{searchId=RD;schema=KD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[zD.name]:this.catalogOutput(zD),[BD.name]:this.catalogOutput(BD),[VD.name]:this.catalogOutput(VD),[HD.name]:this.catalogOutput(HD),[UD.name]:this.catalogOutput(UD),[WD.name]:this.catalogOutput(WD),[GD.name]:this.catalogOutput(GD)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return qD}},YD=KD,XD={searchId:RD,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:XT(RD),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:ZT(RD),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:RD,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:[]}}}}},ZD={"people:profiles:crustdata@1":CD,"companies:profiles:crustdata@1":oE,"companies:profiles:exa@1":vE,"people:profiles:exa@1":FD,"people:profiles:icypeas@1":JD,"companies:profiles:icypeas@1":ME,"people:employees:leadmagic@1":fD,"people:profiles:clado@1":WE,"people:profiles:clado@2":nD},QD={"people:profiles:crustdata@1":wD,"companies:profiles:crustdata@1":sE,"companies:profiles:exa@1":yE,"people:profiles:exa@1":ID,"people:profiles:icypeas@1":YD,"companies:profiles:icypeas@1":NE,"people:employees:leadmagic@1":pD,"people:profiles:clado@1":GE,"people:profiles:clado@2":rD},$D={"people:profiles:crustdata@1":TD,"companies:profiles:crustdata@1":cE,"companies:profiles:exa@1":bE,"people:profiles:exa@1":LD,"people:profiles:icypeas@1":XD,"companies:profiles:icypeas@1":PE,"people:employees:leadmagic@1":mD,"people:profiles:clado@1":KE,"people:profiles:clado@2":iD};function eO(e){return ZD[e]}function tO(e){return QD[e]}function nO(e){return $D[e].defaultPayload}const rO=t.discriminatedUnion(`search_id`,Object.values(QD).map(e=>e)),iO=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=nO(e.search_id);return t?{...e,config:Ca(e?.config||{},t.config)}:e},rO);function aO(e){return Object.keys($D[e].defaultPayload.config.output_fields)}const oO=In,sO=t.object({value:Cn,status:Sn,type:bn.optional(),format:zn.nullable().optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),cO=t.record(t.string(),sO.nullable()),lO=t.object({search:t.object({ref:KT}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(oO),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()})}),uO=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(cO),search_statuses:t.array(lO),organizationId:t.string()}).openapi(`SearchesResponseSchema`),dO=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),fO=dO.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),pO=t.object({config:fO.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(iO)}).openapi(`SearchesRequestSchema`);function mO(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function hO(){let e={};for(let t of Object.values($D)){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=mO(e.searchId);return mO(t.searchId)-n})}),e}const gO=hO();function _O(e){let t=[];for(let[n,r]of Object.entries(gO)){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:mO(i.searchId)})}return t}function vO(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 aO(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:gO}}function yO(e){return $D[e]}function bO(e){let t=yO(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function xO(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e}))}function SO(e){return xO(rw(e).allowedUserConnectionProviders)}function CO(e){return xO([HC(e).provider])}function wO(e){return xO([yO(e).provider])}const TO=[{id:`people`,label:`People`,color:`#8B7DFF`,order:0},{id:`companies`,label:`Companies`,color:`#10B981`,order:1},{id:`deprecated`,label:`Deprecated`,color:`#94A3B8`,order:2}],EO=new Map(TO.map(e=>[e.id,e]));function DO(e){return EO.get(e)}function OO(){return TO}const kO={"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 AO(e,t,n){if(t==null)return{};try{let r=rn(e,n)?.getStaticWidgets?.(t),i=Qw(n,t);return Bx(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function jO(e){if(e instanceof Ux)return e;let t=e.search_id,n=kC(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(MC.parse(e))}var MO=class extends Gh{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function NO(e){let t=[];for(let n of e){if(n instanceof YT){t.push(n);continue}let e=n.search_id,r=eO(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(iO.parse(n));t.push(i)}return t}function PO(e){try{return NO(e.searches)}catch(e){throw e instanceof MO?e:new $([Q.ValidationFailed({error:e})])}}const FO=/[\\^$.+()|[\]{}]/g,IO=new Map;function LO(e){let t=IO.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 IO.set(e,r),r}function RO(e,t){return LO(t).test(e)}function zO(e,t){if(!t||t.length===0)return!1;for(let n of t)if(RO(e,n))return!0;return!1}function BO(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!zO(e,n)||r&&r.length>0&&zO(e,r))}function VO(e,t){return BO(e,t?.providers)}function HO(e,t){if(!t)return!0;if(!BO(e,t.pipes))return!1;if(t.providers){let n=sw(e);if(n.length===0)return!0;if(!n.some(e=>VO(e,t)))return!1}return!0}function UO(e,t,n){return t?!(!BO(e,t.searches)||n!==void 0&&!VO(n,t)):!0}function WO(e,t,n){return t?!(!BO(e,t.searchesMulti)||n!==void 0&&!VO(n,t)):!0}function GO(e,t){return t?e.filter(e=>HO(e.pipeId,t)):e.slice()}function KO(e,t){return t?e.filter(e=>UO(e.searchId,t,e.provider)):e.slice()}function qO(e,t){return t?e.filter(e=>WO(e.searchId,t,e.provider)):e.slice()}function JO(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function YO(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function XO(e){return e.cost.credits.default}function ZO(e){let t=Xw(e);return te(t)||new URL(t).hostname}const QO=[`http://`,`https://`,`mailto:`],$O=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function ek(e){return e?tk(e):[]}function tk(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&&$O.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=nk(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=nk(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:tk(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=nk(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:tk(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=nk(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:tk(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=nk(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=nk(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(QO.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:tk(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function nk(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(rk(e,r,n))return r;r+=1}return-1}function rk(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,oT as FieldAnnotations,Vn as FieldAnnotationsSchema,mn as FieldNameSchema,Ln as FieldReasonSchema,Cn as FieldValueSchema,jw as FormStoreSchema,Bw as HIGH_VOLUME_PRICING_MIN_CREDITS,$n as JSONExtractSchema,wn as JSONMetaSchema,or as NoConnectorSchema,v as OptionalConnectorSchema,_n as PIPE_IDS,RC as PaginationTypeSchema,mb as PersonWorkemailWaterfall1Entry,pb as PersonWorkemailWaterfall1PayloadSchema,fb as PersonWorkemailWaterfall1PipeClass,U as Pipe,Gh as Pipe0Error,vn as PipeIdSchema,tw as PipePayloadSchema,ur as PipeRunIfSchema,$ as PipelineValidationError,gn as PipesEnvironmentSchema,In as PipesErrorSchema,Zn as PipesFieldDefinitionSchema,Qn as PipesFieldDefinitionsSchema,Jn as PipesInputSchema,pw as PipesRequestConfigSchema,mw as PipesRequestSchema,fw as PipesResponseSchema,nw as ProcessedPipePayloadSchema,MC as ProcessedSearchPayloadSchema,iO 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,Wh as RequestValidationError,ar as RequiredConnectorSchema,cr as RunIfStatusOperatorsSchema,lr as RunIfStatusValueSchema,sr as RunIfValueOperatorsSchema,GT as SEARCHES_IDS,Px as SEARCH_IDS,Ux as Search,PC as SearchErrorSchema,Fx as SearchIdSchema,AC as SearchPayloadSchema,NC as SearchRequestSchema,zC as SearchResponseSchema,FC as SearchResultFieldSchema,IC as SearchResultSchema,oO as SearchesErrorSchema,KT as SearchesIdSchema,rO as SearchesPayloadSchema,dO as SearchesRequestBaseConfigSchema,pO as SearchesRequestSchema,uO as SearchesResponseSchema,sO as SearchesResultFieldSchema,cO as SearchesResultSchema,YT as SearchesSearch,lO as SearchesStatusSchema,Ku as TYPES_TO_FORMATS,Ow as WidgetsByKindSchema,Fn as WidgetsSchema,Ea as all,jr as analyzeLiquidTemplate,dn as and,H as any,lw as assertUniqueBillableOperations,g as autocomplete,ti as buildAiModelBillableOperations,cT as buildDependencyGraph,Hm as buildInputRequirementFromTemplates,K as catalogInput,Ma as cleanObject,Xw as cleanUrl,Yw as cleanWebsiteUrl,X as collectConstantReferencesFromTemplates,yw as collectPipeContextSelectFields,ka as collectRequirementFields,Y as collectSecretReferencesFromTemplates,LO as compilePattern,Ca as configDefaults,Ii as convertIntermediateFieldsIntoGroups,Li as defaultSectionMap,Hh as describeRequirement,zx as entityLogoFavicon,Rx as entityLogoProfessionalProfileUrl,Bi as extractFormMetadata,V as field,nn as fieldBehaviorCatalog,tn as fieldCatalog,Vh as fieldNameStr,$w as fieldTypeFromValue,zT as fieldsToObject,GO as filterPipeEntries,KO as filterSearchEntries,qO as filterSearchesEntries,ni as getAiModelBillingKey,ii as getAiModelConnectionRequirements,ri as getAiModelProviders,ai as getAllAiModelProviders,W as getBasePipeName,ZC as getDefaultOutputFields,sw as getDefaultPipeProviders,GC as getDefaultSearchOutputFields,aO as getDefaultSearchesOutputFields,Rw as getDependentPipeNamesForInputProperty,zw as getDependentPipeNamesForPipe,ZO as getDomain,tT as getExpansionState,Ix as getFaviconUrlGoogle,_ as getField,rn as getFieldBehavior,Hu as getFieldDisplayLabel,rT as getFieldWidgets,WC as getInitialSearchTableData,_O as getInitialSearchesTableData,uw as getInitialTableData,Ia as getInputHash,si as getJsonMetaForFieldDef,XO as getLoweestSearchCreditAmount,YO as getLoweestSearchesCreditAmount,JO as getLowestPipeCreditAmount,pn as getOutputFieldInfoFromDef,iw as getPipeBillableOperationDef,Fw as getPipeCategoryEntries,Pw as getPipeCategoryEntry,QC as getPipeClass,Fa as getPipeConfigHash,$C as getPipeDefaultPayload,G as getPipeDocsURI,rw as getPipeEntry,Lw as getPipeInstances,bw as getPipePayloadFormConfig,ew as getPipePayloadSchema,aw as getPipeVersion,J as getProviderBillableOperation,La as getProviderCreditsFromBillableOperations,WT as getProviderEntry,cn as getReadableFieldStatus,xO as getSandboxConnections,SO as getSandboxConnectionsForPipe,CO as getSandboxConnectionsForSearch,wO as getSandboxConnectionsForSearches,OO as getSearchCategoryEntries,DO as getSearchCategoryEntry,kC as getSearchClass,jC as getSearchDefaultPayload,HC as getSearchEntry,AO as getSearchFieldWidgets,jO as getSearchInstance,ww as getSearchPayloadFormConfig,LC as getSearchPayloadSchema,KC as getSearchTableDataAggregates,BC as getSearchVersion,eO as getSearchesClass,nO as getSearchesDefaultPayload,yO as getSearchesEntry,iT as getSearchesFieldWidgets,NO as getSearchesInstances,tO as getSearchesPayloadSchema,vO as getSearchesTableDataAggregates,mO as getSearchesVersion,hw as getStartingCostPerPipesProvider,qC as getStartingCostPerSearchProvider,bO as getStartingCostPerSearchesProvider,dw as getTableDataAggregates,Hw as getTier,nT as getUnexpandedValue,Lx as ifDefined,z as inputFields,HT as inputFromRecord,VT as inputFromRecordArr,BT as inputFromRecords,Tw as inputGuards,on as isCatalogField,jt as isEmptyValue,an as isFieldName,Gw as isHighVolumeEligible,HO as isPipeAllowed,VO as isProviderAllowed,Oa as isRequirementMet,Aa as isRequirementSatisfiedByRecord,UO as isSearchAllowed,WO as isSearchesAllowed,Yr as joinConnectionString,Kw as listHighVolumeEligibleOperations,Ww as listTiers,za as markRecordFieldAsComplete,Ha as markRecordFieldAsFailed,Va as markRecordFieldAsNoResult,Ba as markRecordFieldAsPending,Wa as markRecordFieldAsProcessing,Ua as markRecordFieldAsSkipped,zO as matchesAny,RO as matchesPattern,Bx as mergeWidgets,T as noConnectorInput,Da as optional,w as optionalConnectorInput,fn as or,R as outputFields,Ar as parseLiquidTemplate,wr as parseOutputTagArgs,DT as parseRecordValueOrError,ek as parseRichText,XC as pipeCatalog,Mw as pipeCategoryCatalog,JC as pipeClassCatalog,YC 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,Iw as pipesSnippetCatalog,Zi as pipesTaggedOrderedMultiCreateInput,C as pipesTaggedTextInput,Ui as pipesTemplateInput,ra as pipesTextInput,ia as pipesTextareaInput,Z as placeholder,UT as processInputObjects,dr as providerCatalog,q as rateLimitRatioFallingProgression,Or as renderLiquidTemplate,kr as renderLiquidTemplateSync,Gi as requiredConnectorInput,Ra as requirementToInputFields,Uh as requirementUnmetMessage,ln as requiresConnection,un as requiresField,OC as searchCatalog,TO as searchCategoryCatalog,EC as searchClassCatalog,DC as searchPayloadSchemaCatalog,kO as searchSnippetCatalog,I as searchesAsyncIncludeExcludeSelectInput,F as searchesAsyncMultiSelectInput,$D as searchesCatalog,ZD 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,QD as searchesPayloadSchemaCatalog,ha as searchesRangeInput,xa as searchesSelectInput,ya as searchesTextInput,ba as searchesTextareaField,Gu as sortObjectKeys,ow as sortPipeCatalogByBasePipe,VC as sortSearchCatalogByBaseSearch,hO as sortSearchesCatalogByBaseSearch,Jr as splitConnectionString,h as staticAutocomplete,m as staticOptions,Wu as stringify,Uu as testPrint,Uw as tierAtOrBelow,AT as transformIntoResponse,lT as validatePipesOrError,PO as validateSearches,Q as validationErrorMessages};