@pipe0/base 0.5.7 → 0.5.8

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
@@ -72,7 +72,7 @@ How do you...`]}},crustdata_post_list:{label:`Crustdata Post list`,type:`json`,f
72
72
  …`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:L(r.object({[zv.name]:O({fieldName:zv.name})}))})}),Vv={"email-send-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Hv=class extends H{pipeId=Rv;payload;payloadSchema=Bv;billableOperations=Vv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(e){return J(e,`email-send-resend-v1-resend`)}getTemplatedFields(){return[this.payload.config.from,this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return Yc(this.getTemplatedFields())}getSecretRequirements(){return Xc(this.getTemplatedFields())}getConstantRequirements(){return Zc(this.getTemplatedFields())}getRawOutputFields(){return{[zv.name]:this.catalogOutput(zv)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Uv=Bv,Wv={pipeId:Rv,basePipe:G(Rv),label:`Send email with Resend`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Resend.`,guide:"Send an email via Resend. From, To, Reply-To, Subject and Body are templated config fields — reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Resend vault connection (call list_connections to find one).",tags:[W.EMAIL],keywords:[`outreach`,`message`,`mail`,`deliver`,`outbound`,`transactional`],docPath:K(Rv),billableOperations:Vv,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Rv,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},Gv=`email:validate:zerobounce@1`,Kv=g(`email`),qv=g(`zerobounce_validation_status`),Jv=g(`zerobounce_validation_match`),Yv=r.object({pipe_id:r.literal(Gv),connector:S(),run_if:x(),config:r.object({input_fields:R(r.object({[Kv.name]:T({fieldName:Kv.name})})),output_fields:L(r.object({[Jv.name]:O({fieldName:Jv.name}),[qv.name]:O({fieldName:qv.name})}))}).optional()}),Xv=e=>V(q(Kv,e)),Zv={"email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.4,level1:{credits:.3,weight:1},level2:{credits:.15,weight:6}},mode:`always`}},Qv=class extends H{pipeId=Gv;payload;payloadSchema=Yv;billableOperations=Zv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return J(e,`email-validate-zerobounce-v1-zerobounce`)}getInputRequirement(){return Xv(this.payload.config)}getRawOutputFields(){return{[qv.name]:this.catalogOutput(qv),[Jv.name]:this.catalogOutput(Jv)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},$v=Yv,ey={pipeId:Gv,basePipe:G(Gv),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[W.EMAIL],keywords:[`verify`,`verification`,`bounce`,`deliverability`,`check`,`clean`],docPath:K(Gv),billableOperations:Zv,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Xv(null),defaultPayload:{pipe_id:Gv,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},ty=`email:write@1`,ny=`email-write-v1`,ry=xo(ny),iy=g(`email_subject`),ay=g(`email_body`),oy=r.object({pipe_id:r.literal(ty),connector:S(),run_if:x(),config:r.object({template:fs({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:U(`prompt`),groupPath:`config.prompt`,required:!0}),model:Vs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:ry}),signature:zs({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:Bs({sectionKey:`general`,label:`Persona`,info:`Define the unique tone of your email`,path:`config.persona`,groupPath:`config.prompt`,required:!1,options:[{label:`Sales`,value:`sales`},{label:`Human Resources`,value:`human_resources`},{label:`Customer Success`,value:`customer_success`}]}),output_fields:L(r.object({[iy.name]:O({fieldName:iy.name}),[ay.name]:O({fieldName:ay.name})}))})}),sy=class extends H{pipeId=ty;payload;payloadSchema=oy;billableOperations=ry;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return mo(this.payload.config.model)}estimateBillableOperations(e){return Co(e,{model:this.payload.config.model,prefix:ny,inputTokens:600,outputTokens:800})}getInputRequirement(){return Yc([this.payload.config.template])}getSecretRequirements(){return Xc([this.payload.config.template])}getConstantRequirements(){return Zc([this.payload.config.template])}getRawOutputFields(){return{[iy.name]:this.catalogOutput(iy),[ay.name]:this.catalogOutput(ay)}}getConnectionsRequirements(){return ho(this.payload.config.model)}},cy=oy,ly={pipeId:ty,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:G(ty),label:`Email writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing emails.`,guide:`AI email composer. Outputs: email_subject, email_body. Pair with email:send:gmail@1 or email:send:resend@1 to send the composed email. Requires 'email' field in input records for the sender pipe.`,tags:[W.AI],keywords:[`ai`,`compose`,`draft`,`generate`,`copywriting`,`personalize`,`outreach`],docPath:K(ty),defaultInputRequirement:null,billableOperations:ry,allowedUserConnectionProviders:go(),managedProviders:go(),deprecatedProviders:[],defaultPayload:{pipe_id:ty,connector:null,run_if:null,config:{template:``,output_fields:{email_body:{alias:``,enabled:!0},email_subject:{alias:``,enabled:!0}},persona:`sales`,model:`openai-high`,signature:``}}},uy=`field:domainify@1`,dy=g(`url_input`),fy=g(`domain`),py=r.object({pipe_id:r.literal(uy),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[dy.name]:T({fieldName:dy.name})})),output_fields:L(r.object({[fy.name]:O({fieldName:fy.name})}))}).optional()}),my=e=>V(q(dy,e)),hy={"field-domainify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},gy=class extends H{pipeId=uy;payload;payloadSchema=py;billableOperations=hy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return my(this.payload.config)}getRawOutputFields(){return{[fy.name]:this.catalogOutput(fy)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},_y=py,vy={pipeId:uy,basePipe:G(uy),label:`Extract domain`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Transform URL input into a domain. Example: 'https://go.com' to 'go.com'.`,tags:[W.LOGIC,W.FIELDS],keywords:[`url`,`website`,`hostname`,`clean`,`strip`,`parse`],docPath:K(uy),billableOperations:hy,defaultInputRequirement:my(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:uy,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},yy=`field:slugify@1`,by=g(`string_input`),xy=g(`slugified`),Sy=r.object({pipe_id:r.literal(yy),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[by.name]:T({fieldName:by.name})})),output_fields:L(r.object({[xy.name]:O({fieldName:xy.name})}))}).optional()}),Cy=e=>V(q(by,e)),wy={"field-slugify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Ty=class extends H{pipeId=yy;payload;payloadSchema=Sy;billableOperations=wy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Cy(this.payload.config)}getRawOutputFields(){return{[xy.name]:this.catalogOutput(xy)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Ey=Sy,Dy={pipeId:yy,basePipe:G(yy),label:`Slugify field`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Strip a field value of characters not commonly found in slugs.`,tags:[W.LOGIC,W.FIELDS],keywords:[`clean`,`sanitize`,`normalize`,`url safe`,`format`,`strip`],docPath:K(yy),billableOperations:wy,defaultInputRequirement:Cy(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:yy,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function Oy({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function ky(e){switch(e.kind){case`field`:return Oy(e.field);case`optional`:return`[optional ${Oy(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?ky(e.of[0]):`(${e.of.map(ky).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?ky(e.of[0]):`(${e.of.map(ky).join(` OR `)})`}}function Ay(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})`}`:``}: ${ky(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var jy=class extends Error{constructor(e){super(`Request validation failed (${e.length} errors): ${e.join(`, `)}`),this.errors=e,this.name=`RequestValidationError`,Object.setPrototypeOf(this,new.target.prototype)}};const Z={ConditionTargetFieldNotFound:({fieldName:e,pipeId:t,pipeIdx:n})=>({code:`ConditionTargetFieldNotFound`,message:`${t} (idx: ${n}) has an invalid condition. Field '${e}' not found.`}),FaultyEnrichmentOrder:()=>({code:`FaultyEnrichmentOrder`,message:`Enrichment not found while ordering. Was the request invalid?`}),MustDefineAnnotations:()=>({code:`MustDefineAnnotations`,message:`Must define either input or field annoations to validate pipes payload.`}),CircularDependency:({currentPipe:e,circularPipe:t})=>({code:`CircularDependency`,message:`'${e.pipe_id}' (${e.idx}) and '${t.pipeId}' (${t.idx}) create a dependency loop. They both need the other's output to complete. Neither can complete. You can map the pipe outputs or input to fields with different names if you want the pipes to be independent or each other.`}),ValidationFailed:({error:e})=>({code:`ValidationFailed`,message:`Failed to validate task request: ${e instanceof Error?e.message:String(e)}`}),MissingCustomConnections:({pipeId:e,index:t,missingProviders:n})=>({code:`MissingCustomConnections`,message:`Pipe ${e} (index ${t}) requires you to specify custom connections for the providers ${n.join(`, `)}. Create the custom connections in the dashbard and reference them in your request.`}),ResponseGenerationFailed:({error:e})=>({code:`ResponseGenerationFailed`,message:`Failed to generate response: ${e instanceof Error?e.message:String(e)}`}),InputValuesMustHaveSameType:({pipeId:e,fieldNames:t})=>({code:`InputValuesMustHaveSameType`,message:`Pipe ${e} requires all input values to have the same type. But values ${t.join(`, `)} have different types.`}),NotValidated:()=>({code:`NotValidated`,message:`PipelineRequest must be validated before accessing results`}),MissingIdInInput:()=>({code:`MissingIdInInput`,message:`Inputs missing 'id' property.`}),InputDataTypeMismatch:({key:e,derivedInputFieldType:t,fieldType:n})=>({code:`InputDataTypeMismatch`,message:`Input data has values with matching keys '${e}' but different types. Expected type: '${t}'. Actual: '${n}'.`}),UnresolvableDependency:({index:e,dependencyIndex:t})=>({code:`UnresolvableDependency`,message:`Unresolvable dependency at index ${e} to ${t}`}),RequirementUnmet:({requirement:e,pipeId:t,index:n})=>({code:`RequirementUnmet`,message:Ay(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 ${Oy(t)} to pipeline because it already exists. Try renaming it.`}),ReservedOutputFieldName:({})=>({code:`ReservedOutputFieldName`,message:`'id' is reserved field name. Please rename your output field.`}),InputDataDoesNotMatchOutputField:({index:e,resolvedName:t,type:n,inputValueType:r})=>({code:`InputDataDoesNotMatchOutputField`,message:`Input at position ${e} provided data for field '${t}' that did not match expected type. Expected: '${n}', Actual: '${r}'.`}),AmbiguousDependency:({fieldName:e})=>({code:`AmbiguousDependency`,message:`Found more than one pipe that produces field: ${e}. Rename or disable the field to add it.`}),EmptyObjectProperty:()=>({code:`EmptyObjectProperty`,message:`Input data contains empty object property "". This is not allowed.`}),JSONSchemaMissing:({schemaRef:e,outputName:t})=>({code:`JSONSchemaMissing`,message:`Missing jsonSchema '${e}' for output with name '${t}'.`}),InvalidJSONSchema:({schemaRef:e})=>({code:`InvalidJSONSchema`,message:`JSON Schema (ref: ${e}) is invalid.`}),MissingOutputFieldDescription:({outputName:e})=>({code:`MissingOutputFieldDescription`,message:`The output field ${e} is missing a "description" property. Define it {{ ${e} description="Foo bar" }}`}),InvalidFormatTag:({outputName:e,format:t})=>({code:`InvalidFormatTag`,message:`The output field ${e} has an invalid format tag ${t}.`}),RecursiveExpandedValue:()=>({code:`RecursiveExpandedValue`,message:`Your input values contain a recursive expanded valuetype `})};var My=class extends Error{},Q=class extends My{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 Ny=`fields:merge@1`,Py=g(`merge_result`),Fy=r.object({pipe_id:r.literal(Ny),connector:C(),run_if:x(),config:r.object({merge_fields:Cs({sectionKey:`general`,groupPath:`config.general`,path:`config.merge_fields`,label:`Fields`,info:`Provide references to input fields`,minItems:2}),output_fields:L(r.object({[Py.name]:O({fieldName:Py.name})}))})}),Iy={"fields-merge-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Ly=class extends H{pipeId=Ny;payload;payloadSchema=Fy;billableOperations=Iy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`fields-merge-v1-pipe0`)}getInputRequirement(){let e=this.payload.config.merge_fields.map(e=>e.field_name),t;return Ic(...this.payload.config.merge_fields.map(n=>V({format:null,type:r=>{let i=qc(r,e)[n.field_name],a=i?.type?i.type:`unknown`;if(a!==`unknown`){if(t&&t!==a)throw new Q([Z.InputValuesMustHaveSameType({pipeId:this.pipeId,fieldNames:e})]);t=a}return i?.type?i.type:`unknown`},label:``,description:``,name:n.field_name,resolvedName:n.field_name})))}getRawOutputFields(){return{[Py.name]:this.catalogOutput(Py,{resolveType:e=>{let t=qc(e,this.payload.config.merge_fields.map(e=>e.field_name));return Object.values(t).find(e=>!!e.type)?.type||`string`}})}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Ry=Fy,zy={pipeId:Ny,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:G(Ny),label:`Merge fields`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Join multiple fields into one field. The final result will be the first defined field.`,tags:[W.FIELDS,W.LOGIC],keywords:[`combine`,`join`,`coalesce`,`fallback`,`concat`,`first defined`],docPath:K(Ny),defaultInputRequirement:null,billableOperations:Iy,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ny,connector:null,run_if:null,config:{merge_fields:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},By=`http:request@1`,Vy=g(`http_response_status`),Hy=g(`http_response_body`),Uy=g(`http_response_headers`),Wy=r.object({pipe_id:r.literal(By),connector:C(),run_if:x(),config:r.object({method:Bs({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:ps({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:Ms({sectionKey:`general`,groupPath:`config.general`,path:`config.query_params`,label:`Query parameters`,info:"Appended to the URL. In the value column, type `/` to insert a field or secret reference.",keyLabel:`Key`,valueLabel:`Value`,keyPlaceholder:`page`,valuePlaceholder:`1`,maxKeys:50}),body:ps({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Sent verbatim as the request body. Type `@` to insert a field reference or `$` to insert a secret reference. Set Content-Type via Headers.",placeholder:`{
73
73
  "key": "value"
74
74
  }`,inputType:`text`,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`text`,multiline:!0}).nullable(),headers:Ms({sectionKey:`general`,groupPath:`config.general`,path:`config.headers`,label:`Headers`,info:"In the value column, type `/` to insert a field or secret reference (e.g. `Bearer {{ secret … }}`).",keyLabel:`Header`,valueLabel:`Value`,keyPlaceholder:`Authorization`,valuePlaceholder:`Bearer {{ secret … }}`,maxKeys:50}),expected_response_schema:Gs({sectionKey:`general`,groupPath:`config.advanced`,path:`config.expected_response_schema`,label:`Expected response shape`,description:`Optional JSON Schema. Successful responses that don't satisfy it are marked failed. Extra properties are always tolerated (whitelist).`,allowEmpty:!0}).optional(),output_fields:L(r.object({[Vy.name]:O({fieldName:Vy.name}),[Hy.name]:O({fieldName:Hy.name}),[Uy.name]:O({fieldName:Uy.name})}))})}),Gy={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},Ky=class extends H{pipeId=By;payload;payloadSchema=Wy;billableOperations=Gy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`http-request-v1-pipe0`)}getTemplatedFields(){return[this.payload.config.url,this.payload.config.body,...Object.values(this.payload.config.query_params??{}),...Object.values(this.payload.config.headers??{})]}getInputRequirement(){return Yc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Xc(this.getTemplatedFields())}getConstantRequirements(){return Zc(this.getTemplatedFields())}getRawOutputFields(){return{[Vy.name]:this.catalogOutput(Vy),[Hy.name]:this.catalogOutput(Hy),[Uy.name]:this.catalogOutput(Uy)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},qy=Wy,Jy={pipeId:By,basePipe:G(By),label:`HTTP request`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Make a generic GET/POST/PUT/PATCH/DELETE HTTP request and capture the JSON response. Optionally validate the response against a JSON schema.`,tags:[W.LOGIC,W.JSON,W.NEW],keywords:[`api`,`rest`,`webhook`,`fetch`,`get`,`post`,`endpoint`,`curl`],docPath:K(By),billableOperations:Gy,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:By,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}}}}},Yy=`json:extract:multi@1`,Xy=r.object({pipe_id:r.literal(Yy),run_if:x(),connector:C(),config:r.object({json_extraction:Io()})}),Zy={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Qy=class extends H{pipeId=Yy;payload;payloadSchema=Xy;billableOperations=Zy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`json-extract-multi-v1-pipe0`)}getInputRequirement(){return V({description:``,name:this.payload.config.json_extraction.field_name,format:null,label:``,type:`json`,resolvedName:this.payload.config.json_extraction.field_name})}getRawOutputFields(){let e={};for(let t of this.payload.config.json_extraction.extractions)e[t.output_field.name||t.output_field.name]={description:`Extracted value from JSON input field ${this.payload.config.json_extraction.field_name}.`,enabled:!0,format:t.output_field.format||null,label:t.output_field.label||`Extract JSON`,name:t.output_field.name,resolvedName:t.output_field.name,jsonMeta:null,type:t.output_field.type,isCatalogFIeld:!1,isPrimaryOutput:!1};return e}getConnectionsRequirements(){return[]}},$y=Xy,eb={pipeId:Yy,basePipe:G(Yy),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,guide:'Deterministic JSON extraction — PREFER this over prompt:run@1 whenever you need a value out of a JSON / known-schema column (no LLM, reproducible, schedulable). config.json_extraction.field_name is the source json column; each extraction has a JSONata `path` plus an output_field. Read the source column\'s JSON schema (get_pipe_schema / get_search_schema output fields, or get_sheet_schema) to author the path. Examples over a profile\'s employment_history array: `employment_history[is_current_employer=true][]` (array of current jobs → output_field.type "json"); `employment_history[is_primary_current_employer=true].company_domain` (scalar → output_field.type "string"). Set output_field.type to "json" for an object/array result, "string" for a scalar. CRITICAL for a list you will fan out (e.g. into row:expandappend:sheet@1): a JSONata filter returns the matched ELEMENT when exactly one row matches but an ARRAY when several do — so ALWAYS append the array constructor `[]` to force a consistent array in every row (`employment_history[is_current_employer=true][]`, not `...=true]`). Without it the column is an object in single-match rows and an array in others, and the downstream expand rejects the object rows. To confirm a NEW path resolves the shape you expect before running anything downstream, switch the sheet to SANDBOX (env:change@1) and run just this extraction — it runs for REAL in sandbox (no writes, no spend), so you can read the actual result, fix the path, then switch back to production.',docPath:K(Yy),tags:[W.JSON],keywords:[`parse`,`pick`,`path`,`nested`,`property`,`jsonata`,`unpack`],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:Zy,defaultInputRequirement:null,defaultPayload:{pipe_id:Yy,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},tb=`lead:enroll:lemlist@1`,nb={"lead-enroll-lemlist-v1-lemlist":{allowManagedConnection:!1,provider:`lemlist`,credits:null,mode:null}},rb=g(`email`),ib=g(`name`),ab=g(`first_name`),ob=g(`last_name`),sb=g(`company_name`),cb=g(`job_title`),lb=g(`profile_url`),ub=g(`phone`),db=g(`lemlist_lead_id`),fb=g(`lemlist_enrollment_result`),pb=new Set([`email`,`firstName`,`lastName`,`name`,`companyName`,`jobTitle`,`linkedinUrl`,`phone`,`companyDomain`,`icebreaker`,`picture`]),mb=[{label:`Demo · Q3 Outbound`,value:`cam_sandbox_1`},{label:`Demo · Founder Intros`,value:`cam_sandbox_2`}],hb={requires:{connection:`lemlist`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return mb;if(!t)throw new Id.MissingSecretError({providerName:`lemlist`});let r=await fetch(`https://api.lemlist.com/api/campaigns?limit=100`,{headers:{Authorization:`Basic ${t}`}});if(!r.ok){let e=await r.text();throw new Id.HttpError({msg:e})}let i=await r.json(),a=(Array.isArray(i)?i:i.campaigns??[]).map(e=>({label:e.name,value:e._id}));return e?a.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):a},widgets:{provider_logo:{provider:`lemlist`}}};function gb(e){let t=new Set,n=new Set;try{let r=Ta(e);for(let[e,i]of Object.entries(r.inputs))(i.required?t:n).add(e)}catch{for(let n of e.matchAll(/\{\{\s*([A-Za-z_][A-Za-z0-9_]*)/g))t.add(n[1])}return{required:[...t],optional:[...n]}}const _b=r.object({pipe_id:r.literal(tb),connector:hs(),run_if:x(),config:r.object({campaign_id:Ks({sectionKey:`general`,required:!0,label:`Campaign`,groupPath:`config.general`,path:`config.campaign_id`,info:`The lemlist campaign to enroll the lead into.`,enabledIf:no(`lemlist`),optionsDef:hb}),input_fields:R(r.object({[rb.name]:T({fieldName:rb.name}),[ib.name]:T({fieldName:ib.name}),[ab.name]:T({fieldName:ab.name}),[ob.name]:T({fieldName:ob.name}),[sb.name]:T({fieldName:sb.name}),[cb.name]:T({fieldName:cb.name}),[lb.name]:T({fieldName:lb.name}),[ub.name]:T({fieldName:ub.name})})),custom_variables:Ms({sectionKey:`general`,groupPath:`config.general`,path:`config.custom_variables`,label:`Custom variables`,info:"lemlist custom variables, set on the lead after enrollment. The Variable name must match what your sequence references (e.g. `{{ painPoint }}`) — case-sensitive, no spaces. In the Value column, type `/` to insert a field or secret; leave a Value empty to skip that row. Standard fields (company, job title, LinkedIn, phone) are set via the fields above, not here.",keyLabel:`Variable`,valueLabel:`Value`,keyPlaceholder:`painPoint`,valuePlaceholder:`{{ pain_point }}`,maxKeys:50}),output_fields:L(r.object({[db.name]:O({fieldName:db.name}),[fb.name]:O({fieldName:fb.name})}))}).check(e=>{let t=e.value;for(let n of Object.keys(t.custom_variables??{})){let t=n.trim();if(!t)continue;let r=t=>e.issues.push({code:`custom`,input:n,message:t,path:[`custom_variables`,n]});if(t.includes(`{{`)){r("Variable name must be a literal (no `{{ }}` templating).");continue}if(!/^[A-Za-z_][A-Za-z0-9_]*$/.test(t)){r(`Invalid lemlist variable name "${t}" — use letters, digits, and underscores; no spaces.`);continue}pb.has(t)&&r(`"${t}" is a standard lemlist field — set it via the dedicated field above, not as a custom variable.`)}})}),vb=e=>Fc(V(q(rb,e)),Ic(V(q(ib,e)),Fc(V(q(ab,e)),V(q(ob,e)))),Lc(q(sb,e)),Lc(q(cb,e)),Lc(q(lb,e)),Lc(q(ub,e))),yb=e=>{let t=new Set;for(let n of e)if(n)try{let e=Ta(n);for(let n of Object.keys(e.inputs))t.add(n)}catch{}return[...t].map(e=>Lc({name:e,resolvedName:e,label:e,description:``,type:t=>Jc(t,e)?.type||`string`,format:`text`}))},bb=class extends H{pipeId=tb;payload;payloadSchema=_b;billableOperations=nb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`lemlist`]}estimateBillableOperations(e){return J(e,`lead-enroll-lemlist-v1-lemlist`)}getCustomVariableValueTemplates(){return Object.values(this.payload.config.custom_variables??{})}getInputRequirement(){return Fc(vb(this.payload.config),...yb(this.getCustomVariableValueTemplates()))}getSecretRequirements(){return Xc(this.getCustomVariableValueTemplates())}getConstantRequirements(){return Zc(this.getCustomVariableValueTemplates())}getRawOutputFields(){return{[db.name]:this.catalogOutput(db),[fb.name]:this.catalogOutput(fb)}}getConnectionsRequirements(){return[{provider:`lemlist`,rateLimitRatio:1,rateLimitOperation:`lemlist_create_lead`,allowManagedConnection:!1}]}async getAgentContext({connectionSecrets:e,environment:t}){let n=this.payload.config.campaign_id,r=Array.isArray(n)?n[0]:n;if(!r)return null;if(t===`sandbox`)return{summary:`Sandbox: this sequence references custom variables painPoint and eventLink — set each via config.custom_variables.`,data:{required_custom_variables:[`painPoint`,`eventLink`],used_standard_fields:[`firstName`]}};let i=e.lemlist;if(!i)throw new Id.MissingSecretError({providerName:`lemlist`});let a=await fetch(`https://api.lemlist.com/api/campaigns/${encodeURIComponent(r)}/sequences`,{headers:{Authorization:`Basic ${i}`},signal:AbortSignal.timeout(1e4)});if(!a.ok){let e=await a.text();throw new Id.HttpError({msg:e})}let o=await a.json(),s=new Set;for(let e of Object.values(o??{}))for(let t of e?.steps??[])for(let e of[t?.subject,t?.message]){if(!e)continue;let{required:t,optional:n}=gb(e);for(let e of[...t,...n])s.add(e)}let c=[...s].filter(e=>pb.has(e)),l=[...s].filter(e=>!pb.has(e));return{summary:l.length===0?`This sequence uses only standard lemlist fields — no custom variables to set.`:`This sequence requires these custom variables — set each via config.custom_variables (the value is a Liquid template over your sheet columns, e.g. {{ pain_point }}): ${l.join(`, `)}. Standard fields (email, firstName, …) are populated by the input fields above, not here.`,data:{required_custom_variables:l,used_standard_fields:c}}}},xb=_b,Sb={pipeId:tb,basePipe:G(tb),label:`Enroll Lead in Campaign`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Add a lead to a lemlist campaign sequence, with custom variables.`,tags:[W.EMAIL],keywords:[`sequence`,`outreach`,`add`,`subscribe`,`outbound`,`email marketing`],docPath:K(tb),billableOperations:nb,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`lemlist`],defaultInputRequirement:vb(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:tb,connector:{strategy:`first`,connections:[]},run_if:null,config:{campaign_id:``,input_fields:{email:{alias:``},name:{alias:``},first_name:{alias:``},last_name:{alias:``},company_name:{alias:``},job_title:{alias:``},profile_url:{alias:``},phone:{alias:``}},custom_variables:{},output_fields:{lemlist_lead_id:{alias:``,enabled:!0},lemlist_enrollment_result:{alias:``,enabled:!1}}}}},Cb=`message:send:slack@1`,wb=g(`slack_message_success`),Tb=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],Eb=r.object({pipe_id:r.literal(Cb),connector:hs(),run_if:x(),config:r.object({channel_id:ps({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 Tb;if(!t)throw new Id.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 Id.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new Id.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:ps({sectionKey:`general`,groupPath:`config.general`,path:`config.message`,label:`Message`,info:"The message body. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ name }}, …`,inputType:`text`,minLength:1,maxLength:4e4,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:L(r.object({[wb.name]:O({fieldName:wb.name})}))})}),Db={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},Ob=class extends H{pipeId=Cb;payload;payloadSchema=Eb;billableOperations=Db;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(e){return J(e,`message-send-slack-v1-slack`)}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return Yc(this.getTemplatedFields())}getSecretRequirements(){return Xc(this.getTemplatedFields())}getConstantRequirements(){return Zc(this.getTemplatedFields())}getRawOutputFields(){return{[wb.name]:this.catalogOutput(wb)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},kb=Eb,Ab={pipeId:Cb,basePipe:G(Cb),label:`Send message into channel`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send a Slack message to a channel.`,guide:"Send a Slack message. The channel ID and message body are templated config fields — reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Slack vault connection (call list_connections to find one).",tags:[W.CHAT],keywords:[`notify`,`notification`,`alert`,`post`,`chat`],docPath:K(Cb),billableOperations:Db,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:Cb,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},jb=`message:write@1`,Mb=g(`message`),Nb=`message-write-v1`,Pb=xo(Nb),Fb=r.object({pipe_id:r.literal(jb),connector:S(),run_if:x(),config:r.object({template:fs({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:U(`prompt`),groupPath:`config.prompt`,required:!0}),model:Vs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Pb}),output_fields:L(r.object({[Mb.name]:O({fieldName:Mb.name})}))})}),Ib=class extends H{pipeId=jb;payload;payloadSchema=Fb;billableOperations=Pb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return mo(this.payload.config.model)}estimateBillableOperations(e){return Co(e,{model:this.payload.config.model,prefix:Nb,inputTokens:600,outputTokens:800})}getInputRequirement(){return Yc([this.payload.config.template])}getSecretRequirements(){return Xc([this.payload.config.template])}getConstantRequirements(){return Zc([this.payload.config.template])}getRawOutputFields(){return{[Mb.name]:this.catalogOutput(Mb)}}getConnectionsRequirements(){return ho(this.payload.config.model)}},Lb=Fb,Rb={pipeId:jb,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:G(jb),label:`Message writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing messages for modern workplace communication platforms (Slack, Teams, Discord, etc.)`,guide:`AI message composer for Slack/Teams/Discord. Outputs: message. Pair with message:send:slack@1 to send.`,tags:[W.AI],keywords:[`ai`,`compose`,`draft`,`copywriting`,`outreach`,`slack`,`teams`],docPath:K(jb),defaultInputRequirement:null,billableOperations:Pb,allowedUserConnectionProviders:go(),managedProviders:go(),deprecatedProviders:[],defaultPayload:{pipe_id:jb,connector:null,run_if:null,config:{model:`openai-high`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},zb=`person:devprofileurl:profileurl:waterfall@1`,Bb=g(`profile_url`),Vb=g(`developer_profile_url`),Hb=g(`alternative_developer_profile_urls`),Ub=[`crustdata`],Wb=[{provider:`crustdata`}],Gb=r.object({pipe_id:r.literal(zb),run_if:x(),connector:S(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Wb,availableProviders:Ub}),input_fields:R(r.object({[Bb.name]:T({fieldName:Bb.name})})),output_fields:L(r.object({[Vb.name]:O({fieldName:Vb.name}),[Hb.name]:O({fieldName:Hb.name})}))}).optional()}),Kb=e=>V(q(Bb,e)),qb={"person-devprofileurl-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1.3,weight:1}},mode:`onSuccess`}},Jb=class extends H{pipeId=zb;payload;payloadSchema=Gb;billableOperations=qb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Kb(this.payload.config)}getRawOutputFields(){return{[Vb.name]:this.catalogOutput(Vb,{isPrimaryOutput:!0}),[Hb.name]:this.catalogOutput(Hb,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Yb=Gb,Xb={pipeId:zb,basePipe:G(zb),label:`GitHub profile from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a developer profile URL (e.g. GitHub) for any prospect using multiple data providers in a waterfall motion.`,docPath:K(zb),tags:[W.LINKEDIN,W.WATERFALL,W.NEW],keywords:[`developer`,`dev`,`engineer`,`coder`,`git`],billableOperations:qb,defaultInputRequirement:Kb(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Ub,allowedUserConnectionProviders:Ub,deprecatedProviders:[],defaultPayload:{pipe_id:zb,connector:null,run_if:null,config:{providers:Wb,input_fields:{profile_url:{alias:``}},output_fields:{developer_profile_url:{alias:``,enabled:!0},alternative_developer_profile_urls:{alias:``,enabled:!1}}}}},Zb=`person:email:validate:millionverifier@1`,Qb=g(`email`),$b=g(`email_validation_status`),ex=g(`million_validation_match`),tx=r.object({pipe_id:r.literal(Zb),connector:S(),run_if:x(),config:r.object({input_fields:R(r.object({[Qb.name]:T({fieldName:Qb.name})})),output_fields:L(r.object({[$b.name]:O({fieldName:$b.name}),[ex.name]:O({fieldName:ex.name})}))}).optional()}),nx=e=>V(q(Qb,e)),rx={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},ix=class extends H{pipeId=Zb;payload;payloadSchema=tx;billableOperations=rx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(e){return J(e,`person-email-validate-millionverifier-v1-millionverifier`)}getInputRequirement(){return nx(this.payload.config)}getRawOutputFields(){return{[$b.name]:this.catalogOutput($b),[ex.name]:this.catalogOutput(ex)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},ax=tx,ox={pipeId:Zb,basePipe:G(Zb),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[W.EMAIL],keywords:[`verify`,`verification`,`deliverability`,`bounce`,`check`,`clean`],docPath:K(Zb),billableOperations:rx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:nx(null),defaultPayload:{pipe_id:Zb,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},sx=g(`email`),cx=g(`amplemarket_person_match`),lx=`person:identity:amplemarket@1`,ux=r.object({pipe_id:r.literal(lx),run_if:x(),connector:S(),config:r.object({input_fields:R(r.object({[sx.name]:T({fieldName:sx.name})})),output_fields:L(r.object({[cx.name]:O({fieldName:cx.name})}))}).optional()}),dx=e=>V(q(sx,e)),fx={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},px=class extends H{pipeId=lx;payload;payloadSchema=ux;billableOperations=fx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return dx(this.payload.config)}getRawOutputFields(){return{[cx.name]:this.catalogOutput(cx)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},mx=ux,hx={pipeId:lx,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(lx),label:`Person identity`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their email`,tags:[W.PEOPLE_PROFILES],keywords:[`enrich`,`enrichment`,`reverse lookup`,`contact`,`profile`],docPath:K(lx),billableOperations:fx,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:dx(null),defaultPayload:{pipe_id:lx,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},gx=`person:identity:email:waterfall@1`,_x=g(`email`),vx=g(`company_domain`),yx=g(`name`),bx=g(`job_title`),xx=g(`profile_url`),Sx=g(`company_profile_url`),Cx=g(`company_name`),wx=[`findymail`,`hunter`,`crustdata`],Tx=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],Ex=r.object({pipe_id:r.literal(gx),connector:S(),run_if:x(),config:r.object({providers:E({availableProviders:wx,defaultProviders:Tx,sectionKey:`general`}),input_fields:R(r.object({[_x.name]:T({fieldName:_x.name})})),output_fields:L(r.object({[yx.name]:O({fieldName:yx.name}),[xx.name]:O({fieldName:xx.name}),[bx.name]:O({fieldName:bx.name}),[vx.name]:O({fieldName:vx.name}),[Cx.name]:O({fieldName:Cx.name}),[Sx.name]:O({fieldName:Sx.name})}))}).optional()}),Dx=e=>V(q(_x,e)),Ox={"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`}},kx=class extends H{pipeId=gx;payload;payloadSchema=Ex;billableOperations=Ox;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Dx(this.payload.config)}getRawOutputFields(){return{[yx.name]:this.catalogOutput(yx,{isPrimaryOutput:!0}),[xx.name]:this.catalogOutput(xx,{isPrimaryOutput:!0}),[bx.name]:this.catalogOutput(bx,{isPrimaryOutput:!0}),[Cx.name]:this.catalogOutput(Cx,{isPrimaryOutput:!0}),[Sx.name]:this.catalogOutput(Sx,{isPrimaryOutput:!0}),[vx.name]:this.catalogOutput(vx,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Ax=Ex,jx={pipeId:gx,basePipe:G(gx),label:`Person identity from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find identity of a person from their email address.`,tags:[W.EMAIL,W.PEOPLE_PROFILES],keywords:[`enrich`,`enrichment`,`reverse lookup`,`contact`,`profile`],docPath:K(gx),managedProviders:wx,deprecatedProviders:[],allowedUserConnectionProviders:wx,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Ox,defaultInputRequirement:Dx(null),defaultPayload:{pipe_id:gx,connector:null,run_if:null,config:{providers:Tx,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}}}}},Mx=g(`profile_url`),Nx=g(`amplemarket_person_match`),Px=`person:match:amplemarket@1`,Fx=r.object({pipe_id:r.literal(Px),run_if:x(),connector:S(),config:r.object({input_fields:R(r.object({[Mx.name]:T({fieldName:Mx.name})})),output_fields:L(r.object({[Nx.name]:O({fieldName:Nx.name})}))}).optional()}),Ix=e=>V(q(Mx,e)),Lx={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},Rx=class extends H{pipeId=Px;payload;payloadSchema=Fx;billableOperations=Lx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return Ix(this.payload.config)}getRawOutputFields(){return{[Nx.name]:this.catalogOutput(Nx)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},zx=Fx,Bx={pipeId:Px,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Px),label:`Person match`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their LinkedIn profile URL.`,tags:[W.PEOPLE_PROFILES],keywords:[`enrich`,`enrichment`,`linkedin`,`profile`,`lookup`,`contact`],docPath:K(Px),billableOperations:Lx,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:Ix(null),defaultPayload:{pipe_id:Px,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},Vx=`person:match:role:waterfall@1`,Hx=g(`company_domain`),Ux=g(`role_finder_match`),Wx=[`leadmagic`],Gx=[{provider:`leadmagic`}],Kx=r.object({pipe_id:r.literal(Vx),run_if:x(),connector:S(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Gx,availableProviders:Wx}),roles:js({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1,suggestionsDef:h(`titles`),expectedTagType:`string`}),input_fields:R(r.object({[Hx.name]:T({fieldName:Hx.name})})),output_fields:L(r.object({[Ux.name]:O({fieldName:Ux.name})}))})}),qx=e=>Ic(q(Hx,e)),Jx={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Yx=class extends H{pipeId=Vx;payload;payloadSchema=Kx;billableOperations=Jx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return qx(this.payload.config)}getSecretRequirements(){return Xc(this.payload.config?.roles??[])}getConstantRequirements(){return Zc(this.payload.config?.roles??[])}getRawOutputFields(){return{[Ux.name]:this.catalogOutput(Ux,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Xx=Kx,Zx={pipeId:Vx,basePipe:G(Vx),managedProviders:Wx,deprecatedProviders:[],allowedUserConnectionProviders:Wx,label:`Role finder`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[W.PEOPLE_PROFILES],keywords:[`job title`,`title`,`ceo`,`executive`,`decision maker`,`employee`],docPath:K(Vx),billableOperations:Jx,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:qx(null),defaultPayload:{pipe_id:Vx,run_if:null,connector:null,config:{roles:[],providers:Gx,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},Qx=`person:mobile:profileurl:waterfall@1`,$x=g(`profile_url`),eS=g(`mobile`),tS=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],nS=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],rS=r.object({pipe_id:r.literal(Qx),run_if:x(),connector:S(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:nS,availableProviders:tS}),input_fields:R(r.object({[$x.name]:T({fieldName:$x.name})})),output_fields:L(r.object({[eS.name]:O({fieldName:eS.name})}))}).optional()}),iS=e=>V(q($x,e)),aS={"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`}},oS=class extends H{pipeId=Qx;payload;payloadSchema=rS;billableOperations=aS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return iS(this.payload.config)}getRawOutputFields(){return{[eS.name]:this.catalogOutput(eS,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`,findymail:`findymail_phone_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},sS=rS,cS={pipeId:Qx,basePipe:G(Qx),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:K(Qx),tags:[W.PHONE,W.WATERFALL],keywords:[`phone`,`phone number`,`cell`,`direct dial`],billableOperations:aS,defaultInputRequirement:iS(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:tS,allowedUserConnectionProviders:tS,deprecatedProviders:[],defaultPayload:{pipe_id:Qx,connector:null,run_if:null,config:{providers:nS,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},lS=`person:mobile:workemail:waterfall@1`,uS=g(`work_email`),dS=g(`mobile`),fS=[`leadmagic`,`amplemarket`],pS=[{provider:`leadmagic`},{provider:`amplemarket`}],mS=r.object({pipe_id:r.literal(lS),run_if:x(),connector:S(),config:r.object({providers:E({sectionKey:`general`,availableProviders:fS,defaultProviders:pS}),input_fields:R(r.object({[uS.name]:T({fieldName:uS.name})})),output_fields:L(r.object({[dS.name]:O({fieldName:dS.name})}))}).optional()}),hS=e=>V(q(uS,e)),gS={"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`}},_S=class extends H{pipeId=lS;payload;payloadSchema=mS;billableOperations=gS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return hS(this.payload.config)}getRawOutputFields(){return{[dS.name]:this.catalogOutput(dS,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},vS=mS,yS={pipeId:lS,basePipe:G(lS),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for a prospect.`,tags:[W.PHONE,W.WATERFALL],keywords:[`phone`,`phone number`,`cell`,`direct dial`],docPath:K(lS),billableOperations:gS,defaultInputRequirement:hS(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:fS,managedProviders:fS,deprecatedProviders:[],defaultPayload:{pipe_id:lS,connector:null,run_if:null,config:{providers:pS,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},bS=`person:name:join@1`,xS=g(`first_name`),SS=g(`last_name`),CS=g(`name`),wS=r.object({pipe_id:r.literal(bS),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[xS.name]:T({fieldName:xS.name}),[SS.name]:T({fieldName:SS.name})})),output_fields:L(r.object({[CS.name]:O({fieldName:CS.name})}))}).optional()}),TS=e=>Fc(q(xS,e),q(SS,e)),ES={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},DS=class extends H{pipeId=bS;payload;payloadSchema=wS;billableOperations=ES;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`person-name-join-v1-pipe0`)}getInputRequirement(){return TS(this.payload.config)}getRawOutputFields(){return{[CS.name]:this.catalogOutput(CS)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},OS=wS,kS={pipeId:bS,basePipe:G(bS),label:`Join name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Combine the first and last names of a prospect into a full name field.`,tags:[W.NAMES],keywords:[`combine`,`concatenate`,`merge`,`first`,`last`,`full`],docPath:K(bS),billableOperations:ES,defaultInputRequirement:TS(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:bS,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},AS=`person:name:split@1`,jS=g(`name`),MS=g(`first_name`),NS=g(`last_name`),PS=r.object({pipe_id:r.literal(AS),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[jS.name]:T({fieldName:jS.name})})),output_fields:L(r.object({[MS.name]:O({fieldName:MS.name}),[NS.name]:O({fieldName:NS.name})}))}).optional()}),FS=e=>V(q(jS,e)),IS={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},LS=class extends H{pipeId=AS;payload;payloadSchema=PS;billableOperations=IS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`person-name-split-v1-pipe0`)}getInputRequirement(){return FS(this.payload.config)}getRawOutputFields(){return{[MS.name]:this.catalogOutput(MS),[NS.name]:this.catalogOutput(NS)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},RS=PS,zS={pipeId:AS,basePipe:G(AS),label:`Split name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Split a full name into first and last name.`,tags:[W.NAMES],keywords:[`parse`,`separate`,`first`,`last`,`full`],docPath:K(AS),billableOperations:IS,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:FS(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:AS,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},BS=`person:personalemail:profileurl:waterfall@1`,VS=g(`profile_url`),HS=g(`personal_email`),US=g(`alternate_personal_emails`),WS=[`leadmagic`,`mixrank`],GS=[{provider:`leadmagic`},{provider:`mixrank`}],KS=r.object({pipe_id:r.literal(BS),run_if:x(),connector:S(),config:r.object({providers:E({sectionKey:`general`,availableProviders:WS,defaultProviders:GS}),input_fields:R(r.object({[VS.name]:T({fieldName:VS.name})})),output_fields:L(r.object({[HS.name]:O({fieldName:HS.name}),[US.name]:O({fieldName:US.name})}))}).optional()}),qS=e=>V(q(VS,e)),JS={"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`}},YS=class extends H{pipeId=BS;payload;payloadSchema=KS;billableOperations=JS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return qS(this.payload.config)}getRawOutputFields(){return{[HS.name]:this.catalogOutput(HS,{isPrimaryOutput:!0}),[US.name]:this.catalogOutput(US)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},XS=KS,ZS={pipeId:BS,basePipe:G(BS),allowedUserConnectionProviders:WS,managedProviders:WS,deprecatedProviders:[],label:`Personal email from LinkedIn`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[W.EMAIL,W.PERSONAL_EMAIL],keywords:[`gmail`,`private`,`consumer`,`contact`],docPath:K(BS),billableOperations:JS,defaultInputRequirement:qS(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:BS,connector:null,run_if:null,config:{providers:GS,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},QS=g(`profile_url`),$S=g(`post_list_string`),eC=g(`crustdata_post_list`),tC=`person:posts:content:crustdata@1`,nC=r.object({pipe_id:r.literal(tC),run_if:x(),connector:S(),config:r.object({limit:Us({path:`config.limit`,groupPath:`config.general`,max:100,min:1,sectionKey:`general`,info:``,label:`Limit`,legend:`Max. 100`}),input_fields:R(r.object({[QS.name]:T({fieldName:QS.name})})),output_fields:L(r.object({[$S.name]:O({fieldName:$S.name}),[eC.name]:O({fieldName:eC.name})}))}).optional()}),rC=e=>V(q(QS,e)),iC={"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`}},aC=class extends H{pipeId=tC;payload;payloadSchema=nC;billableOperations=iC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`person-posts-crustdata-v1-crustdata`)}getInputRequirement(){return rC(this.payload.config)}getRawOutputFields(){return{[$S.name]:this.catalogOutput($S),[eC.name]:this.catalogOutput(eC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},oC=nC,sC={pipeId:tC,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(tC),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[W.LINKEDIN],keywords:[`activity`,`content`,`social`,`updates`,`engagement`,`feed`],docPath:K(tC),billableOperations:iC,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:rC(null),defaultPayload:{pipe_id:tC,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}}}}},cC=`person:profile:waterfall@1`,lC=g(`profile`),uC=g(`profile_url`),dC=[`prospeo`,`icypeas`,`amplemarket`],fC=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],pC=r.object({pipe_id:r.literal(cC),run_if:x(),connector:S(),config:r.object({providers:E({sectionKey:`general`,availableProviders:dC,defaultProviders:fC}),input_fields:R(r.object({[uC.name]:T({fieldName:uC.name})})),output_fields:L(r.object({[lC.name]:O({fieldName:lC.name})}))}).optional()}),mC=e=>V(q(uC,e)),hC={"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}},gC=class extends H{pipeId=cC;payload;payloadSchema=pC;billableOperations=hC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return mC(this.payload.config)}getRawOutputFields(){return{[lC.name]:this.catalogOutput(lC,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},_C=pC,vC={pipeId:cC,basePipe:G(cC),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:K(cC),tags:[W.LINKEDIN,W.WATERFALL],keywords:[`enrich`,`enrichment`,`json`,`scrape`,`bio`,`experience`],managedProviders:dC,deprecatedProviders:[],allowedUserConnectionProviders:dC,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:hC,defaultInputRequirement:mC(null),defaultPayload:{pipe_id:cC,run_if:null,connector:null,config:{providers:fC,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},yC=g(`work_email`),bC=g(`crustdata_person_match`),xC=g(`crustdata_profile_match_score`),SC=`person:profile:workemail:crustdata@1`,CC=r.object({pipe_id:r.literal(SC),run_if:x(),connector:S(),config:r.object({input_fields:R(r.object({[yC.name]:T({fieldName:yC.name})})),output_fields:L(r.object({[bC.name]:O({fieldName:bC.name}),[xC.name]:O({fieldName:xC.name})}))}).optional()}),wC=e=>V(q(yC,e)),TC={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},EC=class extends H{pipeId=SC;payload;payloadSchema=CC;billableOperations=TC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`person-profile-workemail-crustdata-v1-crustdata`)}getInputRequirement(){return wC(this.payload.config)}getRawOutputFields(){return{[bC.name]:this.catalogOutput(bC),[xC.name]:this.catalogOutput(xC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},DC=CC,OC={pipeId:SC,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(SC),label:`Profile from work email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find person profile by their work email address.`,tags:[W.EMAIL,W.PEOPLE_PROFILES],keywords:[`enrich`,`enrichment`,`reverse lookup`,`linkedin`,`person`],docPath:K(SC),billableOperations:TC,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:wC(null),defaultPayload:{pipe_id:SC,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}}}}},kC=`person:profileurl:email:waterfall@1`,AC=g(`email`),jC=g(`work_email`),MC=g(`profile_url`),NC=[`leadmagic`],PC=[{provider:`leadmagic`}],FC=r.object({pipe_id:r.literal(kC),run_if:x(),connector:S(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:PC,availableProviders:NC}),input_fields:R(r.object({[AC.name]:T({fieldName:AC.name}),[jC.name]:T({fieldName:jC.name})})),output_fields:L(r.object({[MC.name]:O({fieldName:MC.name})}))}).optional()}),IC=e=>Ic(q(AC,e),q(jC,e)),LC={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},RC=class extends H{pipeId=kC;payload;payloadSchema=FC;billableOperations=LC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return IC(this.payload.config)}getRawOutputFields(){return{[MC.name]:this.catalogOutput(MC,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},zC=FC,BC={pipeId:kC,basePipe:G(kC),managedProviders:NC,deprecatedProviders:[],allowedUserConnectionProviders:NC,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[W.LINKEDIN],keywords:[`profile`,`reverse lookup`,`social`,`person`],docPath:K(kC),billableOperations:LC,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:IC(null),defaultPayload:{pipe_id:kC,run_if:null,connector:null,config:{providers:PC,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},VC=`person:profileurl:name@1`,HC=g(`name`),UC=g(`company_name`),WC=g(`location_hint`),GC=g(`profile_url`),KC=r.object({pipe_id:r.literal(VC),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[HC.name]:T({fieldName:HC.name}),[UC.name]:T({fieldName:UC.name}),[WC.name]:T({fieldName:WC.name})})),output_fields:L(r.object({[GC.name]:O({fieldName:GC.name})}))}).optional()}),qC=e=>Fc(V(q(HC,e)),V(q(UC,e)),Lc(q(WC,e))),JC={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},YC=class extends H{pipeId=VC;payload;payloadSchema=KC;billableOperations=JC;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`person-profileurl-name-v1-pipe0`)}getInputRequirement(){return qC(this.payload.config)}getRawOutputFields(){return{[GC.name]:this.catalogOutput(GC)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},XC=KC,ZC={pipeId:VC,basePipe:G(VC),label:`LinkedIn URL from name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],description:`Find the LinkedIn profile URL by using the prospect's name as input.`,docPath:K(VC),tags:[W.LINKEDIN],keywords:[`profile`,`social`,`lookup`,`person`],billableOperations:JC,defaultInputRequirement:qC(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:VC,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},QC=`person:workemail:profileurl:waterfall@1`,$C=g(`profile_url`),ew=g(`work_email`),tw=g(`email_validation_status`),nw=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],rw=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],iw=r.object({pipe_id:r.literal(QC),connector:S(),run_if:x(),config:r.object({providers:E({availableProviders:nw,defaultProviders:rw,sectionKey:`general`}),allow_catch_all_emails:D({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:D({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Higher chance of bouncing or being marked as spam.`,label:`Allow risky emails`}),input_fields:R(r.object({[$C.name]:T({fieldName:$C.name})})),output_fields:L(r.object({[ew.name]:O({fieldName:ew.name}),[tw.name]:O({fieldName:tw.name})}))}).optional()}),aw=e=>V(q($C,e)),ow={"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`}},sw=class extends H{pipeId=QC;payload;payloadSchema=iw;billableOperations=ow;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return aw(this.payload.config)}getRawOutputFields(){return{[ew.name]:this.catalogOutput(ew,{isPrimaryOutput:!0}),[tw.name]:this.catalogOutput(tw,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_b2b_lookup`,hunter:`prospeo_email_lookup`,amplemarket:`amplemarket-person-reveal`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},cw=iw,lw={pipeId:QC,basePipe:G(QC),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses from B2B profile.`,tags:[W.EMAIL,W.WORK_EMAIL,W.WATERFALL],keywords:[`business email`,`b2b`,`corporate`,`contact`],docPath:K(QC),managedProviders:nw,allowedUserConnectionProviders:nw,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:ow,defaultInputRequirement:aw(null),defaultPayload:{pipe_id:QC,connector:null,run_if:null,config:{providers:rw,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}}}}},uw=`person:workemail:waterfall@1`,dw=g(`name`),fw=g(`company_domain`),pw=g(`company_name`),mw=g(`work_email`),hw=g(`email_validation_status`),gw=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],_w=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],vw={"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`}},yw=r.object({pipe_id:r.literal(uw),connector:S(),run_if:x(),config:r.object({providers:E({availableProviders:gw,defaultProviders:_w,sectionKey:`general`,providerCredits:Qc(vw,gw)}),allow_catch_all_emails:D({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Catch-alls appear valid but remain undeliverable-risk.`,label:`Allow catch-all emails`}),allow_risky_emails:D({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`DNS configuration and spam reputation may flag emails as high-risk.`,label:`Allow risky emails`}),input_fields:R(r.object({[dw.name]:T({fieldName:dw.name}),[fw.name]:T({fieldName:fw.name}),[pw.name]:T({fieldName:pw.name})})),output_fields:L(r.object({[mw.name]:O({fieldName:mw.name}),[hw.name]:O({fieldName:hw.name})}))}).optional()}),bw=e=>Fc(V(q(dw,e)),Ic(q(fw,e),q(pw,e))),xw=class extends H{pipeId=uw;payload;payloadSchema=yw;billableOperations=vw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return bw(this.payload.config)}getRawOutputFields(){return{[mw.name]:this.catalogOutput(mw,{isPrimaryOutput:!0}),[hw.name]:this.catalogOutput(hw,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_email_lookup`,icypeas:`icypeas_email_lookup`,findymail:`findymail_email_lookup`,hunter:`hunter_email_finder`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Sw=yw,Cw={pipeId:uw,basePipe:G(uw),label:`Work email from name`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses in a waterfall motion.`,tags:[W.EMAIL,W.WORK_EMAIL,W.WATERFALL],keywords:[`business email`,`b2b`,`corporate`,`contact`],docPath:K(uw),managedProviders:gw,deprecatedProviders:[],allowedUserConnectionProviders:gw,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:vw,defaultInputRequirement:bw(null),defaultPayload:{pipe_id:uw,connector:null,run_if:null,config:{providers:_w,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}}}}},ww=`prompt:run@1`,Tw=`prompt-run-v1`,Ew=xo(Tw),Dw=r.object({pipe_id:r.literal(ww),connector:S(),run_if:x(),config:r.object({prompt:ds({sectionKey:`general`,path:`config.prompt`,placeholder:U(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:Vs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Ew})})}),Ow=class extends H{pipeId=ww;payload;payloadSchema=Dw;billableOperations=Ew;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return mo(this.payload.config.model)}estimateBillableOperations(e){return Co(e,{model:this.payload.config.model,prefix:Tw,inputTokens:600,outputTokens:800})}getInputRequirement(){return Yc([this.payload.config.prompt.template])}getSecretRequirements(){return Xc([this.payload.config.prompt.template])}getConstantRequirements(){return Zc([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=Ta(e)}catch{return n}for(let e of r.outputs){let r=e.type;if(r===`json`){let i=e.schemaRef?t[e.schemaRef]:void 0;n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:{zodSchema:i,exampleValue:null},format:null,isCatalogFIeld:!1,isPrimaryOutput:!1}}else n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:null,format:e.format??null,isCatalogFIeld:!1,isPrimaryOutput:!1}}return n}getConnectionsRequirements(){return ho(this.payload.config.model)}},kw=Dw,Aw={pipeId:ww,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:G(ww),label:`AI prompt`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,description:`Executes configurable AI prompts with structured output fields.`,guide:`General-purpose AI prompt runner. Inputs and outputs are fully dynamic — defined by the tags in the prompt template. For extracting a value from a JSON / known-schema field, do NOT use this — use the deterministic json:extract:multi@1 (JSONata) instead: it's cheaper, reproducible, and runs on a schedule with no model. Reserve prompt:run@1 for genuine judgment or free-text generation (classify, summarize, rewrite).`,tags:[W.AI],keywords:[`llm`,`gpt`,`chatgpt`,`openai`,`generate`,`classify`,`extract`],docPath:K(ww),defaultInputRequirement:null,billableOperations:Ew,allowedUserConnectionProviders:go(),managedProviders:go(),deprecatedProviders:[],defaultPayload:{pipe_id:ww,connector:null,run_if:null,config:{model:`openai-high`,prompt:{template:``,json_schemas:{}}}}},jw=r.array(r.object({field_name:r.string(),entry_field:r.string().optional()})).check(e=>{let t=new Set;e.value.forEach((n,r)=>{n.field_name.length<1&&e.issues.push({code:`custom`,input:n.field_name,path:[r,`field_name`],message:`Map every bucket field to a row column.`});let i=n.entry_field?.trim()||n.field_name;i&&t.has(i)&&e.issues.push({code:`custom`,input:i,path:[r,`entry_field`],message:`Duplicate bucket field "${i}".`}),i&&t.add(i)})}).check(e=>{e.value.length<1&&e.issues.push({code:`custom`,input:e.value,message:`Map at least one field.`})}),Mw=()=>r.string().nullable().default(``),Nw=e=>({requires:{connection:`pipe0`},enabledIf:no(`pipe0`,`Select a pipe0 connection to see bucket suggestions`),options:async({query:t,client:n})=>n?(await n.buckets.list({query:t,type:e})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug,data:{contract:e.contract,type:e.type}})):[],widgets:{provider_logo:{provider:`pipe0`}}}),Pw=e=>{let t=r.union([r.string(),r.array(r.string())]).check(e=>{(e.value===``||Array.isArray(e.value)&&e.value.length===0)&&e.issues.push({code:`custom`,input:e.value,message:`Required`})}),n={type:`context_select_input`,label:`Bucket`,info:`Pick an existing bucket (its identifying fields appear below for mapping), or type a new slug and choose Create — the new bucket's schema is built from the columns you pick and written on first run (requires 'Allow bucket creation').`,groupPath:`config.general`,sectionKey:`general`,path:`config.bucket`,required:!0,allowCreate:!0,placeholder:`Select or create a bucket…`,optionsDef:Nw(e),options:[],mappingPath:`config.entry_fields`,contractPath:`config.contract`,keyLabel:`Bucket field`},i=e=>{let t=e.validationContext,r=t?Object.entries(t.fieldDefinitions).filter(([e])=>e.toLowerCase()!==`id`).map(([e,t])=>({value:e,label:e,widgets:{field_type:{type:t.type}}})):[];return{...n,fieldOptions:r}};return i.staticMeta=n,_.add(t,i),t},Fw={on_own_entry:[{value:`proceed`,label:`Proceed (at-least-once)`},{value:`block`,label:`Block (at-most-once)`}],on_missing:[{value:`proceed`,label:`Treat as part of the entry`},{value:`block`,label:`Skip the row`}]},Iw=()=>Rs({label:`New bucket: name`,path:`config.new_bucket_name`,groupPath:`config.bucket_creation`,sectionKey:`general`,inputType:`text`,placeholder:`CRM contacts`,maxLength:120}).nullable().default(``),Lw=()=>({new_bucket_name:Iw(),new_bucket_ttl_in_seconds:Us({label:`New bucket: TTL (seconds)`,description:`Claims expire after this many seconds. Empty = never.`,path:`config.new_bucket_ttl_in_seconds`,groupPath:`config.bucket_creation`,sectionKey:`general`,min:1}).nullable().default(null),new_bucket_own_entry_behavior:Bs({label:`New bucket: own entry re-claimed`,description:`What happens when a row re-claims an entry it already wrote.`,path:`config.new_bucket_own_entry_behavior`,groupPath:`config.bucket_creation`,sectionKey:`general`,required:!1,options:Fw.on_own_entry}).default(`block`),new_bucket_missing_value_behavior:Bs({label:`New bucket: missing values`,description:`Proceed treats missing values as part of the entry; Block skips the row.`,path:`config.new_bucket_missing_value_behavior`,groupPath:`config.bucket_creation`,sectionKey:`general`,required:!1,options:Fw.on_missing}).default(`proceed`)}),Rw=()=>({new_bucket_name:Iw(),new_bucket_start:Us({label:`New bucket: start`,description:`First number the counter assigns.`,path:`config.new_bucket_start`,groupPath:`config.bucket_creation`,sectionKey:`general`}).nullable().default(1),new_bucket_step:Us({label:`New bucket: step`,description:`Increment between assigned numbers.`,path:`config.new_bucket_step`,groupPath:`config.bucket_creation`,sectionKey:`general`,min:1}).nullable().default(1)}),zw={provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_api_operation`,allowManagedConnection:!0};function Bw(e){let t=at(e.contract),n=e.entry_fields??[],r=[Yc([Qe(e.bucket)],{expectedType:`string`,expectedFormat:`text`})],i=n.map(e=>{let{column:n,bucketField:r}=Xe(e),i=t?.input_fields[r]?.type;return V({name:n,resolvedName:n,label:``,description:``,type:i?()=>i:e=>Jc(e,n)?.type||`unknown`,format:null})});return i.length>0&&r.push(Ic(...i)),Fc(...r)}function Vw(e){return Xc([Qe(e.bucket)])}function Hw(e){return Zc([Qe(e.bucket)])}const Uw=`bucket:claim@1`,Ww=g(`is_claim_successful`),Gw=r.object({pipe_id:r.literal(Uw),connector:hs(),run_if:x(),config:r.object({bucket:Pw(`claim`),entry_fields:jw,contract:Mw(),...Lw(),allow_bucket_creation:D({label:`Allow bucket creation`,description:`Create the bucket (typed as a claim bucket from this pipe's fields) on first write if it does not already exist. Off by default.`,defaultValue:!1,groupPath:`config.general`,path:`config.allow_bucket_creation`,sectionKey:`general`}),output_fields:L(r.object({[Ww.name]:O({fieldName:Ww.name})}))})}),Kw={"bucket-claim-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},qw=class extends H{pipeId=Uw;payload;payloadSchema=Gw;billableOperations=Kw;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`bucket-claim-v1-pipe0`)}getInputRequirement(){return Bw(this.payload.config)}getSecretRequirements(){return Vw(this.payload.config)}getConstantRequirements(){return Hw(this.payload.config)}getBucketRequirements(){let e=Qe(this.payload.config.bucket);return!e||e.includes(`{{`)?[]:[{slug:e,type:`claim`,schema:at(this.payload.config.contract),allowCreation:this.payload.config.allow_bucket_creation??!1}]}getRawOutputFields(){return{[Ww.name]:this.catalogOutput(Ww)}}getConnectionsRequirements(){return[zw]}},Jw=Gw,Yw={pipeId:Uw,basePipe:G(Uw),label:`Claim`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Claim an entry in a bucket (write-if-absent). Wins (is_claim_successful: true) or finds the entry already taken (no_result). Put this before a write pipe to guard against duplicates across sheets, runs, and time.`,guide:`Claim an identity in a claim bucket before an irreversible action (an append, a send). Map the identifying field(s) via entry_fields (bucket field → row column alias); the bucket's slug is org-unique. If is_claim_successful:true this row is the first to write this entry — let the guarded pipe run on it. If the entry already exists the pipe resolves no_result, which SKIPS every downstream pipe depending on this output — so a duplicate never reaches the writer. Dedup (no TTL), time gates (bucket TTL), suppression (populate here, consult with bucket:check@1) and idempotent writes are all this one op. Behavior lives on the bucket, not the pipe: ttl_seconds (an expired entry can be claimed again — a frequency gate), on_own_entry ('proceed' = the row that wrote an entry re-claims it successfully on re-runs, at-least-once; 'block' = it can't, at-most-once — the default), and on_missing. Missing values follow on_missing: 'proceed' stores them as empty (null) parts of the entry, so rows missing the same fields dedupe against each other while ('Tom','t@t.com') stays distinct from (null,'t@t.com'); 'block' resolves no_result; a row where EVERY identifying value is missing is always skipped. allow_bucket_creation (default off) creates the bucket, typed from the mapped fields, on first write; the new_bucket_* settings (name, TTL, own-entry, missing-value policy) configure ONLY that newly created bucket and are ignored when it already exists — an existing bucket's policy is edited in the dash, not from a pipe. FREE pipe0 operation; requires a pipe0 connection (list_connections).`,docPath:K(Uw),tags:[W.FIELDS],keywords:[`dedupe`,`deduplicate`,`duplicate`,`guard`,`reserve`,`idempotent`,`lock`],billableOperations:Kw,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Uw,connector:{strategy:`first`,connections:[]},run_if:null,config:{bucket:``,entry_fields:[],contract:``,new_bucket_name:``,new_bucket_ttl_in_seconds:null,new_bucket_own_entry_behavior:`block`,new_bucket_missing_value_behavior:`proceed`,allow_bucket_creation:!1,output_fields:{is_claim_successful:{alias:``,enabled:!0}}}}},Xw=`bucket:check@1`,Zw=g(`found_in_bucket`),Qw=r.object({pipe_id:r.literal(Xw),connector:hs(),run_if:x(),config:r.object({bucket:Pw(`claim`),entry_fields:jw,contract:Mw(),output_fields:L(r.object({[Zw.name]:O({fieldName:Zw.name})}))})}),$w={"bucket-check-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},eT=class extends H{pipeId=Xw;payload;payloadSchema=Qw;billableOperations=$w;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`bucket-check-v1-pipe0`)}getInputRequirement(){return Bw(this.payload.config)}getSecretRequirements(){return Vw(this.payload.config)}getConstantRequirements(){return Hw(this.payload.config)}getBucketRequirements(){let e=Qe(this.payload.config.bucket);return!e||e.includes(`{{`)?[]:[{slug:e,type:`claim`,schema:at(this.payload.config.contract),allowCreation:!1}]}getRawOutputFields(){return{[Zw.name]:this.catalogOutput(Zw)}}getConnectionsRequirements(){return[zw]}},tT=Qw,nT={pipeId:Xw,basePipe:G(Xw),label:`Check`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Look up an entry in an existing claim bucket WITHOUT writing. Present → no_result (e.g. suppressed); absent → completed. For suppression / do-not-contact / already-seen gates.`,guide:`Consult a claim bucket read-only before an action — the canonical suppression / do-not-contact gate. Map the identifying field(s) via entry_fields. If the entry is PRESENT (and live) the pipe resolves no_result, skipping downstream pipes (the send/append is suppressed); if ABSENT it completes and downstream runs. Unlike bucket:claim@1 this NEVER writes or creates — the list is curated elsewhere (a bucket:claim@1 writer, an import, or the Assets tab), so readers can't corrupt it. Missing values follow the bucket's on_missing policy: 'proceed' looks up the entry with those values stored as empty (the mirror of what bucket:claim@1 wrote for a row missing the same fields); 'block' resolves no_result; a row where EVERY identifying value is missing is always skipped. Requires an existing claim bucket. FREE pipe0 operation; requires a pipe0 connection.`,docPath:K(Xw),tags:[W.FIELDS],keywords:[`suppression`,`do not contact`,`blocklist`,`lookup`,`exclude`,`gate`,`dedupe`],billableOperations:$w,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Xw,connector:{strategy:`first`,connections:[]},run_if:null,config:{bucket:``,entry_fields:[],contract:``,output_fields:{found_in_bucket:{alias:``,enabled:!0}}}}},rT=`bucket:count@1`,iT=g(`bucket_counter`),aT=r.object({pipe_id:r.literal(rT),connector:hs(),run_if:x(),config:r.object({bucket:Pw(`counter`),entry_fields:jw,contract:Mw(),...Rw(),allow_bucket_creation:D({label:`Allow bucket creation`,description:`Create the bucket (typed as a counter bucket from this pipe's fields) on first write if it does not already exist. Off by default.`,defaultValue:!1,groupPath:`config.general`,path:`config.allow_bucket_creation`,sectionKey:`general`}),output_fields:L(r.object({[iT.name]:O({fieldName:iT.name})}))})}),oT={"bucket-count-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},sT=class extends H{pipeId=rT;payload;payloadSchema=aT;billableOperations=oT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`bucket-count-v1-pipe0`)}getInputRequirement(){return Bw(this.payload.config)}getSecretRequirements(){return Vw(this.payload.config)}getConstantRequirements(){return Hw(this.payload.config)}getBucketRequirements(){let e=Qe(this.payload.config.bucket);return!e||e.includes(`{{`)?[]:[{slug:e,type:`counter`,schema:at(this.payload.config.contract),allowCreation:this.payload.config.allow_bucket_creation??!1}]}getRawOutputFields(){return{[iT.name]:this.catalogOutput(iT)}}getConnectionsRequirements(){return[zw]}},cT=aT,lT={pipeId:rT,basePipe:G(rT),label:`Count`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Assign the next sequence number to an entry in a counter bucket, exactly once (a re-run returns the same number). The building block for round-robin lead routing.`,guide:`Give each unique entry its own stable number from a counter bucket. Map the identifying field(s) via entry_fields (bucket field → row column alias). A NEW entry takes the next number (bucket.start, then +step); an entry that already has a number returns that SAME number on every re-run — so assignments are stable and re-run-safe. Compose round-robin routing: a sellers sheet + this counter + (seller_index = (value - 1) mod seller_count) + a row lookup by that ordinal. Behavior (start, step) lives on the bucket. A row with ANY missing identifying value gets no number (no_result) — counters have no missing-value policy. allow_bucket_creation (default off) creates the counter bucket on first write; new_bucket_start/new_bucket_step configure ONLY that newly created bucket and are ignored when it already exists. FREE pipe0 operation; requires a pipe0 connection.`,docPath:K(rT),tags:[W.FIELDS],keywords:[`counter`,`sequence`,`increment`,`numbering`,`bucket`],billableOperations:oT,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:rT,connector:{strategy:`first`,connections:[]},run_if:null,config:{bucket:``,entry_fields:[],contract:``,new_bucket_name:``,new_bucket_start:1,new_bucket_step:1,allow_bucket_creation:!1,output_fields:{bucket_counter:{alias:``,enabled:!0}}}}},uT=[{label:`demo-leads`,value:`demo-leads`},{label:`demo-companies`,value:`demo-companies`},{label:`demo-contacts`,value:`demo-contacts`}],dT=[{label:`Demo project`,value:`demo-project`},{label:`Sales pipeline`,value:`sales-pipeline`}];function fT(e){let t=e?.config?.project;return typeof t==`string`&&t.length>0?t:void 0}function pT(e){if(!e||e.conditions.length===0)return null;let t=JSON.stringify({logic:e.logic,conditions:e.conditions.map(e=>[e.field_name,e.operator,e.value])}),n=2166136261;for(let e=0;e<t.length;e++)n^=t.charCodeAt(e),n=Math.imul(n,16777619)>>>0;return n.toString(16).padStart(8,`0`)}function mT(e,t,n){let r=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,40),i=`rr--${r(e)}--${r(t)}`;return n?`${i}--f-${r(n)}`:i}function hT(e,t){let n=e;for(let e of t.split(`.`)){if(typeof n!=`object`||!n)return;n=n[e]}return n}const gT={requires:{connection:`pipe0`},enabledIf:no(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?uT:t?(await t.sheets.list({query:e})).map(e=>({label:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},_T={requires:{connection:`pipe0`,fields:[`config.project`]},enabledIf:no(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n,payload:r})=>n===`sandbox`?uT:t?(await t.sheets.list({query:e,projectSlug:fT(r)})).map(e=>({label:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},vT={requires:{connection:`pipe0`},enabledIf:no(`pipe0`,`Select a pipe0 connection to see project suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?dT:t?(await t.projects.list({query:e})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},yT=[{value:`email`,label:`email`,data:{type:`string`,format:`email`}},{value:`name`,label:`name`,data:{type:`string`}},{value:`company`,label:`company`,data:{type:`string`}}],bT={"demo-leads":yT,"demo-companies":[{value:`domain`,label:`domain`,data:{type:`string`,format:`website_url`}},{value:`company_name`,label:`company_name`,data:{type:`string`}}],"demo-contacts":yT},xT=e=>({requires:{connection:`pipe0`,fields:[e.sheetPath]},enabledIf:no(`pipe0`,`Select a pipe0 connection to see column suggestions`),options:async({payload:t,client:n,environment:r})=>{let i=hT(t,e.sheetPath);return typeof i!=`string`||!i.trim()||i.includes(`{{`)?[]:r===`sandbox`?bT[i.trim()]??yT:n?(await n.sheets.fields({slug:i.trim()})).filter(t=>(e.includeJson||t.type!==`json`)&&t.name.toLowerCase()!==`id`).map(e=>({value:e.name,label:e.name,data:{type:String(e.type),...e.format?{format:String(e.format)}:{}}})):[]},widgets:{provider_logo:{provider:`pipe0`}}}),ST=`row:append:sheet@1`,CT=g(`sheet_record_id`),wT=g(`created_sheet`),TT=r.object({pipe_id:r.literal(ST),connector:hs(),run_if:x(),config:r.object({project:ps({label:`Project`,info:"Project the destination sheet lives in (its org-unique slug). Pick an existing project or type a new slug — a new project is created when `allow_entity_creation` is on.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.project`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:vT}),sheet:ps({label:`Sheet ID`,info:'The destination sheet\'s identifier (its slug — NOT the display name). Slugs are org-unique: pick an existing sheet to append into it, or type a NEW slug to create one — a generic slug (e.g. "results", "companies") is likely to match an unrelated existing sheet, so for a new sheet use a short descriptive slug plus a few random chars (e.g. "ceos-x7k2") that can\'t collide. Type `@` to insert a field reference / `$` for a secret.',groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:_T,enabledIf:e=>e.config?.project?{disabled:!1}:{disabled:!0,message:`Select a project first`}}),run:D({defaultValue:!0,groupPath:`config.advanced`,path:`config.run`,sectionKey:`general`,description:`Auto-run sheet row after append action.`,label:`Run after append`}),allow_entity_creation:D({label:`Allow creating missing entities`,description:`Create missing fields, sheets, and projects as needed (unknown fields become columns; a missing sheet or project is created).`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_entity_creation`,sectionKey:`general`}),write_fields:Cs({label:`Fields`,info:`All fields are written if empty.`,groupPath:`config.general`,path:`config.write_fields`,sectionKey:`general`,disableSearch:!0}),output_fields:L(r.object({[CT.name]:O({fieldName:CT.name}),[wT.name]:O({fieldName:wT.name})}))})}),ET={"row-append-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},DT=class extends H{pipeId=ST;payload;payloadSchema=TT;billableOperations=ET;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`row-append-sheet-v1-pipe0`)}getInputRequirement(){let e=[Yc([this.payload.config.project,this.payload.config.sheet],{expectedType:`string`,expectedFormat:`text`})];if(this.payload.config.write_fields?.length)for(let t of this.payload.config.write_fields)e.push(V({name:t.field_name,resolvedName:t.field_name,label:``,description:``,type:e=>{let n=Jc(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 Fc(...e)}getSecretRequirements(){return Xc([this.payload.config.project,this.payload.config.sheet])}getConstantRequirements(){return Zc([this.payload.config.project,this.payload.config.sheet])}getRawOutputFields(){return{[CT.name]:this.catalogOutput(CT),[wT.name]:this.catalogOutput(wT)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_api_operation`,allowManagedConnection:!0}]}},OT=TT,kT={pipeId:ST,basePipe:G(ST),label:`Append row to sheet`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:"Add rows to a pipe0 sheet in a given project. config.project and config.sheet may each be a literal slug or a `{{ field_name }}` tag.",guide:`Append records to another pipe0 sheet. config.project (REQUIRED) is the destination project's org-unique slug — when working inside a project, pass THAT project's slug (see CURRENT CONTEXT). config.sheet is the destination sheet's slug; both may be a \`{{ field }}\` tag for a per-row destination. With allow_entity_creation on, a missing project/sheet (and unknown fields) are created; if the sheet slug already exists in a DIFFERENT project the rows fail. Destination slugs are ORG-UNIQUE, so config.sheet addresses a sheet across your whole org: an existing slug REUSES that sheet (appending into it) when it's in config.project, and FAILS when it lives elsewhere — so for a genuinely NEW sheet use a short descriptive slug plus 3-4 random alphanumeric chars (e.g. "ceos-x7k2") — you cannot see other projects' slugs, so only the random suffix makes a new slug collision-proof; set the display name afterwards with sheet:update@1 config.name. To explode a LIST field into MANY rows (denormalize a 1:N relationship), use row:expandappend:sheet@1 instead. To bulk-copy existing rows across sheets, prefer the rows:copy_to_sheet@1 effect. NON-IDEMPOTENT: each run appends again, so re-running duplicates rows (and you cannot undo rows written to another sheet) — dry-run the flow in sandbox first (env:change@1), and to retry after a partial failure adopt the succeeded cells (rows:adopt@1 with adopt_statuses:["completed"]) then rows:enrich@1. Requires a pipe0 connection (list_connections).`,docPath:K(ST),tags:[W.FIELDS],keywords:[`add`,`insert`,`write`,`push`,`export`],billableOperations:ET,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:ST,connector:{strategy:`first`,connections:[]},run_if:null,config:{project:``,sheet:``,run:!0,allow_entity_creation:!0,write_fields:[],output_fields:{sheet_record_id:{alias:``,enabled:!0},created_sheet:{alias:``,enabled:!0}}}}},AT=`row:expandappend:sheet@1`,jT=g(`sheet_record_ids`),MT=g(`input_objects`),NT=`expanded_value`,PT=r.object({pipe_id:r.literal(AT),connector:hs(),run_if:x(),config:r.object({project:ps({label:`Project`,info:"Project the destination sheet lives in (its org-unique slug). Pick an existing project or type a new slug — a new project is created when `allow_entity_creation` is on.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.project`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:vT}),sheet:ps({label:`Sheet ID`,info:`The destination sheet's identifier (its slug — NOT the display name). Slugs are org-unique: pick an existing sheet to write into it, or type a NEW slug to create one. A generic slug (e.g. "results", "companies") is likely to match an unrelated existing sheet, so for a new sheet use a short descriptive slug plus a few random chars (e.g. "ceos-x7k2") that can't collide.`,groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:_T,enabledIf:e=>e.config?.project?{disabled:!1}:{disabled:!0,message:`Select a project first`}}),run:D({defaultValue:!0,groupPath:`config.general`,path:`config.run`,sectionKey:`general`,info:`Enrich record after write. Ignored if target sheet writes to other sheets.`,label:`Run`}),allow_entity_creation:D({label:`Allow creating missing entities`,description:`Create missing entities as needed (a missing sheet or project is created, along with the output column on the destination).`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_entity_creation`,sectionKey:`general`}),...Ls({groupPath:`config.destination`,sectionKey:`general`,defaultName:NT,nameInfo:`Name of the field each list item is written to on the destination sheet. Each item is stored as-is (objects/arrays as one json cell); extract flat columns afterwards with json:extract:multi@1.`}),input_fields:R(r.object({[MT.name]:T({fieldName:MT.name})})),output_fields:L(r.object({[jT.name]:O({fieldName:jT.name})}))})}).check(e=>{let t=e.value.config?.destination_field_name;t&&Mc(t)&&e.issues.push({code:`custom`,input:t,path:[`config`,`destination_field_name`],message:`'${t}' is reserved and cannot be used as a destination field name.`})}),FT={"row-expandappend-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},IT=e=>V(q(MT,e)),LT=class extends H{pipeId=AT;payload;payloadSchema=PT;billableOperations=FT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`row-expandappend-sheet-v1-pipe0`)}getInputRequirement(){return IT(this.payload.config)}getRawOutputFields(){return{[jT.name]:this.catalogOutput(jT)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_api_operation`,allowManagedConnection:!0}]}},RT=PT,zT={pipeId:AT,basePipe:G(AT),label:`Expand list to sheet`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:"Expand a list into sheet rows — each item is written as-is to an `expanded_value` column (objects/arrays as json).",guide:`Denormalize a 1:N list into rows on ANOTHER sheet: each item in the input_objects array becomes its own row on config.sheet, inside config.project (REQUIRED — the destination project's org-unique slug; when working inside a project pass THAT slug, see CURRENT CONTEXT). Every item is written AS-IS to a single column on the destination — an object/array lands as one json cell (its fields are NOT spread into separate columns), a primitive as a scalar. That column is \`expanded_value\` by default; rename/retype it via config.destination_field_name / destination_field_type / destination_field_format / destination_field_label (type/format are inferred from the data when left unset). To get flat columns, run json:extract:multi@1 ON THE DESTINATION sheet afterwards to pull out exactly the values you need. With allow_entity_creation on, a missing project/sheet (and the expanded_value column) are created; a sheet slug that exists in a DIFFERENT project fails the rows. Destination slugs are ORG-UNIQUE, so config.sheet addresses a sheet across your whole org: an existing slug REUSES that sheet (appending into it) when it's in config.project, and FAILS when it lives elsewhere — a generic slug like "results"/"companies"/"current-employers" will likely hit an unrelated sheet. When you mean a genuinely NEW sheet, use a short descriptive slug plus 3-4 random alphanumeric chars (e.g. "ceos-x7k2", "prospects-employers-9fq") — you cannot see other projects' slugs, so only the random suffix makes a new slug collision-proof; give the sheet its human-readable name afterwards with sheet:update@1 config.name. Use it when a column holds a list you need per-element (e.g. a profile's current employers) BEFORE enriching each element — never collapse the list with an LLM. Requires a pipe0 connection (resolve via list_connections). Typical pipeline: json:extract:multi@1 to build the array column → this pipe to explode it into an intermediary sheet → json:extract:multi@1 THERE to flatten the fields you need out of expanded_value → enrich each row (e.g. person:match:role:waterfall@1) → rows:copy_to_sheet@1 to the final sheet. NON-IDEMPOTENT: each run appends again, so re-running duplicates rows (and you cannot undo rows written to another sheet) — dry-run the flow in sandbox first (env:change@1), and to retry after a partial failure adopt the succeeded cells (rows:adopt@1 with adopt_statuses:["completed"]) then rows:enrich@1.`,docPath:K(AT),tags:[W.FIELDS],keywords:[`explode`,`denormalize`,`array`,`split`,`one to many`,`fan out`],billableOperations:FT,defaultInputRequirement:IT(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:AT,connector:{strategy:`first`,connections:[]},run_if:null,config:{project:``,sheet:``,run:!0,allow_entity_creation:!0,destination_field_name:NT,destination_field_type:``,destination_field_format:``,destination_field_label:``,input_fields:{input_objects:{alias:``}},output_fields:{sheet_record_ids:{alias:``,enabled:!0}}}}},BT=`row:roundrobin:sheet@1`,VT=io(no(`pipe0`,`Add a pipe0 connection first`),ro(e=>e.config?.sheet,`Select a sheet first`)),HT=r.object({pipe_id:r.literal(BT),connector:hs(),run_if:x(),config:r.object({sheet:Ks({label:`Sheet`,info:`The sheet to rotate through — e.g. a roster of sellers. Always another sheet.`,groupPath:`config.general`,sectionKey:`general`,path:`config.sheet`,required:!0,optionsDef:gT}),sheet_where:os({label:`Rotation pool`,info:`Only target-sheet rows matching these conditions rotate. Leave empty to rotate over the whole sheet.`,groupPath:`config.general`,sectionKey:`general`,path:`config.sheet_where`,required:!1,enabledIf:VT,fieldNamePlaceholder:`segment`,optionsDef:xT({sheetPath:`config.sheet`})}),sheet_unique_field:Ts({label:`Unique column`,info:`Column of the target sheet that must be filled and unique in every row — checked at run time.`,groupPath:`config.general`,sectionKey:`general`,path:`config.sheet_unique_field`,required:!0,enabledIf:VT,optionsDef:xT({sheetPath:`config.sheet`})}),sheet_copy_fields:ws({label:`Fields to bring over`,info:`Target-sheet columns copied from the picked row; each becomes an output column.`,groupPath:`config.general`,sectionKey:`general`,path:`config.sheet_copy_fields`,minItems:1,enabledIf:VT,optionsDef:xT({sheetPath:`config.sheet`,includeJson:!0})}),sheet_weight_field:Ts({label:`Weight column`,info:`Numeric target-sheet column scaling each row's share. 0 pauses a row; empty counts as 1. Leave unset for equal shares.`,groupPath:`config.general`,sectionKey:`general`,path:`config.sheet_weight_field`,enabledIf:VT,optionsDef:xT({sheetPath:`config.sheet`})}),counter_field:Ts({label:`Counter field`,info:`Column of this sheet whose unique values advance the rotation.`,groupPath:`config.general`,sectionKey:`general`,path:`config.counter_field`,required:!0})})}),UT={"row-roundrobin-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},WT=class extends H{pipeId=BT;payload;payloadSchema=HT;billableOperations=UT;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`row-roundrobin-sheet-v1-pipe0`)}getTemplatedFields(){return(this.payload.config.sheet_where?.conditions??[]).map(e=>typeof e.value==`string`?e.value:null)}getInputRequirement(){let e=this.payload.config.counter_field.field_name;return Fc(V({name:e,resolvedName:e,label:``,description:``,type:t=>Jc(t,e)?.type||`unknown`,format:null}),Yc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`}))}getSecretRequirements(){return Xc(this.getTemplatedFields())}getConstantRequirements(){return Zc(this.getTemplatedFields())}getBucketRequirements(){let e=Qe(this.payload.config.sheet),t=this.payload.config.counter_field.field_name;if(!e||!t)return[];let n=this.payload.config.sheet_where??null;return(n?.conditions??[]).some(e=>typeof e.value==`string`&&e.value.includes(`{{`))?[]:[{slug:mT(e,t,pT(n)),type:`counter`,schema:null,allowCreation:!0}]}getRawOutputFields(){let e={};for(let t of this.payload.config.sheet_copy_fields)t.field_name&&(e[t.field_name]={description:`Value of the target sheet's "${t.field_name}" column on the round-robin-picked row.`,enabled:!0,format:t.format??null,label:t.field_name,name:t.field_name,resolvedName:t.field_name,jsonMeta:null,type:t.type??`unknown`,isCatalogFIeld:!1,isPrimaryOutput:!1});return e}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_api_operation`,allowManagedConnection:!0}]}},GT=HT,KT={pipeId:BT,basePipe:G(BT),label:`Round-robin from sheet`,executionMode:`single`,categories:[`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Rotate through the rows of another sheet (e.g. a sellers roster): each unique counter value picks the next row round-robin, and the selected columns of the picked row become outputs. Re-run safe — the same counter value always picks the same row.`,guide:"Round-robin assignment from another pipe0 sheet (the roster — e.g. sellers). config.sheet is the target sheet's org-unique slug — one FIXED sheet for the whole pipe, never a per-row reference. config.sheet_where (optional) restricts the ROTATION POOL to target-sheet rows matching the conditions (null = whole sheet); condition field_names are LITERAL target-sheet columns, string values may hold `{{ field }}` refs resolved per lead — e.g. segment eq {{ segment }} routes each lead over its own segment's rows. Each distinct RESOLVED filter cycles on its OWN counter (so slot numbers stay consecutive per pool — strict round robin within each pool); avoid high-cardinality templated filters ({{ email }}-like) — every distinct value creates a counter bucket and will exhaust the org bucket quota. config.sheet_unique_field names a TARGET-sheet column that must be filled in EVERY row and unique across rows — the run fails with a clear message if it has gaps or duplicates (this guarantees every roster row is a distinct assignee). config.sheet_copy_fields are the TARGET-sheet columns copied from the picked row; each becomes an output column named like the column, typed by the entry's `type`/`format` (snapshotted from the target sheet's schema when picked — if the target column's type drifts later, the run fails with an output-type mismatch; re-pick the column to refresh the snapshot). config.counter_field names a column of the CURRENT sheet: every unique value of it takes the next number from an internal counter bucket (first-seen → 1, next new value → 2, …; the SAME value always keeps the SAME number, so re-runs are stable). The pick is slot (n − 1) mod W over the pool's rows in creation order, where W is the pool's total weight (= row count when unweighted) — adding pool rows only changes the wrap; deleting or reordering reshuffles subsequent picks. config.sheet_weight_field (optional) names a NUMERIC target-sheet column: a row with weight w takes w of every W slots, spread evenly across the cycle (weight 2 ≠ two consecutive picks); weight 0 pauses the row; an empty cell counts as 1; a negative or non-integer weight fails the run loudly. Editing weights re-shapes FUTURE picks only — the counter and its bucket are untouched, so rotation never restarts. The internal counter is a REAL org-scoped counter bucket (visible in the buckets UI, slug `rr--<sheet>--<counter field>`); changing the sheet or the counter field starts a fresh rotation. A row with a missing/empty counter value is gated to skipped before the runner. Empty roster → all outputs no_result. A copied column that is empty on the picked row resolves to no_result. Missing sheet (bad slug) fails the record naming the slug. The target sheet is NEVER modified. FREE pipe0 operation; requires a pipe0 connection (list_connections).",docPath:K(BT),tags:[W.FIELDS],keywords:[`rotate`,`rotation`,`distribute`,`routing`,`assign`,`alternate`],billableOperations:UT,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`config`,defaultPayload:{pipe_id:BT,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,sheet_where:null,sheet_unique_field:{field_name:``},sheet_copy_fields:[],sheet_weight_field:{field_name:``},counter_field:{field_name:``}}}},qT=`SELECT table_schema, table_name, column_name, data_type FROM information_schema.columns WHERE table_schema NOT IN ('pg_catalog', 'information_schema') ORDER BY table_schema, table_name, ordinal_position`,JT=`table_catalog NOT IN ('system', '__databricks_internal') AND table_schema <> 'information_schema'`,YT=`SELECT table_catalog, table_schema, table_name FROM system.information_schema.tables WHERE ${JT} ORDER BY table_catalog, table_schema, table_name`,XT=`SELECT table_catalog, table_schema, table_name, column_name, data_type FROM system.information_schema.columns WHERE ${JT} ORDER BY table_catalog, table_schema, table_name, ordinal_position`;function ZT(e){return typeof e==`string`?e:String(e??``)}function QT(e){let t=new Map;for(let n of e){let e=ZT(n.table_schema),r=ZT(n.table_name);if(!r)continue;let i=`${e}.${r}`,a=t.get(i);a||(a={schema:e,name:r,columns:[]},t.set(i,a)),a.columns.push({name:ZT(n.column_name),type:ZT(n.data_type)})}return t}function $T(e){return`${e.catalog?`${e.catalog}.`:``}${e.schema?`${e.schema}.`:``}${e.name}`}function eE(e,t){if(e.length===0)return{summary:`The connected database exposes no tables outside the system schemas — nothing to query yet.`,data:{tables:[],truncated:t}};let n=e.map(e=>{if(e.columns.length===0)return`- ${$T(e)} — (columns not listed; DESCRIBE or sample to inspect)`;let t=e.columns.slice(0,50),n=e.columns.length-t.length,r=t.map(e=>e.type?`${e.name}:${e.type}`:e.name).join(`, `);return`- ${$T(e)} — ${r}${n>0?` (+${n} more)`:``}`}),r=e.some(e=>e.catalog)?` Names are fully qualified (catalog.schema.table) — use them VERBATIM in config.query.`:``;return{summary:[`Schema map (${e.length} table${e.length===1?``:`s`}${t?`, truncated — the database has more`:``}). Write config.query against these;${r} sample rows free via run_search_oneshot.`,...n].join(`
75
- `),data:{tables:e,truncated:t}}}async function tE(e){let t=await e({query:YT,limit:500}),n=new Map;for(let e of t.rows){let t=ZT(e.table_catalog),r=ZT(e.table_schema),i=ZT(e.table_name);i&&n.set(`${t}.${r}.${i}`,{catalog:t,schema:r,name:i,columns:[]})}let r=await e({query:XT,limit:500});for(let e of r.rows)n.get(`${ZT(e.table_catalog)}.${ZT(e.table_schema)}.${ZT(e.table_name)}`)?.columns.push({name:ZT(e.column_name),type:ZT(e.data_type)});return eE([...n.values()],t.hasMore||r.hasMore)}async function nE(e){let t=await e({query:`SHOW TABLES`,limit:500}),n=t.rows.map(e=>({schema:ZT(e.database??e.namespace),name:ZT(e.tableName??e.table_name)})).filter(e=>e.name),r=t.hasMore||n.length>25,i=[];for(let{schema:t,name:r}of n.slice(0,25)){let n=(await e({query:`DESCRIBE TABLE ${t?`${t}.`:``}${r}`,limit:500})).rows.map(e=>({name:ZT(e.col_name),type:ZT(e.data_type)})).filter(e=>e.name&&!e.name.startsWith(`#`));i.push({schema:t,name:r,columns:n})}return eE(i,r)}async function rE(e,t){if(t.environment===`sandbox`)return{summary:`Schema exploration needs the real database connection — it's read-only and free. Switch to production (env:change@1) to explore the schema, then rehearse the pipeline in sandbox.`};if(!t.runQuery)return{summary:`Live schema exploration isn't available in this context.`};if(e===`databricks`)try{return await tE(t.runQuery)}catch{try{let e=await t.runQuery({query:qT,limit:500});return eE([...QT(e.rows).values()],e.hasMore)}catch{return nE(t.runQuery)}}let n=await t.runQuery({query:qT,limit:500});return eE([...QT(n.rows).values()],n.hasMore)}const iE=`rows:find:databricks@1`,aE=g(`db_rows_found_count`),oE=g(`db_found_rows`),sE=r.object({pipe_id:r.literal(iE),connector:hs(),run_if:x(),config:r.object({query:fs({label:`SQL query`,info:`A single read-only SELECT statement, resolved per row — use {{ field }} for input refs, {{ SECRETS.X }} / {{ CONSTANTS.X }} for secrets/constants. Do not add your own LIMIT for capping; use the row limit below.`,groupPath:`config.general`,sectionKey:`general`,path:`config.query`,rows:8,required:!0,maxLength:2e4}),limit:Us({label:`Row limit`,info:`Maximum number of rows returned in the matching-rows output. The rows-found count is always the true total.`,groupPath:`config.advanced`,sectionKey:`general`,path:`config.limit`,min:1,max:50}),output_fields:L(r.object({[aE.name]:O({fieldName:aE.name}),[oE.name]:O({fieldName:oE.name})}))})}),cE={"rows-find-databricks-v1-databricks":{provider:`databricks`,allowManagedConnection:!1,mode:null,credits:null,note:`Querying your own Databricks SQL warehouse is free.`}},lE=class extends H{pipeId=iE;payload;payloadSchema=sE;billableOperations=cE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`databricks`]}estimateBillableOperations(e){return J(e,`rows-find-databricks-v1-databricks`)}getTemplatedFields(){return[this.payload.config.query]}getInputRequirement(){return Yc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Xc(this.getTemplatedFields())}getConstantRequirements(){return Zc(this.getTemplatedFields())}getRawOutputFields(){return{[aE.name]:this.catalogOutput(aE),[oE.name]:this.catalogOutput(oE)}}getConnectionsRequirements(){return[{provider:`databricks`,rateLimitRatio:1,rateLimitOperation:`databricks_query`,allowManagedConnection:!1}]}async getAgentContext(e){return rE(`databricks`,e)}},uE=sE,dE={pipeId:iE,basePipe:G(iE),label:`Find rows in Databricks`,executionMode:`single`,categories:[`tools`],lifecycle:null,allowedUserConnectionProviders:[`databricks`],managedProviders:[],deprecatedProviders:[],description:`Look up rows in your own Databricks SQL warehouse with a read-only SQL query resolved per row. Outputs the total match count and the matching rows.`,guide:"Databricks SQL dialect; config.query must be a single read-only SELECT, resolved per row via Liquid — `{{ field }}` input refs, `{{ SECRETS.X }}` / `{{ CONSTANTS.X }}` supported. Resolved values are interpolated as text, so quote them in the SQL (WHERE email = '{{ email }}'). To discover the schema, draft a payload with a placeholder config.query like \"SELECT 1\" and the chosen connection in connector.connections, then call get_provider_context once — it returns the workspace-wide table/column map (all Unity catalogs) for free. Always reference tables by their FULLY QUALIFIED three-part name exactly as the map lists them (catalog.schema.table); a bare table name resolves against the warehouse's unpredictable current catalog and usually fails with TABLE_OR_VIEW_NOT_FOUND. Tables under the `samples` catalog (and other built-in demo schemas like `tpch`) are DEMO data, NOT the customer's own — never answer from them without confirming. READ-ONLY and idempotent — the gateway enforces single-statement SELECT validation. db_found_rows is capped by config.limit and a ~25KB size budget (rows are dropped from the end to fit); db_rows_found_count is always the TRUE total. When nothing matches, db_found_rows resolves to no_result (NOT an empty array) — db_rows_found_count (0) still completes, so condition on it to branch on absence. A field resolving to empty renders as an empty string in the SQL — guard with run_if if that must not match. Requires a databricks connection (list_connections).",docPath:K(iE),tags:[W.FIELDS,W.NEW],keywords:[`sql`,`query`,`lookup`,`warehouse`,`database`,`select`],billableOperations:cE,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:iE,connector:{strategy:`first`,connections:[]},run_if:null,config:{query:``,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!1},db_found_rows:{alias:``,enabled:!0}}}}},fE=`rows:find:postgres@1`,pE=g(`db_rows_found_count`),mE=g(`db_found_rows`),hE=r.object({pipe_id:r.literal(fE),connector:hs(),run_if:x(),config:r.object({query:fs({label:`SQL query`,info:`A single read-only SELECT statement, resolved per row — use {{ field }} for input refs, {{ SECRETS.X }} / {{ CONSTANTS.X }} for secrets/constants. Do not add your own LIMIT for capping; use the row limit below.`,groupPath:`config.general`,sectionKey:`general`,path:`config.query`,rows:8,required:!0,maxLength:2e4}),limit:Us({label:`Row limit`,info:`Maximum number of rows returned in the matching-rows output. The rows-found count is always the true total.`,groupPath:`config.advanced`,sectionKey:`general`,path:`config.limit`,min:1,max:50}),output_fields:L(r.object({[pE.name]:O({fieldName:pE.name}),[mE.name]:O({fieldName:mE.name})}))})}),gE={"rows-find-postgres-v1-postgres":{provider:`postgres`,allowManagedConnection:!1,mode:null,credits:null,note:`Querying your own PostgreSQL database is free.`}},_E=class extends H{pipeId=fE;payload;payloadSchema=hE;billableOperations=gE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`postgres`]}estimateBillableOperations(e){return J(e,`rows-find-postgres-v1-postgres`)}getTemplatedFields(){return[this.payload.config.query]}getInputRequirement(){return Yc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Xc(this.getTemplatedFields())}getConstantRequirements(){return Zc(this.getTemplatedFields())}getRawOutputFields(){return{[pE.name]:this.catalogOutput(pE),[mE.name]:this.catalogOutput(mE)}}getConnectionsRequirements(){return[{provider:`postgres`,rateLimitRatio:1,rateLimitOperation:`postgres_query`,allowManagedConnection:!1}]}async getAgentContext(e){return rE(`postgres`,e)}},vE=hE,yE={pipeId:fE,basePipe:G(fE),label:`Find rows in Postgres`,executionMode:`single`,categories:[`tools`],lifecycle:null,allowedUserConnectionProviders:[`postgres`],managedProviders:[],deprecatedProviders:[],description:`Look up rows in your own PostgreSQL database with a read-only SQL query resolved per row. Outputs the total match count and the matching rows.`,guide:"PostgreSQL dialect; config.query must be a single read-only SELECT, resolved per row via Liquid — `{{ field }}` input refs, `{{ SECRETS.X }}` / `{{ CONSTANTS.X }}` supported. Resolved values are interpolated as text, so quote them in the SQL (WHERE email = '{{ email }}'). To discover the schema, draft a payload with a placeholder config.query like \"SELECT 1\" and the chosen connection in connector.connections, then call get_provider_context once — it returns the full table/column map for free. READ-ONLY and idempotent — the gateway enforces single-statement SELECT validation and a read-only transaction. db_found_rows is capped by config.limit and a ~25KB size budget (rows are dropped from the end to fit); db_rows_found_count is always the TRUE total. When nothing matches, db_found_rows resolves to no_result (NOT an empty array) — db_rows_found_count (0) still completes, so condition on it to branch on absence. A field resolving to empty renders as an empty string in the SQL — guard with run_if if that must not match. Requires a postgres connection (list_connections).",docPath:K(fE),tags:[W.FIELDS,W.NEW],keywords:[`sql`,`query`,`lookup`,`database`,`select`],billableOperations:gE,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:fE,connector:{strategy:`first`,connections:[]},run_if:null,config:{query:``,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!1},db_found_rows:{alias:``,enabled:!0}}}}},bE=`rows:find:sheet@1`,xE=g(`sheet_rows_found_count`),SE=g(`sheet_found_rows`),CE=g(`sheet_found_row_ids`),wE=r.object({pipe_id:r.literal(bE),connector:hs(),run_if:x(),config:r.object({sheet:ps({label:`Sheet ID`,info:"The sheet to search (its org-unique slug — NOT the display name). Type `@` to insert a field reference for a per-row sheet.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:gT}),where:os({label:`Match conditions`,info:"Conditions on the target sheet's columns. Column names are literal; in the value, type `/` to insert a field reference (e.g. `{{ email }}`).",groupPath:`config.general`,sectionKey:`general`,path:`config.where`,fieldNamePlaceholder:`email`,optionsDef:xT({sheetPath:`config.sheet`})}),limit:Us({label:`Row limit`,info:`Maximum number of rows returned in the matching-rows output. The rows-found count is always the true total.`,groupPath:`config.advanced`,sectionKey:`general`,path:`config.limit`,min:1,max:100}),output_fields:L(r.object({[xE.name]:O({fieldName:xE.name}),[SE.name]:O({fieldName:SE.name}),[CE.name]:O({fieldName:CE.name})}))})}),TE={"rows-find-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},EE=class extends H{pipeId=bE;payload;payloadSchema=wE;billableOperations=TE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`rows-find-sheet-v1-pipe0`)}getTemplatedFields(){return[this.payload.config.sheet,...(this.payload.config.where?.conditions??[]).map(e=>typeof e.value==`string`?e.value:null)]}getInputRequirement(){return Yc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Xc(this.getTemplatedFields())}getConstantRequirements(){return Zc(this.getTemplatedFields())}getRawOutputFields(){return{[xE.name]:this.catalogOutput(xE),[SE.name]:this.catalogOutput(SE),[CE.name]:this.catalogOutput(CE)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_api_operation`,allowManagedConnection:!0}]}},DE=wE,OE={pipeId:bE,basePipe:G(bE),label:`Find rows in sheet`,executionMode:`single`,categories:[`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Look up rows in another pipe0 sheet matching a condition block (and/or over eq, neq, gt, gte, lt, lte, contains, matches). Outputs the total match count, the matching rows, and their record IDs.`,guide:'Find rows in another pipe0 sheet. config.sheet is the target sheet\'s org-unique slug (a literal or a `{{ field }}` tag). config.where is a condition block over the TARGET sheet\'s columns: `logic` "and"/"or" combines value conditions; each condition\'s field_name is a LITERAL column name (never templated, NOT validated against the target sheet — a wrong name behaves like a null cell), and its value may be a literal or contain `{{ field }}` tags resolved per row. Operators: eq/neq compare as text (a number cell 42 matches the value "42"; neq ALSO matches rows where the column is missing or null; JSON object/array cells effectively never match); gt/gte/lt/lte compare numerically (non-numeric cells never match; a non-numeric condition value fails the row); contains is case-INsensitive substring; matches is case-SENSITIVE regex (invalid pattern fails the row). A `null` value with eq matches missing/null cells. READ-ONLY and idempotent — one query per row, the target sheet is never modified. sheet_found_rows is capped by config.limit and a ~25KB size budget (rows are dropped from the end to fit); sheet_rows_found_count is always the TRUE total. When nothing matches, sheet_found_rows and sheet_found_row_ids resolve to no_result (NOT an empty array) — sheet_rows_found_count (0) still completes, so condition on it to branch on absence. String condition values that resolve to an empty string fail the row (a blank field must not match everything) — guard with run_if. Requires a pipe0 connection (list_connections).',docPath:K(bE),tags:[W.FIELDS],keywords:[`lookup`,`query`,`search`,`match`,`filter`,`vlookup`],billableOperations:TE,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:bE,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,where:null,limit:10,output_fields:{sheet_rows_found_count:{alias:``,enabled:!1},sheet_found_rows:{alias:``,enabled:!0},sheet_found_row_ids:{alias:``,enabled:!1}}}}},kE=`template:fill@1`,AE=g(`template_output`),jE=r.object({pipe_id:r.literal(kE),connector:S(),run_if:x(),config:r.object({template:fs({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:U(`template`),groupPath:`config.general`,required:!0}),output_fields:L(r.object({[AE.name]:O({fieldName:AE.name})}))})}),ME={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},NE=class extends H{pipeId=kE;payload;payloadSchema=jE;billableOperations=ME;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`template-fill-v1-pipe0`)}getInputRequirement(){return Yc([this.payload.config.template])}getSecretRequirements(){return Xc([this.payload.config.template])}getConstantRequirements(){return Zc([this.payload.config.template])}getRawOutputFields(){return{[AE.name]:this.catalogOutput(AE)}}getConnectionsRequirements(){return[]}},PE=jE,FE={pipeId:kE,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:G(kE),label:`Fill a text template`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Replaces template tags like {{ name }} with actual values.`,tags:[W.TEXT],keywords:[`merge`,`personalize`,`liquid`,`placeholder`,`variables`,`mail merge`],docPath:K(kE),defaultInputRequirement:null,billableOperations:ME,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:kE,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},IE=`website:extract:firecrawl@1`,LE=g(`website_url`),RE=g(`firecrawl_extract_result`),zE=r.object({pipe_id:r.literal(IE),connector:S(),run_if:x(),config:r.object({json_schema:Gs({sectionKey:`general`,groupPath:`config.extraction`,path:`config.json_schema`,label:`Output JSON schema`,info:`Specify the data you want to extract as a JSON schema.`,allowEmpty:!1}),extraction_prompt:zs({sectionKey:`general`,groupPath:`config.extraction`,path:`config.extraction_prompt`,label:`Extraction Prompt`,info:`Prompt the scraper on what it should extract. Template tags are not supported.`,rows:5,minLength:10,placeholder:`E.g. Extract the company missing and latest news.`}),enable_full_domain_crawl:D({sectionKey:`general`,groupPath:`config.extraction`,defaultValue:!1,path:`config.enable_full_domain_crawl`,info:`If this option is enabled all URLs from this domain will be scraped.`,label:`Crawl full domain`}),enable_web_search:D({sectionKey:`general`,groupPath:`config.extraction`,label:`Enable web search`,path:`enable_web_search`,defaultValue:!1,info:`When 'true', the extraction will follow links outside the specified domain.`}),input_fields:R(r.object({[LE.name]:T({fieldName:LE.name})})),output_fields:L(r.object({[RE.name]:O({fieldName:RE.name})}))})}),BE=e=>V(q(LE,e)),VE={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},HE=class extends H{pipeId=IE;payload;payloadSchema=zE;billableOperations=VE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return J(e,`website-extract-firecrawl-v1-firecrawl`)}getInputRequirement(){return BE(this.payload.config)}getRawOutputFields(){return{[RE.name]:this.catalogOutput(RE)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},UE=zE,WE={pipeId:IE,basePipe:G(IE),label:`Extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Perform advanced AI scraping to extract data from any website. Search all subdomains and combine scraped data with search results.`,tags:[W.SCRAPE],keywords:[`scrape`,`crawl`,`ai`,`structured data`,`json`,`web`],docPath:K(IE),billableOperations:VE,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:BE(null),defaultPayload:{pipe_id:IE,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}}}}},GE=`website:extract:parallel@1`,KE=g(`website_url`),qE=g(`parallel_extract_result`),JE=r.object({pipe_id:r.literal(GE),connector:S(),run_if:x(),config:r.object({objective:zs({sectionKey:`general`,groupPath:`config.extraction`,path:`config.objective`,label:`Objective`,info:`Natural-language description of what to extract. Template tags are not supported.`,rows:5,minLength:10,placeholder:`E.g. When was the company founded and what does it do?`}),input_fields:R(r.object({[KE.name]:T({fieldName:KE.name})})),output_fields:L(r.object({[qE.name]:O({fieldName:qE.name})}))})}),YE=e=>V(q(KE,e)),XE={"website-extract-parallel-v1-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.1},mode:`onSuccess`}},ZE=class extends H{pipeId=GE;payload;payloadSchema=JE;billableOperations=XE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`parallel`]}estimateBillableOperations(e){return J(e,`website-extract-parallel-v1-parallel`)}getInputRequirement(){return YE(this.payload.config)}getRawOutputFields(){return{[qE.name]:this.catalogOutput(qE,{isPrimaryOutput:!0})}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:1,rateLimitOperation:`parallel_extract`,allowManagedConnection:!0}]}},QE=JE,$E={pipeId:GE,basePipe:G(GE),label:`Extract (Parallel)`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract relevant content from a website using Parallel's Extract API. Returns a flat list of results — page title, publish date and the excerpts most relevant to your objective.`,tags:[W.SCRAPE],keywords:[`scrape`,`crawl`,`content`,`web`,`research`],docPath:K(GE),billableOperations:XE,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`parallel`],managedProviders:[`parallel`],deprecatedProviders:[],defaultInputRequirement:YE(null),defaultPayload:{pipe_id:GE,run_if:null,connector:null,config:{objective:``,input_fields:{website_url:{alias:``}},output_fields:{parallel_extract_result:{alias:``,enabled:!0}}}}},eD=`website:maplinks:firecrawl@1`,tD={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},nD=g(`website_url`),rD=g(`mapped_links`),iD=r.object({pipe_id:r.literal(eD),connector:S(),run_if:x(),config:r.object({page_limit:Us({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,path:`config.page_limit`,sectionKey:`general`}).nullish(),sitemap:Bs({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:Rs({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).nullable().default(``),input_fields:R(r.object({[nD.name]:T({fieldName:nD.name})})),output_fields:L(r.object({[rD.name]:O({fieldName:rD.name})}))}).optional()}),aD=e=>V(q(nD,e)),oD=class extends H{pipeId=eD;payload;payloadSchema=iD;billableOperations=tD;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return J(e,`website-maplinks-firecrawl-v1-firecrawl`)}getInputRequirement(){return aD(this.payload.config)}getRawOutputFields(){return{[rD.name]:this.catalogOutput(rD)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},sD=iD,cD={pipeId:eD,basePipe:G(eD),label:`Map domain links`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Input a website and get all internal URLs on the website. Results do not include links to external pages.`,tags:[W.SCRAPE],keywords:[`sitemap`,`crawl`,`urls`,`pages`,`discover`,`internal`],docPath:K(eD),billableOperations:tD,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:aD(null),defaultPayload:{pipe_id:eD,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},lD=`website:scrape:firecrawl@1`,uD=g(`website_url`),dD=g(`website_markdown`),fD=g(`website_html`),pD=g(`website_links`),mD=r.object({pipe_id:r.literal(lD),connector:S(),run_if:x(),config:r.object({scrape_main_only:D({defaultValue:!1,label:`Scrape main content only?`,info:`If selected, content like headers, footers, and sidebars are excluded from the scrape results.`,sectionKey:`general`,groupPath:`config.general`,path:`config.scrape_main_only`}),input_fields:R(r.object({[uD.name]:T({fieldName:uD.name})})),output_fields:L(r.object({[dD.name]:O({fieldName:dD.name}),[fD.name]:O({fieldName:fD.name}),[pD.name]:O({fieldName:pD.name})}))}).optional()}),hD=e=>V(q(uD,e)),gD={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},_D=class extends H{pipeId=lD;payload;payloadSchema=mD;billableOperations=gD;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return J(e,`website-scrape-firecrawl-v1-firecrawl`)}getInputRequirement(){return hD(this.payload.config)}getRawOutputFields(){return{[dD.name]:this.catalogOutput(dD),[fD.name]:this.catalogOutput(fD),[pD.name]:this.catalogOutput(pD)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},vD=mD,yD={pipeId:lD,basePipe:G(lD),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[W.SCRAPE],keywords:[`crawl`,`html`,`markdown`,`content`,`web page`,`fetch`],docPath:K(lD),billableOperations:gD,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:hD(null),defaultPayload:{pipe_id:lD,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}}}}},bD=`website:scrapelist:firecrawl@1`,xD={"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.`}},SD=g(`urls`),CD=g(`scrape_list_response`),wD=r.object({pipe_id:r.literal(bD),connector:S(),run_if:x(),config:r.object({scrape_main_only:D({label:`Scrape main content only?`,defaultValue:!1,info:`If selected headers, footers, and sidebars will be excluded from the results.`,sectionKey:`general`,groupPath:`config.general`,path:`config.scrape_main_only`}),formats:Hs({options:[{label:`Markdown`,value:`markdown`},{label:`HTML`,value:`html`},{label:`Links`,value:`links`}],disableSearch:!0,info:`Choose what you want to scrape from the website`,required:!1,label:`Formats`,sectionKey:`general`,groupPath:`config.general`,path:`config.formats`}).default([]),input_fields:R(r.object({[SD.name]:T({fieldName:SD.name})})),output_fields:L(r.object({[CD.name]:O({fieldName:CD.name})}))}).optional()}),TD=e=>V(q(SD,e)),ED=class extends H{pipeId=bD;payload;payloadSchema=wD;billableOperations=xD;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return[{billableOperation:`website-scrapelist-firecrawl-v1-firecrawl`,quantity:e.count*5}]}getInputRequirement(){return TD(this.payload.config)}getRawOutputFields(){return{[CD.name]:this.catalogOutput(CD)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},DD=wD,OD={pipeId:bD,basePipe:G(bD),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[W.SCRAPE],keywords:[`crawl`,`html`,`markdown`,`content`,`batch`,`bulk`],docPath:K(bD),billableOperations:xD,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:TD(null),defaultPayload:{pipe_id:bD,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}}}}},kD=[`companies:profiles:crustdata@1`,`companies:profiles:crustdata@2`,`companies:profiles:amplemarket@1`,`companies:profiles:amplemarket@2`,`people:profiles:crustdata@1`,`people:profiles:crustdata@2`,`people:profiles:crustdata@3`,`people:profiles:amplemarket@1`,`people:profiles:amplemarket@2`,`companies:entitysearch:parallel@1`,`people:entitysearch:parallel@1`,`people:eventguests:luma@1`,`sheet:rows@1`,`bucket:entries@1`,`query:postgres@1`,`query:databricks@1`,`posts:content:crustdata@1`],AD=r.enum(kD);function jD(e,t){let n={name:e,config:t};return _c.hashObject(n)}var $=class{estimateBillableOperations(e){let{cost:t,billableOperation:n}=this.billing;return t.allowManagedConnection?[{billableOperation:n,quantity:t.mode===`per_result`?e.count:t.mode===`per_page`?e.count/100:1}]:[]}validatePayload(e){try{return this.schema.parse(e)}catch(e){throw e instanceof n?Error(JSON.stringify(r.prettifyError(e))):e}}catalogOutput(e){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:e.type,format:e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}getDedupConfig(){return{match:`any`,fields:[]}}async getAgentContext(e){return null}getHashKey(){return jD(this.searchId,this.payload)}};function MD(e){return e.split(`@`)[0]}function ND(e){return`/docs/search-catalog/${MD(e)}/${e.split(`@`)[1]}`}const PD=`companies:entitysearch:parallel@1`,FD=g(`company_name`),ID=g(`company_domain`),LD=g(`company_description`),RD=g(`company_profile_url`),zD=g(`parallel_company_entity_match`),BD=r.object({search_id:r.literal(PD),connector:vs(),config:r.object({objective:tc({path:`config.objective`,sectionKey:`general`,groupPath:`config.general`,label:`Objective`,rows:4,minLength:10,placeholder:`AI startups in Europe that raised a Series A in 2024`,description:`Plain-text natural-language description of the companies to find.`}),limit:I({path:`config.limit`,min:5,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of entities to return (5–1000).`}).default(100),output_fields:L(r.object({[FD.name]:M({fieldName:FD.name}),[ID.name]:M({fieldName:ID.name}),[LD.name]:M({fieldName:LD.name}),[RD.name]:M({fieldName:RD.name}),[zD.name]:M({fieldName:zD.name})}))})}),VD={match:`any`,fields:[{fieldName:`company_profile_url`}]},HD={allowManagedConnection:!0,mode:`per_page`,credits:{default:.5},info:`1 page = 100 results; billed per 100 results returned (e.g. 100 results = 1 page, 1,000 results = 10 pages). A search returns up to your selected limit in a single request.`},UD=`companies-entitysearch-parallel-v1`,WD=class extends ${billing={billableOperation:UD,cost:HD};searchId=PD;schema=BD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[FD.name]:this.catalogOutput(FD),[ID.name]:this.catalogOutput(ID),[LD.name]:this.catalogOutput(LD),[RD.name]:this.catalogOutput(RD),[zD.name]:this.catalogOutput(zD)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return VD}},GD=BD,KD={searchId:PD,billableOperation:UD,baseSearch:MD(PD),label:`Company search (AI)`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Natural-language company search powered by Parallel Entity Search.`,tags:[W.COMPANY_PROFILES],keywords:[`find companies`,`accounts`,`prospect`,`natural language`,`organizations`],docPath:ND(PD),cost:HD,provider:`parallel`,defaultPayload:{search_id:PD,connector:null,config:{objective:``,limit:100,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},parallel_company_entity_match:{enabled:!1,alias:``}}}}};function qD(e){let t=!0,n=e=>{if(t!==!1&&typeof e==`object`&&e){Array.isArray(e)&&e.length>0&&(t=!1);for(let r of Object.values(e))typeof r!=`object`&&r!=null&&r!==``&&(t=!1),typeof r==`object`&&r&&n(r)}};return n(e),t}const JD=`companies:profiles:amplemarket@2`,YD=g(`company_name`),XD=g(`company_domain`),ZD=g(`company_description`),QD=g(`company_profile_url`),$D=g(`amplemarket_company_match`),eO=r.object({search_id:r.literal(JD),connector:vs(),config:r.object({limit:I({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`}).default(100),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:L(r.object({[YD.name]:M({fieldName:YD.name}),[XD.name]:M({fieldName:XD.name}),[ZD.name]:M({fieldName:ZD.name}),[QD.name]:M({fieldName:QD.name}),[$D.name]:M({fieldName:$D.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:U(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),company_names:A({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:U(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),company_domains:A({sectionKey:`config.filters`,path:`config.filters.company_domains`,label:`Company domains`,description:``,placeholder:U(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),company_profile_urls:A({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}).default([]),investors:P({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:h(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:U(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}).default([]),company_industries:j({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:Re(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:U(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),customer_types:N({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}).default([]),keywords:A({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),revenue_groups:N({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}).default([]),founded_year:Js({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,description:``}).default({min:null,max:null}),open_position_titles:k({path:`config.filters.open_position_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:U(`title`),suggestionsDef:h(`titles`)}),headcount:N({sectionKey:`config.filters`,path:`config.filters.headcount`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Company sizes`,required:!1,description:``,groupPath:`config.filters.company_size`}).default([]),headcount_growth_l6m_in_percent:Js({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0}).default({min:null,max:null})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),tO={match:`any`,fields:[{fieldName:`company_profile_url`}]},nO={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},rO=`companies-profiles-amplemarket-v2`,iO=class extends ${billing={billableOperation:rO,cost:nO};searchId=JD;schema=eO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[YD.name]:this.catalogOutput(YD),[XD.name]:this.catalogOutput(XD),[ZD.name]:this.catalogOutput(ZD),[QD.name]:this.catalogOutput(QD),[$D.name]:this.catalogOutput($D)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return tO}},aO=eO,oO={searchId:JD,billableOperation:rO,baseSearch:MD(`companies:profiles:amplemarket@2`),label:`Company search`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],keywords:[`accounts`,`prospect`,`find companies`,`organizations`,`firmographic`],docPath:ND(JD),cost:nO,provider:`amplemarket`,defaultPayload:{search_id:JD,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:[]}}}}},sO=`companies:profiles:crustdata@2`,cO=g(`company_name`),lO=g(`company_domain`),uO=g(`company_description`),dO=g(`company_profile_url`),fO=g(`crustdata_company_match`),pO=r.object({search_id:r.literal(sO),connector:vs(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}).default(100),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[cO.name]:M({fieldName:cO.name}),[lO.name]:M({fieldName:lO.name}),[uO.name]:M({fieldName:uO.name}),[dO.name]:M({fieldName:dO.name}),[fO.name]:M({fieldName:fO.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:U(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),crunchbase_categories:F({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:U(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}).default({include:[],exclude:[]}),crunchbase_investors:F({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:U(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}).default({include:[],exclude:[]}),tracxn_investors:F({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:U(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.tracxn_investors.crustdata`)}).default({include:[],exclude:[]}),company_types:j({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),linkedin_industries:F({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:U(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),markets:F({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),linkedin_categories:F({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:h(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),headcount:j({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}).default({include:[],exclude:[]}),linkedin_headcount_ranges:N({path:`config.filters.linkedin_headcount_ranges`,sectionKey:`config.filters`,label:`Size bracket`,description:`Headcount range a company self-reports on its LinkedIn page.`,options:m(`crustdata.linkedin_headcount_ranges`),placeholder:`2-10`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),headcount_growth_l6m_in_percent:N({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),revenue_in_usd:Xs({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:j({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}).default({include:[],exclude:[]}),last_funding_amount:Xs({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:N({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}).default([]),follower_growth_l6m_in_percent:N({path:`config.filters.follower_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}).default([]),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:U(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}).default({include:[],exclude:[]}),competitor_domains:A({path:`config.filters.competitor_domains`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domain`,description:``,placeholder:U(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),company_domains:A({path:`config.filters.company_domains`,sectionKey:`config.filters`,maxItems:400,label:`Company domain`,description:``,placeholder:U(`company_domain`),groupPath:`config.filters.web_presence`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),company_profile_urls:A({path:`config.filters.company_profile_urls`,sectionKey:`config.filters`,maxItems:2e3,label:`Company LinkedIn URL`,description:``,placeholder:`https://linkedin.com/company/...`,groupPath:`config.filters.web_presence`}).default({include:[],exclude:[]}),company_names:A({path:`config.filters.company_names`,sectionKey:`config.filters`,maxItems:2e3,label:`Company name`,description:``,placeholder:U(`company_name`),groupPath:`config.filters.web_presence`}).default({include:[],exclude:[]})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),mO={match:`any`,fields:[{fieldName:`company_profile_url`}]},hO={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},gO=`companies-profiles-crustdata-v2`,_O=class extends ${billing={billableOperation:gO,cost:hO};searchId=sO;schema=pO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[cO.name]:this.catalogOutput(cO),[lO.name]:this.catalogOutput(lO),[uO.name]:this.catalogOutput(uO),[dO.name]:this.catalogOutput(dO),[fO.name]:this.catalogOutput(fO)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return mO}},vO=pO,yO={searchId:sO,billableOperation:gO,baseSearch:MD(`companies:profiles:crustdata@2`),label:`Company search`,categories:[`companies`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],keywords:[`accounts`,`prospect`,`find companies`,`organizations`,`firmographic`,`linkedin`],docPath:ND(sO),cost:hO,provider:`crustdata`,defaultPayload:{search_id:sO,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:{include:[],exclude:[]},linkedin_industries:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},crunchbase_categories:{include:[],exclude:[]},markets:{include:[],exclude:[]},revenue_in_usd:{from:null,to:null},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},follower_growth_l6m_in_percent:[],headcount:{include:[],exclude:[]},linkedin_headcount_ranges:[],hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[],exclude:[]},company_domains:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_names:{include:[],exclude:[]}}}}},bO=`query:databricks@1`,xO=r.object({search_id:r.literal(bO),connector:_s(),config:r.object({query:tc({path:`config.query`,groupPath:`config.general`,sectionKey:`general`,label:`SQL query`,description:`A single read-only SELECT statement. It is wrapped automatically for pagination, so do not add your own LIMIT/OFFSET for paging.`,rows:8,minLength:1,maxLength:2e4}),limit:I({path:`config.limit`,min:1,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of rows per page`}).default(100),page_number:I({path:`config.page_number`,min:1,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page`,description:`1-based page index (offset pagination)`}).nullable().default(1)})}),SO={allowManagedConnection:!1,mode:null,credits:null,info:`Querying your own Databricks SQL warehouse is free.`},CO=`data-query-databricks-v1`,wO=class extends ${billing={billableOperation:CO,cost:SO};searchId=bO;schema=xO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`databricks`,rateLimitOperation:`databricks_query`,rateLimitRatio:1,allowManagedConnection:!1}]}async getAgentContext(e){return rE(`databricks`,e)}},TO=xO,EO={searchId:bO,billableOperation:CO,baseSearch:MD(bO),outputFieldMode:`dynamic`,paginationType:`page_number`,label:`Query Databricks`,categories:[`data`],hasManagedConnection:!1,allowsUserConnection:!0,lifecycle:null,description:`Run a read-only SQL query against your Databricks SQL warehouse and return the rows.`,guide:"Databricks SQL dialect; config.query must be a single read-only statement (no self-managed LIMIT/OFFSET — pagination is wrapped automatically). To discover the schema, draft a payload with a placeholder config.query like \"SELECT 1\" and the chosen connection in connector.connections, then call get_provider_context once — it returns the workspace-wide table/column map (all Unity catalogs) for free. Always reference tables by their FULLY QUALIFIED three-part name exactly as the map lists them (catalog.schema.table, e.g. samples.accuweather.forecast_daily); a bare table name resolves against the warehouse's unpredictable current catalog and usually fails with TABLE_OR_VIEW_NOT_FOUND. Sample actual rows (also free) with run_search_oneshot, then write the real config.query. Tables under the `samples` catalog (and Databricks' other built-in example schemas like `tpch` and `tpcds_*`) are DEMO data shipped to every workspace, NOT the customer's own data. If the user asks about their data and the only match is under `samples`/a demo schema — or the map shows only demo tables — the connection isn't pointed at their catalog: confirm the intended table with the user before querying, and never answer their question from a demo table.",tags:[W.FIELDS,W.NEW],keywords:[`sql`,`database`,`warehouse`,`select`,`table`,`read data`],docPath:ND(bO),cost:SO,provider:`databricks`,defaultPayload:{search_id:bO,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},DO=`query:postgres@1`,OO=r.object({search_id:r.literal(DO),connector:_s(),config:r.object({query:tc({path:`config.query`,groupPath:`config.general`,sectionKey:`general`,label:`SQL query`,description:`A single read-only SELECT statement. It is wrapped automatically for pagination, so do not add your own LIMIT/OFFSET for paging.`,rows:8,minLength:1,maxLength:2e4}),limit:I({path:`config.limit`,min:1,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of rows per page`}).default(100),page_number:I({path:`config.page_number`,min:1,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page`,description:`1-based page index (offset pagination)`}).nullable().default(1)})}),kO={allowManagedConnection:!1,mode:null,credits:null,info:`Querying your own PostgreSQL database is free.`},AO=`data-query-postgres-v1`,jO=class extends ${billing={billableOperation:AO,cost:kO};searchId=DO;schema=OO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`postgres`,rateLimitOperation:`postgres_query`,rateLimitRatio:1,allowManagedConnection:!1}]}async getAgentContext(e){return rE(`postgres`,e)}},MO=OO,NO={searchId:DO,billableOperation:AO,baseSearch:MD(DO),outputFieldMode:`dynamic`,paginationType:`page_number`,label:`Query Postgres`,categories:[`data`],hasManagedConnection:!1,allowsUserConnection:!0,lifecycle:null,description:`Run a read-only SQL query against your own PostgreSQL database and return the rows.`,guide:`PostgreSQL dialect; config.query must be a single read-only SELECT (no self-managed LIMIT/OFFSET — pagination is wrapped automatically). To discover the schema, draft a payload with a placeholder config.query like "SELECT 1" and the chosen connection in connector.connections, then call get_provider_context once — it returns the full table/column map for free. Sample actual rows (also free) with run_search_oneshot, then write the real config.query.`,tags:[W.FIELDS,W.NEW],keywords:[`sql`,`database`,`select`,`table`,`read data`],docPath:ND(DO),cost:kO,provider:`postgres`,defaultPayload:{search_id:DO,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},PO=`companies:profiles:amplemarket@1`,FO=g(`company_name`),IO=g(`company_website_url`),LO=g(`company_description`),RO=g(`company_profile_url`),zO=g(`amplemarket_company_match`),BO=r.object({search_id:r.literal(PO),connector:Ji.nullable().optional(),config:r.object({limit:I({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`}),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:L(r.object({[FO.name]:M({fieldName:FO.name}),[IO.name]:M({fieldName:IO.name}),[LO.name]:M({fieldName:LO.name}),[RO.name]:M({fieldName:RO.name}),[zO.name]:M({fieldName:zO.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:U(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),company_names:A({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:U(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),company_website_urls:A({sectionKey:`config.filters`,path:`config.filters.company_website_urls`,label:`Company domains`,description:``,placeholder:U(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),company_profile_urls:A({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}).default([]),investors:P({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:h(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:U(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}).default([]),company_industries:j({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:Re(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:U(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),customer_types:N({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}).default([]),keywords:A({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),revenue_groups:N({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}).default([]),founded_year:Js({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,description:``}).default({min:null,max:null}),open_positions_titles:k({path:`config.filters.open_positions_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:U(`title`),suggestionsDef:h(`titles`)}),headcount:N({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}).default([]),headcount_growth_last_6_months_in_percent:Js({path:`config.filters.headcount_growth_last_6_months_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0}).default({min:null,max:null})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),VO={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},HO=`companies-profiles-amplemarket-v1`,UO=class extends ${billing={billableOperation:HO,cost:VO};searchId=PO;schema=BO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[FO.name]:this.catalogOutput(FO),[IO.name]:this.catalogOutput(IO),[LO.name]:this.catalogOutput(LO),[RO.name]:this.catalogOutput(RO),[zO.name]:this.catalogOutput(zO)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},WO=BO,GO={searchId:PO,billableOperation:HO,baseSearch:MD(`companies:profiles:amplemarket@1`),label:`Company search`,categories:[`deprecated`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`companies:profiles:amplemarket@2`},description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],docPath:ND(PO),cost:VO,provider:`amplemarket`,defaultPayload:{search_id:PO,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:[]}}}}},KO=`companies:profiles:crustdata@1`,qO=g(`company_name`),JO=g(`company_website_url`),YO=g(`company_description`),XO=g(`company_profile_url`),ZO=g(`crustdata_company_match`),QO=r.object({search_id:r.literal(KO),connector:Ji.nullable().optional(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[qO.name]:M({fieldName:qO.name}),[JO.name]:M({fieldName:qO.name}),[YO.name]:M({fieldName:YO.name}),[XO.name]:M({fieldName:XO.name}),[ZO.name]:M({fieldName:ZO.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:U(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),crunchbase_categories:F({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:U(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}).default({include:[],exclude:[]}),crunchbase_investors:F({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:U(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}).default({include:[],exclude:[]}),tracxn_investors:F({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:U(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.tracxn_investors.crustdata`)}).default({include:[],exclude:[]}),company_types:j({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),linkedin_industries:F({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:U(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),markets:F({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),linkedin_categories:F({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:h(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),headcount:j({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}).default({include:[],exclude:[]}),headcount_growth_last_6m_in_percent:N({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),revenue_in_usd:Xs({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:j({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}).default({include:[],exclude:[]}),last_funding_amount:Xs({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:N({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}).default([]),follower_growth_last_6m_in_percent:N({path:`config.filters.follower_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}).default([]),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:U(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}).default({include:[],exclude:[]}),competitor_websites:A({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:``,placeholder:U(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),$O={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},ek=`companies-profiles-crustdata-v1`,tk=class extends ${billing={billableOperation:ek,cost:$O};searchId=KO;schema=QO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[qO.name]:this.catalogOutput(qO),[JO.name]:this.catalogOutput(JO),[YO.name]:this.catalogOutput(YO),[XO.name]:this.catalogOutput(XO),[ZO.name]:this.catalogOutput(ZO)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},nk=QO,rk={searchId:KO,billableOperation:ek,baseSearch:MD(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`deprecated`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`companies:profiles:crustdata@2`},description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],docPath:ND(KO),cost:$O,provider:`crustdata`,defaultPayload:{search_id:KO,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:[]}}}}},ik=`people:profiles:amplemarket@1`,ak=g(`name`),ok=g(`company_website_url`),sk=g(`profile_url`),ck=g(`job_title`),lk=g(`amplemarket_person_match`),uk=r.object({search_id:r.literal(ik),connector:Ji.nullable().optional(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:L(r.object({[ak.name]:M({fieldName:ak.name}),[ok.name]:M({fieldName:ok.name}),[sk.name]:M({fieldName:sk.name}),[ck.name]:M({fieldName:ck.name}),[lk.name]:M({fieldName:lk.name})})),filters:r.object({person_names:k({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:F({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),current_job_titles:k({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:U(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}),current_seniority_levels:N({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:U(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_departments:N({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:U(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_job_functions:N({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:U(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_employer_locations:F({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:h(`locations`),groupPath:`config.filters.current_company`,placeholder:U(`location`)}).default({include:[],exclude:[]}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:U(`company_name`),suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),current_employer_website_urls:A({path:`config.filters.current_employer_website_urls`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:U(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),current_employer_linkedin_industries:N({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:U(`industry`),required:!1,options:m(`linkedin.industries`)}).default([]),current_employer_estimated_revenue:N({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:m(`amplemarket.company_revenue`)}).default([]),current_employer_founded_year:Js({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,description:``}).default({min:null,max:null}),current_employer_investors:k({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:U(`investor`),description:``}),current_employer_open_positions_titles:k({path:`config.filters.current_employer_open_positions_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:U(`title`),suggestionsDef:h(`titles`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),dk={allowManagedConnection:!0,mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},fk=`people-profiles-amplemarket-v1`,pk=class extends ${billing={billableOperation:fk,cost:dk};searchId=ik;schema=uk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[ak.name]:this.catalogOutput(ak),[ok.name]:this.catalogOutput(ok),[sk.name]:this.catalogOutput(sk),[ck.name]:this.catalogOutput(ck),[lk.name]:this.catalogOutput(lk)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},mk=uk,hk={searchId:ik,billableOperation:fk,baseSearch:MD(`people:profiles:amplemarket@1`),paginationType:`page_number`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:amplemarket@2`},description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],docPath:ND(ik),cost:dk,provider:`amplemarket`,defaultPayload:{search_id:ik,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:[]}}}},gk=`people:profiles:crustdata@1`,_k=g(`name`),vk=g(`company_website_url`),yk=g(`profile_url`),bk=g(`job_title`),xk=g(`crustdata_person_match`),Sk=r.object({search_id:r.literal(gk),connector:Ji.nullable().optional(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[_k.name]:M({fieldName:_k.name}),[vk.name]:M({fieldName:vk.name}),[yk.name]:M({fieldName:yk.name}),[bk.name]:M({fieldName:bk.name}),[xk.name]:M({fieldName:xk.name})})),filters:r.object({locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:U(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:U(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),current_employers:A({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),current_employers_website_urls:A({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Company domain`,placeholder:U(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),current_employers_linkedin_industries:F({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:U(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),years_at_current_company:N({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:m(`crustdata.years_of_experience`)}).default([]),previous_employers_website_urls:A({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:U(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),previous_seniority_levels:j({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:U(`seniority`),disableSearch:!0,optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),previous_employers:A({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),previous_job_titles:A({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:U(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),previous_employers_linkedin_industries:F({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:U(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),profile_headline_keywords:A({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`headline_keywords`)}).default({include:[],exclude:[]}),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`profile_keywords`)}).default({include:[],exclude:[]}),profile_languages:j({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:U(`languages`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),languages:j({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:U(`languages_1`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:U(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default({include:[],exclude:[]}),years_of_experience:N({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),current_seniority_levels:j({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:U(`seniority`),optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:U(`certification`),description:``}).default({include:[],exclude:[]}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:U(`honor`),description:``}).default({include:[],exclude:[]}),recently_changed_jobs:$s({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:F({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:U(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}).default({include:[],exclude:[]}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:U(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}).default({include:[],exclude:[]}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),current_school_names:F({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),extracurricular_activities:A({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:U(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)}).default({include:[],exclude:[]})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Ck={allowManagedConnection:!0,mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},wk=`people-profiles-crustdata-v1`,Tk=class extends ${billing={billableOperation:wk,cost:Ck};searchId=gk;schema=Sk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[_k.name]:this.catalogOutput(_k),[vk.name]:this.catalogOutput(vk),[yk.name]:this.catalogOutput(yk),[bk.name]:this.catalogOutput(bk),[xk.name]:this.catalogOutput(xk)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},Ek=Sk,Dk={searchId:gk,billableOperation:wk,baseSearch:MD(`people:profiles:crustdata@1`),paginationType:`cursor`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:crustdata@2`},description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],docPath:ND(gk),cost:Ck,provider:`crustdata`,defaultPayload:{search_id:gk,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},crustdata_person_match:{enabled:!0,alias:``}},filters:{profile_headline_keywords:{include:[],exclude:[]},languages:{include:[],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},current_employers:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},years_at_current_company:[],certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employers_linkedin_industries:{include:[],exclude:[]},current_employers_website_urls:{include:[],exclude:[]},previous_employers_website_urls:{include:[],exclude:[]},current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},locations:{include:[],exclude:[]},profile_languages:{include:[],exclude:[]},recently_changed_jobs:null,extracurricular_activities:{include:[],exclude:[]},school_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},previous_employers:{include:[],exclude:[]},current_job_titles:{include:[],exclude:[]},skills:{include:[],exclude:[]},years_of_experience:[],previous_employers_linkedin_industries:{include:[],exclude:[]}}}}},Ok=`people:entitysearch:parallel@1`,kk=g(`name`),Ak=g(`job_title`),jk=g(`profile_url`),Mk=g(`parallel_person_entity_match`),Nk=r.object({search_id:r.literal(Ok),connector:vs(),config:r.object({objective:tc({path:`config.objective`,sectionKey:`general`,groupPath:`config.general`,label:`Objective`,rows:4,minLength:10,placeholder:`Heads of Engineering at Series B fintech companies in the US`,description:`Plain-text natural-language description of the people to find.`}),limit:I({path:`config.limit`,min:5,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of entities to return (5–1000).`}).default(100),output_fields:L(r.object({[kk.name]:M({fieldName:kk.name}),[Ak.name]:M({fieldName:Ak.name}),[jk.name]:M({fieldName:jk.name}),[Mk.name]:M({fieldName:Mk.name})}))})}),Pk={match:`any`,fields:[{fieldName:`profile_url`}]},Fk={allowManagedConnection:!0,mode:`per_page`,credits:{default:.5},info:`1 page = 100 results; billed per 100 results returned (e.g. 100 results = 1 page, 1,000 results = 10 pages). A search returns up to your selected limit in a single request.`},Ik=`people-entitysearch-parallel-v1`,Lk=class extends ${billing={billableOperation:Ik,cost:Fk};searchId=Ok;schema=Nk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[kk.name]:this.catalogOutput(kk),[Ak.name]:this.catalogOutput(Ak),[jk.name]:this.catalogOutput(jk),[Mk.name]:this.catalogOutput(Mk)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Pk}},Rk=Nk,zk={searchId:Ok,billableOperation:Ik,baseSearch:MD(Ok),label:`People search (AI)`,categories:[`people`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Natural-language people search powered by Parallel Entity Search.`,tags:[W.PEOPLE_PROFILES],keywords:[`prospect`,`lead`,`contact`,`find people`,`natural language`],docPath:ND(Ok),cost:Fk,provider:`parallel`,defaultPayload:{search_id:Ok,connector:null,config:{objective:``,limit:100,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},parallel_person_entity_match:{enabled:!1,alias:``}}}}},Bk=`people:eventguests:luma@1`,Vk=g(`name`),Hk=g(`email`),Uk=g(`luma_id`),Wk=g(`registered_at`),Gk=g(`luma_event_guest_match`),Kk=[{label:`Sample Meetup — Berlin`,value:`evt-sandbox-1`},{label:`Sample Conference — SF`,value:`evt-sandbox-2`}],qk={requires:{connection:`luma`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Kk;if(!t)throw Error(`A Luma connection is required to list events.`);let r=await fetch(`https://public-api.luma.com/v1/calendar/list-events`,{headers:{accept:`application/json`,"x-luma-api-key":t}});if(!r.ok){let e=await r.text();throw Error(`Failed to list Luma events: ${e}`)}let i=((await r.json()).entries||[]).filter(e=>!!e?.id).map(e=>({label:e.name||e.id,value:e.id}));return e?i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):i}},Jk=r.object({search_id:r.literal(Bk),connector:_s(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of guests per page`}).default(100),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[Vk.name]:M({fieldName:Vk.name}),[Hk.name]:M({fieldName:Hk.name}),[Uk.name]:M({fieldName:Uk.name}),[Wk.name]:M({fieldName:Wk.name}),[Gk.name]:M({fieldName:Gk.name})})),filters:r.object({event_id:rc({path:`config.filters.event_id`,sectionKey:`config.filters`,groupPath:`config.filters.event`,label:`Event`,required:!0,info:`Pick one of your Luma events; guests of this event are returned.`,enabledIf:no(`luma`),optionsDef:qk}),approval_status:nc({path:`config.filters.approval_status`,sectionKey:`config.filters`,groupPath:`config.filters.event`,label:`Approval status`,description:`Only return guests with this approval status.`,required:!1,options:[{value:`approved`,label:`Approved`},{value:`pending_approval`,label:`Pending approval`},{value:`declined`,label:`Declined`},{value:`waitlist`,label:`Waitlist`},{value:`invited`,label:`Invited`}]})})})}),Yk={match:`any`,fields:[{fieldName:`luma_id`}]},Xk={allowManagedConnection:!0,mode:`per_page`,credits:{default:1},info:`1 page = up to 100 guests.`},Zk=`people-eventguests-luma-v1`,Qk=class extends ${billing={billableOperation:Zk,cost:Xk};searchId=Bk;schema=Jk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Vk.name]:this.catalogOutput(Vk),[Hk.name]:this.catalogOutput(Hk),[Uk.name]:this.catalogOutput(Uk),[Wk.name]:this.catalogOutput(Wk),[Gk.name]:this.catalogOutput(Gk)}}getConnectionsRequirements(){return[{provider:`luma`,rateLimitOperation:`luma_get_guests`,rateLimitRatio:1,allowManagedConnection:!1}]}getDedupConfig(){return Yk}},$k=Jk,eA={searchId:Bk,billableOperation:Zk,baseSearch:MD(Bk),paginationType:`cursor`,label:`List event guests`,categories:[`people`],hasManagedConnection:!1,allowsUserConnection:!0,lifecycle:null,description:`Fetch all guests of a Luma event using your own Luma API key.`,tags:[W.PEOPLE_PROFILES,W.EVENTS,W.NEW],keywords:[`attendees`,`rsvp`,`meetup`,`conference`,`registrations`,`participants`],docPath:ND(Bk),cost:Xk,provider:`luma`,defaultPayload:{search_id:Bk,connector:{strategy:`first`,connections:[]},config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},email:{enabled:!0,alias:``},luma_id:{enabled:!0,alias:``},registered_at:{enabled:!0,alias:``},luma_event_guest_match:{enabled:!0,alias:``}},filters:{event_id:``,approval_status:``}}}},tA=`people:profiles:amplemarket@2`,nA=g(`name`),rA=g(`company_domain`),iA=g(`profile_url`),aA=g(`job_title`),oA=g(`amplemarket_person_match`),sA=r.object({search_id:r.literal(tA),connector:vs(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,label:`Page size`,sectionKey:`pagination`,description:`Max number of search results per page`}).default(50),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:L(r.object({[nA.name]:M({fieldName:nA.name}),[rA.name]:M({fieldName:rA.name}),[iA.name]:M({fieldName:iA.name}),[aA.name]:M({fieldName:aA.name}),[oA.name]:M({fieldName:oA.name})})),filters:r.object({person_names:k({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:F({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),current_job_titles:k({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:U(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}),current_seniority_levels:N({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:U(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_departments:N({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:U(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_job_functions:N({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:U(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_employer_locations:F({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:h(`locations`),groupPath:`config.filters.current_company`,placeholder:U(`location`)}).default({include:[],exclude:[]}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:U(`company_name`),suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),current_employer_domains:A({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:U(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),current_employer_linkedin_industries:N({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:U(`industry`),required:!1,options:m(`linkedin.industries`)}).default([]),current_employer_estimated_revenue:N({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:m(`amplemarket.company_revenue`)}).default([]),current_employer_founded_year:Js({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,description:``}).default({min:null,max:null}),current_employer_investors:k({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:U(`investor`),description:``}),current_employer_open_position_titles:k({path:`config.filters.current_employer_open_position_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:U(`title`),suggestionsDef:h(`titles`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),cA={match:`any`,fields:[{fieldName:`profile_url`}]},lA={allowManagedConnection:!0,mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},uA=`people-profiles-amplemarket-v2`,dA=class extends ${billing={billableOperation:uA,cost:lA};searchId=tA;schema=sA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[nA.name]:this.catalogOutput(nA),[rA.name]:this.catalogOutput(rA),[iA.name]:this.catalogOutput(iA),[aA.name]:this.catalogOutput(aA),[oA.name]:this.catalogOutput(oA)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return cA}},fA=sA,pA={searchId:tA,billableOperation:uA,baseSearch:MD(`people:profiles:amplemarket@2`),paginationType:`page_number`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],keywords:[`prospect`,`lead`,`contact`,`find people`,`filters`],docPath:ND(tA),cost:lA,provider:`amplemarket`,defaultPayload:{search_id:tA,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:[]}}}},mA=`people:profiles:crustdata@2`,hA=g(`name`),gA=g(`company_domain`),_A=g(`profile_url`),vA=g(`job_title`),yA=g(`crustdata_person_match`),bA=r.object({search_id:r.literal(mA),connector:vs(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page size`,description:`Max number of search results per page`}).default(100),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[hA.name]:M({fieldName:hA.name}),[gA.name]:M({fieldName:gA.name}),[_A.name]:M({fieldName:_A.name}),[vA.name]:M({fieldName:vA.name}),[yA.name]:M({fieldName:yA.name})})),filters:r.object({locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:U(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:U(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),current_employer_domains:A({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:U(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),current_employer_industries:F({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:U(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),years_at_current_company:N({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:m(`crustdata.years_of_experience`)}).default([]),previous_employer_domains:A({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:U(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),previous_seniority_levels:j({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:U(`seniority`),disableSearch:!0,optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),previous_employer_names:A({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),previous_job_titles:A({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:U(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),previous_employer_industries:F({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:U(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),profile_headline_keywords:A({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`headline_keywords`)}).default({include:[],exclude:[]}),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`profile_keywords`)}).default({include:[],exclude:[]}),profile_languages:j({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:U(`languages`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),languages:j({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:U(`languages_1`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:U(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default({include:[],exclude:[]}),years_of_experience:N({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),current_seniority_levels:j({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:U(`seniority`),optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:U(`certification`),description:``}).default({include:[],exclude:[]}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:U(`honor`),description:``}).default({include:[],exclude:[]}),recently_changed_jobs:$s({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:F({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:U(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}).default({include:[],exclude:[]}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:U(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}).default({include:[],exclude:[]}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),current_school_names:F({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),extracurricular_activities:A({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:U(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)}).default({include:[],exclude:[]}),post_processing_exclude_profiles:k({path:`config.filters.post_processing_exclude_profiles`,sectionKey:`config.filters`,groupPath:`config.filters.post_processing`,label:`Exclude profiles`,maxItems:5e3,placeholder:U(`person_profile_url`),description:`LinkedIn profile URLs (https://www.linkedin.com/in/{slug}) removed from the search results`}).default([]),post_processing_exclude_names:k({path:`config.filters.post_processing_exclude_names`,sectionKey:`config.filters`,groupPath:`config.filters.post_processing`,label:`Exclude names`,maxItems:5e3,placeholder:U(`person_name`),description:`Full names removed from the search results`}).default([])}).check(e=>{let{post_processing_exclude_profiles:t,post_processing_exclude_names:n,...r}=e.value;qD(r)&&e.issues.push({code:`custom`,message:`You must set at least one meaningful filter.`,input:e.value})})})}),xA={match:`any`,fields:[{fieldName:`profile_url`}]},SA={allowManagedConnection:!0,mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},CA=`people-profiles-crustdata-v2`,wA=class extends ${billing={billableOperation:CA,cost:SA};searchId=mA;schema=bA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[hA.name]:this.catalogOutput(hA),[gA.name]:this.catalogOutput(gA),[_A.name]:this.catalogOutput(_A),[vA.name]:this.catalogOutput(vA),[yA.name]:this.catalogOutput(yA)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return xA}},TA=bA,EA={searchId:mA,billableOperation:CA,baseSearch:MD(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],keywords:[`prospect`,`lead`,`contact`,`find people`,`linkedin`],docPath:ND(mA),cost:SA,provider:`crustdata`,defaultPayload:{search_id:mA,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:[]},post_processing_exclude_profiles:[],post_processing_exclude_names:[]}}}},DA=`people:profiles:crustdata@3`,OA=g(`name`),kA=g(`profile_url`),AA=g(`person_profile_match`),jA=r.object({search_id:r.literal(DA),connector:vs(),config:r.object({limit:I({path:`config.limit`,min:1,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page size`,description:`Max number of search results per page`}).default(100),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[OA.name]:M({fieldName:OA.name}),[kA.name]:M({fieldName:kA.name}),[AA.name]:M({fieldName:AA.name})})),filters:r.object({recently_changed_jobs:$s({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:U(`certification`),description:``,suggestionsDef:h(`person.certifications.crustdata`)}).default({include:[],exclude:[]}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:U(`honor`),description:``,suggestionsDef:h(`person.honors.crustdata`)}).default({include:[],exclude:[]}),current_employer_domains:A({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:U(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),current_employer_headcount_brackets:N({path:`config.filters.current_employer_headcount_brackets`,sectionKey:`config.filters`,label:`Headcount`,description:``,placeholder:`1-10`,disableSearch:!0,required:!1,options:m(`crustdata.company_size`),groupPath:`config.filters.current_employer`}).default([]),current_employer_industries:F({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:U(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),current_employment_job_functions:N({path:`config.filters.current_employment_job_functions`,sectionKey:`config.filters`,label:`Function`,groupPath:`config.filters.current_employer`,placeholder:U(`job_function`),description:``,disableSearch:!0,required:!1,options:m(`employment_function.crustdata`)}).default([]),current_employment_job_titles:A({path:`config.filters.current_employment_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:U(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),current_employment_seniority_levels:N({path:`config.filters.current_employment_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:U(`seniority`),options:Re(`crustdata.person_seniority`).options,required:!1,description:``,groupPath:`config.filters.current_employer`}).default([]),current_employment_tenure_brackets:N({path:`config.filters.current_employment_tenure_brackets`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:m(`crustdata.years_of_experience`)}).default([]),current_school_names:F({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree`,placeholder:U(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}).default({include:[],exclude:[]}),fields_of_study:F({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Field of study`,placeholder:U(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}).default({include:[],exclude:[]}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),previous_employer_domains:A({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:U(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),previous_employer_headcount_brackets:N({path:`config.filters.previous_employer_headcount_brackets`,sectionKey:`config.filters`,label:`Previous employer headcount`,description:``,placeholder:`1-10`,disableSearch:!0,required:!1,options:m(`crustdata.company_size`),groupPath:`config.filters.experience`}).default([]),previous_employer_industries:F({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industry`,placeholder:U(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),previous_employer_names:A({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer name`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),previous_employment_job_functions:N({path:`config.filters.previous_employment_job_functions`,sectionKey:`config.filters`,label:`Previous function`,groupPath:`config.filters.experience`,placeholder:U(`job_function`),description:``,disableSearch:!0,required:!1,options:m(`employment_function.crustdata`)}).default([]),previous_employment_job_titles:A({path:`config.filters.previous_employment_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:U(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),previous_employment_seniority_levels:N({path:`config.filters.previous_employment_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:U(`seniority`),disableSearch:!0,options:Re(`crustdata.person_seniority`).options,required:!1,description:``,groupPath:`config.filters.experience`}).default([]),previous_employment_tenure_brackets:N({path:`config.filters.previous_employment_tenure_brackets`,sectionKey:`config.filters`,label:`Years at previous company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,options:m(`crustdata.years_of_experience`)}).default([]),total_years_of_experience_brackets:N({path:`config.filters.total_years_of_experience_brackets`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),languages:j({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:U(`languages_1`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:U(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),about_section_keywords:A({path:`config.filters.about_section_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`profile_keywords`)}).default({include:[],exclude:[]}),profile_headline_keywords:A({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`headline_keywords`)}).default({include:[],exclude:[]}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:U(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default({include:[],exclude:[]})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),MA={match:`any`,fields:[{fieldName:`profile_url`}]},NA={allowManagedConnection:!0,mode:`per_result`,credits:{default:.15,level1:{credits:.07,weight:10}},info:`1 page = 100 records; 200 results = 2 pages`},PA=`people-profiles-crustdata-v3`,FA=class extends ${billing={billableOperation:PA,cost:NA};searchId=DA;schema=jA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[OA.name]:this.catalogOutput(OA),[kA.name]:this.catalogOutput(kA),[AA.name]:this.catalogOutput(AA)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return MA}},IA=jA,LA={searchId:DA,billableOperation:PA,baseSearch:MD(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],keywords:[`prospect`,`lead`,`contact`,`find people`,`linkedin`],docPath:ND(DA),cost:NA,provider:`crustdata`,defaultPayload:{search_id:DA,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},person_profile_match:{enabled:!0,alias:``}},filters:{recently_changed_jobs:null,certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employer_domains:{include:[],exclude:[]},current_employer_headcount_brackets:[],current_employer_industries:{include:[],exclude:[]},current_employer_names:{include:[],exclude:[]},current_employment_job_functions:[],current_employment_job_titles:{include:[],exclude:[]},current_employment_seniority_levels:[],current_employment_tenure_brackets:[],current_school_names:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},school_names:{include:[],exclude:[]},previous_employer_domains:{include:[],exclude:[]},previous_employer_headcount_brackets:[],previous_employer_industries:{include:[],exclude:[]},previous_employer_names:{include:[],exclude:[]},previous_employment_job_functions:[],previous_employment_job_titles:{include:[],exclude:[]},previous_employment_seniority_levels:[],previous_employment_tenure_brackets:[],total_years_of_experience_brackets:[],languages:{include:[],exclude:[]},locations:{include:[],exclude:[]},about_section_keywords:{include:[],exclude:[]},profile_headline_keywords:{include:[],exclude:[]},skills:{include:[],exclude:[]}}}}},RA=`posts:content:crustdata@1`,zA=g(`post_match`),BA=g(`post_text`),VA=g(`post_id`),HA=r.object({search_id:r.literal(RA),connector:vs(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page size`,description:`Max number of search results per page`}).default(100),output_fields:L(r.object({[VA.name]:M({fieldName:VA.name}),[zA.name]:M({fieldName:zA.name}),[BA.name]:M({fieldName:BA.name})})),filters:r.object({keywords:k({path:`config.filters.keywords`,sectionKey:`config.filters`,label:`Search keywords`,groupPath:`config.filters.general`,maxItems:6,placeholder:U(`profile_keywords`),description:``}).default([]),keyword_operator:nc({path:`config.filters.keyword_operator`,sectionKey:`config.filters`,label:`Keyword operator`,groupPath:`config.filters.general`,options:[{value:`OR`,label:`Any keyword (OR)`},{value:`AND`,label:`All keywords (AND)`}],required:!0,defaultValue:`OR`,description:`Post must match any or all keywords.`}).default(`OR`),date_posted:nc({path:`config.filters.date_posted`,sectionKey:`config.filters`,label:`Date posted`,groupPath:`config.filters.general`,options:Re(`crustdata.post_date_posted`).options,placeholder:`Past 24h, past week, ...`,required:!1,defaultValue:``,description:`Only return posts published within this recency window.`}).default(``),content_types:N({path:`config.filters.content_types`,sectionKey:`config.filters`,label:`Content type`,groupPath:`config.filters.general`,options:m(`crustdata.post_content_type`),disableSearch:!0,required:!1,placeholder:`Photos, jobs, ...`,description:``}).default([]),author_industries:P({path:`config.filters.author_industries`,sectionKey:`config.filters`,label:`Author industry`,groupPath:`config.filters.author`,optionsDef:h(`linkedin_industries.crustdata`),disableSearch:!1,required:!1,maxItems:100,placeholder:U(`industry`),description:`Only return posts whose author works in one of these industries.`}).default([]),author_company_profile_url:k({path:`config.filters.author_company_profile_url`,sectionKey:`config.filters`,label:`Author company profile URL`,groupPath:`config.filters.author`,maxItems:50,placeholder:`https://linkedin.com/company/..., ...`,description:`Only return posts whose author currently works at these companies (by LinkedIn profile URL).`}).default([]),author_title:k({path:`config.filters.author_title`,sectionKey:`config.filters`,label:`Author title`,groupPath:`config.filters.author`,maxItems:50,suggestionsDef:h(`titles`),placeholder:U(`title`),description:`Only return posts whose author holds one of these titles.`}).default([]),author_profile_url:k({path:`config.filters.author_profile_url`,sectionKey:`config.filters`,label:`Author profile URL`,groupPath:`config.filters.author`,maxItems:50,placeholder:`https://linkedin.com/in/..., ...`,description:`Only return posts authored by these people (by LinkedIn profile URL).`}).default([]),authoring_company_profile_url:k({path:`config.filters.authoring_company_profile_url`,sectionKey:`config.filters`,label:`Authoring company profile URL`,groupPath:`config.filters.author`,maxItems:50,placeholder:`https://linkedin.com/company/..., ...`,description:`Only return posts authored by these companies (by LinkedIn profile URL).`}).default([]),companies_mentioned_in_post:k({path:`config.filters.companies_mentioned_in_post`,sectionKey:`config.filters`,label:`Companies mentioned in post`,groupPath:`config.filters.mentions`,maxItems:50,placeholder:`https://linkedin.com/company/..., ...`,description:`Only return posts that mention these companies (by LinkedIn profile URL).`}).default([]),people_mentioned_in_post:k({path:`config.filters.people_mentioned_in_post`,sectionKey:`config.filters`,label:`People mentioned in post`,groupPath:`config.filters.mentions`,maxItems:50,placeholder:`https://linkedin.com/in/..., ...`,description:`Only return posts that mention these people (by LinkedIn profile URL).`}).default([])}).check(e=>{let t=e.value,n=t.keywords.some(e=>e.trim()!==``),r=[t.author_industries,t.author_company_profile_url,t.author_title,t.author_profile_url,t.authoring_company_profile_url,t.companies_mentioned_in_post,t.people_mentioned_in_post].some(e=>e.length>0);!n&&!r&&e.issues.push({code:`custom`,message:`Provide a keyword or at least one filter.`,input:e.value,path:[`keywords`]});let i=t.author_industries.length>0||t.author_company_profile_url.length>0||t.author_title.length>0||t.author_profile_url.length>0;t.authoring_company_profile_url.length>0&&i&&e.issues.push({code:`custom`,message:`Authoring company profile URL can't be combined with author profile URL, company name, title, or industry filters.`,input:e.value,path:[`authoring_company_profile_url`]})})})}),UA={match:`any`,fields:[{fieldName:`post_id`}]},WA={allowManagedConnection:!0,mode:`per_result`,credits:{default:2}},GA=`posts-content-crustdata-v1`,KA=class extends ${billing={billableOperation:GA,cost:WA};searchId=RA;schema=HA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[VA.name]:this.catalogOutput(VA),[zA.name]:this.catalogOutput(zA),[BA.name]:this.catalogOutput(BA)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_social_post_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return UA}},qA=HA,JA={searchId:RA,billableOperation:GA,baseSearch:MD(RA),paginationType:`page_number`,label:`LinkedIn post search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Keyword-based LinkedIn post search.`,tags:[W.LINKEDIN],keywords:[`content`,`social`,`engagement`,`keyword`,`activity`],docPath:ND(RA),cost:WA,provider:`crustdata`,defaultPayload:{search_id:RA,connector:null,config:{limit:100,output_fields:{post_id:{enabled:!0,alias:``},post_text:{enabled:!0,alias:``},post_match:{enabled:!0,alias:``}},filters:{keywords:[],keyword_operator:`OR`,date_posted:``,content_types:[],author_industries:[],author_company_profile_url:[],author_title:[],author_profile_url:[],authoring_company_profile_url:[],companies_mentioned_in_post:[],people_mentioned_in_post:[]}}}},YA=`bucket:entries@1`,XA=r.object({search_id:r.literal(YA),connector:_s(),config:r.object({bucket:ec({path:`config.bucket`,groupPath:`config.general`,inputType:`text`,label:`Bucket`,sectionKey:`general`,description:`The bucket's org-unique slug. Its entries (one row each) are returned.`}),limit:I({path:`config.limit`,min:1,max:2e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of entries per page`}).default(100),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),include_metadata:Qs({path:`config.include_metadata`,groupPath:`config.general`,sectionKey:`general`,label:`Include metadata`,description:`Provenance (source sheet/row/run) and expiry as extra columns.`,defaultValue:!1})})}),ZA={allowManagedConnection:!0,mode:`per_search`,credits:{default:0},info:`Reading your own bucket is free.`},QA=`bucket-entries-v1-pipe0`,$A=class extends ${billing={billableOperation:QA,cost:ZA};searchId=YA;schema=XA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0_api_operation`,rateLimitRatio:1,allowManagedConnection:!0}]}},ej=XA,tj={searchId:YA,billableOperation:QA,baseSearch:MD(YA),outputFieldMode:`dynamic`,paginationType:`cursor`,label:`Read bucket entries`,categories:[`data`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`List the entries in a bucket — one row per entry, with its identifying field values (and counter number / expiry).`,tags:[W.FIELDS,W.NEW],keywords:[`claims`,`counter`,`suppression`,`list`,`lookup`,`rows`],docPath:ND(YA),cost:ZA,provider:`pipe0`,defaultPayload:{search_id:YA,connector:{strategy:`first`,connections:[]},config:{bucket:``,limit:100,cursor:``,include_metadata:!1}}},nj=`sheet:rows@1`,rj=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],ij={requires:{connection:`pipe0`},enabledIf:no(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?rj:t?(await t.sheets.list({query:e})).map(e=>({label:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},aj=r.object({search_id:r.literal(nj),connector:_s(),config:r.object({sheet:rc({path:`config.sheet`,sectionKey:`general`,groupPath:`config.general`,label:`Sheet`,required:!0,info:`Pick one of your pipe0 sheets; its rows are returned.`,enabledIf:no(`pipe0`),optionsDef:ij}),limit:I({path:`config.limit`,min:1,max:2e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of rows per page`}).default(100),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),include_metadata:Qs({path:`config.include_metadata`,groupPath:`config.general`,sectionKey:`general`,label:`Include metadata`,description:`Widgets and prevenance tags.`,defaultValue:!1})})}),oj={allowManagedConnection:!0,mode:`per_search`,credits:{default:0},info:`Reading your own pipe0 sheet is free.`},sj=`sheet-items-v1-pipe0`,cj=class extends ${billing={billableOperation:sj,cost:oj};searchId=nj;schema=aj;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0_api_operation`,rateLimitRatio:1,allowManagedConnection:!0}]}},lj=aj,uj={searchId:nj,billableOperation:sj,baseSearch:MD(nj),outputFieldMode:`dynamic`,paginationType:`cursor`,label:`Read sheet rows`,categories:[`data`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`List rows from a pipe0 sheet.`,tags:[W.FIELDS,W.NEW],keywords:[`lookup`,`list`,`records`,`table`,`fetch`],docPath:ND(nj),cost:oj,provider:`pipe0`,defaultPayload:{search_id:nj,connector:{strategy:`first`,connections:[]},config:{sheet:``,limit:100,cursor:``,include_metadata:!1}}},dj={"people:profiles:crustdata@1":Tk,"people:profiles:crustdata@2":wA,"people:profiles:crustdata@3":FA,"companies:profiles:crustdata@1":tk,"companies:profiles:crustdata@2":_O,"people:profiles:amplemarket@1":pk,"people:profiles:amplemarket@2":dA,"companies:profiles:amplemarket@1":UO,"companies:profiles:amplemarket@2":iO,"companies:entitysearch:parallel@1":WD,"people:entitysearch:parallel@1":Lk,"people:eventguests:luma@1":Qk,"posts:content:crustdata@1":KA,"sheet:rows@1":cj,"bucket:entries@1":$A,"query:postgres@1":jO,"query:databricks@1":wO},fj={"people:profiles:crustdata@1":Ek,"people:profiles:crustdata@2":TA,"people:profiles:crustdata@3":IA,"companies:profiles:crustdata@1":nk,"companies:profiles:crustdata@2":vO,"people:profiles:amplemarket@1":mk,"people:profiles:amplemarket@2":fA,"companies:profiles:amplemarket@1":WO,"companies:profiles:amplemarket@2":aO,"companies:entitysearch:parallel@1":GD,"people:entitysearch:parallel@1":Rk,"people:eventguests:luma@1":$k,"posts:content:crustdata@1":qA,"sheet:rows@1":lj,"bucket:entries@1":ej,"query:postgres@1":MO,"query:databricks@1":TO},pj={"people:profiles:crustdata@1":Dk,"people:profiles:crustdata@2":EA,"people:profiles:crustdata@3":LA,"companies:profiles:crustdata@1":rk,"companies:profiles:crustdata@2":yO,"people:profiles:amplemarket@1":hk,"people:profiles:amplemarket@2":pA,"companies:profiles:amplemarket@1":GO,"companies:profiles:amplemarket@2":oO,"companies:entitysearch:parallel@1":KD,"people:entitysearch:parallel@1":zk,"people:eventguests:luma@1":eA,"posts:content:crustdata@1":JA,"sheet:rows@1":uj,"bucket:entries@1":tj,"query:postgres@1":NO,"query:databricks@1":EO};function mj(e){return dj[e]}const hj=t.discriminatedUnion(`search_id`,Object.values(fj).map(e=>e)).openapi(`SearchPayloadSchema`);function gj(e,t){return vt(t,pj[e].defaultPayload)}const _j=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=gj(e.search_id);return t?{...e,config:vt(e?.config||{},t.config)}:e},hj),vj=t.object({config:t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1}),field_definitions:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}).default({environment:`production`,widgets:{enabled:!1},field_definitions:{enabled:!1}}),search:_j}).openapi(`SearchRequestSchema`),yj=Ti,bj=t.object({value:di,status:ui,type:ci.optional(),format:Oi.nullable().optional(),resolved_by:Pi.nullable().optional(),widgets:wi.optional()}),xj=t.record(t.string(),bj.nullable());function Sj(e){return fj[e]}const Cj=t.enum([`cursor`,`page_number`]),wj=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:AD,errors:t.array(yj),results:t.array(xj),organization_id:t.string(),next_page:_j.nullable(),pagination_type:Cj.nullable(),total_pages:t.int32().nullable(),field_definitions:Ai.optional()}).openapi(`SearchResponseSchema`);function Tj(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function Ej(){let e={};for(let t of Object.values(pj)){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=Tj(e.searchId);return Tj(t.searchId)-n})}),e}function Dj(e){return pj[e]}const Oj=Ej();function kj(e){let t=[];for(let[n,r]of Object.entries(Oj)){let i=r[0];if(!i)throw Error(`Found empty entry`);i.lifecycle?.deprecatedOn&&e!==`deprecated`||(e===null||i.categories.includes(e))&&t.push({...i,baseSearch:n,latestVersion:Tj(i.searchId)})}return t}function Aj(e){let t=pj[e].defaultPayload.config.output_fields;return t?Object.keys(t):[]}function jj(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 Aj(e.searchId))r[t]??=[],r[t].push(e.searchId);for(let t of e.tags)i[t]??=[],i[t].push(e.searchId)}return{searchIdsByOutputField:r,searchIdsByTag:i,searchIdsByProvider:a,sortedTagEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),searchEntriesByBaseSearch:Oj}}function Mj(e){let t=Dj(e);return{[t.provider]:t.cost.allowManagedConnection?t.cost.credits.default:0}}const Nj={"prompt:run@1":Ow,"agent:run@1":dl,"company:newssummary:website@1":pp,"company:newssummary:domain@1":od,"company:techstack:builtwith@1":tm,"company:techstack:builtwith@2":Nd,"company:websiteurl:email@1":um,"company:domain:workemail@1":Sl,"company:funding:leadmagic@1":of,"company:funding:leadmagic@2":Il,"company:funding:waterfall@1":eu,"people:workemail:waterfall@1":yv,"person:workemail:waterfall@1":xw,"people:email:iswork@1":ym,"email:iswork@1":Ov,"people:name:split@1":Uh,"person:name:split@1":LS,"people:validate:email:zerobounce@1":K_,"people:email:validate:zerobounce@2":Rm,"email:validate:zerobounce@1":Qv,"people:mobilenumber:workemail:waterfall@1":Nh,"person:name:join@1":DS,"company:overview@1":Op,"company:overview@2":Wp,"company:overview@3":Sd,"json:extract:multi@1":Qy,"company:lookalikes:companyenrich@1":Lf,"company:lookalikes:companyenrich@2":Au,"company:match:logodev@1":ip,"company:match:logodev@2":Zu,"person:posts:content:crustdata@1":aC,"people:profile:workemail:crustdata@1":w_,"person:profile:workemail:crustdata@1":EC,"people:identity:email:waterfall@1":eh,"person:identity:email:waterfall@1":kx,"person:identity:amplemarket@1":px,"email:send:resend@1":Hv,"contact:create:resend@1":Gd,"lead:enroll:lemlist@1":bb,"email:send:gmail@1":Fv,"email:write@1":sy,"fields:merge@1":Ly,"field:slugify@1":Ty,"field:domainify@1":gy,"http:request@1":Ky,"template:fill@1":NE,"message:send:slack@1":Ob,"message:write@1":Ib,"people:personalemail:profile:waterfall@1":tg,"person:personalemail:profileurl:waterfall@1":YS,"website:scrape:firecrawl@1":_D,"website:scrapelist:firecrawl@1":ED,"website:extract:firecrawl@1":HE,"website:extract:parallel@1":ZE,"website:maplinks:firecrawl@1":oD,"row:append:sheet@1":DT,"bucket:claim@1":qw,"bucket:count@1":sT,"bucket:check@1":eT,"row:expandappend:sheet@1":LT,"row:roundrobin:sheet@1":WT,"rows:find:sheet@1":EE,"rows:find:postgres@1":_E,"rows:find:databricks@1":lE,"people:match:role:waterfall@1":dh,"person:match:role:waterfall@1":Yx,"company:match:crustdata@1":Kf,"company:match:crustdata@2":zu,"person:match:amplemarket@1":Rx,"company:identity@2":Of,"company:identity@3":du,"company:identity:crustdata@1":xu,"people:phone:profile:waterfall@1":fg,"person:mobile:profileurl:waterfall@1":oS,"person:devprofileurl:profileurl:waterfall@1":Jb,"people:phone:workemail:waterfall@1":Cg,"person:mobile:workemail:waterfall@1":_S,"people:profile:waterfall@1":m_,"person:profile:waterfall@1":gC,"people:profileurl:email:waterfall@1":I_,"person:profileurl:email:waterfall@1":RC,"person:profileurl:name@1":YC,"people:email:validate:zerobounce@1":Om,"person:email:validate:millionverifier@1":ix,"people:workemail:profileurl:waterfall@1":av,"person:workemail:profileurl:waterfall@1":sw,"company:identity@1":_f,"people:professionalprofile:waterfall@1":Pg,"people:professionalprofileurl:name@1":r_,"people:professionalprofileurl:email:waterfall@1":Kg,"people:mobilenumber:professionalprofile:waterfall@1":Sh},Pj={"prompt:run@1":kw,"agent:run@1":fl,"company:newssummary:website@1":mp,"company:newssummary:domain@1":sd,"company:techstack:builtwith@1":nm,"company:techstack:builtwith@2":Pd,"company:websiteurl:email@1":dm,"company:domain:workemail@1":Cl,"company:funding:leadmagic@1":sf,"company:funding:leadmagic@2":Ll,"company:funding:waterfall@1":tu,"people:workemail:waterfall@1":bv,"person:workemail:waterfall@1":Sw,"people:email:iswork@1":bm,"email:iswork@1":kv,"people:name:split@1":Wh,"person:name:split@1":RS,"people:validate:email:zerobounce@1":q_,"people:email:validate:zerobounce@2":zm,"email:validate:zerobounce@1":$v,"people:mobilenumber:workemail:waterfall@1":Ph,"person:name:join@1":OS,"company:overview@1":kp,"company:overview@2":Gp,"company:overview@3":Cd,"json:extract:multi@1":$y,"email:write@1":cy,"fields:merge@1":Ry,"field:slugify@1":Ey,"field:domainify@1":_y,"http:request@1":qy,"email:send:resend@1":Uv,"contact:create:resend@1":Kd,"lead:enroll:lemlist@1":xb,"company:lookalikes:companyenrich@1":Rf,"company:lookalikes:companyenrich@2":ju,"company:match:logodev@1":ap,"company:match:logodev@2":Qu,"person:posts:content:crustdata@1":oC,"people:profile:workemail:crustdata@1":T_,"person:profile:workemail:crustdata@1":DC,"people:identity:email:waterfall@1":th,"person:identity:email:waterfall@1":Ax,"company:match:crustdata@1":qf,"company:match:crustdata@2":Bu,"person:identity:amplemarket@1":mx,"message:send:slack@1":kb,"email:send:gmail@1":Iv,"message:write@1":Lb,"template:fill@1":PE,"website:scrape:firecrawl@1":vD,"website:scrapelist:firecrawl@1":DD,"website:extract:firecrawl@1":UE,"website:extract:parallel@1":QE,"website:maplinks:firecrawl@1":sD,"row:append:sheet@1":OT,"bucket:claim@1":Jw,"bucket:count@1":cT,"bucket:check@1":tT,"row:expandappend:sheet@1":RT,"row:roundrobin:sheet@1":GT,"rows:find:sheet@1":DE,"rows:find:postgres@1":vE,"rows:find:databricks@1":uE,"people:match:role:waterfall@1":fh,"person:match:role:waterfall@1":Xx,"company:identity@2":kf,"company:identity@3":fu,"company:identity:crustdata@1":Su,"people:phone:profile:waterfall@1":pg,"person:mobile:profileurl:waterfall@1":sS,"person:devprofileurl:profileurl:waterfall@1":Yb,"people:personalemail:profile:waterfall@1":ng,"person:personalemail:profileurl:waterfall@1":XS,"people:profile:waterfall@1":h_,"person:profile:waterfall@1":_C,"people:profileurl:email:waterfall@1":L_,"person:profileurl:email:waterfall@1":zC,"person:profileurl:name@1":XC,"people:email:validate:zerobounce@1":km,"person:email:validate:millionverifier@1":ax,"people:phone:workemail:waterfall@1":wg,"person:mobile:workemail:waterfall@1":vS,"people:workemail:profileurl:waterfall@1":ov,"person:workemail:profileurl:waterfall@1":cw,"person:match:amplemarket@1":zx,"company:identity@1":vf,"people:professionalprofile:waterfall@1":Fg,"people:professionalprofileurl:name@1":i_,"people:professionalprofileurl:email:waterfall@1":qg,"people:mobilenumber:professionalprofile:waterfall@1":Ch},Fj={"prompt:run@1":Aw,"agent:run@1":pl,"company:newssummary:website@1":hp,"company:newssummary:domain@1":cd,"company:techstack:builtwith@1":rm,"company:techstack:builtwith@2":Fd,"company:websiteurl:email@1":fm,"company:domain:workemail@1":wl,"company:funding:leadmagic@1":cf,"company:funding:leadmagic@2":Rl,"company:funding:waterfall@1":nu,"people:workemail:waterfall@1":xv,"person:workemail:waterfall@1":Cw,"people:email:iswork@1":xm,"email:iswork@1":Av,"people:name:split@1":Gh,"person:name:split@1":zS,"people:validate:email:zerobounce@1":J_,"people:mobilenumber:workemail:waterfall@1":Fh,"person:name:join@1":kS,"company:overview@1":Ap,"company:overview@2":Kp,"company:overview@3":wd,"json:extract:multi@1":eb,"email:send:resend@1":Wv,"contact:create:resend@1":qd,"lead:enroll:lemlist@1":Sb,"email:send:gmail@1":Lv,"message:send:slack@1":Ab,"message:write@1":Rb,"email:write@1":ly,"template:fill@1":FE,"fields:merge@1":zy,"field:slugify@1":Dy,"field:domainify@1":vy,"http:request@1":Jy,"row:append:sheet@1":kT,"bucket:claim@1":Yw,"bucket:count@1":lT,"bucket:check@1":nT,"row:expandappend:sheet@1":zT,"row:roundrobin:sheet@1":KT,"rows:find:sheet@1":OE,"rows:find:postgres@1":yE,"rows:find:databricks@1":dE,"company:lookalikes:companyenrich@1":zf,"company:lookalikes:companyenrich@2":Mu,"people:match:role:waterfall@1":ph,"person:match:role:waterfall@1":Zx,"company:match:logodev@1":op,"company:match:logodev@2":$u,"person:posts:content:crustdata@1":sC,"people:profile:workemail:crustdata@1":E_,"person:profile:workemail:crustdata@1":OC,"people:workemail:profileurl:waterfall@1":sv,"person:workemail:profileurl:waterfall@1":lw,"people:identity:email:waterfall@1":nh,"person:identity:email:waterfall@1":jx,"company:match:crustdata@1":Jf,"company:match:crustdata@2":Vu,"person:identity:amplemarket@1":hx,"email:validate:zerobounce@1":ey,"person:email:validate:millionverifier@1":ox,"people:personalemail:profile:waterfall@1":rg,"person:personalemail:profileurl:waterfall@1":ZS,"people:email:validate:zerobounce@1":Am,"people:email:validate:zerobounce@2":Bm,"people:phone:workemail:waterfall@1":Tg,"person:mobile:workemail:waterfall@1":yS,"website:scrape:firecrawl@1":yD,"website:scrapelist:firecrawl@1":OD,"website:extract:firecrawl@1":WE,"website:extract:parallel@1":$E,"website:maplinks:firecrawl@1":cD,"person:match:amplemarket@1":Bx,"company:identity@2":Af,"company:identity@3":pu,"company:identity:crustdata@1":Cu,"people:phone:profile:waterfall@1":mg,"person:mobile:profileurl:waterfall@1":cS,"person:devprofileurl:profileurl:waterfall@1":Xb,"people:profile:waterfall@1":g_,"person:profile:waterfall@1":vC,"people:profileurl:email:waterfall@1":R_,"person:profileurl:email:waterfall@1":BC,"person:profileurl:name@1":ZC,"company:identity@1":yf,"people:professionalprofile:waterfall@1":Ig,"people:professionalprofileurl:name@1":a_,"people:professionalprofileurl:email:waterfall@1":Jg,"people:mobilenumber:professionalprofile:waterfall@1":wh};function Ij(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function Lj(e){return Nj[e]}function Rj(e){return Fj[e].defaultPayload}function zj(e){return Pj[e]}const Bj=r.discriminatedUnion(`pipe_id`,Object.values(Pj)).openapi(`PipePayload`),Vj=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=Rj(oi.parse(e.pipe_id));return t?{...e,config:vt(e?.config||{},t.config)}:e}catch{return e}},Bj);function Hj(e){return Fj[e]}function Uj(e,t){let n=Hj(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 Wj(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function Gj(){let e={};for(let t of Object.values(Fj)){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=Wj(e.pipeId);return Wj(t.pipeId)-n})}),e}const Kj=e=>{let t=Hj(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},qj=Gj();function Jj(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(`
75
+ `),data:{tables:e,truncated:t}}}async function tE(e){let t=await e({query:YT,limit:500}),n=new Map;for(let e of t.rows){let t=ZT(e.table_catalog),r=ZT(e.table_schema),i=ZT(e.table_name);i&&n.set(`${t}.${r}.${i}`,{catalog:t,schema:r,name:i,columns:[]})}let r=await e({query:XT,limit:500});for(let e of r.rows)n.get(`${ZT(e.table_catalog)}.${ZT(e.table_schema)}.${ZT(e.table_name)}`)?.columns.push({name:ZT(e.column_name),type:ZT(e.data_type)});return eE([...n.values()],t.hasMore||r.hasMore)}async function nE(e){let t=await e({query:`SHOW TABLES`,limit:500}),n=t.rows.map(e=>({schema:ZT(e.database??e.namespace),name:ZT(e.tableName??e.table_name)})).filter(e=>e.name),r=t.hasMore||n.length>25,i=[];for(let{schema:t,name:r}of n.slice(0,25)){let n=(await e({query:`DESCRIBE TABLE ${t?`${t}.`:``}${r}`,limit:500})).rows.map(e=>({name:ZT(e.col_name),type:ZT(e.data_type)})).filter(e=>e.name&&!e.name.startsWith(`#`));i.push({schema:t,name:r,columns:n})}return eE(i,r)}async function rE(e,t){if(t.environment===`sandbox`)return{summary:`Schema exploration needs the real database connection — it's read-only and free. Switch to production (env:change@1) to explore the schema, then rehearse the pipeline in sandbox.`};if(!t.runQuery)return{summary:`Live schema exploration isn't available in this context.`};if(e===`databricks`)try{return await tE(t.runQuery)}catch{try{let e=await t.runQuery({query:qT,limit:500});return eE([...QT(e.rows).values()],e.hasMore)}catch{return nE(t.runQuery)}}let n=await t.runQuery({query:qT,limit:500});return eE([...QT(n.rows).values()],n.hasMore)}const iE=`rows:find:databricks@1`,aE=g(`db_rows_found_count`),oE=g(`db_found_rows`),sE=r.object({pipe_id:r.literal(iE),connector:hs(),run_if:x(),config:r.object({query:fs({label:`SQL query`,info:`A single read-only SELECT statement, resolved per row — use {{ field }} for input refs, {{ SECRETS.X }} / {{ CONSTANTS.X }} for secrets/constants. Do not add your own LIMIT for capping; use the row limit below.`,groupPath:`config.general`,sectionKey:`general`,path:`config.query`,rows:8,required:!0,maxLength:2e4}),limit:Us({label:`Row limit`,info:`Maximum number of rows returned in the matching-rows output. The rows-found count is always the true total.`,groupPath:`config.advanced`,sectionKey:`general`,path:`config.limit`,min:1,max:50}),output_fields:L(r.object({[aE.name]:O({fieldName:aE.name}),[oE.name]:O({fieldName:oE.name})}))})}),cE={"rows-find-databricks-v1-databricks":{provider:`databricks`,allowManagedConnection:!1,mode:null,credits:null,note:`Querying your own Databricks SQL warehouse is free.`}},lE=class extends H{pipeId=iE;payload;payloadSchema=sE;billableOperations=cE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`databricks`]}estimateBillableOperations(e){return J(e,`rows-find-databricks-v1-databricks`)}getTemplatedFields(){return[this.payload.config.query]}getInputRequirement(){return Yc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Xc(this.getTemplatedFields())}getConstantRequirements(){return Zc(this.getTemplatedFields())}getRawOutputFields(){return{[aE.name]:this.catalogOutput(aE),[oE.name]:this.catalogOutput(oE)}}getConnectionsRequirements(){return[{provider:`databricks`,rateLimitRatio:1,rateLimitOperation:`databricks_query`,allowManagedConnection:!1}]}async getAgentContext(e){return rE(`databricks`,e)}},uE=sE,dE={pipeId:iE,basePipe:G(iE),label:`Find rows in Databricks`,executionMode:`single`,categories:[`tools`],lifecycle:null,allowedUserConnectionProviders:[`databricks`],managedProviders:[],deprecatedProviders:[],description:`Look up rows in your own Databricks SQL warehouse with a read-only SQL query resolved per row. Outputs the total match count and the matching rows.`,guide:"Databricks SQL dialect; config.query must be a single read-only SELECT, resolved per row via Liquid — `{{ field }}` input refs, `{{ SECRETS.X }}` / `{{ CONSTANTS.X }}` supported. Resolved values are interpolated as text, so quote them in the SQL (WHERE email = '{{ email }}'). To discover the schema, draft a payload with a placeholder config.query like \"SELECT 1\" and the chosen connection in connector.connections, then call get_provider_context once — it returns the workspace-wide table/column map (all Unity catalogs) for free. Always reference tables by their FULLY QUALIFIED three-part name exactly as the map lists them (catalog.schema.table); a bare table name resolves against the warehouse's unpredictable current catalog and usually fails with TABLE_OR_VIEW_NOT_FOUND. Tables under the `samples` catalog (and other built-in demo schemas like `tpch`) are DEMO data, NOT the customer's own — never answer from them without confirming. READ-ONLY and idempotent — the gateway enforces single-statement SELECT validation. db_found_rows is capped by config.limit and a ~25KB size budget (rows are dropped from the end to fit); db_rows_found_count is always the TRUE total. When nothing matches, db_found_rows resolves to no_result (NOT an empty array) — db_rows_found_count (0) still completes, so condition on it to branch on absence. A field resolving to empty renders as an empty string in the SQL — guard with run_if if that must not match. Requires a databricks connection (list_connections).",docPath:K(iE),tags:[W.FIELDS,W.NEW],keywords:[`sql`,`query`,`lookup`,`warehouse`,`database`,`select`],billableOperations:cE,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:iE,connector:{strategy:`first`,connections:[]},run_if:null,config:{query:``,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!1},db_found_rows:{alias:``,enabled:!0}}}}},fE=`rows:find:postgres@1`,pE=g(`db_rows_found_count`),mE=g(`db_found_rows`),hE=r.object({pipe_id:r.literal(fE),connector:hs(),run_if:x(),config:r.object({query:fs({label:`SQL query`,info:`A single read-only SELECT statement, resolved per row — use {{ field }} for input refs, {{ SECRETS.X }} / {{ CONSTANTS.X }} for secrets/constants. Do not add your own LIMIT for capping; use the row limit below.`,groupPath:`config.general`,sectionKey:`general`,path:`config.query`,rows:8,required:!0,maxLength:2e4}),limit:Us({label:`Row limit`,info:`Maximum number of rows returned in the matching-rows output. The rows-found count is always the true total.`,groupPath:`config.advanced`,sectionKey:`general`,path:`config.limit`,min:1,max:50}),output_fields:L(r.object({[pE.name]:O({fieldName:pE.name}),[mE.name]:O({fieldName:mE.name})}))})}),gE={"rows-find-postgres-v1-postgres":{provider:`postgres`,allowManagedConnection:!1,mode:null,credits:null,note:`Querying your own PostgreSQL database is free.`}},_E=class extends H{pipeId=fE;payload;payloadSchema=hE;billableOperations=gE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`postgres`]}estimateBillableOperations(e){return J(e,`rows-find-postgres-v1-postgres`)}getTemplatedFields(){return[this.payload.config.query]}getInputRequirement(){return Yc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Xc(this.getTemplatedFields())}getConstantRequirements(){return Zc(this.getTemplatedFields())}getRawOutputFields(){return{[pE.name]:this.catalogOutput(pE),[mE.name]:this.catalogOutput(mE)}}getConnectionsRequirements(){return[{provider:`postgres`,rateLimitRatio:1,rateLimitOperation:`postgres_query`,allowManagedConnection:!1}]}async getAgentContext(e){return rE(`postgres`,e)}},vE=hE,yE={pipeId:fE,basePipe:G(fE),label:`Find rows in Postgres`,executionMode:`single`,categories:[`tools`],lifecycle:null,allowedUserConnectionProviders:[`postgres`],managedProviders:[],deprecatedProviders:[],description:`Look up rows in your own PostgreSQL database with a read-only SQL query resolved per row. Outputs the total match count and the matching rows.`,guide:"PostgreSQL dialect; config.query must be a single read-only SELECT, resolved per row via Liquid — `{{ field }}` input refs, `{{ SECRETS.X }}` / `{{ CONSTANTS.X }}` supported. Resolved values are interpolated as text, so quote them in the SQL (WHERE email = '{{ email }}'). To discover the schema, draft a payload with a placeholder config.query like \"SELECT 1\" and the chosen connection in connector.connections, then call get_provider_context once — it returns the full table/column map for free. READ-ONLY and idempotent — the gateway enforces single-statement SELECT validation and a read-only transaction. db_found_rows is capped by config.limit and a ~25KB size budget (rows are dropped from the end to fit); db_rows_found_count is always the TRUE total. When nothing matches, db_found_rows resolves to no_result (NOT an empty array) — db_rows_found_count (0) still completes, so condition on it to branch on absence. A field resolving to empty renders as an empty string in the SQL — guard with run_if if that must not match. Requires a postgres connection (list_connections).",docPath:K(fE),tags:[W.FIELDS,W.NEW],keywords:[`sql`,`query`,`lookup`,`database`,`select`],billableOperations:gE,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:fE,connector:{strategy:`first`,connections:[]},run_if:null,config:{query:``,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!1},db_found_rows:{alias:``,enabled:!0}}}}},bE=`rows:find:sheet@1`,xE=g(`sheet_rows_found_count`),SE=g(`sheet_found_rows`),CE=g(`sheet_found_row_ids`),wE=r.object({pipe_id:r.literal(bE),connector:hs(),run_if:x(),config:r.object({sheet:ps({label:`Sheet ID`,info:"The sheet to search (its org-unique slug — NOT the display name). Type `@` to insert a field reference for a per-row sheet.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:gT}),where:os({label:`Match conditions`,info:"Conditions on the target sheet's columns. Column names are literal; in the value, type `/` to insert a field reference (e.g. `{{ email }}`).",groupPath:`config.general`,sectionKey:`general`,path:`config.where`,fieldNamePlaceholder:`email`,optionsDef:xT({sheetPath:`config.sheet`})}),limit:Us({label:`Row limit`,info:`Maximum number of rows returned in the matching-rows output. The rows-found count is always the true total.`,groupPath:`config.advanced`,sectionKey:`general`,path:`config.limit`,min:1,max:100}),output_fields:L(r.object({[xE.name]:O({fieldName:xE.name}),[SE.name]:O({fieldName:SE.name}),[CE.name]:O({fieldName:CE.name})}))})}),TE={"rows-find-sheet-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},EE=class extends H{pipeId=bE;payload;payloadSchema=wE;billableOperations=TE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`rows-find-sheet-v1-pipe0`)}getTemplatedFields(){return[this.payload.config.sheet,...(this.payload.config.where?.conditions??[]).map(e=>typeof e.value==`string`?e.value:null)]}getInputRequirement(){return Yc(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Xc(this.getTemplatedFields())}getConstantRequirements(){return Zc(this.getTemplatedFields())}getRawOutputFields(){return{[xE.name]:this.catalogOutput(xE),[SE.name]:this.catalogOutput(SE),[CE.name]:this.catalogOutput(CE)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_api_operation`,allowManagedConnection:!0}]}},DE=wE,OE={pipeId:bE,basePipe:G(bE),label:`Find rows in sheet`,executionMode:`single`,categories:[`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Look up rows in another pipe0 sheet matching a condition block (and/or over eq, neq, gt, gte, lt, lte, contains, matches). Outputs the total match count, the matching rows, and their record IDs.`,guide:'Find rows in another pipe0 sheet. config.sheet is the target sheet\'s org-unique slug (a literal or a `{{ field }}` tag). config.where is a condition block over the TARGET sheet\'s columns: `logic` "and"/"or" combines value conditions; each condition\'s field_name is a LITERAL column name (never templated, NOT validated against the target sheet — a wrong name behaves like a null cell), and its value may be a literal or contain `{{ field }}` tags resolved per row. Operators: eq/neq compare as text (a number cell 42 matches the value "42"; neq ALSO matches rows where the column is missing or null; JSON object/array cells effectively never match); gt/gte/lt/lte compare numerically (non-numeric cells never match; a non-numeric condition value fails the row); contains is case-INsensitive substring; matches is case-SENSITIVE regex (invalid pattern fails the row). A `null` value with eq matches missing/null cells. READ-ONLY and idempotent — one query per row, the target sheet is never modified. sheet_found_rows is capped by config.limit and a ~25KB size budget (rows are dropped from the end to fit); sheet_rows_found_count is always the TRUE total. When nothing matches, sheet_found_rows and sheet_found_row_ids resolve to no_result (NOT an empty array) — sheet_rows_found_count (0) still completes, so condition on it to branch on absence. String condition values that resolve to an empty string fail the row (a blank field must not match everything) — guard with run_if. Requires a pipe0 connection (list_connections).',docPath:K(bE),tags:[W.FIELDS],keywords:[`lookup`,`query`,`search`,`match`,`filter`,`vlookup`],billableOperations:TE,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:bE,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,where:null,limit:10,output_fields:{sheet_rows_found_count:{alias:``,enabled:!1},sheet_found_rows:{alias:``,enabled:!0},sheet_found_row_ids:{alias:``,enabled:!1}}}}},kE=`template:fill@1`,AE=g(`template_output`),jE=r.object({pipe_id:r.literal(kE),connector:S(),run_if:x(),config:r.object({template:fs({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:U(`template`),groupPath:`config.general`,required:!0}),output_fields:L(r.object({[AE.name]:O({fieldName:AE.name})}))})}),ME={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},NE=class extends H{pipeId=kE;payload;payloadSchema=jE;billableOperations=ME;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`template-fill-v1-pipe0`)}getInputRequirement(){return Yc([this.payload.config.template])}getSecretRequirements(){return Xc([this.payload.config.template])}getConstantRequirements(){return Zc([this.payload.config.template])}getRawOutputFields(){return{[AE.name]:this.catalogOutput(AE)}}getConnectionsRequirements(){return[]}},PE=jE,FE={pipeId:kE,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:G(kE),label:`Fill a text template`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Replaces template tags like {{ name }} with actual values.`,tags:[W.TEXT],keywords:[`merge`,`personalize`,`liquid`,`placeholder`,`variables`,`mail merge`],docPath:K(kE),defaultInputRequirement:null,billableOperations:ME,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:kE,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},IE=`website:extract:firecrawl@1`,LE=g(`website_url`),RE=g(`firecrawl_extract_result`),zE=r.object({pipe_id:r.literal(IE),connector:S(),run_if:x(),config:r.object({json_schema:Gs({sectionKey:`general`,groupPath:`config.extraction`,path:`config.json_schema`,label:`Output JSON schema`,info:`Specify the data you want to extract as a JSON schema.`,allowEmpty:!1}),extraction_prompt:zs({sectionKey:`general`,groupPath:`config.extraction`,path:`config.extraction_prompt`,label:`Extraction Prompt`,info:`Prompt the scraper on what it should extract. Template tags are not supported.`,rows:5,minLength:10,placeholder:`E.g. Extract the company missing and latest news.`}),enable_full_domain_crawl:D({sectionKey:`general`,groupPath:`config.extraction`,defaultValue:!1,path:`config.enable_full_domain_crawl`,info:`If this option is enabled all URLs from this domain will be scraped.`,label:`Crawl full domain`}),enable_web_search:D({sectionKey:`general`,groupPath:`config.extraction`,label:`Enable web search`,path:`enable_web_search`,defaultValue:!1,info:`When 'true', the extraction will follow links outside the specified domain.`}),input_fields:R(r.object({[LE.name]:T({fieldName:LE.name})})),output_fields:L(r.object({[RE.name]:O({fieldName:RE.name})}))})}),BE=e=>V(q(LE,e)),VE={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},HE=class extends H{pipeId=IE;payload;payloadSchema=zE;billableOperations=VE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return J(e,`website-extract-firecrawl-v1-firecrawl`)}getInputRequirement(){return BE(this.payload.config)}getRawOutputFields(){return{[RE.name]:this.catalogOutput(RE)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},UE=zE,WE={pipeId:IE,basePipe:G(IE),label:`Extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Perform advanced AI scraping to extract data from any website. Search all subdomains and combine scraped data with search results.`,tags:[W.SCRAPE],keywords:[`scrape`,`crawl`,`ai`,`structured data`,`json`,`web`],docPath:K(IE),billableOperations:VE,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:BE(null),defaultPayload:{pipe_id:IE,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}}}}},GE=`website:extract:parallel@1`,KE=g(`website_url`),qE=g(`parallel_extract_result`),JE=r.object({pipe_id:r.literal(GE),connector:S(),run_if:x(),config:r.object({objective:zs({sectionKey:`general`,groupPath:`config.extraction`,path:`config.objective`,label:`Objective`,info:`Natural-language description of what to extract. Template tags are not supported.`,rows:5,minLength:10,placeholder:`E.g. When was the company founded and what does it do?`}),input_fields:R(r.object({[KE.name]:T({fieldName:KE.name})})),output_fields:L(r.object({[qE.name]:O({fieldName:qE.name})}))})}),YE=e=>V(q(KE,e)),XE={"website-extract-parallel-v1-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.1},mode:`onSuccess`}},ZE=class extends H{pipeId=GE;payload;payloadSchema=JE;billableOperations=XE;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`parallel`]}estimateBillableOperations(e){return J(e,`website-extract-parallel-v1-parallel`)}getInputRequirement(){return YE(this.payload.config)}getRawOutputFields(){return{[qE.name]:this.catalogOutput(qE,{isPrimaryOutput:!0})}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:1,rateLimitOperation:`parallel_extract`,allowManagedConnection:!0}]}},QE=JE,$E={pipeId:GE,basePipe:G(GE),label:`Extract (Parallel)`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract relevant content from a website using Parallel's Extract API. Returns a flat list of results — page title, publish date and the excerpts most relevant to your objective.`,tags:[W.SCRAPE],keywords:[`scrape`,`crawl`,`content`,`web`,`research`],docPath:K(GE),billableOperations:XE,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`parallel`],managedProviders:[`parallel`],deprecatedProviders:[],defaultInputRequirement:YE(null),defaultPayload:{pipe_id:GE,run_if:null,connector:null,config:{objective:``,input_fields:{website_url:{alias:``}},output_fields:{parallel_extract_result:{alias:``,enabled:!0}}}}},eD=`website:maplinks:firecrawl@1`,tD={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},nD=g(`website_url`),rD=g(`mapped_links`),iD=r.object({pipe_id:r.literal(eD),connector:S(),run_if:x(),config:r.object({page_limit:Us({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,path:`config.page_limit`,sectionKey:`general`}).nullish(),sitemap:Bs({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:Rs({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).nullable().default(``),input_fields:R(r.object({[nD.name]:T({fieldName:nD.name})})),output_fields:L(r.object({[rD.name]:O({fieldName:rD.name})}))}).optional()}),aD=e=>V(q(nD,e)),oD=class extends H{pipeId=eD;payload;payloadSchema=iD;billableOperations=tD;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return J(e,`website-maplinks-firecrawl-v1-firecrawl`)}getInputRequirement(){return aD(this.payload.config)}getRawOutputFields(){return{[rD.name]:this.catalogOutput(rD)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},sD=iD,cD={pipeId:eD,basePipe:G(eD),label:`Map domain links`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Input a website and get all internal URLs on the website. Results do not include links to external pages.`,tags:[W.SCRAPE],keywords:[`sitemap`,`crawl`,`urls`,`pages`,`discover`,`internal`],docPath:K(eD),billableOperations:tD,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:aD(null),defaultPayload:{pipe_id:eD,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},lD=`website:scrape:firecrawl@1`,uD=g(`website_url`),dD=g(`website_markdown`),fD=g(`website_html`),pD=g(`website_links`),mD=r.object({pipe_id:r.literal(lD),connector:S(),run_if:x(),config:r.object({scrape_main_only:D({defaultValue:!1,label:`Scrape main content only?`,info:`If selected, content like headers, footers, and sidebars are excluded from the scrape results.`,sectionKey:`general`,groupPath:`config.general`,path:`config.scrape_main_only`}),input_fields:R(r.object({[uD.name]:T({fieldName:uD.name})})),output_fields:L(r.object({[dD.name]:O({fieldName:dD.name}),[fD.name]:O({fieldName:fD.name}),[pD.name]:O({fieldName:pD.name})}))}).optional()}),hD=e=>V(q(uD,e)),gD={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},_D=class extends H{pipeId=lD;payload;payloadSchema=mD;billableOperations=gD;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return J(e,`website-scrape-firecrawl-v1-firecrawl`)}getInputRequirement(){return hD(this.payload.config)}getRawOutputFields(){return{[dD.name]:this.catalogOutput(dD),[fD.name]:this.catalogOutput(fD),[pD.name]:this.catalogOutput(pD)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},vD=mD,yD={pipeId:lD,basePipe:G(lD),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[W.SCRAPE],keywords:[`crawl`,`html`,`markdown`,`content`,`web page`,`fetch`],docPath:K(lD),billableOperations:gD,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:hD(null),defaultPayload:{pipe_id:lD,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}}}}},bD=`website:scrapelist:firecrawl@1`,xD={"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.`}},SD=g(`urls`),CD=g(`scrape_list_response`),wD=r.object({pipe_id:r.literal(bD),connector:S(),run_if:x(),config:r.object({scrape_main_only:D({label:`Scrape main content only?`,defaultValue:!1,info:`If selected headers, footers, and sidebars will be excluded from the results.`,sectionKey:`general`,groupPath:`config.general`,path:`config.scrape_main_only`}),formats:Hs({options:[{label:`Markdown`,value:`markdown`},{label:`HTML`,value:`html`},{label:`Links`,value:`links`}],disableSearch:!0,info:`Choose what you want to scrape from the website`,required:!1,label:`Formats`,sectionKey:`general`,groupPath:`config.general`,path:`config.formats`}).default([]),input_fields:R(r.object({[SD.name]:T({fieldName:SD.name})})),output_fields:L(r.object({[CD.name]:O({fieldName:CD.name})}))}).optional()}),TD=e=>V(q(SD,e)),ED=class extends H{pipeId=bD;payload;payloadSchema=wD;billableOperations=xD;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(e){return[{billableOperation:`website-scrapelist-firecrawl-v1-firecrawl`,quantity:e.count*5}]}getInputRequirement(){return TD(this.payload.config)}getRawOutputFields(){return{[CD.name]:this.catalogOutput(CD)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},DD=wD,OD={pipeId:bD,basePipe:G(bD),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[W.SCRAPE],keywords:[`crawl`,`html`,`markdown`,`content`,`batch`,`bulk`],docPath:K(bD),billableOperations:xD,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:TD(null),defaultPayload:{pipe_id:bD,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}}}}},kD=[`companies:profiles:crustdata@1`,`companies:profiles:crustdata@2`,`companies:profiles:amplemarket@1`,`companies:profiles:amplemarket@2`,`people:profiles:crustdata@1`,`people:profiles:crustdata@2`,`people:profiles:crustdata@3`,`people:profiles:amplemarket@1`,`people:profiles:amplemarket@2`,`companies:entitysearch:parallel@1`,`people:entitysearch:parallel@1`,`people:eventguests:luma@1`,`sheet:rows@1`,`bucket:entries@1`,`query:postgres@1`,`query:databricks@1`,`posts:content:crustdata@1`],AD=r.enum(kD);function jD(e,t){let n={name:e,config:t};return _c.hashObject(n)}var $=class{estimateBillableOperations(e){let{cost:t,billableOperation:n}=this.billing;return t.allowManagedConnection?[{billableOperation:n,quantity:t.mode===`per_result`?e.count:t.mode===`per_page`?e.count/100:1}]:[]}validatePayload(e){try{return this.schema.parse(e)}catch(e){throw e instanceof n?Error(JSON.stringify(r.prettifyError(e))):e}}catalogOutput(e){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:e.type,format:e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}getDedupConfig(){return{match:`any`,fields:[]}}async getAgentContext(e){return null}getHashKey(){return jD(this.searchId,this.payload)}};function MD(e){return e.split(`@`)[0]}function ND(e){return`/docs/search-catalog/${MD(e)}/${e.split(`@`)[1]}`}const PD=`companies:entitysearch:parallel@1`,FD=g(`company_name`),ID=g(`company_domain`),LD=g(`company_description`),RD=g(`company_profile_url`),zD=g(`parallel_company_entity_match`),BD=r.object({search_id:r.literal(PD),connector:vs(),config:r.object({objective:tc({path:`config.objective`,sectionKey:`general`,groupPath:`config.general`,label:`Objective`,rows:4,minLength:10,placeholder:`AI startups in Europe that raised a Series A in 2024`,description:`Plain-text natural-language description of the companies to find.`}),limit:I({path:`config.limit`,min:5,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of entities to return (5–1000).`}).default(100),output_fields:L(r.object({[FD.name]:M({fieldName:FD.name}),[ID.name]:M({fieldName:ID.name}),[LD.name]:M({fieldName:LD.name}),[RD.name]:M({fieldName:RD.name}),[zD.name]:M({fieldName:zD.name})}))})}),VD={match:`any`,fields:[{fieldName:`company_profile_url`}]},HD={allowManagedConnection:!0,mode:`per_page`,credits:{default:.5},info:`1 page = 100 results; billed per 100 results returned (e.g. 100 results = 1 page, 1,000 results = 10 pages). A search returns up to your selected limit in a single request.`},UD=`companies-entitysearch-parallel-v1`,WD=class extends ${billing={billableOperation:UD,cost:HD};searchId=PD;schema=BD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[FD.name]:this.catalogOutput(FD),[ID.name]:this.catalogOutput(ID),[LD.name]:this.catalogOutput(LD),[RD.name]:this.catalogOutput(RD),[zD.name]:this.catalogOutput(zD)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return VD}},GD=BD,KD={searchId:PD,billableOperation:UD,baseSearch:MD(PD),label:`Company search (AI)`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Natural-language company search powered by Parallel Entity Search.`,tags:[W.COMPANY_PROFILES],keywords:[`find companies`,`accounts`,`prospect`,`natural language`,`organizations`],docPath:ND(PD),cost:HD,provider:`parallel`,defaultPayload:{search_id:PD,connector:null,config:{objective:``,limit:100,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},parallel_company_entity_match:{enabled:!1,alias:``}}}}};function qD(e){let t=!0,n=e=>{if(t!==!1&&typeof e==`object`&&e){Array.isArray(e)&&e.length>0&&(t=!1);for(let r of Object.values(e))typeof r!=`object`&&r!=null&&r!==``&&(t=!1),typeof r==`object`&&r&&n(r)}};return n(e),t}const JD=`companies:profiles:amplemarket@2`,YD=g(`company_name`),XD=g(`company_domain`),ZD=g(`company_description`),QD=g(`company_profile_url`),$D=g(`amplemarket_company_match`),eO=r.object({search_id:r.literal(JD),connector:vs(),config:r.object({limit:I({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`}).default(100),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:L(r.object({[YD.name]:M({fieldName:YD.name}),[XD.name]:M({fieldName:XD.name}),[ZD.name]:M({fieldName:ZD.name}),[QD.name]:M({fieldName:QD.name}),[$D.name]:M({fieldName:$D.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:U(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),company_names:A({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:U(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),company_domains:A({sectionKey:`config.filters`,path:`config.filters.company_domains`,label:`Company domains`,description:``,placeholder:U(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),company_profile_urls:A({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}).default([]),investors:P({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:h(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:U(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}).default([]),company_industries:j({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:Re(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:U(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),customer_types:N({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}).default([]),keywords:A({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),revenue_groups:N({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}).default([]),founded_year:Js({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,description:``}).default({min:null,max:null}),open_position_titles:k({path:`config.filters.open_position_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:U(`title`),suggestionsDef:h(`titles`)}),headcount:N({sectionKey:`config.filters`,path:`config.filters.headcount`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Company sizes`,required:!1,description:``,groupPath:`config.filters.company_size`}).default([]),headcount_growth_l6m_in_percent:Js({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0}).default({min:null,max:null})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),tO={match:`any`,fields:[{fieldName:`company_profile_url`}]},nO={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},rO=`companies-profiles-amplemarket-v2`,iO=class extends ${billing={billableOperation:rO,cost:nO};searchId=JD;schema=eO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[YD.name]:this.catalogOutput(YD),[XD.name]:this.catalogOutput(XD),[ZD.name]:this.catalogOutput(ZD),[QD.name]:this.catalogOutput(QD),[$D.name]:this.catalogOutput($D)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return tO}},aO=eO,oO={searchId:JD,billableOperation:rO,baseSearch:MD(`companies:profiles:amplemarket@2`),label:`Company search`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],keywords:[`accounts`,`prospect`,`find companies`,`organizations`,`firmographic`],docPath:ND(JD),cost:nO,provider:`amplemarket`,defaultPayload:{search_id:JD,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:[]}}}}},sO=`companies:profiles:crustdata@2`,cO=g(`company_name`),lO=g(`company_domain`),uO=g(`company_description`),dO=g(`company_profile_url`),fO=g(`crustdata_company_match`),pO=r.object({search_id:r.literal(sO),connector:vs(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}).default(100),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[cO.name]:M({fieldName:cO.name}),[lO.name]:M({fieldName:lO.name}),[uO.name]:M({fieldName:uO.name}),[dO.name]:M({fieldName:dO.name}),[fO.name]:M({fieldName:fO.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:U(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),crunchbase_categories:F({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:U(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}).default({include:[],exclude:[]}),crunchbase_investors:F({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:U(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}).default({include:[],exclude:[]}),tracxn_investors:F({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:U(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.tracxn_investors.crustdata`)}).default({include:[],exclude:[]}),company_types:j({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),linkedin_industries:F({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:U(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),markets:F({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),linkedin_categories:F({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:h(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),headcount:j({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}).default({include:[],exclude:[]}),linkedin_headcount_ranges:N({path:`config.filters.linkedin_headcount_ranges`,sectionKey:`config.filters`,label:`Size bracket`,description:`Headcount range a company self-reports on its LinkedIn page.`,options:m(`crustdata.linkedin_headcount_ranges`),placeholder:`2-10`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),headcount_growth_l6m_in_percent:N({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),revenue_in_usd:Xs({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:j({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}).default({include:[],exclude:[]}),last_funding_amount:Xs({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:N({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}).default([]),follower_growth_l6m_in_percent:N({path:`config.filters.follower_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}).default([]),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:U(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}).default({include:[],exclude:[]}),competitor_domains:A({path:`config.filters.competitor_domains`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domain`,description:``,placeholder:U(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),company_domains:A({path:`config.filters.company_domains`,sectionKey:`config.filters`,maxItems:400,label:`Company domain`,description:``,placeholder:U(`company_domain`),groupPath:`config.filters.web_presence`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),company_profile_urls:A({path:`config.filters.company_profile_urls`,sectionKey:`config.filters`,maxItems:2e3,label:`Company LinkedIn URL`,description:``,placeholder:`https://linkedin.com/company/...`,groupPath:`config.filters.web_presence`}).default({include:[],exclude:[]}),company_names:A({path:`config.filters.company_names`,sectionKey:`config.filters`,maxItems:2e3,label:`Company name`,description:``,placeholder:U(`company_name`),groupPath:`config.filters.web_presence`}).default({include:[],exclude:[]})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),mO={match:`any`,fields:[{fieldName:`company_profile_url`}]},hO={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},gO=`companies-profiles-crustdata-v2`,_O=class extends ${billing={billableOperation:gO,cost:hO};searchId=sO;schema=pO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[cO.name]:this.catalogOutput(cO),[lO.name]:this.catalogOutput(lO),[uO.name]:this.catalogOutput(uO),[dO.name]:this.catalogOutput(dO),[fO.name]:this.catalogOutput(fO)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return mO}},vO=pO,yO={searchId:sO,billableOperation:gO,baseSearch:MD(`companies:profiles:crustdata@2`),label:`Company search`,categories:[`companies`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],keywords:[`accounts`,`prospect`,`find companies`,`organizations`,`firmographic`,`linkedin`],docPath:ND(sO),cost:hO,provider:`crustdata`,defaultPayload:{search_id:sO,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:{include:[],exclude:[]},linkedin_industries:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},crunchbase_categories:{include:[],exclude:[]},markets:{include:[],exclude:[]},revenue_in_usd:{from:null,to:null},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},follower_growth_l6m_in_percent:[],headcount:{include:[],exclude:[]},linkedin_headcount_ranges:[],hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[],exclude:[]},company_domains:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_names:{include:[],exclude:[]}}}}},bO=`query:databricks@1`,xO=r.object({search_id:r.literal(bO),connector:_s(),config:r.object({query:tc({path:`config.query`,groupPath:`config.general`,sectionKey:`general`,label:`SQL query`,description:`A single read-only SELECT statement. It is wrapped automatically for pagination, so do not add your own LIMIT/OFFSET for paging.`,rows:8,minLength:1,maxLength:2e4}),limit:I({path:`config.limit`,min:1,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of rows per page`}).default(100),page_number:I({path:`config.page_number`,min:1,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page`,description:`1-based page index (offset pagination)`}).nullable().default(1)})}),SO={allowManagedConnection:!1,mode:null,credits:null,info:`Querying your own Databricks SQL warehouse is free.`},CO=`data-query-databricks-v1`,wO=class extends ${billing={billableOperation:CO,cost:SO};searchId=bO;schema=xO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`databricks`,rateLimitOperation:`databricks_query`,rateLimitRatio:1,allowManagedConnection:!1}]}async getAgentContext(e){return rE(`databricks`,e)}},TO=xO,EO={searchId:bO,billableOperation:CO,baseSearch:MD(bO),outputFieldMode:`dynamic`,paginationType:`page_number`,label:`Query Databricks`,categories:[`data`],hasManagedConnection:!1,allowsUserConnection:!0,lifecycle:null,description:`Run a read-only SQL query against your Databricks SQL warehouse and return the rows.`,guide:"Databricks SQL dialect; config.query must be a single read-only statement (no self-managed LIMIT/OFFSET — pagination is wrapped automatically). To discover the schema, draft a payload with a placeholder config.query like \"SELECT 1\" and the chosen connection in connector.connections, then call get_provider_context once — it returns the workspace-wide table/column map (all Unity catalogs) for free. Always reference tables by their FULLY QUALIFIED three-part name exactly as the map lists them (catalog.schema.table, e.g. samples.accuweather.forecast_daily); a bare table name resolves against the warehouse's unpredictable current catalog and usually fails with TABLE_OR_VIEW_NOT_FOUND. Sample actual rows (also free) with run_search_oneshot, then write the real config.query. Tables under the `samples` catalog (and Databricks' other built-in example schemas like `tpch` and `tpcds_*`) are DEMO data shipped to every workspace, NOT the customer's own data. If the user asks about their data and the only match is under `samples`/a demo schema — or the map shows only demo tables — the connection isn't pointed at their catalog: confirm the intended table with the user before querying, and never answer their question from a demo table.",tags:[W.FIELDS,W.NEW],keywords:[`sql`,`database`,`warehouse`,`select`,`table`,`read data`],docPath:ND(bO),cost:SO,provider:`databricks`,defaultPayload:{search_id:bO,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},DO=`query:postgres@1`,OO=r.object({search_id:r.literal(DO),connector:_s(),config:r.object({query:tc({path:`config.query`,groupPath:`config.general`,sectionKey:`general`,label:`SQL query`,description:`A single read-only SELECT statement. It is wrapped automatically for pagination, so do not add your own LIMIT/OFFSET for paging.`,rows:8,minLength:1,maxLength:2e4}),limit:I({path:`config.limit`,min:1,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of rows per page`}).default(100),page_number:I({path:`config.page_number`,min:1,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page`,description:`1-based page index (offset pagination)`}).nullable().default(1)})}),kO={allowManagedConnection:!1,mode:null,credits:null,info:`Querying your own PostgreSQL database is free.`},AO=`data-query-postgres-v1`,jO=class extends ${billing={billableOperation:AO,cost:kO};searchId=DO;schema=OO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`postgres`,rateLimitOperation:`postgres_query`,rateLimitRatio:1,allowManagedConnection:!1}]}async getAgentContext(e){return rE(`postgres`,e)}},MO=OO,NO={searchId:DO,billableOperation:AO,baseSearch:MD(DO),outputFieldMode:`dynamic`,paginationType:`page_number`,label:`Query Postgres`,categories:[`data`],hasManagedConnection:!1,allowsUserConnection:!0,lifecycle:null,description:`Run a read-only SQL query against your own PostgreSQL database and return the rows.`,guide:`PostgreSQL dialect; config.query must be a single read-only SELECT (no self-managed LIMIT/OFFSET — pagination is wrapped automatically). To discover the schema, draft a payload with a placeholder config.query like "SELECT 1" and the chosen connection in connector.connections, then call get_provider_context once — it returns the full table/column map for free. Sample actual rows (also free) with run_search_oneshot, then write the real config.query.`,tags:[W.FIELDS,W.NEW],keywords:[`sql`,`database`,`select`,`table`,`read data`],docPath:ND(DO),cost:kO,provider:`postgres`,defaultPayload:{search_id:DO,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},PO=`companies:profiles:amplemarket@1`,FO=g(`company_name`),IO=g(`company_website_url`),LO=g(`company_description`),RO=g(`company_profile_url`),zO=g(`amplemarket_company_match`),BO=r.object({search_id:r.literal(PO),connector:Ji.nullable().optional(),config:r.object({limit:I({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`}),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:L(r.object({[FO.name]:M({fieldName:FO.name}),[IO.name]:M({fieldName:IO.name}),[LO.name]:M({fieldName:LO.name}),[RO.name]:M({fieldName:RO.name}),[zO.name]:M({fieldName:zO.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:U(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),company_names:A({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:U(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),company_website_urls:A({sectionKey:`config.filters`,path:`config.filters.company_website_urls`,label:`Company domains`,description:``,placeholder:U(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),company_profile_urls:A({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}).default([]),investors:P({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:h(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:U(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}).default([]),company_industries:j({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:Re(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:U(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),customer_types:N({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}).default([]),keywords:A({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),revenue_groups:N({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}).default([]),founded_year:Js({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,description:``}).default({min:null,max:null}),open_positions_titles:k({path:`config.filters.open_positions_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:U(`title`),suggestionsDef:h(`titles`)}),headcount:N({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}).default([]),headcount_growth_last_6_months_in_percent:Js({path:`config.filters.headcount_growth_last_6_months_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0}).default({min:null,max:null})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),VO={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},HO=`companies-profiles-amplemarket-v1`,UO=class extends ${billing={billableOperation:HO,cost:VO};searchId=PO;schema=BO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[FO.name]:this.catalogOutput(FO),[IO.name]:this.catalogOutput(IO),[LO.name]:this.catalogOutput(LO),[RO.name]:this.catalogOutput(RO),[zO.name]:this.catalogOutput(zO)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},WO=BO,GO={searchId:PO,billableOperation:HO,baseSearch:MD(`companies:profiles:amplemarket@1`),label:`Company search`,categories:[`deprecated`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`companies:profiles:amplemarket@2`},description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],docPath:ND(PO),cost:VO,provider:`amplemarket`,defaultPayload:{search_id:PO,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:[]}}}}},KO=`companies:profiles:crustdata@1`,qO=g(`company_name`),JO=g(`company_website_url`),YO=g(`company_description`),XO=g(`company_profile_url`),ZO=g(`crustdata_company_match`),QO=r.object({search_id:r.literal(KO),connector:Ji.nullable().optional(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[qO.name]:M({fieldName:qO.name}),[JO.name]:M({fieldName:qO.name}),[YO.name]:M({fieldName:YO.name}),[XO.name]:M({fieldName:XO.name}),[ZO.name]:M({fieldName:ZO.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:U(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default({include:[],exclude:[]}),crunchbase_categories:F({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:U(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}).default({include:[],exclude:[]}),crunchbase_investors:F({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:U(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}).default({include:[],exclude:[]}),tracxn_investors:F({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:U(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.tracxn_investors.crustdata`)}).default({include:[],exclude:[]}),company_types:j({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),linkedin_industries:F({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:U(`industry`),groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),markets:F({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}).default({include:[],exclude:[]}),linkedin_categories:F({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:h(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}).default({include:[],exclude:[]}),headcount:j({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}).default({include:[],exclude:[]}),headcount_growth_last_6m_in_percent:N({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),revenue_in_usd:Xs({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:j({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}).default({include:[],exclude:[]}),last_funding_amount:Xs({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:N({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}).default([]),follower_growth_last_6m_in_percent:N({path:`config.filters.follower_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}).default([]),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:U(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}).default({include:[],exclude:[]}),competitor_websites:A({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:``,placeholder:U(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),$O={allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},ek=`companies-profiles-crustdata-v1`,tk=class extends ${billing={billableOperation:ek,cost:$O};searchId=KO;schema=QO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[qO.name]:this.catalogOutput(qO),[JO.name]:this.catalogOutput(JO),[YO.name]:this.catalogOutput(YO),[XO.name]:this.catalogOutput(XO),[ZO.name]:this.catalogOutput(ZO)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},nk=QO,rk={searchId:KO,billableOperation:ek,baseSearch:MD(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`deprecated`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`companies:profiles:crustdata@2`},description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],docPath:ND(KO),cost:$O,provider:`crustdata`,defaultPayload:{search_id:KO,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:[]}}}}},ik=`people:profiles:amplemarket@1`,ak=g(`name`),ok=g(`company_website_url`),sk=g(`profile_url`),ck=g(`job_title`),lk=g(`amplemarket_person_match`),uk=r.object({search_id:r.literal(ik),connector:Ji.nullable().optional(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:L(r.object({[ak.name]:M({fieldName:ak.name}),[ok.name]:M({fieldName:ok.name}),[sk.name]:M({fieldName:sk.name}),[ck.name]:M({fieldName:ck.name}),[lk.name]:M({fieldName:lk.name})})),filters:r.object({person_names:k({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:F({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),current_job_titles:k({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:U(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}),current_seniority_levels:N({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:U(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_departments:N({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:U(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_job_functions:N({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:U(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_employer_locations:F({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:h(`locations`),groupPath:`config.filters.current_company`,placeholder:U(`location`)}).default({include:[],exclude:[]}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:U(`company_name`),suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),current_employer_website_urls:A({path:`config.filters.current_employer_website_urls`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:U(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),current_employer_linkedin_industries:N({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:U(`industry`),required:!1,options:m(`linkedin.industries`)}).default([]),current_employer_estimated_revenue:N({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:m(`amplemarket.company_revenue`)}).default([]),current_employer_founded_year:Js({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,description:``}).default({min:null,max:null}),current_employer_investors:k({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:U(`investor`),description:``}),current_employer_open_positions_titles:k({path:`config.filters.current_employer_open_positions_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:U(`title`),suggestionsDef:h(`titles`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),dk={allowManagedConnection:!0,mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},fk=`people-profiles-amplemarket-v1`,pk=class extends ${billing={billableOperation:fk,cost:dk};searchId=ik;schema=uk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[ak.name]:this.catalogOutput(ak),[ok.name]:this.catalogOutput(ok),[sk.name]:this.catalogOutput(sk),[ck.name]:this.catalogOutput(ck),[lk.name]:this.catalogOutput(lk)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},mk=uk,hk={searchId:ik,billableOperation:fk,baseSearch:MD(`people:profiles:amplemarket@1`),paginationType:`page_number`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:amplemarket@2`},description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],docPath:ND(ik),cost:dk,provider:`amplemarket`,defaultPayload:{search_id:ik,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:[]}}}},gk=`people:profiles:crustdata@1`,_k=g(`name`),vk=g(`company_website_url`),yk=g(`profile_url`),bk=g(`job_title`),xk=g(`crustdata_person_match`),Sk=r.object({search_id:r.literal(gk),connector:Ji.nullable().optional(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[_k.name]:M({fieldName:_k.name}),[vk.name]:M({fieldName:vk.name}),[yk.name]:M({fieldName:yk.name}),[bk.name]:M({fieldName:bk.name}),[xk.name]:M({fieldName:xk.name})})),filters:r.object({locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:U(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:U(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),current_employers:A({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),current_employers_website_urls:A({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Company domain`,placeholder:U(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),current_employers_linkedin_industries:F({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:U(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),years_at_current_company:N({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:m(`crustdata.years_of_experience`)}).default([]),previous_employers_website_urls:A({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:U(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}).default({include:[],exclude:[]}),previous_seniority_levels:j({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:U(`seniority`),disableSearch:!0,optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),previous_employers:A({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),previous_job_titles:A({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:U(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),previous_employers_linkedin_industries:F({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:U(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),profile_headline_keywords:A({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`headline_keywords`)}).default({include:[],exclude:[]}),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`profile_keywords`)}).default({include:[],exclude:[]}),profile_languages:j({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:U(`languages`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),languages:j({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:U(`languages_1`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:U(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default({include:[],exclude:[]}),years_of_experience:N({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),current_seniority_levels:j({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:U(`seniority`),optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:U(`certification`),description:``}).default({include:[],exclude:[]}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:U(`honor`),description:``}).default({include:[],exclude:[]}),recently_changed_jobs:$s({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:F({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:U(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}).default({include:[],exclude:[]}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:U(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}).default({include:[],exclude:[]}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),current_school_names:F({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),extracurricular_activities:A({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:U(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)}).default({include:[],exclude:[]})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Ck={allowManagedConnection:!0,mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},wk=`people-profiles-crustdata-v1`,Tk=class extends ${billing={billableOperation:wk,cost:Ck};searchId=gk;schema=Sk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[_k.name]:this.catalogOutput(_k),[vk.name]:this.catalogOutput(vk),[yk.name]:this.catalogOutput(yk),[bk.name]:this.catalogOutput(bk),[xk.name]:this.catalogOutput(xk)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}},Ek=Sk,Dk={searchId:gk,billableOperation:wk,baseSearch:MD(`people:profiles:crustdata@1`),paginationType:`cursor`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:crustdata@2`},description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],docPath:ND(gk),cost:Ck,provider:`crustdata`,defaultPayload:{search_id:gk,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},crustdata_person_match:{enabled:!0,alias:``}},filters:{profile_headline_keywords:{include:[],exclude:[]},languages:{include:[],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},current_employers:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},years_at_current_company:[],certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employers_linkedin_industries:{include:[],exclude:[]},current_employers_website_urls:{include:[],exclude:[]},previous_employers_website_urls:{include:[],exclude:[]},current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},locations:{include:[],exclude:[]},profile_languages:{include:[],exclude:[]},recently_changed_jobs:null,extracurricular_activities:{include:[],exclude:[]},school_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},previous_employers:{include:[],exclude:[]},current_job_titles:{include:[],exclude:[]},skills:{include:[],exclude:[]},years_of_experience:[],previous_employers_linkedin_industries:{include:[],exclude:[]}}}}},Ok=`people:entitysearch:parallel@1`,kk=g(`name`),Ak=g(`job_title`),jk=g(`profile_url`),Mk=g(`parallel_person_entity_match`),Nk=r.object({search_id:r.literal(Ok),connector:vs(),config:r.object({objective:tc({path:`config.objective`,sectionKey:`general`,groupPath:`config.general`,label:`Objective`,rows:4,minLength:10,placeholder:`Heads of Engineering at Series B fintech companies in the US`,description:`Plain-text natural-language description of the people to find.`}),limit:I({path:`config.limit`,min:5,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of entities to return (5–1000).`}).default(100),output_fields:L(r.object({[kk.name]:M({fieldName:kk.name}),[Ak.name]:M({fieldName:Ak.name}),[jk.name]:M({fieldName:jk.name}),[Mk.name]:M({fieldName:Mk.name})}))})}),Pk={match:`any`,fields:[{fieldName:`profile_url`}]},Fk={allowManagedConnection:!0,mode:`per_page`,credits:{default:.5},info:`1 page = 100 results; billed per 100 results returned (e.g. 100 results = 1 page, 1,000 results = 10 pages). A search returns up to your selected limit in a single request.`},Ik=`people-entitysearch-parallel-v1`,Lk=class extends ${billing={billableOperation:Ik,cost:Fk};searchId=Ok;schema=Nk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[kk.name]:this.catalogOutput(kk),[Ak.name]:this.catalogOutput(Ak),[jk.name]:this.catalogOutput(jk),[Mk.name]:this.catalogOutput(Mk)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Pk}},Rk=Nk,zk={searchId:Ok,billableOperation:Ik,baseSearch:MD(Ok),label:`People search (AI)`,categories:[`people`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Natural-language people search powered by Parallel Entity Search.`,tags:[W.PEOPLE_PROFILES],keywords:[`prospect`,`lead`,`contact`,`find people`,`natural language`],docPath:ND(Ok),cost:Fk,provider:`parallel`,defaultPayload:{search_id:Ok,connector:null,config:{objective:``,limit:100,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},parallel_person_entity_match:{enabled:!1,alias:``}}}}},Bk=`people:eventguests:luma@1`,Vk=g(`name`),Hk=g(`email`),Uk=g(`luma_id`),Wk=g(`registered_at`),Gk=g(`luma_event_guest_match`),Kk=[{label:`Sample Meetup — Berlin`,value:`evt-sandbox-1`},{label:`Sample Conference — SF`,value:`evt-sandbox-2`}],qk={requires:{connection:`luma`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Kk;if(!t)throw Error(`A Luma connection is required to list events.`);let r=await fetch(`https://public-api.luma.com/v1/calendar/list-events`,{headers:{accept:`application/json`,"x-luma-api-key":t}});if(!r.ok){let e=await r.text();throw Error(`Failed to list Luma events: ${e}`)}let i=((await r.json()).entries||[]).filter(e=>!!e?.id).map(e=>({label:e.name||e.id,value:e.id}));return e?i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):i}},Jk=r.object({search_id:r.literal(Bk),connector:_s(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of guests per page`}).default(100),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[Vk.name]:M({fieldName:Vk.name}),[Hk.name]:M({fieldName:Hk.name}),[Uk.name]:M({fieldName:Uk.name}),[Wk.name]:M({fieldName:Wk.name}),[Gk.name]:M({fieldName:Gk.name})})),filters:r.object({event_id:rc({path:`config.filters.event_id`,sectionKey:`config.filters`,groupPath:`config.filters.event`,label:`Event`,required:!0,info:`Pick one of your Luma events; guests of this event are returned.`,enabledIf:no(`luma`),optionsDef:qk}),approval_status:nc({path:`config.filters.approval_status`,sectionKey:`config.filters`,groupPath:`config.filters.event`,label:`Approval status`,description:`Only return guests with this approval status.`,required:!1,options:[{value:`approved`,label:`Approved`},{value:`pending_approval`,label:`Pending approval`},{value:`declined`,label:`Declined`},{value:`waitlist`,label:`Waitlist`},{value:`invited`,label:`Invited`}]})})})}),Yk={match:`any`,fields:[{fieldName:`luma_id`}]},Xk={allowManagedConnection:!0,mode:`per_page`,credits:{default:1},info:`1 page = up to 100 guests.`},Zk=`people-eventguests-luma-v1`,Qk=class extends ${billing={billableOperation:Zk,cost:Xk};searchId=Bk;schema=Jk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Vk.name]:this.catalogOutput(Vk),[Hk.name]:this.catalogOutput(Hk),[Uk.name]:this.catalogOutput(Uk),[Wk.name]:this.catalogOutput(Wk),[Gk.name]:this.catalogOutput(Gk)}}getConnectionsRequirements(){return[{provider:`luma`,rateLimitOperation:`luma_get_guests`,rateLimitRatio:1,allowManagedConnection:!1}]}getDedupConfig(){return Yk}},$k=Jk,eA={searchId:Bk,billableOperation:Zk,baseSearch:MD(Bk),paginationType:`cursor`,label:`List event guests`,categories:[`people`],hasManagedConnection:!1,allowsUserConnection:!0,lifecycle:null,description:`Fetch all guests of a Luma event using your own Luma API key.`,tags:[W.PEOPLE_PROFILES,W.EVENTS,W.NEW],keywords:[`attendees`,`rsvp`,`meetup`,`conference`,`registrations`,`participants`],docPath:ND(Bk),cost:Xk,provider:`luma`,defaultPayload:{search_id:Bk,connector:{strategy:`first`,connections:[]},config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},email:{enabled:!0,alias:``},luma_id:{enabled:!0,alias:``},registered_at:{enabled:!0,alias:``},luma_event_guest_match:{enabled:!0,alias:``}},filters:{event_id:``,approval_status:``}}}},tA=`people:profiles:amplemarket@2`,nA=g(`name`),rA=g(`company_domain`),iA=g(`profile_url`),aA=g(`job_title`),oA=g(`amplemarket_person_match`),sA=r.object({search_id:r.literal(tA),connector:vs(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,label:`Page size`,sectionKey:`pagination`,description:`Max number of search results per page`}).default(50),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,label:`Page number`,min:1,sectionKey:`pagination`,description:``}).nullish(),output_fields:L(r.object({[nA.name]:M({fieldName:nA.name}),[rA.name]:M({fieldName:rA.name}),[iA.name]:M({fieldName:iA.name}),[aA.name]:M({fieldName:aA.name}),[oA.name]:M({fieldName:oA.name})})),filters:r.object({person_names:k({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:F({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),current_job_titles:k({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:U(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}),current_seniority_levels:N({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:U(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_departments:N({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:U(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_job_functions:N({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:U(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}).default([]),current_employer_locations:F({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:h(`locations`),groupPath:`config.filters.current_company`,placeholder:U(`location`)}).default({include:[],exclude:[]}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:U(`company_name`),suggestionsDef:h(`company_names`)}).default({include:[],exclude:[]}),current_employer_domains:A({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:U(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),current_employer_linkedin_industries:N({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:U(`industry`),required:!1,options:m(`linkedin.industries`)}).default([]),current_employer_estimated_revenue:N({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:m(`amplemarket.company_revenue`)}).default([]),current_employer_founded_year:Js({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,description:``}).default({min:null,max:null}),current_employer_investors:k({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:U(`investor`),description:``}),current_employer_open_position_titles:k({path:`config.filters.current_employer_open_position_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:U(`title`),suggestionsDef:h(`titles`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),cA={match:`any`,fields:[{fieldName:`profile_url`}]},lA={allowManagedConnection:!0,mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},uA=`people-profiles-amplemarket-v2`,dA=class extends ${billing={billableOperation:uA,cost:lA};searchId=tA;schema=sA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[nA.name]:this.catalogOutput(nA),[rA.name]:this.catalogOutput(rA),[iA.name]:this.catalogOutput(iA),[aA.name]:this.catalogOutput(aA),[oA.name]:this.catalogOutput(oA)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return cA}},fA=sA,pA={searchId:tA,billableOperation:uA,baseSearch:MD(`people:profiles:amplemarket@2`),paginationType:`page_number`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],keywords:[`prospect`,`lead`,`contact`,`find people`,`filters`],docPath:ND(tA),cost:lA,provider:`amplemarket`,defaultPayload:{search_id:tA,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:[]}}}},mA=`people:profiles:crustdata@2`,hA=g(`name`),gA=g(`company_domain`),_A=g(`profile_url`),vA=g(`job_title`),yA=g(`crustdata_person_match`),bA=r.object({search_id:r.literal(mA),connector:vs(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page size`,description:`Max number of search results per page`}).default(100),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[hA.name]:M({fieldName:hA.name}),[gA.name]:M({fieldName:gA.name}),[_A.name]:M({fieldName:_A.name}),[vA.name]:M({fieldName:vA.name}),[yA.name]:M({fieldName:yA.name})})),filters:r.object({locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:U(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:U(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),current_employer_domains:A({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:U(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),current_employer_industries:F({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:U(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),years_at_current_company:N({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:m(`crustdata.years_of_experience`)}).default([]),previous_employer_domains:A({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:U(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),previous_seniority_levels:j({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:U(`seniority`),disableSearch:!0,optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),previous_employer_names:A({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),previous_job_titles:A({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:U(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),previous_employer_industries:F({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:U(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),profile_headline_keywords:A({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`headline_keywords`)}).default({include:[],exclude:[]}),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`profile_keywords`)}).default({include:[],exclude:[]}),profile_languages:j({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:U(`languages`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),languages:j({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:U(`languages_1`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:U(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default({include:[],exclude:[]}),years_of_experience:N({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),current_seniority_levels:j({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:U(`seniority`),optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:U(`certification`),description:``}).default({include:[],exclude:[]}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:U(`honor`),description:``}).default({include:[],exclude:[]}),recently_changed_jobs:$s({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:F({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:U(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}).default({include:[],exclude:[]}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:U(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}).default({include:[],exclude:[]}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),current_school_names:F({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),extracurricular_activities:A({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:U(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)}).default({include:[],exclude:[]}),post_processing_exclude_company_profile_urls:k({path:`config.filters.post_processing_exclude_company_profile_urls`,sectionKey:`config.filters`,groupPath:`config.filters.post_processing`,label:`Exclude company profiles`,maxItems:5e3,placeholder:`https://linkedin.com/company/...`,description:`Company LinkedIn URLs (https://www.linkedin.com/company/{slug}) removed from the search results`}).default([]),post_processing_exclude_company_names:k({path:`config.filters.post_processing_exclude_company_names`,sectionKey:`config.filters`,groupPath:`config.filters.post_processing`,label:`Exclude company names`,maxItems:5e3,placeholder:U(`company_name`),description:`Company names removed from the search results`}).default([])}).check(e=>{let{post_processing_exclude_company_profile_urls:t,post_processing_exclude_company_names:n,...r}=e.value;qD(r)&&e.issues.push({code:`custom`,message:`You must set at least one meaningful filter.`,input:e.value})})})}),xA={match:`any`,fields:[{fieldName:`profile_url`}]},SA={allowManagedConnection:!0,mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},CA=`people-profiles-crustdata-v2`,wA=class extends ${billing={billableOperation:CA,cost:SA};searchId=mA;schema=bA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[hA.name]:this.catalogOutput(hA),[gA.name]:this.catalogOutput(gA),[_A.name]:this.catalogOutput(_A),[vA.name]:this.catalogOutput(vA),[yA.name]:this.catalogOutput(yA)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return xA}},TA=bA,EA={searchId:mA,billableOperation:CA,baseSearch:MD(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],keywords:[`prospect`,`lead`,`contact`,`find people`,`linkedin`],docPath:ND(mA),cost:SA,provider:`crustdata`,defaultPayload:{search_id:mA,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:[]},post_processing_exclude_company_profile_urls:[],post_processing_exclude_company_names:[]}}}},DA=`people:profiles:crustdata@3`,OA=g(`name`),kA=g(`profile_url`),AA=g(`person_profile_match`),jA=r.object({search_id:r.literal(DA),connector:vs(),config:r.object({limit:I({path:`config.limit`,min:1,max:1e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page size`,description:`Max number of search results per page`}).default(100),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),output_fields:L(r.object({[OA.name]:M({fieldName:OA.name}),[kA.name]:M({fieldName:kA.name}),[AA.name]:M({fieldName:AA.name})})),filters:r.object({recently_changed_jobs:$s({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:U(`certification`),description:``,suggestionsDef:h(`person.certifications.crustdata`)}).default({include:[],exclude:[]}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:U(`honor`),description:``,suggestionsDef:h(`person.honors.crustdata`)}).default({include:[],exclude:[]}),current_employer_domains:A({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:U(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),current_employer_headcount_brackets:N({path:`config.filters.current_employer_headcount_brackets`,sectionKey:`config.filters`,label:`Headcount`,description:``,placeholder:`1-10`,disableSearch:!0,required:!1,options:m(`crustdata.company_size`),groupPath:`config.filters.current_employer`}).default([]),current_employer_industries:F({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:U(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),current_employment_job_functions:N({path:`config.filters.current_employment_job_functions`,sectionKey:`config.filters`,label:`Function`,groupPath:`config.filters.current_employer`,placeholder:U(`job_function`),description:``,disableSearch:!0,required:!1,options:m(`employment_function.crustdata`)}).default([]),current_employment_job_titles:A({path:`config.filters.current_employment_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:U(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),current_employment_seniority_levels:N({path:`config.filters.current_employment_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:U(`seniority`),options:Re(`crustdata.person_seniority`).options,required:!1,description:``,groupPath:`config.filters.current_employer`}).default([]),current_employment_tenure_brackets:N({path:`config.filters.current_employment_tenure_brackets`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:m(`crustdata.years_of_experience`)}).default([]),current_school_names:F({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree`,placeholder:U(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}).default({include:[],exclude:[]}),fields_of_study:F({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Field of study`,placeholder:U(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}).default({include:[],exclude:[]}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School`,description:``,placeholder:U(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default({include:[],exclude:[]}),previous_employer_domains:A({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:U(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:Et(e.value)}})})}).default({include:[],exclude:[]}),previous_employer_headcount_brackets:N({path:`config.filters.previous_employer_headcount_brackets`,sectionKey:`config.filters`,label:`Previous employer headcount`,description:``,placeholder:`1-10`,disableSearch:!0,required:!1,options:m(`crustdata.company_size`),groupPath:`config.filters.experience`}).default([]),previous_employer_industries:F({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industry`,placeholder:U(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}).default({include:[],exclude:[]}),previous_employer_names:A({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer name`,description:``,placeholder:U(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}).default({include:[],exclude:[]}),previous_employment_job_functions:N({path:`config.filters.previous_employment_job_functions`,sectionKey:`config.filters`,label:`Previous function`,groupPath:`config.filters.experience`,placeholder:U(`job_function`),description:``,disableSearch:!0,required:!1,options:m(`employment_function.crustdata`)}).default([]),previous_employment_job_titles:A({path:`config.filters.previous_employment_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:U(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}).default({include:[],exclude:[]}),previous_employment_seniority_levels:N({path:`config.filters.previous_employment_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:U(`seniority`),disableSearch:!0,options:Re(`crustdata.person_seniority`).options,required:!1,description:``,groupPath:`config.filters.experience`}).default([]),previous_employment_tenure_brackets:N({path:`config.filters.previous_employment_tenure_brackets`,sectionKey:`config.filters`,label:`Years at previous company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,options:m(`crustdata.years_of_experience`)}).default([]),total_years_of_experience_brackets:N({path:`config.filters.total_years_of_experience_brackets`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),languages:j({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:U(`languages_1`),optionsDef:Re(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:U(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}).default({include:[],exclude:[]}),about_section_keywords:A({path:`config.filters.about_section_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`profile_keywords`)}).default({include:[],exclude:[]}),profile_headline_keywords:A({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:U(`headline_keywords`)}).default({include:[],exclude:[]}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:U(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default({include:[],exclude:[]})}).check(e=>{qD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),MA={match:`any`,fields:[{fieldName:`profile_url`}]},NA={allowManagedConnection:!0,mode:`per_result`,credits:{default:.15,level1:{credits:.07,weight:10}},info:`1 page = 100 records; 200 results = 2 pages`},PA=`people-profiles-crustdata-v3`,FA=class extends ${billing={billableOperation:PA,cost:NA};searchId=DA;schema=jA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[OA.name]:this.catalogOutput(OA),[kA.name]:this.catalogOutput(kA),[AA.name]:this.catalogOutput(AA)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return MA}},IA=jA,LA={searchId:DA,billableOperation:PA,baseSearch:MD(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],keywords:[`prospect`,`lead`,`contact`,`find people`,`linkedin`],docPath:ND(DA),cost:NA,provider:`crustdata`,defaultPayload:{search_id:DA,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},person_profile_match:{enabled:!0,alias:``}},filters:{recently_changed_jobs:null,certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employer_domains:{include:[],exclude:[]},current_employer_headcount_brackets:[],current_employer_industries:{include:[],exclude:[]},current_employer_names:{include:[],exclude:[]},current_employment_job_functions:[],current_employment_job_titles:{include:[],exclude:[]},current_employment_seniority_levels:[],current_employment_tenure_brackets:[],current_school_names:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},school_names:{include:[],exclude:[]},previous_employer_domains:{include:[],exclude:[]},previous_employer_headcount_brackets:[],previous_employer_industries:{include:[],exclude:[]},previous_employer_names:{include:[],exclude:[]},previous_employment_job_functions:[],previous_employment_job_titles:{include:[],exclude:[]},previous_employment_seniority_levels:[],previous_employment_tenure_brackets:[],total_years_of_experience_brackets:[],languages:{include:[],exclude:[]},locations:{include:[],exclude:[]},about_section_keywords:{include:[],exclude:[]},profile_headline_keywords:{include:[],exclude:[]},skills:{include:[],exclude:[]}}}}},RA=`posts:content:crustdata@1`,zA=g(`post_match`),BA=g(`post_text`),VA=g(`post_id`),HA=r.object({search_id:r.literal(RA),connector:vs(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Page size`,description:`Max number of search results per page`}).default(100),output_fields:L(r.object({[VA.name]:M({fieldName:VA.name}),[zA.name]:M({fieldName:zA.name}),[BA.name]:M({fieldName:BA.name})})),filters:r.object({keywords:k({path:`config.filters.keywords`,sectionKey:`config.filters`,label:`Search keywords`,groupPath:`config.filters.general`,maxItems:6,placeholder:U(`profile_keywords`),description:``}).default([]),keyword_operator:nc({path:`config.filters.keyword_operator`,sectionKey:`config.filters`,label:`Keyword operator`,groupPath:`config.filters.general`,options:[{value:`OR`,label:`Any keyword (OR)`},{value:`AND`,label:`All keywords (AND)`}],required:!0,defaultValue:`OR`,description:`Post must match any or all keywords.`}).default(`OR`),date_posted:nc({path:`config.filters.date_posted`,sectionKey:`config.filters`,label:`Date posted`,groupPath:`config.filters.general`,options:Re(`crustdata.post_date_posted`).options,placeholder:`Past 24h, past week, ...`,required:!1,defaultValue:``,description:`Only return posts published within this recency window.`}).default(``),content_types:N({path:`config.filters.content_types`,sectionKey:`config.filters`,label:`Content type`,groupPath:`config.filters.general`,options:m(`crustdata.post_content_type`),disableSearch:!0,required:!1,placeholder:`Photos, jobs, ...`,description:``}).default([]),author_industries:P({path:`config.filters.author_industries`,sectionKey:`config.filters`,label:`Author industry`,groupPath:`config.filters.author`,optionsDef:h(`linkedin_industries.crustdata`),disableSearch:!1,required:!1,maxItems:100,placeholder:U(`industry`),description:`Only return posts whose author works in one of these industries.`}).default([]),author_company_profile_url:k({path:`config.filters.author_company_profile_url`,sectionKey:`config.filters`,label:`Author company profile URL`,groupPath:`config.filters.author`,maxItems:50,placeholder:`https://linkedin.com/company/..., ...`,description:`Only return posts whose author currently works at these companies (by LinkedIn profile URL).`}).default([]),author_title:k({path:`config.filters.author_title`,sectionKey:`config.filters`,label:`Author title`,groupPath:`config.filters.author`,maxItems:50,suggestionsDef:h(`titles`),placeholder:U(`title`),description:`Only return posts whose author holds one of these titles.`}).default([]),author_profile_url:k({path:`config.filters.author_profile_url`,sectionKey:`config.filters`,label:`Author profile URL`,groupPath:`config.filters.author`,maxItems:50,placeholder:`https://linkedin.com/in/..., ...`,description:`Only return posts authored by these people (by LinkedIn profile URL).`}).default([]),authoring_company_profile_url:k({path:`config.filters.authoring_company_profile_url`,sectionKey:`config.filters`,label:`Authoring company profile URL`,groupPath:`config.filters.author`,maxItems:50,placeholder:`https://linkedin.com/company/..., ...`,description:`Only return posts authored by these companies (by LinkedIn profile URL).`}).default([]),companies_mentioned_in_post:k({path:`config.filters.companies_mentioned_in_post`,sectionKey:`config.filters`,label:`Companies mentioned in post`,groupPath:`config.filters.mentions`,maxItems:50,placeholder:`https://linkedin.com/company/..., ...`,description:`Only return posts that mention these companies (by LinkedIn profile URL).`}).default([]),people_mentioned_in_post:k({path:`config.filters.people_mentioned_in_post`,sectionKey:`config.filters`,label:`People mentioned in post`,groupPath:`config.filters.mentions`,maxItems:50,placeholder:`https://linkedin.com/in/..., ...`,description:`Only return posts that mention these people (by LinkedIn profile URL).`}).default([])}).check(e=>{let t=e.value,n=t.keywords.some(e=>e.trim()!==``),r=[t.author_industries,t.author_company_profile_url,t.author_title,t.author_profile_url,t.authoring_company_profile_url,t.companies_mentioned_in_post,t.people_mentioned_in_post].some(e=>e.length>0);!n&&!r&&e.issues.push({code:`custom`,message:`Provide a keyword or at least one filter.`,input:e.value,path:[`keywords`]});let i=t.author_industries.length>0||t.author_company_profile_url.length>0||t.author_title.length>0||t.author_profile_url.length>0;t.authoring_company_profile_url.length>0&&i&&e.issues.push({code:`custom`,message:`Authoring company profile URL can't be combined with author profile URL, company name, title, or industry filters.`,input:e.value,path:[`authoring_company_profile_url`]})})})}),UA={match:`any`,fields:[{fieldName:`post_id`}]},WA={allowManagedConnection:!0,mode:`per_result`,credits:{default:2}},GA=`posts-content-crustdata-v1`,KA=class extends ${billing={billableOperation:GA,cost:WA};searchId=RA;schema=HA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[VA.name]:this.catalogOutput(VA),[zA.name]:this.catalogOutput(zA),[BA.name]:this.catalogOutput(BA)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_social_post_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return UA}},qA=HA,JA={searchId:RA,billableOperation:GA,baseSearch:MD(RA),paginationType:`page_number`,label:`LinkedIn post search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Keyword-based LinkedIn post search.`,tags:[W.LINKEDIN],keywords:[`content`,`social`,`engagement`,`keyword`,`activity`],docPath:ND(RA),cost:WA,provider:`crustdata`,defaultPayload:{search_id:RA,connector:null,config:{limit:100,output_fields:{post_id:{enabled:!0,alias:``},post_text:{enabled:!0,alias:``},post_match:{enabled:!0,alias:``}},filters:{keywords:[],keyword_operator:`OR`,date_posted:``,content_types:[],author_industries:[],author_company_profile_url:[],author_title:[],author_profile_url:[],authoring_company_profile_url:[],companies_mentioned_in_post:[],people_mentioned_in_post:[]}}}},YA=`bucket:entries@1`,XA=r.object({search_id:r.literal(YA),connector:_s(),config:r.object({bucket:ec({path:`config.bucket`,groupPath:`config.general`,inputType:`text`,label:`Bucket`,sectionKey:`general`,description:`The bucket's org-unique slug. Its entries (one row each) are returned.`}),limit:I({path:`config.limit`,min:1,max:2e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of entries per page`}).default(100),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),include_metadata:Qs({path:`config.include_metadata`,groupPath:`config.general`,sectionKey:`general`,label:`Include metadata`,description:`Provenance (source sheet/row/run) and expiry as extra columns.`,defaultValue:!1})})}),ZA={allowManagedConnection:!0,mode:`per_search`,credits:{default:0},info:`Reading your own bucket is free.`},QA=`bucket-entries-v1-pipe0`,$A=class extends ${billing={billableOperation:QA,cost:ZA};searchId=YA;schema=XA;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0_api_operation`,rateLimitRatio:1,allowManagedConnection:!0}]}},ej=XA,tj={searchId:YA,billableOperation:QA,baseSearch:MD(YA),outputFieldMode:`dynamic`,paginationType:`cursor`,label:`Read bucket entries`,categories:[`data`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`List the entries in a bucket — one row per entry, with its identifying field values (and counter number / expiry).`,tags:[W.FIELDS,W.NEW],keywords:[`claims`,`counter`,`suppression`,`list`,`lookup`,`rows`],docPath:ND(YA),cost:ZA,provider:`pipe0`,defaultPayload:{search_id:YA,connector:{strategy:`first`,connections:[]},config:{bucket:``,limit:100,cursor:``,include_metadata:!1}}},nj=`sheet:rows@1`,rj=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],ij={requires:{connection:`pipe0`},enabledIf:no(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?rj:t?(await t.sheets.list({query:e})).map(e=>({label:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},aj=r.object({search_id:r.literal(nj),connector:_s(),config:r.object({sheet:rc({path:`config.sheet`,sectionKey:`general`,groupPath:`config.general`,label:`Sheet`,required:!0,info:`Pick one of your pipe0 sheets; its rows are returned.`,enabledIf:no(`pipe0`),optionsDef:ij}),limit:I({path:`config.limit`,min:1,max:2e3,groupPath:`config.pagination`,sectionKey:`pagination`,label:`Limit`,description:`Max number of rows per page`}).default(100),cursor:ec({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}).nullable(),include_metadata:Qs({path:`config.include_metadata`,groupPath:`config.general`,sectionKey:`general`,label:`Include metadata`,description:`Widgets and prevenance tags.`,defaultValue:!1})})}),oj={allowManagedConnection:!0,mode:`per_search`,credits:{default:0},info:`Reading your own pipe0 sheet is free.`},sj=`sheet-items-v1-pipe0`,cj=class extends ${billing={billableOperation:sj,cost:oj};searchId=nj;schema=aj;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0_api_operation`,rateLimitRatio:1,allowManagedConnection:!0}]}},lj=aj,uj={searchId:nj,billableOperation:sj,baseSearch:MD(nj),outputFieldMode:`dynamic`,paginationType:`cursor`,label:`Read sheet rows`,categories:[`data`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`List rows from a pipe0 sheet.`,tags:[W.FIELDS,W.NEW],keywords:[`lookup`,`list`,`records`,`table`,`fetch`],docPath:ND(nj),cost:oj,provider:`pipe0`,defaultPayload:{search_id:nj,connector:{strategy:`first`,connections:[]},config:{sheet:``,limit:100,cursor:``,include_metadata:!1}}},dj={"people:profiles:crustdata@1":Tk,"people:profiles:crustdata@2":wA,"people:profiles:crustdata@3":FA,"companies:profiles:crustdata@1":tk,"companies:profiles:crustdata@2":_O,"people:profiles:amplemarket@1":pk,"people:profiles:amplemarket@2":dA,"companies:profiles:amplemarket@1":UO,"companies:profiles:amplemarket@2":iO,"companies:entitysearch:parallel@1":WD,"people:entitysearch:parallel@1":Lk,"people:eventguests:luma@1":Qk,"posts:content:crustdata@1":KA,"sheet:rows@1":cj,"bucket:entries@1":$A,"query:postgres@1":jO,"query:databricks@1":wO},fj={"people:profiles:crustdata@1":Ek,"people:profiles:crustdata@2":TA,"people:profiles:crustdata@3":IA,"companies:profiles:crustdata@1":nk,"companies:profiles:crustdata@2":vO,"people:profiles:amplemarket@1":mk,"people:profiles:amplemarket@2":fA,"companies:profiles:amplemarket@1":WO,"companies:profiles:amplemarket@2":aO,"companies:entitysearch:parallel@1":GD,"people:entitysearch:parallel@1":Rk,"people:eventguests:luma@1":$k,"posts:content:crustdata@1":qA,"sheet:rows@1":lj,"bucket:entries@1":ej,"query:postgres@1":MO,"query:databricks@1":TO},pj={"people:profiles:crustdata@1":Dk,"people:profiles:crustdata@2":EA,"people:profiles:crustdata@3":LA,"companies:profiles:crustdata@1":rk,"companies:profiles:crustdata@2":yO,"people:profiles:amplemarket@1":hk,"people:profiles:amplemarket@2":pA,"companies:profiles:amplemarket@1":GO,"companies:profiles:amplemarket@2":oO,"companies:entitysearch:parallel@1":KD,"people:entitysearch:parallel@1":zk,"people:eventguests:luma@1":eA,"posts:content:crustdata@1":JA,"sheet:rows@1":uj,"bucket:entries@1":tj,"query:postgres@1":NO,"query:databricks@1":EO};function mj(e){return dj[e]}const hj=t.discriminatedUnion(`search_id`,Object.values(fj).map(e=>e)).openapi(`SearchPayloadSchema`);function gj(e,t){return vt(t,pj[e].defaultPayload)}const _j=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=gj(e.search_id);return t?{...e,config:vt(e?.config||{},t.config)}:e},hj),vj=t.object({config:t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1}),field_definitions:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}).default({environment:`production`,widgets:{enabled:!1},field_definitions:{enabled:!1}}),search:_j}).openapi(`SearchRequestSchema`),yj=Ti,bj=t.object({value:di,status:ui,type:ci.optional(),format:Oi.nullable().optional(),resolved_by:Pi.nullable().optional(),widgets:wi.optional()}),xj=t.record(t.string(),bj.nullable());function Sj(e){return fj[e]}const Cj=t.enum([`cursor`,`page_number`]),wj=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:AD,errors:t.array(yj),results:t.array(xj),organization_id:t.string(),next_page:_j.nullable(),pagination_type:Cj.nullable(),total_pages:t.int32().nullable(),field_definitions:Ai.optional()}).openapi(`SearchResponseSchema`);function Tj(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function Ej(){let e={};for(let t of Object.values(pj)){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=Tj(e.searchId);return Tj(t.searchId)-n})}),e}function Dj(e){return pj[e]}const Oj=Ej();function kj(e){let t=[];for(let[n,r]of Object.entries(Oj)){let i=r[0];if(!i)throw Error(`Found empty entry`);i.lifecycle?.deprecatedOn&&e!==`deprecated`||(e===null||i.categories.includes(e))&&t.push({...i,baseSearch:n,latestVersion:Tj(i.searchId)})}return t}function Aj(e){let t=pj[e].defaultPayload.config.output_fields;return t?Object.keys(t):[]}function jj(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 Aj(e.searchId))r[t]??=[],r[t].push(e.searchId);for(let t of e.tags)i[t]??=[],i[t].push(e.searchId)}return{searchIdsByOutputField:r,searchIdsByTag:i,searchIdsByProvider:a,sortedTagEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),searchEntriesByBaseSearch:Oj}}function Mj(e){let t=Dj(e);return{[t.provider]:t.cost.allowManagedConnection?t.cost.credits.default:0}}const Nj={"prompt:run@1":Ow,"agent:run@1":dl,"company:newssummary:website@1":pp,"company:newssummary:domain@1":od,"company:techstack:builtwith@1":tm,"company:techstack:builtwith@2":Nd,"company:websiteurl:email@1":um,"company:domain:workemail@1":Sl,"company:funding:leadmagic@1":of,"company:funding:leadmagic@2":Il,"company:funding:waterfall@1":eu,"people:workemail:waterfall@1":yv,"person:workemail:waterfall@1":xw,"people:email:iswork@1":ym,"email:iswork@1":Ov,"people:name:split@1":Uh,"person:name:split@1":LS,"people:validate:email:zerobounce@1":K_,"people:email:validate:zerobounce@2":Rm,"email:validate:zerobounce@1":Qv,"people:mobilenumber:workemail:waterfall@1":Nh,"person:name:join@1":DS,"company:overview@1":Op,"company:overview@2":Wp,"company:overview@3":Sd,"json:extract:multi@1":Qy,"company:lookalikes:companyenrich@1":Lf,"company:lookalikes:companyenrich@2":Au,"company:match:logodev@1":ip,"company:match:logodev@2":Zu,"person:posts:content:crustdata@1":aC,"people:profile:workemail:crustdata@1":w_,"person:profile:workemail:crustdata@1":EC,"people:identity:email:waterfall@1":eh,"person:identity:email:waterfall@1":kx,"person:identity:amplemarket@1":px,"email:send:resend@1":Hv,"contact:create:resend@1":Gd,"lead:enroll:lemlist@1":bb,"email:send:gmail@1":Fv,"email:write@1":sy,"fields:merge@1":Ly,"field:slugify@1":Ty,"field:domainify@1":gy,"http:request@1":Ky,"template:fill@1":NE,"message:send:slack@1":Ob,"message:write@1":Ib,"people:personalemail:profile:waterfall@1":tg,"person:personalemail:profileurl:waterfall@1":YS,"website:scrape:firecrawl@1":_D,"website:scrapelist:firecrawl@1":ED,"website:extract:firecrawl@1":HE,"website:extract:parallel@1":ZE,"website:maplinks:firecrawl@1":oD,"row:append:sheet@1":DT,"bucket:claim@1":qw,"bucket:count@1":sT,"bucket:check@1":eT,"row:expandappend:sheet@1":LT,"row:roundrobin:sheet@1":WT,"rows:find:sheet@1":EE,"rows:find:postgres@1":_E,"rows:find:databricks@1":lE,"people:match:role:waterfall@1":dh,"person:match:role:waterfall@1":Yx,"company:match:crustdata@1":Kf,"company:match:crustdata@2":zu,"person:match:amplemarket@1":Rx,"company:identity@2":Of,"company:identity@3":du,"company:identity:crustdata@1":xu,"people:phone:profile:waterfall@1":fg,"person:mobile:profileurl:waterfall@1":oS,"person:devprofileurl:profileurl:waterfall@1":Jb,"people:phone:workemail:waterfall@1":Cg,"person:mobile:workemail:waterfall@1":_S,"people:profile:waterfall@1":m_,"person:profile:waterfall@1":gC,"people:profileurl:email:waterfall@1":I_,"person:profileurl:email:waterfall@1":RC,"person:profileurl:name@1":YC,"people:email:validate:zerobounce@1":Om,"person:email:validate:millionverifier@1":ix,"people:workemail:profileurl:waterfall@1":av,"person:workemail:profileurl:waterfall@1":sw,"company:identity@1":_f,"people:professionalprofile:waterfall@1":Pg,"people:professionalprofileurl:name@1":r_,"people:professionalprofileurl:email:waterfall@1":Kg,"people:mobilenumber:professionalprofile:waterfall@1":Sh},Pj={"prompt:run@1":kw,"agent:run@1":fl,"company:newssummary:website@1":mp,"company:newssummary:domain@1":sd,"company:techstack:builtwith@1":nm,"company:techstack:builtwith@2":Pd,"company:websiteurl:email@1":dm,"company:domain:workemail@1":Cl,"company:funding:leadmagic@1":sf,"company:funding:leadmagic@2":Ll,"company:funding:waterfall@1":tu,"people:workemail:waterfall@1":bv,"person:workemail:waterfall@1":Sw,"people:email:iswork@1":bm,"email:iswork@1":kv,"people:name:split@1":Wh,"person:name:split@1":RS,"people:validate:email:zerobounce@1":q_,"people:email:validate:zerobounce@2":zm,"email:validate:zerobounce@1":$v,"people:mobilenumber:workemail:waterfall@1":Ph,"person:name:join@1":OS,"company:overview@1":kp,"company:overview@2":Gp,"company:overview@3":Cd,"json:extract:multi@1":$y,"email:write@1":cy,"fields:merge@1":Ry,"field:slugify@1":Ey,"field:domainify@1":_y,"http:request@1":qy,"email:send:resend@1":Uv,"contact:create:resend@1":Kd,"lead:enroll:lemlist@1":xb,"company:lookalikes:companyenrich@1":Rf,"company:lookalikes:companyenrich@2":ju,"company:match:logodev@1":ap,"company:match:logodev@2":Qu,"person:posts:content:crustdata@1":oC,"people:profile:workemail:crustdata@1":T_,"person:profile:workemail:crustdata@1":DC,"people:identity:email:waterfall@1":th,"person:identity:email:waterfall@1":Ax,"company:match:crustdata@1":qf,"company:match:crustdata@2":Bu,"person:identity:amplemarket@1":mx,"message:send:slack@1":kb,"email:send:gmail@1":Iv,"message:write@1":Lb,"template:fill@1":PE,"website:scrape:firecrawl@1":vD,"website:scrapelist:firecrawl@1":DD,"website:extract:firecrawl@1":UE,"website:extract:parallel@1":QE,"website:maplinks:firecrawl@1":sD,"row:append:sheet@1":OT,"bucket:claim@1":Jw,"bucket:count@1":cT,"bucket:check@1":tT,"row:expandappend:sheet@1":RT,"row:roundrobin:sheet@1":GT,"rows:find:sheet@1":DE,"rows:find:postgres@1":vE,"rows:find:databricks@1":uE,"people:match:role:waterfall@1":fh,"person:match:role:waterfall@1":Xx,"company:identity@2":kf,"company:identity@3":fu,"company:identity:crustdata@1":Su,"people:phone:profile:waterfall@1":pg,"person:mobile:profileurl:waterfall@1":sS,"person:devprofileurl:profileurl:waterfall@1":Yb,"people:personalemail:profile:waterfall@1":ng,"person:personalemail:profileurl:waterfall@1":XS,"people:profile:waterfall@1":h_,"person:profile:waterfall@1":_C,"people:profileurl:email:waterfall@1":L_,"person:profileurl:email:waterfall@1":zC,"person:profileurl:name@1":XC,"people:email:validate:zerobounce@1":km,"person:email:validate:millionverifier@1":ax,"people:phone:workemail:waterfall@1":wg,"person:mobile:workemail:waterfall@1":vS,"people:workemail:profileurl:waterfall@1":ov,"person:workemail:profileurl:waterfall@1":cw,"person:match:amplemarket@1":zx,"company:identity@1":vf,"people:professionalprofile:waterfall@1":Fg,"people:professionalprofileurl:name@1":i_,"people:professionalprofileurl:email:waterfall@1":qg,"people:mobilenumber:professionalprofile:waterfall@1":Ch},Fj={"prompt:run@1":Aw,"agent:run@1":pl,"company:newssummary:website@1":hp,"company:newssummary:domain@1":cd,"company:techstack:builtwith@1":rm,"company:techstack:builtwith@2":Fd,"company:websiteurl:email@1":fm,"company:domain:workemail@1":wl,"company:funding:leadmagic@1":cf,"company:funding:leadmagic@2":Rl,"company:funding:waterfall@1":nu,"people:workemail:waterfall@1":xv,"person:workemail:waterfall@1":Cw,"people:email:iswork@1":xm,"email:iswork@1":Av,"people:name:split@1":Gh,"person:name:split@1":zS,"people:validate:email:zerobounce@1":J_,"people:mobilenumber:workemail:waterfall@1":Fh,"person:name:join@1":kS,"company:overview@1":Ap,"company:overview@2":Kp,"company:overview@3":wd,"json:extract:multi@1":eb,"email:send:resend@1":Wv,"contact:create:resend@1":qd,"lead:enroll:lemlist@1":Sb,"email:send:gmail@1":Lv,"message:send:slack@1":Ab,"message:write@1":Rb,"email:write@1":ly,"template:fill@1":FE,"fields:merge@1":zy,"field:slugify@1":Dy,"field:domainify@1":vy,"http:request@1":Jy,"row:append:sheet@1":kT,"bucket:claim@1":Yw,"bucket:count@1":lT,"bucket:check@1":nT,"row:expandappend:sheet@1":zT,"row:roundrobin:sheet@1":KT,"rows:find:sheet@1":OE,"rows:find:postgres@1":yE,"rows:find:databricks@1":dE,"company:lookalikes:companyenrich@1":zf,"company:lookalikes:companyenrich@2":Mu,"people:match:role:waterfall@1":ph,"person:match:role:waterfall@1":Zx,"company:match:logodev@1":op,"company:match:logodev@2":$u,"person:posts:content:crustdata@1":sC,"people:profile:workemail:crustdata@1":E_,"person:profile:workemail:crustdata@1":OC,"people:workemail:profileurl:waterfall@1":sv,"person:workemail:profileurl:waterfall@1":lw,"people:identity:email:waterfall@1":nh,"person:identity:email:waterfall@1":jx,"company:match:crustdata@1":Jf,"company:match:crustdata@2":Vu,"person:identity:amplemarket@1":hx,"email:validate:zerobounce@1":ey,"person:email:validate:millionverifier@1":ox,"people:personalemail:profile:waterfall@1":rg,"person:personalemail:profileurl:waterfall@1":ZS,"people:email:validate:zerobounce@1":Am,"people:email:validate:zerobounce@2":Bm,"people:phone:workemail:waterfall@1":Tg,"person:mobile:workemail:waterfall@1":yS,"website:scrape:firecrawl@1":yD,"website:scrapelist:firecrawl@1":OD,"website:extract:firecrawl@1":WE,"website:extract:parallel@1":$E,"website:maplinks:firecrawl@1":cD,"person:match:amplemarket@1":Bx,"company:identity@2":Af,"company:identity@3":pu,"company:identity:crustdata@1":Cu,"people:phone:profile:waterfall@1":mg,"person:mobile:profileurl:waterfall@1":cS,"person:devprofileurl:profileurl:waterfall@1":Xb,"people:profile:waterfall@1":g_,"person:profile:waterfall@1":vC,"people:profileurl:email:waterfall@1":R_,"person:profileurl:email:waterfall@1":BC,"person:profileurl:name@1":ZC,"company:identity@1":yf,"people:professionalprofile:waterfall@1":Ig,"people:professionalprofileurl:name@1":a_,"people:professionalprofileurl:email:waterfall@1":Jg,"people:mobilenumber:professionalprofile:waterfall@1":wh};function Ij(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function Lj(e){return Nj[e]}function Rj(e){return Fj[e].defaultPayload}function zj(e){return Pj[e]}const Bj=r.discriminatedUnion(`pipe_id`,Object.values(Pj)).openapi(`PipePayload`),Vj=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=Rj(oi.parse(e.pipe_id));return t?{...e,config:vt(e?.config||{},t.config)}:e}catch{return e}},Bj);function Hj(e){return Fj[e]}function Uj(e,t){let n=Hj(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 Wj(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function Gj(){let e={};for(let t of Object.values(Fj)){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=Wj(e.pipeId);return Wj(t.pipeId)-n})}),e}const Kj=e=>{let t=Hj(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},qj=Gj();function Jj(e,t){let n=new Map;for(let[t,r]of Object.entries(e))for(let e of Object.keys(r.billableOperations)){let r=n.get(e)??[];r.push(`pipe ${t}`),n.set(e,r)}for(let[e,r]of Object.entries(t)){let t=r.billableOperation,i=n.get(t)??[];i.push(`search ${e}`),n.set(t,i)}let r=[...n.entries()].filter(([,e])=>e.length>1);if(r.length>0){let e=r.map(([e,t])=>` "${e}" used by ${t.join(`, `)}`).join(`
76
76
  `);throw Error(`Catalog has ${r.length} duplicate billable-operation key(s):\n${e}`)}}Jj(Fj,pj);function Yj(e){let t=[];for(let[n,r]of Object.entries(qj)){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:Wj(i.pipeId)})}return t}function Xj(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=Kj(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of Ij(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of zc(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:qj}}const Zj=r.object({id:r.string(),organization_id:r.string(),order:r.array(li),field_definitions:Vi,errors:r.array(Ti),records:r.record(li,Ri),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),Qj=r.object({environment:ii.default(`production`),widgets:r.object({enabled:r.boolean().default(!1)}).default({enabled:!1}),field_definitions:r.object({enabled:r.boolean()}).default({enabled:!1}),transform:r.object({include_fields:r.enum([`input`,`annotated`])}).default({include_fields:`input`})}).default({environment:`production`,transform:{include_fields:`input`},widgets:{enabled:!1},field_definitions:{enabled:!1}}).openapi(`PipesRequestConfig`),$j=r.object({config:Qj.openapi(`PipesRequestConfig`),field_annotations:Ai.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(Bj),input:r.array(Li.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function eM(e){let t=Hj(e);return Object.values(t.billableOperations).reduce((e,t)=>{let n=t.allowManagedConnection?t.credits.default:0;return e[t.provider]??=n,e[t.provider]=Math.min(e[t.provider],n),e},{})}function tM(e){let t=[];for(let n of e){if(n instanceof H){t.push(n);continue}let e=Vj.parse(n);if(!Hj(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(Lj(n.pipe_id))(e);t.push(r)}return t}function nM(e,t){let n=tM(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 rM(e,t){let n=e.dependencyGraph,r=new Set;return n.forEach((e,n)=>e.forEach(e=>{e.index===t&&r.add(n)})),Array.from(r).map(t=>{let n=e.orderedPipeInstances[t];if(!n)throw Error(`Internal: Pipe with index ${t} not found.`);return n.pipeId})}function iM(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 aM(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 oM(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(aM(e))return`https://${e}`;if(!iM(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 sM(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(aM(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!iM(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(iM(i)||aM(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function cM(e){try{return oM(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function lM(e,t){if(t)switch(e){case`website_url`:return cM(t);default:return}}function uM(e){let t;if(dM(e))return uM(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function dM(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&ui.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&dM(e.value,t++))throw new Q([Z.RecursiveExpandedValue()]);return!0}return!1}function fM(e){let t=dM(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function pM(e){return dM(e)?pM(e.value):e}function mM(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=Qr(e,n.format)?.getStaticWidgets?.(t),i=lM(n.format,t);return jt(At(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function hM(e,t,n){if(t==null)return{};try{let r=Qr(e,n)?.getStaticWidgets?.(t),i=lM(n,t);return jt(At(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function gM(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 _M=class e{annotations;constructor(e){this.annotations=e||{}}getAnnotation(e){return this.annotations[e]}static fromInput(t,{probeCount:n=1e5,inferCatalogFields:i=!0,addIdColumn:a=!0}={probeCount:1e5,inferCatalogFields:!0,addIdColumn:!0}){let o={},s=0;for(let e of t){if(s++,s>n)break;for(let[t,n]of Object.entries(e)){if(t===``||t==null)continue;let{resolvedInputValue:e,expandedValue:a,isExpanded:s}=fM(n),c;c=s&&a.type?a.type:uM(e);let l;$r(t)&&(l=g(t));let u=l&&(l.type===c||c===`unknown`);(!o[t]||o[t].type===`unknown`&&c!==`unknown`)&&(o[t]={type:c===`unknown`&&u&&i&&l?.type?l.type:c,format:u&&i&&l?.format||null,label:l&&i?l.label:null,json_metadata:u&&i&&l?.jsonMeta?{schema:l.jsonMeta.zodSchema?r.toJSONSchema(l.jsonMeta.zodSchema):null,example_value:l.jsonMeta.exampleValue||null}:null})}}return a&&!o.id&&(o.id={format:null,type:`string`,json_metadata:null,label:null}),new e(o)}merge(t,n=!1){let r=structuredClone(this.annotations),i=t instanceof e?t.annotations:t;for(let[e,t]of Object.entries(i))if(r[e]===void 0||n)r[e]=t;else{let n=r[e];r[e]=gM(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function vM(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];Object.values(r.getOutputFields()).forEach(e=>{if(t[e.resolvedName])throw new Q([Z.AmbiguousDependency({fieldName:e.resolvedName})]);t[e.resolvedName]=n})}return t}function yM(e){let t=vM(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of zc(i.getInputRequirement())){let o=t[n.resolvedName];if(r===o)throw new Q([{code:`SelfReference`,message:`Pipe '${i.pipeId} has an input requirement that points to a field that is produced by itself.'`}]);if(o==null)continue;let s=e.find(e=>e.index===o);s?(s.reason??=[],s.reason=Array.from(new Set([...s.reason,`input`])),s.required=a||s.required):e.push({index:o,required:a,reason:[`input`]})}if(i.payload.run_if){let n=i.payload.run_if.when.conditions.map(e=>e.field_name);for(let r of n){let n=t[r];if(n==null)continue;let i=e.find(e=>e.index===n);i?(i.reason??=[],i.reason=Array.from(new Set([...i.reason,`input`])),i.required=!0):e.push({index:n,required:!0,reason:[`input`]})}}n.push(e)}return n}function bM({config:e,pipes:t,input:n,field_annotations:r}){try{let i=wM({config:e,pipes:t,input:n,fieldAnnotations:r});return xM(i),i}catch(e){throw e instanceof Q?e:new Q([Z.ValidationFailed({error:e})])}}function xM(e){for(let t of e.orderedPipeInstances)for(let{field:n}of zc(t.getInputRequirement()))Gc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),Kc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function SM(e,t){if(!e&&!t)throw new Q([Z.MustDefineAnnotations()]);return new _M(t||{}).merge(_M.fromInput(e||[]))}function CM(e,t){let n={...t};return e.pipes.forEach((t,r)=>{for(let[i,a]of Object.entries(t.getOutputFields())){if(Mc(a.resolvedName))throw new Q([Z.ReservedOutputFieldName({pipeId:t.pipeId,outputField:a})]);let i=n[a.resolvedName];if(i&&i.added_by.ref!==`input`)throw new Q([Z.DuplicatePipeOutput({pipeId:t.pipeId,outputField:a})]);n[a.resolvedName]={type:Gc(e,a.type),added_by:{ref:t.pipeId,config_hash:t.getConfigHashKey(),pipe_index:r},label:i?.label||a.label,format:Kc(e,a.format),is_primary_output:a.isPrimaryOutput}}}),n}function wM(e){let t=tM(e.pipes),n=SM(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)}),DM(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]=TM(t,n),u=CM({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 TM(e,t){let n=yM(e),r=EM(n,e,t),i=[],a=[];return r.forEach(t=>{let n=e[t];if(!n)throw new Q([Z.FaultyEnrichmentOrder()]);i.push(n.payload),a.push(n)}),[i,a,n]}function EM(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?zc(n.getInputRequirement()).length>0:!1},l=(n,r=[])=>{if(o.has(n)){let e=n,i=r[r.length-1]||0,a={idx:i,pipe_id:t[i]?.pipeId},o={idx:e,pipeId:t[e]?.pipeId};throw new Q([Z.CircularDependency({currentPipe:a,circularPipe:o})])}if(a.has(n))return;o.add(n),r.push(n);let s=e[n]||[];for(let e of s)l(e.index,r);r.pop(),o.delete(n),a.add(n),i.push(n)};function u(t){if(a.has(t))return;o.add(t);let n=e[t]||[];for(let e of n){if(!a.has(e.index)&&e.required)throw new Q([Z.UnresolvableDependency({index:t,dependencyIndex:e.index})]);!o.has(e.index)&&!e.required&&u(e.index)}o.delete(t),a.add(t),i.push(t)}for(let e=0;e<r;e++)c(e)&&l(e);for(let e=0;e<r;e++)c(e)||l(e);for(let e=0;e<r;e++)u(e);let d=new Set(Object.keys(n.annotations));for(let e of i){let n=t[e];if(!n)throw Error(`Pipe not defined`);Object.values(n.getOutputFields()).forEach(e=>{d.add(e.resolvedName)})}for(let[n,r]of t.entries()){let a=r.getInputRequirement();Rc(a,d)||s.push(Z.RequirementUnmet({requirement:a,pipeId:r.pipeId,index:n}));let o=e[n]||[],c=i.indexOf(n);for(let e of o){let r=i.indexOf(e.index);e.required&&r>c&&s.push(e.reason.includes(`input`)?Z.HardInputDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}):Z.HardConditionDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}))}r.payload.run_if&&r.payload.run_if.when.conditions.map(e=>e.field_name).forEach(e=>{if(!d.has(e))throw new Q([Z.ConditionTargetFieldNotFound({fieldName:e,pipeId:r.pipeId,pipeIdx:n})])})}if(s.length>0)throw new Q(s);return i}function DM(e,t){let n=new Set(e.getConnectionsRequirements().filter(e=>e.allowManagedConnection===!1).map(e=>e.provider));if(n.size>0){let r=e.payload.connector;if(!r||(r.connections.map(e=>{if(e.type===`vault`)return Wa(e.connection).provider;e.type}).forEach(e=>{e&&n.delete(e)}),n.size>0))throw new Q([Z.MissingCustomConnections({index:t,pipeId:e.pipeId,missingProviders:Array.from(n)})])}}const OM=`fields:deletesparse:input@1`,kM={},AM=r.object({effect_id:r.literal(OM),connector:w(),config:r.object({fields:Es({path:`config.fields`,sectionKey:`general`,groupPath:`config.general`,label:`Candidate fields`,minItems:1,description:`Input fields to delete if they turn out sparsely populated.`}),probe_size:lc({path:`config.probe_size`,sectionKey:`general`,groupPath:`config.general`,label:`Probe size`,description:`How many rows to sample when measuring column density.`,min:100,max:1e4}).default(1e3),threshold_in_percent:lc({path:`config.threshold_in_percent`,sectionKey:`general`,groupPath:`config.general`,label:`Density threshold (%)`,description:`Candidates populated in strictly fewer than this percent of probed rows are deleted.`,min:1,max:100}).default(25)})}),jM=class extends B{effectId=OM;schema=AM;payload;billableOperations=kM;constructor(e){if(super(),this.payload=this.validatePayload(e),this.payload.config.fields.some(e=>e.field_name===`id`))throw Error(`Cannot list the id field as a deletion candidate.`)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return this.payload.config.fields.map(e=>e.field_name)}evolveSchema(e){let t=structuredClone(e.fieldAnnotations||{});for(let{field_name:e}of this.payload.config.fields)delete t[e];if(Object.keys(t).filter(e=>e!==`id`).length===0&&e.pipes.length===0)throw Error(`fields:deletesparse:input@1 lists every input column as a candidate — it refuses to empty the sheet. Keep at least one column off the candidate list, or use fields:remove@1 / sheet:reset@1 to clear the sheet explicitly.`);let n=bM({config:{environment:e.environment},pipes:e.pipes,field_annotations:t});return{next:{environment:e.environment,pipes:e.pipes,fieldAnnotations:t,validationContext:n}}}},MM=AM,NM={effectId:OM,baseEffect:z(OM),label:`Delete sparse input columns`,description:`Probe rows to measure how densely candidate input columns are populated and delete the ones below a density threshold.`,guide:`Conditional column cleanup: list every input column you'd consider dropping as config.fields (typically the sparse leftovers rows:copy_to_sheet@1 imports leave behind) — the density check keeps any candidate that turns out well-populated. Probes the first config.probe_size rows (default 1000) and deletes a candidate only when it is populated in strictly fewer than config.threshold_in_percent (default 25) of them. Only listed fields can be deleted; id and pipe-referenced fields cannot be listed (validation error). Static validation treats ALL candidates as removed (aggressive over-approximation), so do not reference a candidate in later steps of the same run — re-read get_sheet_schema afterwards to see which columns survived. Deletes columns, never rows. DESTRUCTIVE (approval-gated), reversible via timetravel. To delete named columns unconditionally use fields:remove@1 instead.`,categories:[`data_hygiene`],tags:[W.NEW],keywords:[`empty`,`cleanup`,`prune`,`remove fields`,`unused`,`blank`],lifecycle:null,billableOperations:kM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,defaultPayload:{effect_id:OM,connector:null,config:{fields:[],probe_size:1e3,threshold_in_percent:25}}},PM=`fields:duplicate@1`,FM={},IM=r.object({effect_id:r.literal(PM),connector:w(),config:r.object({fields:Es({path:`config.fields`,sectionKey:`general`,groupPath:`config.general`,label:`Fields to duplicate`,minItems:1,description:`Each selected field is copied to a new editable input column.`})})});function LM(e,t){let n=`${e}_copy`;if(!t.has(n))return{name:n,index:null};let r=2;for(;t.has(`${n}_${r}`);)r++;return{name:`${n}_${r}`,index:r}}function RM(e){if(e==null)return null;let{isExpanded:t,expandedValue:n,resolvedInputValue:r}=fM(e);return t&&n.status!==`completed`||r==null?null:typeof r==`object`?structuredClone(r):r}const zM=class extends B{effectId=PM;schema=IM;payload;billableOperations=FM;constructor(e){super(),this.payload=this.validatePayload(e);let t=this.payload.config.fields.map(e=>e.field_name);if(t.includes(`id`))throw Error(`Cannot duplicate the id field.`);if(new Set(t).size!==t.length)throw Error(`Cannot duplicate the same field twice in one effect.`)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[...new Set(this.payload.config.fields.map(e=>e.field_name))]}evolveSchema(e){let t=e.validationContext.fieldDefinitions,n=new Set(Object.keys(t)),r=structuredClone(e.fieldAnnotations||{}),i=[];for(let{field_name:a}of this.payload.config.fields){let o=t[a];if(!o)throw Error(`Field name ${a} not found in current schema.`);let{name:s,index:c}=LM(a,n);n.add(s),i.push({source:a,target:s});let l=e.fieldAnnotations?.[a];r[s]={type:o.type,format:o.format??null,label:c===null?`${o.label} copy`:`${o.label} copy ${c}`,...l?.json_metadata?{json_metadata:structuredClone(l.json_metadata)}:{}}}let a=bM({config:{environment:e.environment},pipes:e.pipes,field_annotations:r});return{next:{environment:e.environment,pipes:a.orderedPipePayloads,fieldAnnotations:a.fieldAnnotations.annotations,validationContext:a},rowMigration:(e,t)=>{for(let{source:n,target:r}of i)e.input[r]=RM(t.input[n]);return e}}}},BM=IM,VM={effectId:PM,baseEffect:z(PM),label:`Duplicate fields`,description:`Copy fields into new editable input columns (enrichment values become plain values).`,categories:[`data_hygiene`],tags:[W.NEW],keywords:[`copy`,`clone`,`freeze`,`snapshot`,`column`],lifecycle:null,billableOperations:FM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,guide:`Copy fields into new editable input columns — works for user-entered AND pipe-output fields, so it freezes an enrichment result into a plain value you can edit or re-enrich over. Copies land as "<field>_copy" (then "<field>_copy_2", …) with the source's type/format; only the RESOLVED VALUE is copied — cells whose status is not "completed" copy as null, and status/provenance never carry over. Put every field to duplicate in ONE effect. Later effects in the same chain may reference the "_copy" names.`,defaultPayload:{effect_id:PM,connector:null,config:{fields:[]}}};function HM(e,t,n){if(e==null||typeof e==`number`||typeof e==`boolean`)return e;if(typeof e==`string`){let r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),i=new RegExp(r,`g`);return e.replace(i,n)}if(Array.isArray(e))return e.map(e=>HM(e,t,n));if(typeof e==`object`){let r={};for(let i in e)Object.hasOwn(e,i)&&(i.includes(`path`)||[`connector`,`provider`,`pipe_id`,`search_id`].includes(i)?r[i]=e[i]:r[i]=HM(e[i],t,n));return r}return e}function UM(e,t,n){let r={...e};r.config??={};let i=r.config;if(i?.input_fields?.[t]&&(!i.input_fields[t].alias||i.input_fields[t].alias===t)){let e=i.input_fields[t]||{};i.input_fields[t]={...e,alias:n}}return r}function WM(e,t,n){let r=[];for(let i of e.orderedPipePayloads){let e=HM(i,t,n);r.push(UM(e,t,n))}return r}function GM(e,t,n,r,i){if(!e.orderedPipeInstances[t])throw Error(`Pipe instance at index ${t} is not defined`);let a={...n};if(Hj(n.pipe_id).outputFieldMode===`static`){let n=e.resolvedFieldNames[r]?e.resolvedFieldNames[r]:Object.entries(e.resolvedFieldNames).find(([,e])=>e===r)?.[0];if(!n)throw Error(`Unable to find field name ${r} in pipe at idx ${t}`);a.config??={};let o=a.config,s=o.output_fields?.[n]||{};return o.output_fields??={},o.output_fields[n]??={},o.output_fields[n]={...s,alias:i},UM(a,r,i)}return HM(a,r,i)}function KM(e,t,n,r){let i=[];for(let a=0;a<e.orderedPipePayloads.length;a++){let o=e.orderedPipePayloads[a],s=t.added_by.pipe_index;if(typeof s!=`number`)throw Error(`Pipe index must be number.`);a===s?i.push(GM(e,a,o,n,r)):i.push(HM(o,n,r))}return i}function qM(e,t,n){let r=e.fieldDefinitions[t];if(!r)throw Error(`No field definition found for field with name ${t}`);return r?.added_by.ref===`input`?WM(e,t,n):KM(e,r,t,n)}const JM=`fields:patch@1`,YM={},XM=r.object({effect_id:r.literal(JM),connector:w(),config:r.object({field_name:r.string().min(1),new_name:r.string().min(1).optional(),new_format:Oi.nullable().optional(),new_type:ci.optional(),new_label:r.string().optional()})}),ZM=class extends B{effectId=JM;schema=XM;payload;billableOperations=YM;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[this.payload.config.field_name]}evolveSchema(e){let{field_name:t,new_name:n,new_label:r,new_format:i,new_type:a}=this.payload.config;if(!e.fieldAnnotations?.[t])throw Error(`Field name ${t} not found in current schema.`);let o=e.validationContext,s=o.fieldDefinitions[t];if(!s)throw Error(`Field definition for field ${t} not found.`);let c={...e.fieldAnnotations},l=!!n&&n!==t,u=[...o.orderedPipePayloads];if(l){u=qM(o,t,n);let e=c[t];if(!e)throw Error(`Unable to find file annotations for field ${t}.`);c[n]=e,delete c[t]}let d=s.added_by.ref===`input`,f=n||t,ee=a||s.type,te=i||s.format;if(a&&a!==s.type){if(!d)throw Error(`Cannot change the type of a pipe output field.`);c[f].type=a,Ul[a].length===0&&(c[f].format=null)}if(i&&i!==s.format){if(!d)throw Error(`Cannot change the format of a pipe output field.`);c[f].format=i}if(Ul[ee].length&&te&&!Ul[ee].includes(te))throw Error(`After applying your updates the field has the type ${ee} but format ${te}. Type and format are not compatible.`);r&&r!==s.label&&(c[f].label=r);let ne=bM({config:{environment:e.environment},pipes:u,field_annotations:c}),p=l?(e,r)=>(e.input[n]=r.input[t]||null,e):void 0;return{next:{environment:e.environment,pipes:ne.orderedPipePayloads,fieldAnnotations:ne.fieldAnnotations.annotations,validationContext:ne},rowMigration:p}}},QM=XM,$M={effectId:JM,baseEffect:z(JM),label:`Edit field`,description:`Rename, retype, reformat, or relabel a field.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:YM,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:JM,connector:null,config:{field_name:``}}},eN=`fields:remove@1`,tN={},nN=r.object({effect_id:r.literal(eN),connector:w(),config:r.object({field_names:r.array(r.string().min(1)).min(1)})}),rN=class extends B{effectId=eN;schema=nN;payload;billableOperations=tN;constructor(e){if(super(),this.payload=this.validatePayload(e),this.payload.config.field_names.includes(`id`))throw Error(`Cannot remove the id field.`)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return this.payload.config.field_names}evolveSchema(e){let t=structuredClone(e.fieldAnnotations||{});for(let e of this.payload.config.field_names)delete t[e];if(Object.keys(t).length===1){let t=bM({config:{environment:e.environment},pipes:[],field_annotations:{}});return{next:{environment:e.environment,pipes:[],fieldAnnotations:{},validationContext:t}}}let n=bM({config:{environment:e.environment},pipes:e.pipes,field_annotations:t});return{next:{environment:e.environment,pipes:e.pipes,fieldAnnotations:t,validationContext:n}}}},iN=nN,aN={effectId:eN,baseEffect:z(eN),label:`Remove fields`,description:`Remove fields (input columns) from the sheet.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:tN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:eN,connector:null,config:{field_names:[]}}},oN=`pipe:add@1`,sN={},cN=r.object({effect_id:r.literal(oN),connector:w(),config:r.object({pipe_payload:Bj.optional()})}),lN=class extends B{effectId=oN;schema=cN;payload;billableOperations=sN;constructor(e){if(super(),this.payload=this.validatePayload(e),!this.payload.config.pipe_payload)throw Error(`pipe:add@1 requires config.pipe_payload`)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}evolveSchema(e){let t=this.payload.config.pipe_payload;if(!t)throw Error(`pipe:add@1 requires config.pipe_payload`);let n=bM({config:{environment:e.environment},pipes:[...e.pipes,t],field_annotations:e.fieldAnnotations||{}});return{next:{environment:e.environment,pipes:n.orderedPipePayloads,fieldAnnotations:n.fieldAnnotations.annotations,validationContext:n}}}},uN=cN,dN={effectId:oN,baseEffect:z(oN),label:`Add pipe`,description:`Append a pipe to the sheet's pipeline.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:sN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:oN,connector:null,config:{}}},fN=`pipe:remove@1`,pN={},mN=r.object({effect_id:r.literal(fN),connector:w(),config:r.object({config_hash:r.string(),hard:r.boolean().default(!1)})}),hN=class extends B{effectId=fN;schema=mN;payload;billableOperations=pN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}evolveSchema(e){let{config_hash:t,hard:n}=this.payload.config,i=tM(e.pipes).findIndex(e=>e.getConfigHashKey()===t);if(i===-1)throw Error(`Pipe with config hash ${t} not found.`);let a=e.validationContext,o=new Set(Object.entries(a.fieldDefinitions).filter(([,e])=>e.added_by.config_hash===t).map(([e])=>e)),s=new _M(e.fieldAnnotations||{});for(let e of o){let t=a.fieldDefinitions[e];if(!t)continue;if(n){s=s.deleteKey(e);continue}let i=ti(e,t,a),o=$r(i.fieldName)?g(i.fieldName):null;s=s.merge({[e]:{format:t.format,type:t.type,json_metadata:o?.jsonMeta?{schema:o.jsonMeta.zodSchema?r.toJSONSchema(o.jsonMeta.zodSchema):null,example_value:o.jsonMeta.exampleValue||null}:null,label:t.label}})}let c=e.pipes.slice();c.splice(i,1);let l=bM({config:{environment:e.environment},pipes:c,field_annotations:s.annotations}),u=n?void 0:e=>{let t={...e};for(let e of o){let n=t.input[e];if(!n)continue;let{resolvedInputValue:r}=fM(n);t.input[e]=r}return t};return{next:{environment:e.environment,pipes:c,fieldAnnotations:s.annotations,validationContext:l},rowMigration:u}}},gN=mN,_N={effectId:fN,baseEffect:z(fN),label:`Remove pipe`,description:`Remove a pipe from the sheet's pipeline, optionally deleting its fields.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:pN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:fN,connector:null,config:{config_hash:``,hard:!1}}},vN=`pipe:update@1`,yN={},bN=r.object({effect_id:r.literal(vN),connector:w(),config:r.object({config_hash:r.string().min(1),pipe_payload:Bj.optional()})}),xN=class extends B{effectId=vN;schema=bN;payload;billableOperations=yN;constructor(e){if(super(),this.payload=this.validatePayload(e),!this.payload.config.pipe_payload)throw Error(`pipe:update@1 requires config.pipe_payload`)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}evolveSchema(e){let{config_hash:t,pipe_payload:n}=this.payload.config;if(!n)throw Error(`pipe:update@1 requires config.pipe_payload`);let i=tM(e.pipes).findIndex(e=>e.getConfigHashKey()===t);if(i===-1)throw Error(`Pipe with config hash ${t} not found.`);let a=e.validationContext,o=new Set(Object.entries(a.fieldDefinitions).filter(([,e])=>e.added_by.config_hash===t).map(([e])=>e)),s=[...e.pipes];s.splice(i,1,n);let c=bM({config:{environment:e.environment},pipes:s,field_annotations:e.fieldAnnotations||{}}),l=new(Lj(n.pipe_id))(n),u=new Set(Object.entries(c.fieldDefinitions).filter(([,e])=>e.added_by.config_hash===l.getConfigHashKey()).map(([e])=>e));for(let e of u)o.delete(e);let d=new _M(c.fieldAnnotations.annotations);for(let e of o){let t=a.fieldDefinitions[e];if(!t)throw Error(`Previous field def not found`);if(c.resolvedFieldNames[e])continue;let n=ti(e,t,a),i=$r(n.fieldName)?g(n.fieldName):null;d=d.merge({[e]:{format:t.format,type:t.type,json_metadata:i?.jsonMeta?{schema:i.jsonMeta.zodSchema?r.toJSONSchema(i.jsonMeta.zodSchema):null,example_value:i.jsonMeta.exampleValue||null}:null,label:t.label}})}let f=bM({config:{environment:e.environment},pipes:c.orderedPipePayloads,field_annotations:d.annotations});return{next:{environment:e.environment,pipes:c.orderedPipePayloads,fieldAnnotations:d.annotations,validationContext:f},rowMigration:e=>{let t={...e};for(let e of o){let n=t.input[e];if(!n)continue;let{resolvedInputValue:r}=fM(n);t.input[e]=r}return t}}}},SN=bN,CN={effectId:vN,baseEffect:z(vN),label:`Update pipe`,description:`Replace a pipe in the sheet's pipeline and re-run it.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:yN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:vN,connector:null,config:{config_hash:``}}},wN=`row:update@1`,TN={},EN=r.object({effect_id:r.literal(wN),connector:w(),config:r.object({record_id:r.string().min(1),record:Li})}),DN=class extends B{effectId=wN;schema=EN;payload;billableOperations=TN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},ON=EN,kN={effectId:wN,baseEffect:z(wN),label:`Update row`,description:`Update a single row's values.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:TN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`shared`,lockScope:`selection`,catalogVisibility:`hidden`,defaultPayload:{effect_id:wN,connector:null,config:{record_id:``,record:{}}}},AN=`rows:add@1`,jN={},MN=r.object({effect_id:r.literal(AN),connector:w(),config:r.object({records:r.array(Li).min(1).max(100),allow_field_creation:r.boolean().default(!1),allow_empty:r.boolean().default(!1)})}),NN=class extends B{effectId=AN;schema=MN;payload;billableOperations=jN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){return this.payload.config.allow_field_creation===!0}},PN=MN,FN={effectId:AN,baseEffect:z(AN),label:`Add rows`,description:`Append records to the sheet.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:jN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`hidden`,defaultPayload:{effect_id:AN,connector:null,config:{records:[],allow_field_creation:!1,allow_empty:!1}}},IN=r.enum([`pending`,`failed`,`no_result`,`skipped`,`completed`]),LN=[{value:`pending`,label:`Pending`},{value:`failed`,label:`Failed`},{value:`no_result`,label:`No result`},{value:`skipped`,label:`Skipped`},{value:`completed`,label:`Completed`}],RN=[`pending`],zN=[`pending`,`failed`,`skipped`];function BN(e){return{enabled:!0,triggers:{status:e,configHashMismatch:!0,inputHashMismatch:!0}}}const VN=`rows:adopt@1`,HN={},UN=r.object({effect_id:r.literal(VN),connector:w(),config:r.object({pipes:r.array(Bj).default([]),selection:Ds({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target.`,placeholder:`{"type":"all"}`},`both`),adopt_statuses:cc({options:LN,required:!1,disableSearch:!0,path:`config.adopt_statuses`,sectionKey:`general`,groupPath:`config.general`,label:`Adopt statuses`,description:`Only cells with these statuses are adopted (pinned). Omit to adopt all.`}).optional()})}),WN=class extends B{effectId=VN;schema=UN;payload;billableOperations=HN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},GN=UN,KN={effectId:VN,baseEffect:z(VN),label:`Adopt values`,description:`Pin the selected columns' current values so a config or input change won't regenerate them.`,guide:'Adopt re-stamps each selected cell\'s stored config/input hash to the CURRENT one, so the value is kept as-is instead of being re-run. It never recomputes — use `rows:enrich@1` to (re)compute. Adopting all statuses composes with a follow-up `rows:enrich@1` (`run_statuses: ["failed"]`) to rerun only the failures while completed cells stay pinned — the safe pattern before running a non-idempotent effect twice.',categories:[`internal`],tags:[],lifecycle:null,billableOperations:HN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`selection`,catalogVisibility:`hidden`,defaultPayload:{effect_id:VN,connector:null,config:{pipes:[]}}},qN=`rows:copy_to_sheet@1`,JN={},YN=r.object({effect_id:r.literal(qN),connector:w(),config:r.object({selection:Ds({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to copy as JSON.`,placeholder:`{"type":"all"}`},`both`),where:as({path:`config.where`,sectionKey:`general`,groupPath:`config.general`,order:1,label:`Condition (optional)`,description:`Only copy selected rows matching this condition. Leave empty to copy all.`}),target_sheet:ac({path:`config.target_sheet`,sectionKey:`general`,groupPath:`config.general`,order:2,inputType:`text`,label:`Target sheet`,description:`Slug of the destination sheet. Created if missing (see below). Slugs are org-unique — for a NEW sheet use a short descriptive slug plus a few random chars (e.g. "ceos-x7k2") so it can't hit an unrelated existing sheet.`}),create_if_missing:dc({path:`config.create_if_missing`,sectionKey:`general`,groupPath:`config.general`,order:3,label:`Create if missing`,description:`When the target sheet does not exist, create it in this sheet's project. Off ⇒ fail.`,defaultValue:!0})})}),XN=class extends B{effectId=qN;schema=YN;payload;billableOperations=JN;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){let e=this.payload.config.where;return e?[...new Set(e.conditions.map(e=>e.field_name))]:[]}},ZN=YN,QN={effectId:qN,baseEffect:z(qN),label:`Copy rows to sheet`,description:`Copy selected rows (or every row) into another sheet — all of them, or only those matching a condition. Creates the target sheet in this project if it doesn't exist.`,categories:[`data_hygiene`],tags:[W.NEW],keywords:[`move`,`transfer`,`split`,`push`,`another sheet`],lifecycle:null,billableOperations:JN,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`visible`,defaultPayload:{effect_id:qN,connector:null,config:{selection:{type:`all`},target_sheet:``,create_if_missing:!0}}},$N=`rows:dedupe@1`,eP={"rows-dedupe-v1-pipe0":{allowManagedConnection:!0,provider:`pipe0`,mode:`always`,credits:{default:0},note:`Deduplicating your own sheet is free.`}},tP=r.object({effect_id:r.literal($N),connector:w(),config:r.object({selection:Ds({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target as JSON.`,placeholder:`{"type":"all"}`},`both`),fields:Es({path:`config.fields`,sectionKey:`general`,groupPath:`config.general`,label:`Match fields`,minItems:1,description:`Rows are duplicates when these fields match.`}),match:sc({path:`config.match`,sectionKey:`general`,groupPath:`config.general`,label:`Match condition`,required:!0,defaultValue:`all`,options:[{value:`all`,label:`All fields match (AND)`},{value:`any`,label:`Any field matches (OR)`}]}),strategy:sc({path:`config.strategy`,sectionKey:`general`,groupPath:`config.general`,label:`Which duplicate to keep`,required:!0,defaultValue:`keep_oldest`,options:[{value:`keep_oldest`,label:`Keep oldest`},{value:`keep_newest`,label:`Keep newest`}]})})}),nP=class extends B{effectId=$N;schema=tP;payload;billableOperations=eP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0_api_operation`,rateLimitRatio:1,allowManagedConnection:!0}]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`rows-dedupe-v1-pipe0`)}getFieldReferences(){return this.payload.config.fields.map(e=>e.field_name)}},rP=tP,iP={effectId:$N,baseEffect:z($N),label:`Remove duplicate rows`,description:`Find duplicate rows by matching fields and keep one row per group.`,categories:[`data_hygiene`],tags:[W.NEW],keywords:[`dedupe`,`deduplicate`,`merge`,`clean`,`unique`],lifecycle:null,billableOperations:eP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`exclusive`,shouldUpgradeSchema:!0,catalogVisibility:`visible`,guide:`Dedupe in ONE run: list every identity field in config.fields and pick config.match — "all" (rows are duplicates only when every field matches) or "any" (a match on ANY listed field makes rows duplicates). To dedupe on several alternative keys (e.g. same email OR same profile_url), use match "any" with all keys in one effect — never run one dedupe per field; if you must combine dedupe with other cleanup, put the effects in one validated chain so the user approves once. Destructive and approval-gated; reversible via timetravel.`,defaultPayload:{effect_id:$N,connector:null,config:{fields:[],match:`all`,strategy:`keep_oldest`}}},aP=`rows:duplicate@1`,oP={"rows-duplicate-v1-pipe0":{allowManagedConnection:!0,provider:`pipe0`,mode:`always`,credits:{default:0},note:`Duplicating rows in your own sheet is free.`}},sP=r.object({effect_id:r.literal(aP),connector:w(),config:r.object({selection:Ds({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target as JSON.`,placeholder:`{"type":"all"}`},`both`)})}),cP=class extends B{effectId=aP;schema=sP;payload;billableOperations=oP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0_api_operation`,rateLimitRatio:1,allowManagedConnection:!0}]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`rows-duplicate-v1-pipe0`)}getFieldReferences(){return[]}},lP=sP,uP={effectId:aP,baseEffect:z(aP),label:`Duplicate rows`,description:`Copy the selected rows (or every row). Copies get fresh ids and are appended after the existing rows.`,categories:[`data_hygiene`],tags:[W.NEW],keywords:[`copy`,`clone`,`replicate`],lifecycle:null,billableOperations:oP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`visible`,defaultPayload:{effect_id:aP,connector:null,config:{}}},dP=`rows:enrich@1`,fP={},pP=r.object({effect_id:r.literal(dP),connector:w(),config:r.object({pipes:r.array(Bj).default([]),selection:Ds({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target.`,placeholder:`{"type":"all"}`},`both`),run_statuses:cc({options:LN,required:!1,disableSearch:!0,path:`config.run_statuses`,sectionKey:`general`,groupPath:`config.general`,label:`Run statuses`,description:`Rows with the following statuses will be run.`}).optional()})}),mP=class extends B{effectId=dP;schema=pP;payload;billableOperations=fP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getRecordQueueConfig(e){return BN(this.payload.config.run_statuses??(e?.isScheduled?RN:zN))}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},hP=pP,gP={effectId:dP,baseEffect:z(dP),label:`Enrich rows`,description:`Run the sheet's pipes over the selected rows.`,categories:[`enrichment`],tags:[],keywords:[`run`,`execute`,`process`,`refresh`,`rerun`,`pipes`],lifecycle:null,billableOperations:fP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],catalogVisibility:`visible`,selectionMode:`both`,lockingMode:`shared`,lockScope:`selection`,defaultPayload:{effect_id:dP,connector:null,config:{pipes:[]}}},_P=`rows:filter:prompt@1`,vP=`rows-filter-prompt-v1`,yP=xo(vP),bP=r.object({effect_id:r.literal(_P),connector:xs(),config:r.object({selection:Ds({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to target as JSON.`,placeholder:`{"type":"all"}`},`both`),prompt:oc({path:`config.prompt`,sectionKey:`general`,groupPath:`config.general`,label:`Filter instruction`,rows:4,placeholder:`Only keep rows where the person is a "Head of Growth" at a company doing less than $1M in revenue.`}),model:pc({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.general`,billableOperations:yP}),fields:Es({path:`config.fields`,sectionKey:`general`,groupPath:`config.general`,label:`Fields to consider`,info:`If specified, only these fields are shown to the model. This is useful to drop large JSON columns and save tokens.`})})}),xP=class extends B{effectId=_P;schema=bP;payload;billableOperations=yP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return ho(this.payload.config.model)}getProviderNames(){return mo(this.payload.config.model)}estimateBillableOperations(e){return Co(e,{model:this.payload.config.model,prefix:vP,inputTokens:600,outputTokens:50})}getFieldReferences(){return(this.payload.config.fields??[]).map(e=>e.field_name)}},SP=bP,CP={effectId:_P,baseEffect:z(_P),label:`AI filter rows`,description:`Keep or remove rows by a natural-language instruction, judged per row by an AI model.`,categories:[`data_hygiene`],tags:[W.NEW,W.AI],keywords:[`classify`,`qualify`,`score`,`prompt`,`clean`],lifecycle:null,billableOperations:yP,allowedUserConnectionProviders:go(),managedProviders:go(),selectionMode:`both`,lockingMode:`exclusive`,shouldUpgradeSchema:!0,catalogVisibility:`visible`,defaultPayload:{effect_id:_P,connector:null,config:{model:`google-low`,prompt:``,fields:[]}}},wP=`rows:import@1`,TP={},EP=r.object({effect_id:r.literal(wP),connector:w(),config:r.object({staging_group_id:r.string().min(1),allow_field_creation:r.boolean().default(!1),event_id:r.string().nullable().default(null)})}),DP=class extends B{effectId=wP;schema=EP;payload;billableOperations=TP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){return this.payload.config.allow_field_creation===!0}},OP=EP,kP={effectId:wP,baseEffect:z(wP),label:`Import rows`,description:`Append records from a staging group (CSV import / search commit).`,categories:[`internal`],tags:[],keywords:[`csv`,`upload`,`excel`,`spreadsheet`,`file`],lifecycle:null,billableOperations:TP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`hidden`,defaultPayload:{effect_id:wP,connector:null,config:{staging_group_id:``,allow_field_creation:!1,event_id:null}}},AP=`rows:remove@1`,jP={},MP=r.object({effect_id:r.literal(AP),connector:w(),config:r.object({selection:Ds({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to delete as JSON.sc`,placeholder:`{"type":"all"}`},`both`),where:as({path:`config.where`,sectionKey:`general`,groupPath:`config.general`,order:1,label:`Condition (optional)`,description:`Only delete selected rows matching this condition. Leave empty to delete all.`})})}),NP=class extends B{effectId=AP;schema=MP;payload;billableOperations=jP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){let e=this.payload.config.where;return e?[...new Set(e.conditions.map(e=>e.field_name))]:[]}},PP=MP,FP={effectId:AP,baseEffect:z(AP),label:`Delete rows`,description:`Delete selected rows — all of them, or only those matching a condition.`,categories:[`data_hygiene`],tags:[],keywords:[`remove`,`drop`,`clear`,`clean`,`purge`],lifecycle:null,billableOperations:jP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`exclusive`,lockScope:`selection`,catalogVisibility:`visible`,guide:`Delete rows matching config.where (omit selection to consider ALL rows; omit where to delete the whole selection). Destructive and approval-gated, so make ONE remove do the whole job: or-combine EVERY drop criterion into a single where (logic "or", one condition per field) instead of running several removes — and put the remove in the same validated chain as any fields:remove / rename cleanup so the user approves once. To drop rows whose enrichment yielded nothing, condition on the field's STATUS (property "status", e.g. neq "completed" — catches skipped, failed, and no_result at once). Bracketed cell renderings from get_sheet_rows like "[no_result]"/"[skipped]" are status placeholders for EMPTY cells, never stored values — a value condition cannot match them. After the run, re-read the sheet ONCE to confirm; if the rows you expected gone are still there, stop and report the discrepancy instead of retrying with variant conditions.`,defaultPayload:{effect_id:AP,connector:null,config:{selection:{type:`rows`,record_ids:[]}}}},IP=`rows:removeempty@1`,LP={},RP=r.object({effect_id:r.literal(IP),connector:w(),config:r.object({selection:Ds({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to consider as JSON.`,placeholder:`{"type":"all"}`},`both`),fields:Es({path:`config.fields`,sectionKey:`general`,groupPath:`config.general`,label:`Fields`,minItems:1,description:`Delete a row when ANY of these fields is empty.`})})}),zP=class extends B{effectId=IP;schema=RP;payload;billableOperations=LP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return this.payload.config.fields.map(e=>e.field_name)}},BP=RP,VP={effectId:IP,baseEffect:z(IP),label:`Delete rows with empty cells`,description:`Delete selected rows where any of the chosen fields is empty.`,categories:[`data_hygiene`],tags:[W.NEW],keywords:[`blank`,`null`,`missing`,`prune`,`incomplete`,`sparse`],lifecycle:null,billableOperations:LP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`exclusive`,lockScope:`selection`,catalogVisibility:`visible`,guide:`Delete rows where ANY field in config.fields is empty (OR semantics) — list EVERY field to check in ONE effect instead of running several. "Empty" means: missing key, null, empty string, empty array, or — for enrichment output — any cell whose status is not "completed" (catches failed, no_result, and skipped at once); 0, false, and whitespace-only strings count as populated. Omit selection to consider ALL rows. For value-based predicates (e.g. drop rows where score < 3) use rows:remove@1 with a where condition instead. Destructive and approval-gated; after the run, re-read the sheet ONCE to confirm.`,defaultPayload:{effect_id:IP,connector:null,config:{selection:{type:`rows`,record_ids:[]},fields:[]}}};function HP(e){if(e instanceof $)return e;let t=e.search_id,n=mj(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(_j.parse(e))}const UP=`search:run@1`,WP={},GP=r.object({effect_id:r.literal(UP),connector:w(),config:r.object({search_payload:mc({path:`config.search_payload`,groupPath:`config.general`,sectionKey:`general`,label:`Search`,description:`Pick and configure the search to run.`},_j),max_number_of_results:lc({path:`config.max_number_of_results`,groupPath:`config.general`,sectionKey:`general`,label:`Max results`,description:`Maximum number of items to find across all pages.`,guide:"This is the FETCH budget — an upper bound on raw results pulled across all pages (it also caps each page's size). De-duplicated results are NOT re-fetched, so this is not the final row count. When you want EXACTLY N unique rows, do NOT set this to N (you'd get fewer the moment any result is a duplicate): set `stop_at_unique_rows_count` to N and set this to the maximum (1000000) so the unique count is the real stop condition. For a plain bulk fetch with no unique target, set this to the number of rows you want.",max:1e6,min:1}).default(1e3),deduplicate:dc({path:`config.deduplicate`,groupPath:`config.general`,sectionKey:`general`,label:`Unique rows only`,description:`Skip results that already exist in the sheet.`,guide:"Dedup key is the search's own declared key. Discards are NOT topped up with extra pages, so to reliably collect N unique rows pair this with `stop_at_unique_rows_count` and a large `max_number_of_results`.",defaultValue:!0,enabledIf:e=>{let t=e.config?.search_payload;if(!t?.search_id)return{disabled:!0,message:`Configure a search first.`};let n=!1;try{n=HP(t).getDedupConfig().fields.length>0}catch{n=!1}return n?{disabled:!1}:{disabled:!0,message:`This search doesn't support de-duplication.`}}}),stop_at_unique_rows_count:uc({path:`config.stop_at_unique_rows_count`,groupPath:`config.general`,sectionKey:`general`,label:`Stop at X unique rows`,description:`Stop after this many new rows have been added. Leave empty for no early stop. Bounded by Max results.`,guide:"Set this to the exact unique-row count you want (only works with `deduplicate` on). It paginates full pages until this many NEW rows are added, so set `max_number_of_results` to the maximum (1000000) to give it room — `max_number_of_results` then just acts as a safety backstop.",placeholder:`No early stop`,min:1,max:1e5,enabledIf:e=>e.config?.deduplicate===!0?{disabled:!1}:{disabled:!0,message:`Enable “Unique rows only” to use this.`}})})}),KP=class extends B{effectId=UP;schema=GP;payload;billableOperations=WP;constructor(e){super(),this.payload=this.validatePayload(e)}getSearch(){let e=this.payload.config.search_payload;if(!e?.search_id)return null;try{return HP(e)}catch{return null}}getConnectionsRequirements(){return[]}getProviderNames(){let e=this.getSearch();return e?[Dj(e.searchId).provider]:[]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){let e=this.getSearch();return e?(Dj(e.searchId).outputFieldMode??`static`)===`dynamic`:!1}},qP=GP,JP={effectId:UP,baseEffect:z(UP),label:`Search`,description:`Run a search and append the results to the sheet.`,categories:[`enrichment`],tags:[W.NEW],keywords:[`find`,`import`,`source`,`prospect`,`add rows`,`results`],lifecycle:null,billableOperations:WP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,defaultPayload:{effect_id:UP,connector:null,config:{search_payload:{search_id:``},max_number_of_results:1e3,deduplicate:!0,stop_at_unique_rows_count:null}}},YP=`sheet:export@1`,XP={},ZP=r.object({effect_id:r.literal(YP),connector:w(),config:r.object({selection:Ds({path:`config.selection`,sectionKey:`general`,groupPath:`config.general`,label:`Selection`,description:`Rows to export as JSON — {"type":"all"} or {"type":"rows","record_ids":["…"]}.`,placeholder:`{"type":"all"}`},`both`)})}),QP=class extends B{effectId=YP;schema=ZP;payload;billableOperations=XP;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},$P=ZP,eF={effectId:YP,baseEffect:z(YP),label:`Export sheet`,description:`Export the selected rows to a CSV download.`,categories:[`internal`],tags:[],keywords:[`csv`,`download`,`excel`,`spreadsheet`,`file`],lifecycle:null,billableOperations:XP,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`both`,lockingMode:`shared`,lockScope:`self`,catalogVisibility:`hidden`,defaultPayload:{effect_id:YP,connector:null,config:{}}},tF=`sheet:reset@1`,nF={},rF=r.object({effect_id:r.literal(tF),connector:w(),config:r.object({})}),iF=class extends B{effectId=tF;schema=rF;payload;billableOperations=nF;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}evolveSchema(e){let t=bM({config:{environment:e.environment},pipes:[],field_annotations:{}});return{next:{environment:e.environment,pipes:[],fieldAnnotations:{},validationContext:t}}}},aF=rF,oF={effectId:tF,baseEffect:z(tF),label:`Reset sheet`,description:`Reset the sheet to its initial state — remove all pipes, fields, and rows. This cannot be partially applied.`,categories:[`data_hygiene`],tags:[],keywords:[`clear`,`wipe`,`empty`,`start over`,`delete all`],lifecycle:null,billableOperations:nF,shouldUpgradeSchema:!0,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`visible`,defaultPayload:{effect_id:tF,connector:null,config:{}}},sF=`sheet:update@1`,cF={},lF=r.object({effect_id:r.literal(sF),connector:w(),config:r.object({name:r.string().min(4).refine(e=>!e.includes(`/`),`Name cannot contain '/'`).optional(),slug:r.string().regex(/^[A-Za-z0-9]+(?:[-_][A-Za-z0-9]+)*$/).optional()}).refine(e=>e.name!==void 0||e.slug!==void 0,`Provide at least one of name or slug to update.`)}),uF=class extends B{effectId=sF;schema=lF;payload;billableOperations=cF;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},dF=lF,fF={effectId:sF,baseEffect:z(sF),label:`Update sheet`,description:`Update sheet basics (rename: name, slug).`,categories:[`internal`],tags:[`rename`,`name`,`title`,`slug`],lifecycle:null,billableOperations:cF,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,guide:`Rename the ACTIVE sheet. To give a deliverable the name the user asked for, set config.name ONLY — display names need not be unique, so "CEOs" always works. Do NOT also rewrite config.slug: slugs are org-unique and a clean generic slug (e.g. "ceos") is likely taken somewhere you can't see, which fails the whole run; the slug is just an address, so keep the existing (suffixed) one unless the user explicitly asks for a specific slug.`,defaultPayload:{effect_id:sF,connector:null,config:{}}},pF=`timetravel:create@1`,mF={},hF=r.object({effect_id:r.literal(pF),connector:w(),config:r.object({})}),gF=class extends B{effectId=pF;schema=hF;payload;billableOperations=mF;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},_F=hF,vF={effectId:pF,baseEffect:z(pF),label:`Create restore point`,description:`Snapshot the current sheet state as a timetravel restore point.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:mF,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,shouldUpgradeSchema:!0,catalogVisibility:`hidden`,defaultPayload:{effect_id:pF,connector:null,config:{}}},yF=`timetravel:travel@1`,bF={},xF=r.object({effect_id:r.literal(yF),connector:w(),config:r.object({schema_id:r.string().min(1)})}),SF=class extends B{effectId=yF;schema=xF;payload;billableOperations=bF;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}producesDynamicFields(){return!0}},CF=xF,wF={effectId:yF,baseEffect:z(yF),label:`Restore to point`,description:`Restore the sheet to a previous point by copying that point's rows into a new schema.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:bF,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:yF,connector:null,config:{schema_id:``}}},TF=r.object({reason:r.object({code:r.string(),details:r.string().optional()}),related_record_id:r.string().nullable(),resolved_by:r.object({ref:bt,config_hash:r.string()})}),EF=r.object({value:r.union([r.string(),r.number(),r.boolean(),r.null()])}),DF=TF.extend({fields:r.record(r.string(),EF)}),OF=r.object({added:TF.optional(),updated:DF.optional(),removed:TF.optional()}),kF=r.record(r.string(),OF),AF=r.object({shown:r.number().int(),total:r.number().int(),added:r.number().int(),updated:r.number().int(),removed:r.number().int()}),jF=r.object({effect_id:bt,config_hash:r.string(),status:r.enum([`completed`,`failed`,`skipped`]),error:r.string().optional(),source:r.literal(`run_added_rows`).optional()}),MF={"rows:dedupe@1":nP,"rows:duplicate@1":cP,"rows:enrich@1":mP,"rows:adopt@1":WN,"rows:add@1":NN,"rows:import@1":DP,"row:update@1":DN,"rows:remove@1":NP,"rows:removeempty@1":zP,"rows:copy_to_sheet@1":XN,"rows:filter:prompt@1":xP,"pipe:add@1":lN,"pipe:update@1":xN,"pipe:remove@1":hN,"fields:remove@1":rN,"fields:patch@1":ZM,"fields:duplicate@1":zM,"fields:add@1":Oc,"fields:deletesparse:input@1":jM,"env:change@1":Sc,"timetravel:create@1":gF,"timetravel:travel@1":SF,"sheet:export@1":QP,"search:run@1":KP,"sheet:reset@1":iF,"sheet:update@1":uF},NF={"rows:dedupe@1":rP,"rows:duplicate@1":lP,"rows:enrich@1":hP,"rows:adopt@1":GN,"rows:add@1":PN,"rows:import@1":OP,"row:update@1":ON,"rows:remove@1":PP,"rows:removeempty@1":BP,"rows:copy_to_sheet@1":ZN,"rows:filter:prompt@1":SP,"pipe:add@1":uN,"pipe:update@1":SN,"pipe:remove@1":gN,"fields:remove@1":iN,"fields:patch@1":QM,"fields:duplicate@1":BM,"fields:add@1":kc,"fields:deletesparse:input@1":MM,"env:change@1":Cc,"timetravel:create@1":_F,"timetravel:travel@1":CF,"sheet:export@1":$P,"search:run@1":qP,"sheet:reset@1":aF,"sheet:update@1":dF},PF={"rows:dedupe@1":iP,"rows:duplicate@1":uP,"rows:enrich@1":gP,"rows:adopt@1":KN,"rows:add@1":FN,"rows:import@1":kP,"row:update@1":kN,"rows:remove@1":FP,"rows:removeempty@1":VP,"rows:copy_to_sheet@1":QN,"rows:filter:prompt@1":CP,"pipe:add@1":dN,"pipe:update@1":CN,"pipe:remove@1":_N,"fields:remove@1":aN,"fields:patch@1":$M,"fields:duplicate@1":VM,"fields:add@1":Ac,"fields:deletesparse:input@1":NM,"env:change@1":wc,"timetravel:create@1":vF,"timetravel:travel@1":wF,"sheet:export@1":eF,"search:run@1":JP,"sheet:reset@1":oF,"sheet:update@1":fF};function FF(e){return MF[e]}function IF(e){return PF[e]}function LF(e){return NF[e]}function RF(){return Object.keys(PF).filter(e=>PF[e].agentExposure!==`excluded`)}function zF(e){return PF[e]?.agentExposure!==`excluded`}const BF=t.discriminatedUnion(`effect_id`,Object.values(NF).map(e=>e)).openapi(`EffectPayloadSchema`);function VF(e,t){return vt(t,PF[e].defaultPayload)}const HF=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`effect_id`in e))return e;let t=VF(e.effect_id);return t?{...e,config:vt(e?.config||{},t.config)}:e},BF),UF=t.enum([`processing`,`completed`,`failed`,`canceled`,`skipped`]).openapi(`EffectsRunStatus`),WF=t.object({config:t.object({diff:t.object({limit:t.number().int().min(0).max(1e3).default(100).openapi({description:"How many per-record diff entries to keep on the result. `counts` stays exact regardless."})}).optional(),run_added_rows:t.boolean().optional().openapi({description:`When true, after this run's effects complete, run the sheet's pipes over exactly the rows the run appended (the contiguous tail). Off by default. Durable on schedules: a scheduled chain that adds rows then enriches them on every fire.`})}).optional(),effects:t.array(HF).min(1)}).openapi(`EffectsRequest`),GF=t.object({id:t.string(),status:UF,effects:t.array(jF),counts:AF.nullable(),diff:kF.nullable(),after_schema_id:t.string().nullable(),before_schema_id:t.string().nullable(),added:t.object({cursor:t.string().nullable(),count:t.number().int()}).nullable().openapi({description:'Present when the run appended rows. `cursor` is the exclusive window cursor isolating exactly the added tail — pass it to a `rows:enrich@1` `{type:"window", cursor, count:null}` selection to run the sheet\'s pipes over the added rows. `count` is how many added rows survive.'})}).openapi(`EffectsResponse`),KF=t.object({effects:t.array(t.unknown()).min(1)}).openapi(`EffectsValidateRequest`),qF=t.object({index:t.number().int(),effect_id:bt,valid:t.boolean(),errors:t.array(t.string())}).openapi(`EffectsValidateStep`),JF=t.object({valid:t.boolean(),errors:t.array(t.string()),steps:t.array(qF).optional()}).openapi(`EffectsValidateResponse`);function YF(e){let t=e.split(`@`)[1];if(!t)throw Error(`No effect version found`);return Number(t)}function XF(){let e={};for(let t of Object.values(PF)){let{baseEffect:n}=t;e[n]??=[],e[n].push(t)}return Object.entries(e).forEach(([t,n])=>{e[t]=n.sort((e,t)=>{let n=YF(e.effectId);return YF(t.effectId)-n})}),e}const ZF=XF();function QF(){let e=[];for(let[t,n]of Object.entries(ZF)){let r=n[0];if(!r)throw Error(`Found empty entry`);r.lifecycle?.deprecatedOn||r.catalogVisibility!==`hidden`&&e.push({...r,baseEffect:t,latestVersion:YF(r.effectId)})}return e}const $F={"rows:dedupe@1":[{effect_id:`rows:dedupe@1`,connector:null,config:{fields:[{field_name:`work_email`}],match:`all`,strategy:`keep_oldest`}}],"rows:duplicate@1":[{effect_id:`rows:duplicate@1`,connector:null,config:{}}],"sheet:reset@1":[{effect_id:`sheet:reset@1`,connector:null,config:{}}],"fields:deletesparse:input@1":[{effect_id:`fields:deletesparse:input@1`,connector:null,config:{fields:[{field_name:`company_raw_address`},{field_name:`company_founded_year`}],probe_size:1e3,threshold_in_percent:25}}]};var eI=class extends Error{errors;constructor(e){super(e.join(`
77
77
  `)),this.name=`SheetEffectValidationError`,this.errors=e}};function tI({effects:e,validationContext:t,schemaInputs:n}){let r=[],i=[],a=[],o=[];e.some(e=>e.effect_id===`pipe:remove@1`)&&e.length>1&&r.push(`pipe:remove@1 must be the only effect in a run.`);let s={...n,validationContext:t},c=t,l=new Set(Object.keys(t.fieldDefinitions)),u=null;return e.forEach((e,t)=>{let n=[],d=FF(e.effect_id);if(!d){n.push(`unknown effect "${e.effect_id}"`),nI(i,r,t,e.effect_id,n);return}let f;try{f=new d(e)}catch(a){n.push(a.message),nI(i,r,t,e.effect_id,n);return}let ee=f.getFieldReferences().filter(e=>!l.has(e));if(ee.length>0){let e=`references fields that do not exist at this step: ${ee.join(`, `)}`;u&&(e+=`. These may be produced only at run time by "${u}" earlier in this chain — commit that effect first, then add the effects that use its columns in a follow-up run.`),n.push(e)}try{let{next:e}=f.evolveSchema(s);s=e,c=e.validationContext,l=new Set(Object.keys(e.validationContext.fieldDefinitions))}catch(e){if(e instanceof Q)for(let t of e.appErrors)n.push(t.message);else n.push(e.message)}u===null&&f.producesDynamicFields()&&(u=e.effect_id),a.push(f),o.push(e),nI(i,r,t,e.effect_id,n)}),{valid:r.length===0,steps:i,errors:r,instances:a,payloads:o,resultingFieldDefinitions:c.fieldDefinitions}}function nI(e,t,n,r,i){e.push({index:n,effect_id:r,valid:i.length===0,errors:i});for(let e of i)t.push(`effects[${n}] (${r}): ${e}`)}function rI({effects:e,validationContext:t,schemaInputs:n}){let r=tI({effects:e,validationContext:t,schemaInputs:n});if(!r.valid)throw new eI(r.errors);return{instances:r.instances,payloads:r.payloads}}function iI(e){let t=(e??[]).map(e=>aI(e));if(t.length===0)return{title:`Effect run`,description:`An effect run with no steps.`};let[n]=t;return t.length===1&&n?{title:n.title,description:n.description}:{title:`${t.length} steps: ${t.map(e=>e.title).join(` · `)}`,description:t.map(e=>e.description).join(` · `)}}function aI(e){let t=e.effect_id,n=z(t),r=e.config??{};switch(n){case`pipe:add`:{let e=oI(r.pipe_payload);return{title:e?`Added pipe ${e}`:`Added pipe`,description:e?`Added the pipe ${e} to the sheet.`:`Added a pipe to the sheet.`}}case`pipe:update`:{let e=oI(r.pipe_payload);return{title:e?`Updated pipe ${e}`:`Updated pipe`,description:e?`Updated the configuration of pipe ${e}.`:`Updated a pipe.`}}case`pipe:remove`:return{title:`Removed pipe`,description:`Removed a pipe from the sheet.`};case`fields:add`:return{title:`Added field`,description:`Added a field to the sheet.`};case`fields:patch`:return{title:`Edited field`,description:`Edited a field on the sheet.`};case`fields:remove`:return{title:`Removed fields`,description:`Removed fields from the sheet.`};case`rows:add`:{let e=Array.isArray(r.records)?r.records.length:void 0;return{title:e==null?`Added rows`:`Added ${e} ${lI(e,`row`)}`,description:e==null?`Added rows to the sheet.`:`Added ${e} ${lI(e,`row`)} to the sheet.`}}case`rows:remove`:return{title:`Removed rows`,description:`Removed rows from the sheet.`};case`rows:dedupe`:return{title:`Removed duplicate rows`,description:`Removed duplicate rows from the sheet.`};case`rows:duplicate`:return{title:`Duplicated rows`,description:`Duplicated rows in the sheet.`};case`rows:enrich`:return{title:`Enriched rows`,description:`Ran enrichment pipes over rows.`};case`rows:filter:prompt`:return{title:`AI-filtered rows`,description:`Filtered rows with an AI prompt.`};case`rows:import`:return{title:`Imported rows`,description:`Imported rows into the sheet.`};case`row:update`:return{title:`Updated row`,description:`Updated a single row.`};case`search:run`:{let e=sI(r.search_payload);return{title:e?`Ran search ${e}`:`Ran search`,description:e?`Ran the search ${e} and appended its results.`:`Ran a search and appended its results.`}}case`sheet:export`:return{title:`Exported sheet`,description:`Exported the sheet.`};case`sheet:reset`:return{title:`Reset sheet`,description:`Reset the sheet to its empty state.`};case`env:change`:return{title:`Changed environment`,description:`Switched the sheet environment.`};case`timetravel:create`:return{title:`Created restore point`,description:`Snapshotted the sheet state.`};case`timetravel:travel`:return{title:`Restored to a previous point`,description:`Restored the sheet to a previous point in time.`};default:{let e=cI(t);return{title:e??t,description:e??t}}}}function oI(e){if(e&&typeof e==`object`){let t=e.pipe_id;if(typeof t==`string`&&t.length>0)return t}}function sI(e){if(e&&typeof e==`object`){let t=e.search_id;if(typeof t==`string`&&t.length>0)return t}}function cI(e){try{return IF(e)?.label}catch{return}}function lI(e,t){return e===1?t:`${t}s`}function uI(e){if(e instanceof B)return e;let t=e.effect_id,n=FF(t);if(!n)throw Error(`Unknown effect: ${e.effect_id}`);return new n(HF.parse(e))}function dI(e){let t=e.normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/[^A-Za-z0-9]+/g,`_`).replace(/^_+|_+$/g,``);return t===``?`column`:/^[0-9]/.test(t)?`_${t}`:t}function fI(e){let t=new Set;return e.map(e=>{let n=e,r=2;for(;t.has(n);)n=`${e}_${r}`,r++;return t.add(n),n})}function pI(e){let t=fI(e.map(dI));return e.map((e,n)=>({name:t[n],label:e}))}const mI={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function hI(e){return mI[e]}const gI=`bachelor.master.mba.phd.ph d.doctor.associate.diploma.b sc.bsc.m sc.msc.b a.m a.b tech.btech.m tech.mtech.b eng.m eng.b com.llb.llm.md.jd.undergraduate.postgraduate.graduate.degree`.split(`.`),_I=[`university`,`college`,`institute of technology`,`polytechnic`,`school of`],vI=e=>` ${e.toLowerCase().replace(/[^a-z ]+/g,` `).replace(/\s+/g,` `).trim()} `,yI=(e,t)=>{if(!e)return!1;let n=vI(e);return t.some(e=>n.includes(` ${e} `))};function bI(e){return yI(e.degree_name,gI)?!0:e.degree_name?!1:yI(e.institution_name,_I)}function xI(e){if(!e.start_date)return 1/0;let t=ee(e.start_date);return Number.isNaN(t.getTime())?1/0:t.getTime()}function SI(e){let t=e.education_history.filter(e=>e.is_current_education===!0&&bI(e)),n=null;for(let e of t)(n===null||xI(e)<xI(n))&&(n=e);return{...e,education_history:e.education_history.map(e=>({...e,is_primary_current_education:e===n}))}}function CI(e,t,n=new Date){if(!e)return{days:null,years:null};let r=ee(e);if(Number.isNaN(r.getTime()))return{days:null,years:null};let i=n;if(t){let e=ee(t);Number.isNaN(e.getTime())||(i=e)}let a=u(i,r);return a<0?{days:null,years:null}:{days:a,years:Math.round(a/365.25*100)/100}}const wI={shared:{}},TI={shared:{}},EI={shared:{paths:{"config.cursor":null,"config.offset":null,"config.page_number":null}}};function DI(e,t){let n=e[t];return{sectionMap:{...e.shared.sections,...n?.sections},groupMap:{...e.shared.groups,...n?.groups},pathMap:{...e.shared.paths,...n?.paths}}}const OI=e=>DI(TI,e),kI=e=>DI(EI,e),AI=e=>DI(wI,e),jI={"config.prompt":{order:1,label:`Prompt`,iconKey:`sparkles`,defaultExpand:!0},"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:0,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},"config.bucket_creation":{order:1,label:`Bucket creation`,description:`Applied when the bucket is created on first write; ignored if it already exists.`,iconKey:`sliders`,defaultExpand:!1},"config.input_fields":{order:0,label:`Input config`,description:`Point pipe inputs to new fields.`,iconKey:`input`,defaultExpand:!1},connector:{order:100,label:`Connections`,iconKey:`plug`,defaultExpand:!1},"config.extraction":{order:0,label:`Extraction`,iconKey:`code`,defaultExpand:!0},run_if:{order:99,label:`Run IF`,iconKey:`workflow`,defaultExpand:!1},"config.email":{order:3,label:`Email`,iconKey:`mail`,defaultExpand:!0},"config.json_extraction":{order:1,label:`Extract fields`,iconKey:`braces`,defaultExpand:!0},"config.providers":{order:1,label:`Providers`,iconKey:`tags`,defaultExpand:!0},"config.output_fields":{order:10,label:`Output config`,description:`Toggle or rename output fields.`,iconKey:`output`,defaultExpand:!1},"config.destination":{order:9,label:`Destination`,description:`Name, type, and format of the field written to the destination sheet.`,iconKey:`output`,defaultExpand:!1}},MI={general:{path:`general`,label:`Behavior`,description:`How this pipe runs and selects providers.`,order:1},pagination:{path:`pagination`,label:`Behavior`,order:2},"config.filters":{path:`config.filters`,label:`I/O & conditions`,order:14},pipe_io:{path:``,label:`I/O & conditions`,order:99}},NI=new Set([`context_select_input`,`tagged_text_input`,`condition_block_input`,`field_select_input`,`fields_select_input`,`typed_fields_select_input`]);function PI(e){let t=zj(e),n=[];function i(e){e?.type&&NI.has(e.type)&&e.optionsDef&&n.push(e)}function a(e){let t=_.get(e);if(t&&typeof t!=`function`?i(t):typeof t==`function`&&i(t.staticMeta),typeof e==`object`&&e&&`unwrap`in e&&typeof e.unwrap==`function`&&a(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))a(t)}return a(t),n}function FI({pipePayload:e,validationContext:t,store:n,formResolvers:r,customization:i}){let a=zj(e.pipe_id),o=Hc(e.pipe_id,e.config||{});return ls({schema:a,extractFromSchema:r=>{let i=_.get(r);if(n.field_options??={},i)return i&&typeof i==`function`?i({validationContext:t,pipePayload:e,userConnections:`connections`in n.field_options?(n.field_options.connections.options||[]).map(e=>{let t=e.widgets?.provider_logo?.provider;if(!t)throw Error(`Option is missing provider type'`);return{public_id:e.value,provider:t}}):[],pipeEntry:Hj(e.pipe_id),hash:o}):i},store:n,formResolvers:r,sectionMap:ss(MI,i?.sectionMap),groupMap:ss(jI,i?.groupMap),pathMap:i?.pathMap})}const II={"config.pagination":{order:0,label:`Pagination`,iconKey:`list`,defaultExpand:!0},"config.prompt":{order:1,label:`Prompt`,iconKey:`sparkles`,defaultExpand:!0},"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:0,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},"config.continue_existing_search":{order:0,label:`Continue existing search`,iconKey:`history`,defaultExpand:!1},"config.output_fields":{order:10,label:`Outputs`,iconKey:`output`,defaultExpand:!1},"config.filters.query":{order:2,label:`Query`,iconKey:`text`,defaultExpand:!0},"config.filters.personal_information":{label:`Personal information`,order:6,iconKey:`user`,defaultExpand:!1},"config.filters.job_information":{label:`Job information`,order:6,iconKey:`job`,defaultExpand:!1},"config.filters.company_information":{order:1,label:`Company information`,iconKey:`office`,defaultExpand:!1},"config.filters.education":{label:`Education`,iconKey:`school`,defaultExpand:!1,order:4},"config.filters.geografic":{label:`Location`,iconKey:`location`,defaultExpand:!1},"config.filters.location":{label:`Location`,iconKey:`location`,defaultExpand:!1},"config.filters.general":{label:`General`,iconKey:`filter`,defaultExpand:!1,order:1},"config.filters.author":{label:`Author`,iconKey:`user`,defaultExpand:!1,order:2},"config.filters.mentions":{label:`Mentions`,iconKey:`tags`,defaultExpand:!1,order:3},"config.filters.job_openings":{label:`Job openings`,iconKey:`calendar`,defaultExpand:!1},"config.filters.website":{label:`Website`,iconKey:`web`,defaultExpand:!1},"config.filters.web_presence":{label:`Web presence`,iconKey:`web`,defaultExpand:!1},"config.filters.keywords":{label:`Keywords`,iconKey:`tags`,defaultExpand:!1},"config.filters.competitors":{label:`Competitors`,iconKey:`cometition`,defaultExpand:!1},"config.filters.categories":{label:`Categories`,iconKey:`boxes`,defaultExpand:!1},"config.filters.investors":{label:`Investors`,iconKey:`handshake`,defaultExpand:!1},"config.filters.account_activities":{label:`Account Activities`,iconKey:`activity`,defaultExpand:!1},"config.filters.financials":{label:`Financials`,iconKey:`chart`,defaultExpand:!1},"config.filters.languages":{label:`Languages`,iconKey:`language`,defaultExpand:!1},"config.filters.company_size":{label:`Company size`,iconKey:`office`,defaultExpand:!1},"config.filters.linkedin":{label:`LinkedIn`,iconKey:`linkedin`,defaultExpand:!1},"config.filters.skills":{label:`Skills`,iconKey:`brain`,defaultExpand:!1},"config.filters.activities":{label:`Activities`,iconKey:`bolt`,defaultExpand:!1},"config.filters.certifications_honors":{label:`Certifications & honors`,iconKey:`award`,defaultExpand:!1},"config.filters.profile":{label:`Profile`,iconKey:`contact`,defaultExpand:!1},"config.filters.experience":{label:`Employment history`,iconKey:`history`,defaultExpand:!1,order:3},"config.filters.current_employer":{label:`Current employment`,iconKey:`briefcase`,defaultExpand:!1,order:2},"config.filters.current_company":{label:`Current Company`,iconKey:`office`,defaultExpand:!1},"config.filters.industry":{label:`Industries`,iconKey:`factory`,defaultExpand:!1},"config.filters.general_search":{label:`General search`,iconKey:`search`,defaultExpand:!1},connector:{order:100,label:`Connections`,iconKey:`plug`,defaultExpand:!1}},LI={general:{path:`general`,label:`General`,description:`Search settings and pagination.`,order:1},pagination:{path:`pagination`,label:`General`,order:2},"config.filters":{path:`config.filters`,label:`Filters`,description:`Narrow the search results.`,order:10},pipe_io:{path:``,label:`Output fields`,order:99}};function RI({searchPayload:e,formContext:t,formResolvers:n,customization:r}){return ls({schema:Sj(e.search_id),extractFromSchema:n=>{let r=v.get(n);if(t.field_options??={},r)return typeof r==`function`?r({searchPayload:e,searchEntry:Dj(e.search_id),userConnections:`connections`in t.field_options?(t.field_options.connections.options||[]).map(e=>{let t=e.widgets?.provider_logo?.provider;if(!t)throw Error(`Option is missing provider type`);return{public_id:e.value,provider:t}}):[]}):r},store:t,formResolvers:n,sectionMap:ss(LI,r?.sectionMap),groupMap:ss(II,r?.groupMap),pathMap:r?.pathMap})}function zI(e){let t=Sj(e),n=[];function i(e){let t=v.get(e);if(t&&typeof t!=`function`&&t.type===`context_select_input`&&t.optionsDef&&n.push(t),typeof e==`object`&&e&&`unwrap`in e&&typeof e.unwrap==`function`&&i(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))i(t)}return i(t),n}const BI={"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:1,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},connector:{order:100,label:`Connections`,iconKey:`plug`,defaultExpand:!1}},VI={general:{path:`general`,label:`General`,description:`How this effect runs.`,order:1},pagination:{path:`pagination`,label:`General`,order:99},"config.filters":{path:`config.filters`,label:`Filters`,order:99},pipe_io:{path:``,label:`Connections`,order:99}};function HI({effectPayload:e,validationContext:t,store:n,formResolvers:r,customization:i}){let a=LF(e.effect_id),o=vc(e.effect_id,e.config||{});return ls({schema:a,extractFromSchema:r=>{let i=y.get(r);if(n.field_options??={},i)return typeof i==`function`?i({validationContext:t,effectPayload:e,userConnections:`connections`in n.field_options?(n.field_options.connections.options||[]).map(e=>{let t=e.widgets?.provider_logo?.provider;if(!t)throw Error(`Option is missing provider type`);return{public_id:e.value,provider:t}}):[],effectEntry:IF(e.effect_id),hash:o}):i},store:n,formResolvers:r,sectionMap:ss(VI,i?.sectionMap),groupMap:ss(BI,i?.groupMap),pathMap:i?.pathMap})}function UI(e){let t=LF(e),n=[];function i(e){let t=y.get(e);if(t&&typeof t!=`function`&&t.type===`context_select_input`&&t.optionsDef&&n.push(t),typeof e==`object`&&e&&`unwrap`in e&&typeof e.unwrap==`function`&&i(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))i(t)}return i(t),n}const WI=new Proxy({},{get:(e,t)=>e=>e.type===t}),GI=`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(`.`),KI=r.enum(GI),qI=r.object({provider_logo:r.object({provider:ri}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:KI}).optional(),logo_url:r.object({url:r.string(),alt:r.string().optional()}).optional(),pricing:r.object({credits:r.number()}).optional(),token_pricing:r.object({inputPerBlock:r.number(),outputPerBlock:r.number(),blockSize:r.number()}).optional(),field_type:r.object({type:r.string(),format:r.string().optional()}).optional()}),JI=`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(JI);const YI=r.object({value:r.string(),label:r.string(),widgets:qI.optional(),data:r.record(r.string(),r.string()).optional()}),XI=r.object({field_options:r.record(r.string(),r.object({options:r.array(YI)}))}),ZI=[{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}],QI=new Map(ZI.map(e=>[e.id,e]));function $I(e){return QI.get(e)}function eL(){return ZI}const tL={"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:funding:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:waterfall@1`}],input:[{id:`1`,company_domain:`retool.com`}]}],"company:identity@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@1`}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@2`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@3`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:overview@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@1`}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"people:phone:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:phone:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"person:mobile:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:mobile:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"people:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_website_url:`https://pipe0.com`}]}],"person:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_domain:`pipe0.com`}]}],"company:techstack:builtwith@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:techstack:builtwith@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"agent:run@1":[{config:{environment:`production`},pipes:[{pipe_id:`agent:run@1`,config:{agent_type:`web_researcher`,model:`openai-high`,prompt:{template:`
78
78
  Determine if the company {{ company_name }} (domain: {{ company_domain | default: "" }}) has ever raised outside funding.
@@ -127,4 +127,4 @@ Customize the message using the name of the user: {{ name }}.
127
127
  `}}],input:[{id:`1`,job_title:`GTM Engineer`,name:`Pipe Piper`}]}],"person:profileurl:name@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profileurl:name@1`}],input:[{id:`1`,name:`John`,company_name:`Pipe0`}]}],"template:fill@1":[{config:{environment:`production`},pipes:[{pipe_id:`template:fill@1`,config:{template:`Hey team: A new user has just signed up. Here's the info:
128
128
  **Name**: {{ name }}
129
129
  **Email**: {{ email }}
130
- `}}],input:[{id:`1`,name:`John`,email:`john@pipe0.com`}]}],"email:send:resend@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`resend_123`,type:`vault`}]},pipe_id:`email:send:resend@1`,config:{from:`<FROM_EMAIL_ADDRESS>`,to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"email:send:gmail@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`gmail_123`,type:`vault`}]},pipe_id:`email:send:gmail@1`,config:{to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"message:send:slack@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`slack_123`,type:`vault`}]},pipe_id:`message:send:slack@1`,config:{channel_id:`<SLACK_CHANNEL_ID>`,message:`{{ message }}`}}],input:[{id:`1`,message:`<MESSAGE_TEXT>`}]}],"people:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"person:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"people:validate:email:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:validate:email:zerobounce@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:mobilenumber:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:workemail:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`john@pipe0.com`}]}],"people:professionalprofileurl:name@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:name@1`}],input:[{id:`1`,name:`John`,company_name:`Pipe0`,location_int:`Berlin`}]}],"people:professionalprofileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:email:waterfall@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"people:mobilenumber:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`https://linkedin.com/li/john`}]}],"company:overview@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@2`,config:{}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"company:overview@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@3`,config:{}}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"fields:merge@1":[{config:{environment:`production`},pipes:[{pipe_id:`fields:merge@1`,config:{merge_fields:[{field_name:`field_1`},{field_name:`field_2`}]}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:scrape:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrape:firecrawl@1`,config:{scrape_main_only:!0,input_fields:{website_url:{alias:``}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:extract:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:extract:firecrawl@1`,config:{extraction_prompt:`Extract the company mission as well as the latest news.`,enable_full_domain_crawl:!0,enable_web_search:!0,json_schema:{type:`object`,required:[`company_mission`,`latest_news`],properties:{company_mission:{type:`string`},latest_news:{type:`string`}}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:extract:parallel@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:extract:parallel@1`,config:{objective:`When was the company founded and what does it do?`}}],input:[{id:`1`,website_url:`https://pipe0.com`}]}],"person:email:validate:millionverifier@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:email:validate:millionverifier@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"website:scrapelist:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrapelist:firecrawl@1`,config:{scrape_main_only:!0,formats:[`markdown`,`links`]}}],input:[{id:`1`,urls:[`https://pipe0.com`,`https://pipe0.com/docs`]}]}],"website:maplinks:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:maplinks:firecrawl@1`,config:{sitemap:`include`,page_limit:20,search:``}}],input:[{id:`1`,urls:[`https://pipe0.com`,`https://pipe0.com/docs`]}]}],"contact:create:resend@1":[{config:{environment:`production`},pipes:[{pipe_id:`contact:create:resend@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`resend_123`}]},config:{segment_id:`segment_id_12xeeb12`,add_as_subscribed:!0}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"lead:enroll:lemlist@1":[{config:{environment:`production`},pipes:[{pipe_id:`lead:enroll:lemlist@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`lemlist_123`}]},config:{campaign_id:`cam_bSn8EORHQxbWPjHvu`,custom_variables:{painPoint:`{{ pain_point }}`}}}],input:[{id:`1`,email:`prospect@example.com`,first_name:`Jane`,last_name:`Doe`,company_name:`Acme Corp`,job_title:`VP Sales`,pain_point:`slow onboarding`}]}],"row:append:sheet@1":[{config:{environment:`production`},pipes:[{pipe_id:`row:append:sheet@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{project:`project_id`,sheet:`sheet_id`,run:!0,allow_entity_creation:!0,write_fields:[{field_name:`field_name`}]}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"bucket:claim@1":[{config:{environment:`production`},pipes:[{pipe_id:`bucket:claim@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{bucket:`crm-contacts`,contract:``,entry_fields:[{field_name:`email`}],new_bucket_name:``,new_bucket_ttl_in_seconds:null,new_bucket_own_entry_behavior:`block`,new_bucket_missing_value_behavior:`proceed`,allow_bucket_creation:!0}}],input:[{id:`1`,email:`test@pipe0.com`}]}],"bucket:count@1":[{config:{environment:`production`},pipes:[{pipe_id:`bucket:count@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{bucket:`lead-router`,contract:``,entry_fields:[{field_name:`email`,entry_field:`lead`}],new_bucket_name:``,new_bucket_start:1,new_bucket_step:1,allow_bucket_creation:!0}}],input:[{id:`1`,email:`test@pipe0.com`}]}],"bucket:check@1":[{config:{environment:`production`},pipes:[{pipe_id:`bucket:check@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{bucket:`do-not-contact`,contract:``,entry_fields:[{field_name:`email`}]}}],input:[{id:`1`,email:`test@pipe0.com`}]}],"row:roundrobin:sheet@1":[{config:{environment:`production`},pipes:[{pipe_id:`row:roundrobin:sheet@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`sellers`,sheet_where:{logic:`and`,conditions:[{property:`value`,field_name:`segment`,operator:`eq`,value:`ENT`}]},sheet_unique_field:{field_name:`email`},sheet_copy_fields:[{field_name:`email`,type:`string`,format:`email`},{field_name:`name`,type:`string`}],sheet_weight_field:{field_name:``},counter_field:{field_name:`email`}}}],input:[{id:`1`,email:`lead@acme.com`}]}],"rows:find:sheet@1":[{config:{environment:`production`},pipes:[{pipe_id:`rows:find:sheet@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`crm-leads`,where:{logic:`and`,conditions:[{property:`value`,field_name:`email`,operator:`eq`,value:`{{ email }}`}]},limit:10,output_fields:{sheet_rows_found_count:{alias:``,enabled:!0},sheet_found_rows:{alias:``,enabled:!0},sheet_found_row_ids:{alias:``,enabled:!1}}}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"rows:find:postgres@1":[{config:{environment:`production`},pipes:[{pipe_id:`rows:find:postgres@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`postgres_123`}]},config:{query:`SELECT id, email, plan, created_at FROM users WHERE email = '{{ email }}'`,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!0},db_found_rows:{alias:``,enabled:!0}}}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"rows:find:databricks@1":[{config:{environment:`production`},pipes:[{pipe_id:`rows:find:databricks@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`databricks_123`}]},config:{query:`SELECT id, email, plan, created_at FROM main.crm.users WHERE email = '{{ email }}'`,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!0},db_found_rows:{alias:``,enabled:!0}}}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"row:expandappend:sheet@1":[{config:{environment:`production`},pipes:[{pipe_id:`row:expandappend:sheet@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{project:`project_id`,sheet:`sheet_id`,run:!0,allow_entity_creation:!0,destination_field_name:`expanded_value`,destination_field_type:``,destination_field_format:``,destination_field_label:``}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"people:match:role:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:match:role:waterfall@1`,config:{providers:[{provider:`leadmagic`}],roles:[`CEO`]}}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"person:match:role:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:match:role:waterfall@1`,config:{providers:[{provider:`leadmagic`}],roles:[`CEO`]}}],input:[{id:`1`,company_domain:`acme.com`}]}],"company:match:logodev@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:logodev@1`}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"company:match:logodev@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:logodev@2`}],input:[{id:`1`,company_domain:`acme.com`}]}],"company:lookalikes:companyenrich@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:lookalikes:companyenrich@1`}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"company:lookalikes:companyenrich@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:lookalikes:companyenrich@2`}],input:[{id:`1`,company_domain:`acme.com`}]}],"person:posts:content:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:posts:content:crustdata@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-doe-3445`}]}],"people:identity:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:identity:email:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"person:identity:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:identity:email:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:profile:workemail:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profile:workemail:crustdata@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"person:profile:workemail:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profile:workemail:crustdata@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:workemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-123abc`}]}],"person:workemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-123abc`}]}],"company:match:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:crustdata@1`}],input:[{id:`1`,company_website_url:`https://microsoft.com`}]}],"company:match:crustdata@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:crustdata@2`}],input:[{id:`1`,company_domain:`microsoft.com`}]}],"company:identity:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity:crustdata@1`}],input:[{id:`1`,company_domain:`samsung.com`},{id:`2`,company_name:`Samsung`}]}],"person:identity:amplemarket@1":[{pipes:[{pipe_id:`person:identity:amplemarket@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`amplemarket_123`}]}}],input:[{id:`1`,email:`hallp@pipe0.com`}]}],"person:match:amplemarket@1":[{pipes:[{pipe_id:`person:match:amplemarket@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`amplemarket_123`}]}}],input:[{id:`1`,profile_url:`https://linkedin.com/li/johndoe`}]}],"field:domainify@1":[{pipes:[{pipe_id:`field:domainify@1`}],input:[{id:`1`,url_input:`https://google.com`}]}],"field:slugify@1":[{pipes:[{pipe_id:`field:slugify@1`}],input:[{id:`1`,string_input:`input value`}]}],"http:request@1":[{pipes:[{pipe_id:`http:request@1`,config:{method:`GET`,url:`https://api.example.com/v1/companies/{{ company_name }}`,query_params:{limit:`10`},body:``,headers:{Authorization:`Bearer SECRET`},expected_response_schema:{},output_fields:{http_response_status:{alias:``,enabled:!0},http_response_body:{alias:``,enabled:!0},http_response_headers:{alias:``,enabled:!1}}}}],input:[{id:`1`,company_name:`Acme`}]}]},nL=.1,rL=[`level1`,`level2`,`level3`];function iL(e,t){let n=rL[t-1];if(n)return e[n]}function aL(e,t){for(let n=t;n>=1;n--){let t=iL(e,n);if(t)return{level:n,tier:t}}}function oL(e){let t=[];for(let n=1;n<=3;n++){let r=iL(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function sL(e){if(e.default<.1)return!1;let t=oL(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 cL(){let e=new Map;for(let t of Object.values(Fj))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!sL(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:oL(i.credits),usedBy:[o]})}for(let t of Object.values(pj)){let{cost:n}=t;if(!n.allowManagedConnection||!sL(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:oL(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function lL(e,t){switch(e.kind){case`field`:case`optional`:{let n=t[e.field.name];return n?{...e,field:{...e.field,resolvedName:n}}:e}case`all`:case`any`:return{...e,of:e.of.map(e=>lL(e,t))}}}function uL(e){switch(e.kind){case`field`:return e.field.resolvedName;case`optional`:return`${e.field.resolvedName} (optional)`;case`all`:return e.of.map(uL).join(` AND `);case`any`:return`(${e.of.map(uL).join(` OR `)})`}}function dL(e,t){let n=2,r=`${e}_${n}`;for(;t.has(r);)n++,r=`${e}_${n}`;return r}function fL({pipeId:e,availableFields:t,inputFieldAliases:n}){let r=Fj[e];if(!r)throw Error(`Unknown pipe_id: "${e}"`);let i=new Set(t),a=r.defaultInputRequirement,o=a&&n&&Object.keys(n).length>0?lL(a,n):a,s=o?Rc(o,i):!0,c=o?zc(o).filter(e=>e.required).map(e=>({name:e.field.name,resolved_name:e.field.resolvedName,present:i.has(e.field.resolvedName)})):[],l=s?[]:c.filter(e=>!e.present).map(e=>e.resolved_name),u=new Set(i),d=[],f=[];for(let e of Ij(r)){let t=i.has(e),n;t?(n=dL(e,u),u.add(n),f.push({name:e,resolved_name:e,suggested_alias:n})):u.add(e),d.push({name:e,resolved_name:e,collides:t,suggested_alias:n})}return{pipe_id:e,runnable:s,requirement_description:o?uL(o):`(no inputs required)`,required_fields:c,missing_fields:l,output_fields:d,output_collisions:f}}const pL=[`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`],mL=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],hL=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})}),gL=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 _L(e){return!isNaN(e.getTime())}const vL=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of pL){let n=f(t,e,new Date(0));if(_L(n))return d(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),yL=r.coerce.string().trim().transform(e=>{for(let t of mL){let n=f(e,t,new Date(0));if(_L(n))return d(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),bL=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`}),xL=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()),SL=r.preprocess(e=>{if(typeof e!=`object`||!e)return e;try{return JSON.stringify(e)}catch{return e}},r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`}));function CL(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return hL.parse(e);case`email`:return gL.parse(e);case`datetime`:return vL.parse(e);case`date`:return yL.parse(e);case`decimal`:return bL.parse(e);case`int`:return xL.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return SL.parse(e);case`website_url`:return hL.parse(e);case`profile_url`:return hL.parse(e);case`zip_code`:return SL.parse(e);case`markdown`:case`phone`:case`text`:return SL.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 ${Vl(e)} into format ${t}: ${r.message}`):r}}function wL(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(dM(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:CL(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 TL(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];if(!i)throw Error(`Input object undefined`);let a=i.id;a!=null&&dM(a)&&(i.id=a.value),i.id||=crypto.randomUUID();let{id:o}=i;if(typeof o!=`string`&&typeof o!=`number`){n.errors.push(Z.InvalidId());continue}if(n.records[o]){n.errors.push(Z.IDConflict({index:r,id:o}));continue}n.order.push(o),n.records[o]={id:o,fields:wL(e,n,i)}}}function EL({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{TL(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=DL(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,OL(e,r,n?.queue?.enabled),PL(e,r),r.errors.length>0)throw new Q(r.errors);return r}catch(e){throw e instanceof Q?e:new Q([Z.ResponseGenerationFailed({error:e})])}}function DL(e,t,n,r){let i=[],a=[];for(let o=0;o<e.orderedPipePayloads.length;o++){let s=e.orderedPipePayloads[o],c=e.orderedPipeInstances[o];if(!c){n.errors.push(Z.UnknownResolver({pipeId:s.pipe_id,index:o}));continue}let{queuedRecordIds:l,adoptedRecordIds:u}=NL(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function OL(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 ${Oy(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 ${Oy(n)} is missing but required (${r.value?`the value is`:`it has status`}: '${r.value?r.value:r.status}').`,summary:`Missing input`})})};for(let n=0;n<e.orderedPipePayloads.length;n++){let i=e.orderedPipePayloads[n],a=e.orderedPipeInstances[n];if(!a){t.errors.push(Z.UnknownResolver({pipeId:i.pipe_id,index:n}));continue}Object.values(t.records).forEach(e=>{let{valid:t,failedPipeInputField:n,failedRecordField:i}=Bc(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function kL({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 AL({status:e,config:t}){return t.queue?.enabled?t.queue.triggers?.status?.includes(e)??!1:!1}function jL({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return kL({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||AL({status:n.status,config:r})}function ML({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 NL(e,t,n,r,i){let a=Object.entries(r.records),o=[],s=[];for(let c=0;c<a.length;c++){let l=a[c];if(!l)throw Error(`Required arr not present`);let[u,d]=l;for(let a of Object.values(n.getOutputFields())){let{resolvedName:l,type:u}=a,f=Gc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},u),ee=Kc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:te,isExpanded:ne,expandedValue:p}=fM(t[c]?.[l]??null),re=d.fields[l],ie=n.getConfigHashKey(),ae=n.getInputHashKey(d),oe={type:f,format:ee,claimed_by:{ref:n.pipeId,config_hash:ie}};if(r.errors.length>0&&te===null){let t=r.errors[0];if(!t)throw Error(`firstError undefined.`);d.fields[l]={...oe,value:null,status:`failed`,reason:{summary:`Validation error`,...t},resolved_by:{ref:`system`,environment:e.environment,config_hash:null,input_hash:null},widgets:{}};continue}let se=uM(te);if(se!==`unknown`&&se!==f){let t=i.queue?.triggers?.outputFieldTypeError&&i.queue.enabled;d.fields[l]={...oe,value:t?null:te,status:t?`queued`:`completed`,reason:null,resolved_by:t?{environment:e.environment,ref:`system`,config_hash:ie,input_hash:ae}:{environment:e.environment,ref:`input`,config_hash:null,input_hash:null},widgets:t?{}:p?.widgets||re?.widgets||{},format:t?ee:p?.format||ee};continue}if(te==null){let t=ne&&i.queue?.enabled&&p.status===`pending`,n=ne&&!t;if(ne&&i.adopt?.enabled===!0&&(!i.adopt.statuses||i.adopt.statuses.includes(p.status))){let{didAdopt:e}=ML({inputHashKey:ae,configHashKey:ie,expandedValue:p});e&&s.push(d.id)}if(ne&&p.status!==`pending`&&jL({inputHashKey:ae,configHashKey:ie,config:i,expandedValue:p})&&i.queue?.enabled)o.push(d.id),d.fields[l]={...oe,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:ie,input_hash:ae},widgets:{}};else if(n)d.fields[l]={...oe,value:null,status:p.status,type:p.type||f,reason:p.reason||null,resolved_by:p.resolved_by||null,widgets:p.widgets||{},format:p.format||ee};else{let t=i.queue?.triggers?.status?.includes(`pending`)??!0,n=i.queue?.enabled&&t?`queued`:`pending`;n===`queued`&&o.push(d.id),d.fields[l]={...oe,value:null,status:n,reason:null,resolved_by:n===`queued`?{environment:e.environment,ref:`system`,config_hash:ie,input_hash:ae}:null,widgets:{}}}continue}if(ne){if(ne&&i.adopt?.enabled===!0&&(!i.adopt.statuses||i.adopt.statuses.includes(p.status))){let{didAdopt:e}=ML({inputHashKey:ae,configHashKey:ie,expandedValue:p});e&&s.push(d.id)}jL({inputHashKey:ae,configHashKey:ie,expandedValue:p,config:i})&&r.errors.length===0?(o.push(d.id),d.fields[l]={...oe,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:null,input_hash:null},widgets:{}}):d.fields[l]={...oe,value:te,status:`completed`,type:p.type||f,reason:p.reason||null,resolved_by:p.resolved_by||{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:p.widgets||re?.widgets||{},format:p.format||ee}}else try{let e=CL(te,ee);d.fields[l]={...oe,value:e,status:`completed`,reason:null,resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:re?.widgets||{}}}catch{let t=i.queue?.enabled?`queued`:`failed`;t===`queued`&&o.push(d.id),d.fields[l]={...oe,value:te,status:t,reason:{code:`InvalidFormat`,message:`Field is of invalid format. Expected: ${a.format}`,summary:`Invalid Format`},resolved_by:{ref:`system`,environment:e.environment,config_hash:ie,input_hash:ae},widgets:{}}}}}return{queuedRecordIds:o,adoptedRecordIds:s}}function PL(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=mM(i,r.value,r);r.widgets=At(Mt(r.widgets),e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function FL(e,t){let{expandAllStatuses:n=!1,expandStatuses:r=[]}=t||{},i={};for(let[t,a]of Object.entries(e))(r.includes(a.status)||n)&&t!==`id`?i[t]={...a,widgets:Mt(a.widgets)}:i[t]=a.value;return i}function IL(e,t={}){return Object.values(e).map(e=>FL(e.fields,t))}function LL(e,t={}){return e.map(e=>FL(e.fields,t))}function RL(e,t={}){return FL(e.fields,t)}function zL(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=fM(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function BL(e){let t=aa[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const VL=[`people:profiles:icypeas@1`,`companies:profiles:icypeas@1`,`people:profiles:clado@1`,`people:profiles:clado@2`,`people:employees:leadmagic@1`,`companies:profiles:exa@1`,`people:profiles:exa@1`,`companies:profiles:crustdata@1`,`people:profiles:crustdata@1`],HL=r.enum(VL);function UL(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 WL(e,t){let n={name:e,config:t};return _c.hashObject(n)}var GL=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 WL(this.searchId,this.payload)}};function KL(e){return e.split(`@`)[0]}function qL(e){return`/docs/search-catalog/${KL(e)}/${e.split(`@`)[1]}`}const JL=`companies:profiles:crustdata@1`,YL=g(`company_name`),XL=g(`company_website_url`),ZL=g(`company_description`),QL=g(`company_profile_url`),$L=g(`crustdata_company_match`),eR=r.object({search_id:r.literal(JL),connector:Ji.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),cursor:ec({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}).nullable(),output_fields:L(r.object({[YL.name]:M({fieldName:YL.name}),[XL.name]:M({fieldName:YL.name}),[ZL.name]:M({fieldName:ZL.name}),[QL.name]:M({fieldName:QL.name}),[$L.name]:M({fieldName:$L.name})})),filters:r.object({hq_locations:P({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default([]),crunchbase_categories:P({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}).default([]),crunchbase_investors:P({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}).default([]),tracxn_investors:P({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,required:!1,groupPath:`config.filters.investors`,disableSearch:!1,optionsDef:h(`company.tracxn_investors.crustdata`)}).default([]),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,options:m(`crustdata.company_types`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}).default([]),linkedin_industries:P({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}).default([]),markets:P({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),label:`Markets`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}).default([]),linkedin_categories:P({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:h(`company.linkedin_categories.crustdata`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}).default([]),headcount:N({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,required:!1,options:m(`crustdata.company_size`),groupPath:`config.filters.company_size`}).default([]),headcount_growth_last_6m_in_percent:N({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),revenue_in_usd:Xs({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:N({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,disableSearch:!0,required:!1,options:m(`crustdata.funding_rounds`),description:``,groupPath:`config.filters.financials`}).default([]),last_funding_amount:Xs({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:N({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}).default([]),follower_growth_last_6m_in_percent:N({path:`config.filters.follower_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}).default([]),profile_summary_keywords:k({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,description:``,groupPath:`config.filters.keywords`}),competitor_websites:k({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:`Ex. 'google.com'`,groupPath:`config.filters.competitors`})}).check(e=>{UL(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),tR={default:{input:[{fields:[]}]}},nR=class extends GL{searchId=JL;schema=eR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[YL.name]:this.catalogOutput(YL),[XL.name]:this.catalogOutput(XL),[ZL.name]:this.catalogOutput(ZL),[QL.name]:this.catalogOutput(QL),[$L.name]:this.catalogOutput($L)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return tR}},rR=eR,iR={searchId:JL,billableOperation:`companies-profiles-crustdata`,baseSearch:KL(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],docPath:qL(JL),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:JL,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:[]}}}},aR=`companies:profiles:exa@1`,oR=g(`company_name`),sR=g(`company_website_url`),cR=g(`company_description`),lR=g(`company_industry`),uR=g(`headcount`),dR=g(`exa_match_evaluation`),fR=r.object({search_id:r.literal(aR),connector:Ji.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:L(r.object({[oR.name]:M({fieldName:oR.name}),[sR.name]:M({fieldName:oR.name}),[cR.name]:M({fieldName:cR.name}),[lR.name]:M({fieldName:lR.name}),[uR.name]:M({fieldName:uR.name}),[dR.name]:M({fieldName:dR.name})})),filters:r.object({query:tc({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})})})}),pR={default:{input:[{fields:[]}]}},mR=class extends GL{searchId=aR;schema=fR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[oR.name]:this.catalogOutput(oR),[sR.name]:this.catalogOutput(sR),[cR.name]:this.catalogOutput(cR),[lR.name]:this.catalogOutput(lR),[uR.name]:this.catalogOutput(uR),[dR.name]:this.catalogOutput(dR)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return pR}},hR=fR,gR={searchId:aR,billableOperation:`companies-profiles-exa`,baseSearch:KL(`companies:profiles:exa@1`),label:`Company finder (websets)`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Semantic AI search to find company profiles. This search can take several minutes.`,tags:[W.COMPANY_PROFILES],docPath:qL(aR),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:aR,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:``}}}},_R=`companies:profiles:icypeas@1`,vR=g(`company_industry`),yR=g(`company_name`),bR=g(`company_description`),xR=g(`company_website_url`),SR=g(`headcount`),CR=g(`company_region`),wR=g(`company_profile_url`),TR=g(`icypeas_company_match`),ER=r.object({search_id:r.literal(_R),connector:Ji.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,max:5e4,min:1,path:`config.limit`,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:L(r.object({company_name:M({fieldName:yR.name}),company_industry:M({fieldName:vR.name}),company_description:M({fieldName:bR.name}),company_website_url:M({fieldName:xR.name}),headcount:M({fieldName:SR.name}),company_region:M({fieldName:CR.name}),company_profile_url:M({fieldName:wR.name}),icypeas_company_match:M({fieldName:TR.name})})),filters:r.object({name:A({path:`config.filters.name`,sectionKey:`config.filters`,includeLabel:`Company names to include`,excludeLabel:`Company names to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:100}).optional(),type:j({path:`config.filters.type`,sectionKey:`config.filters`,label:``,description:``,placeholder:``,includeLabel:`Company types to include`,excludeLabel:`Company types to exclude`,optionsDef:{type:`static`,options:[{value:`Privately Held`,label:`Privately Held`},{value:`Public Company`,label:`Public Company`},{value:`Sole Proprietorship`,label:`Sole Proprietorship`},{value:`Self-Employed`,label:`Self-Employed`},{value:`Partnership`,label:`Partnership`},{value:`Nonprofit`,label:`Nonprofit`},{value:`Educational Institution`,label:`Educational Institution`},{value:`Government Agency`,label:`Government Agency`}]},groupPath:`config.filters.company_information`}).optional(),industry:j({path:`config.filters.industry`,sectionKey:`config.filters`,optionsDef:Re(`linkedin.industries`),includeLabel:`Industries to include`,excludeLabel:`Industries to exclude`,description:``,placeholder:``,groupPath:`config.filters.industry`,maxItems:50}).optional(),location:A({path:`config.filters.location`,sectionKey:`config.filters`,includeLabel:`Locations to include`,excludeLabel:`Locations to exclude`,description:``,placeholder:`US, FR, New York`,groupPath:`config.filters.geografic`,maxItems:20}).optional(),headcount:Xs({path:`config.filters.headcount`,sectionKey:`config.filters`,legend:`1-1M`,label:`Headcount`,description:``,min:1,max:1e6,unit:`employees`,groupPath:`config.filters.company_size`}).optional(),urn:A({path:`config.filters.urn`,sectionKey:`config.filters`,label:``,description:``,groupPath:`config.filters.linkedin`,excludeLabel:`URNs to exclude`,includeLabel:`URNs to include`,maxItems:200}).optional(),lid:A({path:`config.filters.lid`,sectionKey:`config.filters`,label:``,description:``,groupPath:`config.filters.linkedin`,includeLabel:`LinkedIn IDs to include`,excludeLabel:`LinkedIn IDs to exclude`,maxItems:200}).optional()}).check(e=>{UL(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),DR={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},OR=class extends GL{searchId=_R;schema=ER;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[yR.name]:this.catalogOutput(yR),[vR.name]:this.catalogOutput(vR),[wR.name]:this.catalogOutput(wR),[xR.name]:this.catalogOutput(xR),[bR.name]:this.catalogOutput(bR),[SR.name]:this.catalogOutput(SR),[CR.name]:this.catalogOutput(CR),[TR.name]:this.catalogOutput(TR)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return DR}},kR=ER,AR={searchId:_R,billableOperation:`companies-profiles-icypeas`,baseSearch:KL(`companies:profiles:icypeas@1`),label:`Find company profiles`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search a filter-based, general-purpose company database.`,tags:[W.COMPANY_PROFILES],docPath:qL(_R),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:_R,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:[]}}}}},jR=`people:profiles:clado@1`,MR=g(`name`),NR=g(`job_title`),PR=g(`company_name`),FR=g(`company_profile_url`),IR=g(`profile_url`),LR=g(`clado_person_match`),RR=r.object({search_id:r.literal(jR),connector:Ji.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(20),output_fields:L(r.object({[MR.name]:M({fieldName:MR.name}),[NR.name]:M({fieldName:NR.name}),[FR.name]:M({fieldName:FR.name}),[PR.name]:M({fieldName:PR.name}),[IR.name]:M({fieldName:IR.name}),[LR.name]:M({fieldName:LR.name})})),filters:r.object({query:tc({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})})})}),zR={default:{input:[{fields:[{outputField:`profile_url`}]}]}},BR=class extends GL{searchId=jR;schema=RR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[MR.name]:this.catalogOutput(MR),[NR.name]:this.catalogOutput(NR),[PR.name]:this.catalogOutput(PR),[IR.name]:this.catalogOutput(IR),[FR.name]:this.catalogOutput(FR),[LR.name]:this.catalogOutput(LR)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return zR}},VR=RR,HR={searchId:jR,billableOperation:`people-profiles-clado`,baseSearch:Zn(`people:profiles:clado@1`),label:`Find people profiles with Clado`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search through millions of LinkedIn profiles using natural language queries. This endpoint provides fast searching with AI-powered relevance matching.`,tags:[W.PEOPLE_PROFILES],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_search`,creditsPerSearch:3},provider:`clado`,defaultPayload:{search_id:jR,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:``}}}},UR=`people:profiles:clado@2`,WR=g(`name`),GR=g(`job_title`),KR=g(`company_name`),qR=g(`company_profile_url`),JR=g(`profile_url`),YR=g(`clado_person_match_v2`),XR=r.object({search_id:r.literal(UR),connector:Ji.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,max:1e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),search_id:ec({sectionKey:`general`,path:`config.search_id`,inputType:`text`,groupPath:`config.continue_existing_search`,label:`Search id`,description:`The id of the search you want to continue`}).nullable().default(``),offset:I({sectionKey:`general`,path:`config.offset`,groupPath:`config.continue_existing_search`,label:`Offset`,max:1e5,min:1,description:`To continue the previous search, provide both the search_id and the last offset.`}).nullish(),output_fields:L(r.object({[WR.name]:M({fieldName:WR.name}),[GR.name]:M({fieldName:GR.name}),[qR.name]:M({fieldName:qR.name}),[KR.name]:M({fieldName:KR.name}),[JR.name]:M({fieldName:JR.name}),[YR.name]:M({fieldName:YR.name})})),filters:r.object({query:tc({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`]})}),ZR={default:{input:[{fields:[{outputField:`profile_url`}]}]}},QR=class extends GL{searchId=UR;schema=XR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[WR.name]:this.catalogOutput(WR),[GR.name]:this.catalogOutput(GR),[KR.name]:this.catalogOutput(KR),[JR.name]:this.catalogOutput(JR),[qR.name]:this.catalogOutput(qR),[YR.name]:this.catalogOutput(YR)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return ZR}},$R=XR,ez={searchId:UR,billableOperation:`people-profiles-clado`,baseSearch:Zn(`people:profiles:clado@2`),label:`Find people profiles`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search a growing dataset with semantic queries.`,tags:[],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_page`,creditsPerPage:3},provider:`clado`,defaultPayload:{search_id:UR,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:``}}}},tz=`people:employees:leadmagic@1`,nz=g(`name`),rz=g(`job_title`),iz=g(`company_website_url`),az=g(`company_name`),oz=r.object({search_id:r.literal(tz),connector:Ji.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,max:500,min:1,path:`config.limit`,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(50),output_fields:L(r.object({[nz.name]:M({fieldName:nz.name}),[az.name]:M({fieldName:az.name}),[iz.name]:M({fieldName:iz.name}),[rz.name]:M({fieldName:rz.name})})),filters:r.object({company_website_url:ec({path:`config.filters.company_website_url`,sectionKey:`config.filters`,groupPath:`config.filters.website`,inputType:`text`,description:`URL of the employer company.`,label:`Company Website URL`}).nullable()})})}),sz={default:{input:[{fields:[{outputField:iz.name}]}]}},cz=class extends GL{searchId=tz;schema=oz;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[nz.name]:this.catalogOutput(nz),[rz.name]:this.catalogOutput(rz),[iz.name]:this.catalogOutput(iz),[az.name]:this.catalogOutput(az)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return sz}},lz=oz,uz={searchId:tz,billableOperation:`people-employees-leadmagic`,baseSearch:KL(`people:employees:leadmagic@1`),label:`Employee finder`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search for employees of a company.`,tags:[W.PEOPLE_PROFILES],docPath:qL(tz),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:tz,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:``}}}},dz=`people:profiles:crustdata@1`,fz=g(`name`),pz=g(`company_website_url`),mz=g(`profile_url`),hz=g(`job_title`),gz=g(`crustdata_person_match`),_z=r.object({search_id:r.literal(dz),connector:Ji.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of results`}).default(100),cursor:ec({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}).nullable(),output_fields:L(r.object({[fz.name]:M({fieldName:fz.name}),[pz.name]:M({fieldName:pz.name}),[mz.name]:M({fieldName:mz.name}),[hz.name]:M({fieldName:hz.name}),[gz.name]:M({fieldName:gz.name})})),filters:r.object({locations:P({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Locations`,disableSearch:!1,required:!1,optionsDef:h(`locations`),groupPath:`config.filters.general`}).default([]),profile_headline_keywords:qs({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:qs({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_languages:N({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile languages`,disableSearch:!1,required:!1,options:m(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}).default([]),languages:N({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken languages`,disableSearch:!1,required:!1,options:m(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}).default([]),skills:P({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,placeholder:`.NET, PMO, ...`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default([]),years_of_experience:N({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),current_seniority_levels:j({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),current_employers:k({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Current employers`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`person.current_employer_names.crustdata`)}),current_employers_website_urls:k({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Current employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),current_job_titles:k({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,order:1,groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}),current_employers_linkedin_industries:P({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Current employers industries`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`)}).default([]),years_at_current_company:N({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,options:m(`crustdata.years_of_experience`)}).default([]),previous_employers_website_urls:k({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),previous_seniority_levels:j({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,disableSearch:!0,optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),previous_employers:k({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer name`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`person.past_employer_names.crustdata`)}),previous_job_titles:k({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}),previous_employers_linkedin_industries:P({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industry`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`)}).default([]),certifications:k({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,description:``}),honors:k({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,description:``}),recently_changed_jobs:$s({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:P({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}).default([]),degree_names:P({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}).default([]),school_names:P({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default([]),current_school_names:P({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default([]),extracurricular_activities:k({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)})}).check(e=>{UL(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),vz={default:{input:[{fields:[]}]}},yz=class extends GL{searchId=dz;schema=_z;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[fz.name]:this.catalogOutput(fz),[pz.name]:this.catalogOutput(pz),[mz.name]:this.catalogOutput(mz),[hz.name]:this.catalogOutput(hz),[gz.name]:this.catalogOutput(gz)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return vz}},bz=_z,xz={searchId:dz,billableOperation:`people-profiles-crustdata`,baseSearch:KL(`people:profiles:crustdata@1`),label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],docPath:qL(dz),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:dz,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:[]}}}},Sz=`people:profiles:exa@1`,Cz=g(`name`),wz=g(`profile_url`),Tz=g(`job_title`),Ez=g(`company_name`),Dz=g(`company_region`),Oz=g(`exa_match_evaluation`),kz=r.object({search_id:r.literal(Sz),connector:Ji.nullable().optional(),config:r.object({limit:I({path:`config.limit`,sectionKey:`general`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:L(r.object({[Cz.name]:M({fieldName:Cz.name}),[wz.name]:M({fieldName:wz.name}),[Tz.name]:M({fieldName:Tz.name}),[Ez.name]:M({fieldName:Ez.name}),[Dz.name]:M({fieldName:Dz.name}),[Oz.name]:M({fieldName:Oz.name})})),filters:r.object({query:tc({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})})})}),Az={default:{input:[{fields:[]}]}},jz=class extends GL{searchId=Sz;schema=kz;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Cz.name]:this.catalogOutput(Cz),[wz.name]:this.catalogOutput(wz),[Tz.name]:this.catalogOutput(Tz),[Ez.name]:this.catalogOutput(Ez),[Dz.name]:this.catalogOutput(Dz),[Oz.name]:this.catalogOutput(Oz)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Az}},Mz=kz,Nz={searchId:Sz,billableOperation:`people-profiles-exa`,baseSearch:KL(`people:profiles:exa@1`),label:`People finder (websets)`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Semantic AI search for people profiles. This search can take several minutes.`,tags:[W.COMPANY_PROFILES],docPath:qL(Sz),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:Sz,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:``}}}},Pz=`people:profiles:icypeas@1`,Fz=g(`name`),Iz=g(`job_title`),Lz=g(`profile_headline`),Rz=g(`company_website_url`),zz=g(`company_profile_url`),Bz=g(`profile_url`),Vz=g(`icypeas_person_match`),Hz=r.object({search_id:r.literal(Pz),connector:Ji.nullable().optional(),config:r.object({limit:I({path:`config.limit`,sectionKey:`general`,max:5e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:L(r.object({[Fz.name]:M({fieldName:Fz.name}),[Iz.name]:M({fieldName:Iz.name}),[Lz.name]:M({fieldName:Lz.name}),[Rz.name]:M({fieldName:Rz.name}),[zz.name]:M({fieldName:zz.name}),[Bz.name]:M({fieldName:Bz.name}),[Vz.name]:M({fieldName:Vz.name})})),filters:r.object({firstname:A({path:`config.filters.firstname`,sectionKey:`config.filters`,includeLabel:`First names to include`,excludeLabel:`First names to exclude`,description:``,placeholder:``,groupPath:`config.filters.personal_information`,maxItems:200}).optional(),lastname:A({path:`config.filters.lastname`,sectionKey:`config.filters`,includeLabel:`Last names to include`,excludeLabel:`Last names to exclude`,description:``,placeholder:``,groupPath:`config.filters.personal_information`,maxItems:200}).optional(),currentJobTitle:A({path:`config.filters.currentJobTitle`,sectionKey:`config.filters`,includeLabel:`Current job titles to include`,excludeLabel:`Current job titles to exclude`,description:``,placeholder:``,groupPath:`config.filters.job_information`,maxItems:200}).optional(),currentEmployersWebsiteUrls:A({groupPath:`config.filters.job_information`,path:`config.filters.currentEmployersWebsiteUrls`,sectionKey:`config.filters`,description:``,includeLabel:`Include current employer domains`,excludeLabel:`Exclude current employer domains`,maxItems:100}).optional(),pastEmployersWebsiteUrls:A({groupPath:`config.filters.job_information`,path:`config.filters.pastEmployersWebsiteUrls`,sectionKey:`config.filters`,description:``,includeLabel:`Past employers website URLs to include`,excludeLabel:`Past employers website URLs to exclude`,maxItems:100}).optional(),pastJobTitle:A({path:`config.filters.pastJobTitle`,sectionKey:`config.filters`,includeLabel:`Past job titles to include`,excludeLabel:`Past job titles to exclude`,description:``,placeholder:``,groupPath:`config.filters.job_information`,maxItems:200}).optional(),currentCompanyName:A({path:`config.filters.currentCompanyName`,sectionKey:`config.filters`,includeLabel:`Companies to include`,excludeLabel:`Companies to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:200}).optional(),pastCompanyName:A({path:`config.filters.pastCompanyName`,sectionKey:`config.filters`,includeLabel:`Past employers to include`,excludeLabel:`Past employers to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:200}).optional(),school:A({path:`config.filters.school`,sectionKey:`config.filters`,includeLabel:`Schools to include`,excludeLabel:`Schools to exclude`,label:``,description:``,placeholder:``,groupPath:`config.filters.education`,maxItems:200}).optional(),location:A({path:`config.filters.location`,sectionKey:`config.filters`,includeLabel:`Locations to include`,excludeLabel:`Locations to exclude`,description:`Filter by location`,placeholder:`e.g., US, FR, New York`,groupPath:`config.filters.geografic`,maxItems:200}).optional(),languages:A({path:`config.filters.languages`,sectionKey:`config.filters`,includeLabel:`Languages to include`,excludeLabel:`Languages to exclude`,description:`ex. EN, ES`,groupPath:`config.filters.languages`,maxItems:200}).optional(),skills:A({path:`config.filters.skills`,sectionKey:`config.filters`,includeLabel:`Skills to include`,excludeLabel:`Skills to exclude`,description:``,placeholder:``,groupPath:`config.filters.skills`,maxItems:200}).optional(),keyword:A({path:`config.filters.keyword`,sectionKey:`config.filters`,includeLabel:`Keywords to include`,excludeLabel:`Keywords to exclude`,description:``,placeholder:`CEO, Sales, Scrum`,groupPath:`config.filters.general_search`,maxItems:200}).optional()}).check(e=>{UL(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),Uz={default:{input:[{fields:[{outputField:`profile_url`}]}]}},Wz=class extends GL{searchId=Pz;schema=Hz;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Fz.name]:this.catalogOutput(Fz),[Iz.name]:this.catalogOutput(Iz),[Lz.name]:this.catalogOutput(Lz),[Rz.name]:this.catalogOutput(Rz),[zz.name]:this.catalogOutput(zz),[Bz.name]:this.catalogOutput(Bz),[Vz.name]:this.catalogOutput(Vz)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Uz}},Gz=Hz,Kz={searchId:Pz,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:KL(Pz),label:`Find people profiles`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search a filter-based, general-purpose lead database with people profiles.`,tags:[W.PEOPLE_PROFILES],docPath:qL(Pz),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:Pz,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:[]}}}}},qz={"people:profiles:crustdata@1":yz,"companies:profiles:crustdata@1":nR,"companies:profiles:exa@1":mR,"people:profiles:exa@1":jz,"people:profiles:icypeas@1":Wz,"companies:profiles:icypeas@1":OR,"people:employees:leadmagic@1":cz,"people:profiles:clado@1":BR,"people:profiles:clado@2":QR},Jz={"people:profiles:crustdata@1":bz,"companies:profiles:crustdata@1":rR,"companies:profiles:exa@1":hR,"people:profiles:exa@1":Mz,"people:profiles:icypeas@1":Gz,"companies:profiles:icypeas@1":kR,"people:employees:leadmagic@1":lz,"people:profiles:clado@1":VR,"people:profiles:clado@2":$R},Yz={"people:profiles:crustdata@1":xz,"companies:profiles:crustdata@1":iR,"companies:profiles:exa@1":gR,"people:profiles:exa@1":Nz,"people:profiles:icypeas@1":Kz,"companies:profiles:icypeas@1":AR,"people:employees:leadmagic@1":uz,"people:profiles:clado@1":HR,"people:profiles:clado@2":ez};function Xz(e){return qz[e]}function Zz(e){return Jz[e]}function Qz(e){return Yz[e].defaultPayload}const $z=t.discriminatedUnion(`search_id`,Object.values(Jz).map(e=>e)),eB=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=Qz(e.search_id);return t?{...e,config:vt(e?.config||{},t.config)}:e},$z);function tB(e){return Object.keys(Yz[e].defaultPayload.config.output_fields)}const nB=Ti,rB=t.object({value:di,status:ui,type:ci.optional(),format:Oi.nullable().optional(),resolved_by:Pi.nullable().optional(),widgets:wi.optional()}),iB=t.record(t.string(),rB.nullable()),aB=t.object({search:t.object({ref:HL}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(nB),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()})}),oB=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(iB),search_statuses:t.array(aB),organizationId:t.string()}).openapi(`SearchesResponseSchema`),sB=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),cB=sB.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),lB=t.object({config:cB.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(eB)}).openapi(`SearchesRequestSchema`);function uB(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function dB(){let e={};for(let t of Object.values(Yz)){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=uB(e.searchId);return uB(t.searchId)-n})}),e}const fB=dB();function pB(e){let t=[];for(let[n,r]of Object.entries(fB)){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:uB(i.searchId)})}return t}function mB(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 tB(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:fB}}function hB(e){return Yz[e]}function gB(e){let t=hB(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function _B(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e,is_default:!0}))}function vB(e){return _B(Hj(e).allowedUserConnectionProviders)}function yB(e){return _B([Dj(e).provider])}function bB(e){return _B([hB(e).provider])}const xB=[{id:`people`,label:`People`,color:`#8B7DFF`,order:0},{id:`companies`,label:`Companies`,color:`#10B981`,order:1},{id:`data`,label:`Data`,color:`#F59E0B`,order:2},{id:`deprecated`,label:`Deprecated`,color:`#94A3B8`,order:3}],SB=new Map(xB.map(e=>[e.id,e]));function CB(e){return SB.get(e)}function wB(){return xB}const TB={"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:[]},post_processing_exclude_profiles:[`https://www.linkedin.com/in/janedoe`],post_processing_exclude_names:[`Jane Doe`]}}}],"companies:profiles:crustdata@2":[{search_id:`companies:profiles:crustdata@2`,config:{cursor:``,limit:10,filters:{hq_locations:{include:[`San Francisco, CA`],exclude:[]},crunchbase_categories:{include:[`Artificial Intelligence`],exclude:[]},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},company_types:{include:[],exclude:[]},linkedin_industries:{include:[`Technology`],exclude:[]},markets:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},headcount:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],revenue_in_usd:{from:1e4,to:1e6},last_funding_type:{include:[],exclude:[]},last_funding_amount:{from:null,to:null},number_of_followers:[],follower_growth_l6m_in_percent:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[`google.com`],exclude:[]}}}}],"people:profiles:crustdata@3":[{search_id:`people:profiles:crustdata@3`,config:{cursor:``,limit:10,filters:{locations:{include:[`Berlin, Germany`],exclude:[]},profile_headline_keywords:{include:[`Marketing`],exclude:[]},skills:{include:[`Python`,`Data Analysis`],exclude:[]},languages:{include:[`English`],exclude:[]},current_employment_job_titles:{include:[`Software Engineer`],exclude:[]},current_employment_job_functions:[`Engineering`],current_employment_seniority_levels:[`Senior`,`Director`],current_employer_headcount_brackets:[`51-200`],current_employment_tenure_brackets:[`1 to 2 years`],total_years_of_experience_brackets:[`3 to 5 years`]}}}],"posts:content:crustdata@1":[{search_id:`posts:content:crustdata@1`,config:{limit:10,filters:{keywords:[`LLM Evaluation`,`RAG`],keyword_operator:`OR`,date_posted:`past-month`,content_types:[`videos`],author_industries:[`Software Development`]}}}],"companies:entitysearch:parallel@1":[{search_id:`companies:entitysearch:parallel@1`,config:{objective:`AI startups in Europe that raised a Series A in 2024`,limit:100}}],"people:entitysearch:parallel@1":[{search_id:`people:entitysearch:parallel@1`,config:{objective:`Heads of Engineering at Series B fintech companies in the US`,limit:100}}],"people:eventguests:luma@1":[{search_id:`people:eventguests:luma@1`,connector:{strategy:`first`,connections:[]},config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},email:{enabled:!0,alias:``},luma_id:{enabled:!0,alias:``},registered_at:{enabled:!0,alias:``},luma_event_guest_match:{enabled:!0,alias:``}},filters:{event_id:`evt-sandbox-1`,approval_status:`approved`}}}],"sheet:rows@1":[{search_id:`sheet:rows@1`,connector:{strategy:`first`,connections:[]},config:{sheet:`demo-leads`,limit:100,cursor:``,include_metadata:!1}}],"bucket:entries@1":[{search_id:`bucket:entries@1`,connector:{strategy:`first`,connections:[]},config:{bucket:`crm-contacts`,limit:100,cursor:``,include_metadata:!1}}],"query:postgres@1":[{search_id:`query:postgres@1`,connector:{strategy:`first`,connections:[]},config:{query:`SELECT id, name, email FROM contacts ORDER BY id`,limit:100,page_number:1}}],"query:databricks@1":[{search_id:`query:databricks@1`,connector:{strategy:`first`,connections:[]},config:{query:`SELECT id, name, email FROM samples.tpch.customer ORDER BY id`,limit:100,page_number:1}}]};function EB(e,t,n){if(t==null)return{};try{let r=Qr(e,n)?.getStaticWidgets?.(t),i=lM(n,t);return jt(At(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}var DB=class extends My{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function OB(e){let t=[];for(let n of e){if(n instanceof GL){t.push(n);continue}let e=n.search_id,r=Xz(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(eB.parse(n));t.push(i)}return t}function kB(e){try{return OB(e.searches)}catch(e){throw e instanceof DB?e:new Q([Z.ValidationFailed({error:e})])}}const AB=/[\\^$.+()|[\]{}]/g,jB=new Map;function MB(e){let t=jB.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(AB,`\\$&`)}let r=RegExp(`^${n}$`);return jB.set(e,r),r}function NB(e,t){return MB(t).test(e)}function PB(e,t){if(!t||t.length===0)return!1;for(let n of t)if(NB(e,n))return!0;return!1}function FB(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!PB(e,n)||r&&r.length>0&&PB(e,r))}function IB(e,t){return FB(e,t?.providers)}function LB(e,t){if(!t)return!0;if(!FB(e,t.pipes))return!1;if(t.providers){let n=Kj(e);if(n.length===0)return!0;if(!n.some(e=>IB(e,t)))return!1}return!0}function RB(e,t,n){return t?!(!FB(e,t.searches)||n!==void 0&&!IB(n,t)):!0}function zB(e,t,n){return t?!(!FB(e,t.searchesMulti)||n!==void 0&&!IB(n,t)):!0}function BB(e,t){return t?e.filter(e=>LB(e.pipeId,t)):e.slice()}function VB(e,t){return t?e.filter(e=>RB(e.searchId,t,e.provider)):e.slice()}function HB(e,t){return t?e.filter(e=>zB(e.searchId,t,e.provider)):e.slice()}function UB(e){return e.toLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean)}function WB(e){return e?e.flatMap(UB):[]}const GB={label:{prefix:100,exact:120},labelFirstWordBonus:40,keyword:{prefix:60,exact:70},tag:{prefix:40,exact:45},provider:{prefix:35,exact:40},id:{prefix:30,exact:35},description:{prefix:5,exact:6},exactLabelBonus:200},KB=GB;function qB(e){let t=UB(e.label);return{labelWords:t,keywordWords:WB(e.keywords),tagWords:WB(e.tags),providerWords:WB(e.providers),idWords:UB(e.id),descriptionWords:e.description?UB(e.description):[],normalizedLabel:t.join(` `)}}function JB(e,t,n){let r=0;for(let i of t){let t=i===e?n.exact:i.startsWith(e)?n.prefix:0;t>r&&(r=t)}return r}function YB(e,t){let n=0;for(let r=0;r<t.length;r++){let i=t[r],a=i===e?KB.label.exact:i.startsWith(e)?KB.label.prefix:0;a>0&&r===0&&(a+=KB.labelFirstWordBonus),a>n&&(n=a)}return n}function XB(e,t){let n=UB(t);if(n.length===0)return 0;let r=0;for(let t of n){let n=Math.max(YB(t,e.labelWords),JB(t,e.keywordWords,KB.keyword),JB(t,e.tagWords,KB.tag),JB(t,e.providerWords,KB.provider),JB(t,e.idWords,KB.id),JB(t,e.descriptionWords,KB.description));if(n===0)return 0;r+=n}return e.normalizedLabel===n.join(` `)&&(r+=KB.exactLabelBonus),r}function ZB(e){return e.keywords}function QB(e){let t=new Set(e.deprecatedProviders),n=Array.from(new Set([...e.managedProviders,...e.allowedUserConnectionProviders])).filter(e=>!t.has(e));return qB({label:e.label,id:e.pipeId,keywords:ZB(e),tags:e.tags,providers:n,description:e.description})}function $B(e){return qB({label:e.label,id:e.searchId,keywords:ZB(e),tags:e.tags,providers:[e.provider],description:e.description})}function eV(e){return qB({label:e.label,id:e.searchId,keywords:ZB(e),tags:e.tags,providers:[e.provider],description:e.description})}function tV(e){return qB({label:e.label,id:e.effectId,keywords:ZB(e),tags:e.tags,providers:Array.from(new Set([...e.managedProviders,...e.allowedUserConnectionProviders])),description:e.description})}function nV(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function rV(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function iV(e){return e.cost.allowManagedConnection?e.cost.credits.default:0}function aV(e){let t=Object.values(e.billableOperations).map(e=>e?.allowManagedConnection?e.credits.default:0);return t.length?Math.min(...t):0}function oV(e,t){let n=Math.max(1,t.minItems),r=Math.max(n,t.maxItems),i=[],a=[],o=0;for(let s of e){a.push(s),o+=t.sizeOf(s);let e=a.length>=r,c=o>=t.targetSize&&a.length>=n;(e||c)&&(i.push(a),a=[],o=0)}return a.length>0&&i.push(a),i}function sV(e){let t=sM(e);if(!t)return``;try{return te(t)||new URL(t).hostname}catch{return``}}const cV=[`http://`,`https://`,`mailto:`],lV=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function uV(e){return e?dV(e):[]}function dV(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&&lV.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=fV(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=fV(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:dV(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=fV(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:dV(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=fV(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:dV(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=fV(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=fV(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(cV.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:dV(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function fV(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(pV(e,r,n))return r;r+=1}return-1}function pV(e,t,n){if(t+n.length>e.length)return!1;for(let r=0;r<n.length;r++)if(e[t+r]!==n[r])return!1;return!0}export{oo as AI_MODELS,so as AI_MODEL_CATALOG,po as AI_MODEL_RAW_USD,wr as B2BPostMatchSchema,ze as BUCKET_TYPES,We as BucketClaimConfigSchema,Ge as BucketCounterConfigSchema,He as BucketFieldDefSchema,Ve as BucketFieldTypeSchema,Ue as BucketSchemaSchema,GB as CATALOG_SEARCH_WEIGHTS,co as CREDIT_USD_VALUE,Be as CURRENT_BUCKET_TYPE_VERSION,zi as CatalogSchemaRefSchema,EF as ConciseFieldValueSchema,na as ConditionBlockSchema,st as ConditionEvaluationError,ot as ConditionFieldNotFoundError,Ui as ConditionOperatorsSchema,St as EffectAllSelectionSchema,xt as EffectRowsSelectionSchema,wt as EffectSelectionSchema,Ct as EffectWindowSelectionSchema,WF as EffectsRequestSchema,GF as EffectsResponseSchema,UF as EffectsRunStatusSchema,KF as EffectsValidateRequestSchema,JF as EffectsValidateResponseSchema,qF as EffectsValidateStepSchema,Ii as ExpandedFieldValueSchema,Wc as FIELD_PLACEHOLDERS,ki as FieldAnnotationSchema,_M as FieldAnnotations,Ai as FieldAnnotationsSchema,ni as FieldNameSchema,Ei as FieldReasonSchema,di as FieldValueSchema,XI as FormStoreSchema,nL as HIGH_VOLUME_PRICING_MIN_CREDITS,Hi as JSONExtractSchema,fi as JSONMetaSchema,lo as MANAGED_TOKEN_MARGIN,zN as MANUAL_DEFAULT,Xi as NoConnectorSchema,_c as ObjectHasher,Ji as OptionalConnectorSchema,Ua as PIPE0_DEFAULT_API_KEY_METADATA_FLAG,Ha as PIPE0_DEFAULT_CONNECTION_PUBLIC_ID,ai as PIPE_IDS,Cj as PaginationTypeSchema,Sr as PersonProfileFieldSchema,Cw as PersonWorkemailWaterfall1Entry,Sw as PersonWorkemailWaterfall1PayloadSchema,xw as PersonWorkemailWaterfall1PipeClass,H as Pipe,My as Pipe0Error,oi as PipeIdSchema,Bj as PipePayloadSchema,ia as PipeRunIfSchema,Q as PipelineValidationError,ii as PipesEnvironmentSchema,Ti as PipesErrorSchema,Bi as PipesFieldDefinitionSchema,Vi as PipesFieldDefinitionsSchema,Li as PipesInputSchema,Qj as PipesRequestConfigSchema,$j as PipesRequestSchema,Zj as PipesResponseSchema,Vj as ProcessedPipePayloadSchema,_j as ProcessedSearchPayloadSchema,eB as ProcessedSearchesPayloadSchema,HF as ProcessedSheetEffectPayloadSchema,ri as ProviderNameSchema,Di as RECORD_FIELD_FORMATS,si as RECORD_FIELD_TYPES,jc as RESERVED_FIELD_NAMES,Wi as RUN_IF_OPERATOR_LABELS,Ki as RUN_IF_STATUS_OPERATORS,Gi as RUN_IF_VALUE_OPERATORS,LN as RUN_STATUS_OPTIONS,TF as RecordActionDetailSchema,Ni as RecordClaimedBySchema,OF as RecordDiffEntrySchema,Oi as RecordFieldFormatSchema,Fi as RecordFieldSchema,ui as RecordFieldStatusSchema,ci as RecordFieldTypeSchema,li as RecordIdSchema,Pi as RecordResolvedBySchema,Ri as RecordSchema,jy as RequestValidationError,Yi as RequiredConnectorSchema,Qi as RunIfStatusOperatorsSchema,$i as RunIfStatusValueSchema,Zi as RunIfValueOperatorsSchema,IN as RunStatusSchema,RN as SCHEDULED_DEFAULT,VL as SEARCHES_IDS,kD as SEARCH_IDS,nr as SENIORITY_LEVELS,yt as SHEET_EFFECT_IDS,$ as Search,yj as SearchErrorSchema,AD as SearchIdSchema,hj as SearchPayloadSchema,vj as SearchRequestSchema,wj as SearchResponseSchema,bj as SearchResultFieldSchema,xj as SearchResultSchema,nB as SearchesErrorSchema,HL as SearchesIdSchema,$z as SearchesPayloadSchema,sB as SearchesRequestBaseConfigSchema,lB as SearchesRequestSchema,oB as SearchesResponseSchema,rB as SearchesResultFieldSchema,iB as SearchesResultSchema,GL as SearchesSearch,aB as SearchesStatusSchema,B as SheetEffect,bt as SheetEffectIdSchema,BF as SheetEffectPayloadSchema,jF as SheetEffectStepSummarySchema,eI as SheetEffectValidationError,AF as SheetEffectsCountsSchema,kF as SheetEffectsDiffSchema,uo as TOKEN_BLOCK_SIZE_INPUT,fo as TOKEN_BLOCK_SIZE_OUTPUT,Ul as TYPES_TO_FORMATS,wo as TokenBlockAccumulator,DF as UpdatedActionDetailSchema,ra as ValueConditionBlockSchema,qI as WidgetsByKindSchema,wi as WidgetsSchema,Fc as all,Ta as analyzeLiquidTemplate,fL as analyzePipeFit,io as and,Ic as any,Jj as assertUniqueBillableOperations,h as autocomplete,Tr as b2bPostMatchExample,Ke as bucketConfigSchemaFor,$e as bucketSchemaFieldNames,et as bucketSchemasEqual,Qe as bucketSlugValue,xo as buildAiModelTokenBillableOperations,qB as buildCatalogSearchTarget,yM as buildDependencyGraph,Yc as buildInputRequirementFromTemplates,pI as buildResultColumns,bo as buildTokenNote,q as catalogInput,oV as chunkBySize,hc as cleanObject,sM as cleanUrl,oM as cleanWebsiteUrl,Zc as collectConstantReferencesFromTemplates,PI as collectPipeContextSelectFields,zc as collectRequirementFields,zI as collectSearchContextSelectFields,Xc as collectSecretReferencesFromTemplates,UI as collectSheetEffectContextSelectFields,MB as compilePattern,CI as computeTenure,vt as configDefaults,vo as creditsPerBlock,it as decodeBucketContract,fI as dedupeColumnNames,qe as defaultBucketConfig,ky as describeRequirement,rt as encodeBucketContract,kt as entityLogoFavicon,Ot as entityLogoProfessionalProfileUrl,hl as estimateGuardCredits,pt as evaluateConditionBlock,ls as extractFormMetadata,V as field,Zr as fieldBehaviorCatalog,Xr as fieldCatalog,Oy as fieldNameStr,uM as fieldTypeFromValue,FL as fieldsToObject,BB as filterPipeEntries,VB as filterSearchEntries,HB as filterSearchesEntries,RF as getAgentAllowedEffectIds,ho as getAiModelConnectionRequirements,mo as getAiModelProviders,So as getAiModelTokenBillingKeys,yo as getAiModelTokenCredits,go as getAllAiModelProviders,G as getBasePipeName,z as getBaseSheetEffectName,Ij as getDefaultOutputFields,Kj as getDefaultPipeProviders,Aj as getDefaultSearchOutputFields,tB as getDefaultSearchesOutputFields,nM as getDependentPipeNamesForInputProperty,rM as getDependentPipeNamesForPipe,sV as getDomain,fM as getExpansionState,Et as getFaviconUrlGoogle,g as getField,Qr as getFieldBehavior,zl as getFieldDisplayLabel,mM as getFieldWidgets,kj as getInitialSearchTableData,pB as getInitialSearchesTableData,QF as getInitialSheetEffectTableData,Yj as getInitialTableData,Uc as getInputHash,Eo as getJsonMetaForFieldDef,iV as getLoweestSearchCreditAmount,rV as getLoweestSearchesCreditAmount,nV as getLowestPipeCreditAmount,aV as getLowestSheetEffectCreditAmount,ti as getOutputFieldInfoFromDef,Uj as getPipeBillableOperationDef,eL as getPipeCategoryEntries,$I as getPipeCategoryEntry,Lj as getPipeClass,Hc as getPipeConfigHash,Rj as getPipeDefaultPayload,K as getPipeDocsURI,Hj as getPipeEntry,OI as getPipeFormMask,tM as getPipeInstances,FI as getPipePayloadFormConfig,zj as getPipePayloadSchema,QB as getPipeSearchTarget,Wj as getPipeVersion,X as getProviderBillableOperation,Qc as getProviderCreditsFromBillableOperations,BL as getProviderEntry,hI as getReadableFieldStatus,_B as getSandboxConnections,vB as getSandboxConnectionsForPipe,yB as getSandboxConnectionsForSearch,bB as getSandboxConnectionsForSearches,wB as getSearchCategoryEntries,CB as getSearchCategoryEntry,mj as getSearchClass,gj as getSearchDefaultPayload,Dj as getSearchEntry,EB as getSearchFieldWidgets,kI as getSearchFormMask,HP as getSearchInstance,RI as getSearchPayloadFormConfig,Sj as getSearchPayloadSchema,$B as getSearchSearchTarget,jj as getSearchTableDataAggregates,Tj as getSearchVersion,Xz as getSearchesClass,Qz as getSearchesDefaultPayload,hB as getSearchesEntry,hM as getSearchesFieldWidgets,OB as getSearchesInstances,Zz as getSearchesPayloadSchema,eV as getSearchesSearchTarget,mB as getSearchesTableDataAggregates,uB as getSearchesVersion,xr as getSeniorityEmojiFromTitle,br as getSeniorityLevelFromTitle,_t as getSheetEffectCategoryEntries,gt as getSheetEffectCategoryEntry,FF as getSheetEffectClass,vc as getSheetEffectConfigHash,VF as getSheetEffectDefaultPayload,IF as getSheetEffectEntry,AI as getSheetEffectFormMask,uI as getSheetEffectInstance,HI as getSheetEffectPayloadFormConfig,LF as getSheetEffectPayloadSchema,tV as getSheetEffectSearchTarget,eM as getStartingCostPerPipesProvider,Mj as getStartingCostPerSearchProvider,gB as getStartingCostPerSearchesProvider,Xj as getTableDataAggregates,iL as getTier,pM as getUnexpandedValue,Dt as ifDefined,R as inputFields,RL as inputFromRecord,LL as inputFromRecordArr,IL as inputFromRecords,WI as inputGuards,zF as isAgentAllowedEffect,ei as isCatalogField,Xn as isEmptyValue,$r as isFieldName,sL as isHighVolumeEligible,LB as isPipeAllowed,IB as isProviderAllowed,Rc as isRequirementMet,Bc as isRequirementSatisfiedByRecord,Mc as isReservedFieldName,RB as isSearchAllowed,zB as isSearchesAllowed,_o as isTokenBilledOperations,Ga as joinConnectionString,cL as listHighVolumeEligibleOperations,oL as listTiers,ml as managedDefaultCreditOf,Ze as mappedBucketFieldNames,el as markRecordFieldAsComplete,rl as markRecordFieldAsFailed,nl as markRecordFieldAsNoResult,tl as markRecordFieldAsPending,al as markRecordFieldAsProcessing,il as markRecordFieldAsSkipped,PB as matchesAny,NB as matchesPattern,ss as mergeFormConfig,At as mergeWidgets,C as noConnectorInput,dI as normalizeColumnName,Lc as optional,S as optionalConnectorInput,ao as or,L as outputFields,wa as parseLiquidTemplate,va as parseOutputTagArgs,CL as parseRecordValueOrError,Ya as parseRelaxedObject,uV as parseRichText,J as perUnit,Cr as personProfileMatchExample1,Fj as pipeCatalog,ZI as pipeCategoryCatalog,Nj as pipeClassCatalog,Pj as pipePayloadSchemaCatalog,Ps as pipesAsyncIncludeExcludeSelectInput,os as pipesConditionInput,Ks as pipesContextSelectInput,Is as pipesDateRangeInput,Ls as pipesDestinationFieldConfig,Ts as pipesFieldSelectInput,Cs as pipesFieldsSelectInput,Os as pipesIncludeExcludeInput,Ns as pipesIncludeExcludeSelectInput,T as pipesInputField,Us as pipesIntInput,Io as pipesJsonExtractionInput,Gs as pipesJsonSchemaField,Vs as pipesLLMSelectInput,Ms as pipesLooseObjectInput,ks as pipesMultiCreateInput,Hs as pipesMultiSelectInput,Ws as pipesNumberInput,D as pipesOptionalBooleanInput,As as pipesOrderedMultiCreateInput,O as pipesOutputField,_ as pipesPayloadRegistry,ds as pipesPromptInput,E as pipesProviderInput,Fs as pipesRangeInput,x as pipesRunIfInput,Bs as pipesSelectInput,tL as pipesSnippetCatalog,js as pipesTaggedOrderedMultiCreateInput,ps as pipesTaggedTextInput,fs as pipesTemplateInput,Rs as pipesTextInput,zs as pipesTextareaInput,ws as pipesTypedFieldsSelectInput,U as placeholder,zL as processInputObjects,vT as projectOptionsDef,_T as projectScopedSheetOptionsDef,Ye as providedCreationName,Je as providedCreationPolicy,aa as providerCatalog,Y as rateLimitRatioFallingProgression,qM as renameFieldInPipePayloads,Sa as renderLiquidTemplate,Ca as renderLiquidTemplateSync,hs as requiredConnectorInput,$c as requirementToInputFields,Ay as requirementUnmetMessage,no as requiresConnection,ro as requiresField,DI as resolveFormMask,Xe as resolveMappingEntry,mT as roundrobinBucketSlug,pT as roundrobinFilterKey,tI as runSheetEffectsValidation,BN as runStatusesToQueueConfig,XB as scoreCatalogSearch,pj as searchCatalog,xB as searchCategoryCatalog,dj as searchClassCatalog,fj as searchPayloadSchemaCatalog,TB as searchSnippetCatalog,F as searchesAsyncIncludeExcludeSelectInput,P as searchesAsyncMultiSelectInput,Yz as searchesCatalog,qz as searchesClassCatalog,rc as searchesContextSelectInput,Zs as searchesDateRangeInput,Ys as searchesExactRangeInput,A as searchesIncludeExcludeInput,j as searchesIncludeExcludeSelectInput,I as searchesIntInput,Js as searchesMinMaxIntInput,k as searchesMultiCreateInput,N as searchesMultiSelectInput,ic as searchesNumberField,Qs as searchesOptionalBooleanInput,vs as searchesOptionalConnectorInput,$s as searchesOptionalNullableBooleanInput,qs as searchesOrderedMultiCreateInput,M as searchesOutputField,v as searchesPayloadRegistry,Jz as searchesPayloadSchemaCatalog,Xs as searchesRangeInput,_s as searchesRequiredConnectorInput,nc as searchesSelectInput,ec as searchesTextInput,tc as searchesTextareaField,rr as seniorityLevelSchema,xT as sheetColumnsOptionsDef,PF as sheetEffectCatalog,mt as sheetEffectCategoryCatalog,MF as sheetEffectClassCatalog,NF as sheetEffectPayloadSchemaCatalog,$F as sheetEffectSnippetCatalog,as as sheetEffectsConditionInput,fc as sheetEffectsContextSelectInput,Es as sheetEffectsFieldsSelectInput,lc as sheetEffectsIntInput,pc as sheetEffectsLLMSelectInput,cc as sheetEffectsMultiSelectInput,w as sheetEffectsNoConnectorInput,dc as sheetEffectsOptionalBooleanInput,xs as sheetEffectsOptionalConnectorInput,uc as sheetEffectsOptionalIntInput,y as sheetEffectsPayloadRegistry,bs as sheetEffectsRequiredConnectorInput,mc as sheetEffectsSearchPayloadInput,sc as sheetEffectsSelectInput,Ds as sheetEffectsSelectionInput,ac as sheetEffectsTextInput,oc as sheetEffectsTextareaInput,gT as sheetOptionsDef,Hl as sortObjectKeys,Gj as sortPipeCatalogByBasePipe,Ej as sortSearchCatalogByBaseSearch,dB as sortSearchesCatalogByBaseSearch,XF as sortSheetEffectCatalogByBaseEffect,Wa as splitConnectionString,Re as staticAutocomplete,m as staticOptions,Vl as stringify,Mt as stripStaticWidgets,iI as summarizeEffectRun,SI as tagPrimaryCurrentEducation,jt as tagStaticWidgets,Bl as testPrint,aL as tierAtOrBelow,Co as tokenEstimate,EL as transformIntoResponse,at as tryDecodeBucketContract,Xa as tryParseRelaxedObject,bM as validatePipesOrError,kB as validateSearches,rI as validateSheetEffectsOrError,Z as validationErrorMessages};
130
+ `}}],input:[{id:`1`,name:`John`,email:`john@pipe0.com`}]}],"email:send:resend@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`resend_123`,type:`vault`}]},pipe_id:`email:send:resend@1`,config:{from:`<FROM_EMAIL_ADDRESS>`,to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"email:send:gmail@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`gmail_123`,type:`vault`}]},pipe_id:`email:send:gmail@1`,config:{to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"message:send:slack@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`slack_123`,type:`vault`}]},pipe_id:`message:send:slack@1`,config:{channel_id:`<SLACK_CHANNEL_ID>`,message:`{{ message }}`}}],input:[{id:`1`,message:`<MESSAGE_TEXT>`}]}],"people:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"person:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"people:validate:email:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:validate:email:zerobounce@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:mobilenumber:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:workemail:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`john@pipe0.com`}]}],"people:professionalprofileurl:name@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:name@1`}],input:[{id:`1`,name:`John`,company_name:`Pipe0`,location_int:`Berlin`}]}],"people:professionalprofileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:email:waterfall@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"people:mobilenumber:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`https://linkedin.com/li/john`}]}],"company:overview@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@2`,config:{}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"company:overview@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@3`,config:{}}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"fields:merge@1":[{config:{environment:`production`},pipes:[{pipe_id:`fields:merge@1`,config:{merge_fields:[{field_name:`field_1`},{field_name:`field_2`}]}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:scrape:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrape:firecrawl@1`,config:{scrape_main_only:!0,input_fields:{website_url:{alias:``}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:extract:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:extract:firecrawl@1`,config:{extraction_prompt:`Extract the company mission as well as the latest news.`,enable_full_domain_crawl:!0,enable_web_search:!0,json_schema:{type:`object`,required:[`company_mission`,`latest_news`],properties:{company_mission:{type:`string`},latest_news:{type:`string`}}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:extract:parallel@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:extract:parallel@1`,config:{objective:`When was the company founded and what does it do?`}}],input:[{id:`1`,website_url:`https://pipe0.com`}]}],"person:email:validate:millionverifier@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:email:validate:millionverifier@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"website:scrapelist:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrapelist:firecrawl@1`,config:{scrape_main_only:!0,formats:[`markdown`,`links`]}}],input:[{id:`1`,urls:[`https://pipe0.com`,`https://pipe0.com/docs`]}]}],"website:maplinks:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:maplinks:firecrawl@1`,config:{sitemap:`include`,page_limit:20,search:``}}],input:[{id:`1`,urls:[`https://pipe0.com`,`https://pipe0.com/docs`]}]}],"contact:create:resend@1":[{config:{environment:`production`},pipes:[{pipe_id:`contact:create:resend@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`resend_123`}]},config:{segment_id:`segment_id_12xeeb12`,add_as_subscribed:!0}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"lead:enroll:lemlist@1":[{config:{environment:`production`},pipes:[{pipe_id:`lead:enroll:lemlist@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`lemlist_123`}]},config:{campaign_id:`cam_bSn8EORHQxbWPjHvu`,custom_variables:{painPoint:`{{ pain_point }}`}}}],input:[{id:`1`,email:`prospect@example.com`,first_name:`Jane`,last_name:`Doe`,company_name:`Acme Corp`,job_title:`VP Sales`,pain_point:`slow onboarding`}]}],"row:append:sheet@1":[{config:{environment:`production`},pipes:[{pipe_id:`row:append:sheet@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{project:`project_id`,sheet:`sheet_id`,run:!0,allow_entity_creation:!0,write_fields:[{field_name:`field_name`}]}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"bucket:claim@1":[{config:{environment:`production`},pipes:[{pipe_id:`bucket:claim@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{bucket:`crm-contacts`,contract:``,entry_fields:[{field_name:`email`}],new_bucket_name:``,new_bucket_ttl_in_seconds:null,new_bucket_own_entry_behavior:`block`,new_bucket_missing_value_behavior:`proceed`,allow_bucket_creation:!0}}],input:[{id:`1`,email:`test@pipe0.com`}]}],"bucket:count@1":[{config:{environment:`production`},pipes:[{pipe_id:`bucket:count@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{bucket:`lead-router`,contract:``,entry_fields:[{field_name:`email`,entry_field:`lead`}],new_bucket_name:``,new_bucket_start:1,new_bucket_step:1,allow_bucket_creation:!0}}],input:[{id:`1`,email:`test@pipe0.com`}]}],"bucket:check@1":[{config:{environment:`production`},pipes:[{pipe_id:`bucket:check@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{bucket:`do-not-contact`,contract:``,entry_fields:[{field_name:`email`}]}}],input:[{id:`1`,email:`test@pipe0.com`}]}],"row:roundrobin:sheet@1":[{config:{environment:`production`},pipes:[{pipe_id:`row:roundrobin:sheet@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`sellers`,sheet_where:{logic:`and`,conditions:[{property:`value`,field_name:`segment`,operator:`eq`,value:`ENT`}]},sheet_unique_field:{field_name:`email`},sheet_copy_fields:[{field_name:`email`,type:`string`,format:`email`},{field_name:`name`,type:`string`}],sheet_weight_field:{field_name:``},counter_field:{field_name:`email`}}}],input:[{id:`1`,email:`lead@acme.com`}]}],"rows:find:sheet@1":[{config:{environment:`production`},pipes:[{pipe_id:`rows:find:sheet@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`crm-leads`,where:{logic:`and`,conditions:[{property:`value`,field_name:`email`,operator:`eq`,value:`{{ email }}`}]},limit:10,output_fields:{sheet_rows_found_count:{alias:``,enabled:!0},sheet_found_rows:{alias:``,enabled:!0},sheet_found_row_ids:{alias:``,enabled:!1}}}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"rows:find:postgres@1":[{config:{environment:`production`},pipes:[{pipe_id:`rows:find:postgres@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`postgres_123`}]},config:{query:`SELECT id, email, plan, created_at FROM users WHERE email = '{{ email }}'`,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!0},db_found_rows:{alias:``,enabled:!0}}}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"rows:find:databricks@1":[{config:{environment:`production`},pipes:[{pipe_id:`rows:find:databricks@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`databricks_123`}]},config:{query:`SELECT id, email, plan, created_at FROM main.crm.users WHERE email = '{{ email }}'`,limit:10,output_fields:{db_rows_found_count:{alias:``,enabled:!0},db_found_rows:{alias:``,enabled:!0}}}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"row:expandappend:sheet@1":[{config:{environment:`production`},pipes:[{pipe_id:`row:expandappend:sheet@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{project:`project_id`,sheet:`sheet_id`,run:!0,allow_entity_creation:!0,destination_field_name:`expanded_value`,destination_field_type:``,destination_field_format:``,destination_field_label:``}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"people:match:role:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:match:role:waterfall@1`,config:{providers:[{provider:`leadmagic`}],roles:[`CEO`]}}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"person:match:role:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:match:role:waterfall@1`,config:{providers:[{provider:`leadmagic`}],roles:[`CEO`]}}],input:[{id:`1`,company_domain:`acme.com`}]}],"company:match:logodev@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:logodev@1`}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"company:match:logodev@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:logodev@2`}],input:[{id:`1`,company_domain:`acme.com`}]}],"company:lookalikes:companyenrich@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:lookalikes:companyenrich@1`}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"company:lookalikes:companyenrich@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:lookalikes:companyenrich@2`}],input:[{id:`1`,company_domain:`acme.com`}]}],"person:posts:content:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:posts:content:crustdata@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-doe-3445`}]}],"people:identity:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:identity:email:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"person:identity:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:identity:email:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:profile:workemail:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profile:workemail:crustdata@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"person:profile:workemail:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profile:workemail:crustdata@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:workemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-123abc`}]}],"person:workemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-123abc`}]}],"company:match:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:crustdata@1`}],input:[{id:`1`,company_website_url:`https://microsoft.com`}]}],"company:match:crustdata@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:crustdata@2`}],input:[{id:`1`,company_domain:`microsoft.com`}]}],"company:identity:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity:crustdata@1`}],input:[{id:`1`,company_domain:`samsung.com`},{id:`2`,company_name:`Samsung`}]}],"person:identity:amplemarket@1":[{pipes:[{pipe_id:`person:identity:amplemarket@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`amplemarket_123`}]}}],input:[{id:`1`,email:`hallp@pipe0.com`}]}],"person:match:amplemarket@1":[{pipes:[{pipe_id:`person:match:amplemarket@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`amplemarket_123`}]}}],input:[{id:`1`,profile_url:`https://linkedin.com/li/johndoe`}]}],"field:domainify@1":[{pipes:[{pipe_id:`field:domainify@1`}],input:[{id:`1`,url_input:`https://google.com`}]}],"field:slugify@1":[{pipes:[{pipe_id:`field:slugify@1`}],input:[{id:`1`,string_input:`input value`}]}],"http:request@1":[{pipes:[{pipe_id:`http:request@1`,config:{method:`GET`,url:`https://api.example.com/v1/companies/{{ company_name }}`,query_params:{limit:`10`},body:``,headers:{Authorization:`Bearer SECRET`},expected_response_schema:{},output_fields:{http_response_status:{alias:``,enabled:!0},http_response_body:{alias:``,enabled:!0},http_response_headers:{alias:``,enabled:!1}}}}],input:[{id:`1`,company_name:`Acme`}]}]},nL=.1,rL=[`level1`,`level2`,`level3`];function iL(e,t){let n=rL[t-1];if(n)return e[n]}function aL(e,t){for(let n=t;n>=1;n--){let t=iL(e,n);if(t)return{level:n,tier:t}}}function oL(e){let t=[];for(let n=1;n<=3;n++){let r=iL(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function sL(e){if(e.default<.1)return!1;let t=oL(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 cL(){let e=new Map;for(let t of Object.values(Fj))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!sL(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:oL(i.credits),usedBy:[o]})}for(let t of Object.values(pj)){let{cost:n}=t;if(!n.allowManagedConnection||!sL(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:oL(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function lL(e,t){switch(e.kind){case`field`:case`optional`:{let n=t[e.field.name];return n?{...e,field:{...e.field,resolvedName:n}}:e}case`all`:case`any`:return{...e,of:e.of.map(e=>lL(e,t))}}}function uL(e){switch(e.kind){case`field`:return e.field.resolvedName;case`optional`:return`${e.field.resolvedName} (optional)`;case`all`:return e.of.map(uL).join(` AND `);case`any`:return`(${e.of.map(uL).join(` OR `)})`}}function dL(e,t){let n=2,r=`${e}_${n}`;for(;t.has(r);)n++,r=`${e}_${n}`;return r}function fL({pipeId:e,availableFields:t,inputFieldAliases:n}){let r=Fj[e];if(!r)throw Error(`Unknown pipe_id: "${e}"`);let i=new Set(t),a=r.defaultInputRequirement,o=a&&n&&Object.keys(n).length>0?lL(a,n):a,s=o?Rc(o,i):!0,c=o?zc(o).filter(e=>e.required).map(e=>({name:e.field.name,resolved_name:e.field.resolvedName,present:i.has(e.field.resolvedName)})):[],l=s?[]:c.filter(e=>!e.present).map(e=>e.resolved_name),u=new Set(i),d=[],f=[];for(let e of Ij(r)){let t=i.has(e),n;t?(n=dL(e,u),u.add(n),f.push({name:e,resolved_name:e,suggested_alias:n})):u.add(e),d.push({name:e,resolved_name:e,collides:t,suggested_alias:n})}return{pipe_id:e,runnable:s,requirement_description:o?uL(o):`(no inputs required)`,required_fields:c,missing_fields:l,output_fields:d,output_collisions:f}}const pL=[`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`],mL=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],hL=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})}),gL=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 _L(e){return!isNaN(e.getTime())}const vL=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of pL){let n=f(t,e,new Date(0));if(_L(n))return d(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),yL=r.coerce.string().trim().transform(e=>{for(let t of mL){let n=f(e,t,new Date(0));if(_L(n))return d(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),bL=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`}),xL=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()),SL=r.preprocess(e=>{if(typeof e!=`object`||!e)return e;try{return JSON.stringify(e)}catch{return e}},r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`}));function CL(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return hL.parse(e);case`email`:return gL.parse(e);case`datetime`:return vL.parse(e);case`date`:return yL.parse(e);case`decimal`:return bL.parse(e);case`int`:return xL.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return SL.parse(e);case`website_url`:return hL.parse(e);case`profile_url`:return hL.parse(e);case`zip_code`:return SL.parse(e);case`markdown`:case`phone`:case`text`:return SL.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 ${Vl(e)} into format ${t}: ${r.message}`):r}}function wL(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(dM(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:CL(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 TL(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];if(!i)throw Error(`Input object undefined`);let a=i.id;a!=null&&dM(a)&&(i.id=a.value),i.id||=crypto.randomUUID();let{id:o}=i;if(typeof o!=`string`&&typeof o!=`number`){n.errors.push(Z.InvalidId());continue}if(n.records[o]){n.errors.push(Z.IDConflict({index:r,id:o}));continue}n.order.push(o),n.records[o]={id:o,fields:wL(e,n,i)}}}function EL({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{TL(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=DL(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,OL(e,r,n?.queue?.enabled),PL(e,r),r.errors.length>0)throw new Q(r.errors);return r}catch(e){throw e instanceof Q?e:new Q([Z.ResponseGenerationFailed({error:e})])}}function DL(e,t,n,r){let i=[],a=[];for(let o=0;o<e.orderedPipePayloads.length;o++){let s=e.orderedPipePayloads[o],c=e.orderedPipeInstances[o];if(!c){n.errors.push(Z.UnknownResolver({pipeId:s.pipe_id,index:o}));continue}let{queuedRecordIds:l,adoptedRecordIds:u}=NL(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function OL(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 ${Oy(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 ${Oy(n)} is missing but required (${r.value?`the value is`:`it has status`}: '${r.value?r.value:r.status}').`,summary:`Missing input`})})};for(let n=0;n<e.orderedPipePayloads.length;n++){let i=e.orderedPipePayloads[n],a=e.orderedPipeInstances[n];if(!a){t.errors.push(Z.UnknownResolver({pipeId:i.pipe_id,index:n}));continue}Object.values(t.records).forEach(e=>{let{valid:t,failedPipeInputField:n,failedRecordField:i}=Bc(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function kL({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 AL({status:e,config:t}){return t.queue?.enabled?t.queue.triggers?.status?.includes(e)??!1:!1}function jL({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return kL({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||AL({status:n.status,config:r})}function ML({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 NL(e,t,n,r,i){let a=Object.entries(r.records),o=[],s=[];for(let c=0;c<a.length;c++){let l=a[c];if(!l)throw Error(`Required arr not present`);let[u,d]=l;for(let a of Object.values(n.getOutputFields())){let{resolvedName:l,type:u}=a,f=Gc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},u),ee=Kc({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:te,isExpanded:ne,expandedValue:p}=fM(t[c]?.[l]??null),re=d.fields[l],ie=n.getConfigHashKey(),ae=n.getInputHashKey(d),oe={type:f,format:ee,claimed_by:{ref:n.pipeId,config_hash:ie}};if(r.errors.length>0&&te===null){let t=r.errors[0];if(!t)throw Error(`firstError undefined.`);d.fields[l]={...oe,value:null,status:`failed`,reason:{summary:`Validation error`,...t},resolved_by:{ref:`system`,environment:e.environment,config_hash:null,input_hash:null},widgets:{}};continue}let se=uM(te);if(se!==`unknown`&&se!==f){let t=i.queue?.triggers?.outputFieldTypeError&&i.queue.enabled;d.fields[l]={...oe,value:t?null:te,status:t?`queued`:`completed`,reason:null,resolved_by:t?{environment:e.environment,ref:`system`,config_hash:ie,input_hash:ae}:{environment:e.environment,ref:`input`,config_hash:null,input_hash:null},widgets:t?{}:p?.widgets||re?.widgets||{},format:t?ee:p?.format||ee};continue}if(te==null){let t=ne&&i.queue?.enabled&&p.status===`pending`,n=ne&&!t;if(ne&&i.adopt?.enabled===!0&&(!i.adopt.statuses||i.adopt.statuses.includes(p.status))){let{didAdopt:e}=ML({inputHashKey:ae,configHashKey:ie,expandedValue:p});e&&s.push(d.id)}if(ne&&p.status!==`pending`&&jL({inputHashKey:ae,configHashKey:ie,config:i,expandedValue:p})&&i.queue?.enabled)o.push(d.id),d.fields[l]={...oe,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:ie,input_hash:ae},widgets:{}};else if(n)d.fields[l]={...oe,value:null,status:p.status,type:p.type||f,reason:p.reason||null,resolved_by:p.resolved_by||null,widgets:p.widgets||{},format:p.format||ee};else{let t=i.queue?.triggers?.status?.includes(`pending`)??!0,n=i.queue?.enabled&&t?`queued`:`pending`;n===`queued`&&o.push(d.id),d.fields[l]={...oe,value:null,status:n,reason:null,resolved_by:n===`queued`?{environment:e.environment,ref:`system`,config_hash:ie,input_hash:ae}:null,widgets:{}}}continue}if(ne){if(ne&&i.adopt?.enabled===!0&&(!i.adopt.statuses||i.adopt.statuses.includes(p.status))){let{didAdopt:e}=ML({inputHashKey:ae,configHashKey:ie,expandedValue:p});e&&s.push(d.id)}jL({inputHashKey:ae,configHashKey:ie,expandedValue:p,config:i})&&r.errors.length===0?(o.push(d.id),d.fields[l]={...oe,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:null,input_hash:null},widgets:{}}):d.fields[l]={...oe,value:te,status:`completed`,type:p.type||f,reason:p.reason||null,resolved_by:p.resolved_by||{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:p.widgets||re?.widgets||{},format:p.format||ee}}else try{let e=CL(te,ee);d.fields[l]={...oe,value:e,status:`completed`,reason:null,resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:re?.widgets||{}}}catch{let t=i.queue?.enabled?`queued`:`failed`;t===`queued`&&o.push(d.id),d.fields[l]={...oe,value:te,status:t,reason:{code:`InvalidFormat`,message:`Field is of invalid format. Expected: ${a.format}`,summary:`Invalid Format`},resolved_by:{ref:`system`,environment:e.environment,config_hash:ie,input_hash:ae},widgets:{}}}}}return{queuedRecordIds:o,adoptedRecordIds:s}}function PL(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=mM(i,r.value,r);r.widgets=At(Mt(r.widgets),e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function FL(e,t){let{expandAllStatuses:n=!1,expandStatuses:r=[]}=t||{},i={};for(let[t,a]of Object.entries(e))(r.includes(a.status)||n)&&t!==`id`?i[t]={...a,widgets:Mt(a.widgets)}:i[t]=a.value;return i}function IL(e,t={}){return Object.values(e).map(e=>FL(e.fields,t))}function LL(e,t={}){return e.map(e=>FL(e.fields,t))}function RL(e,t={}){return FL(e.fields,t)}function zL(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=fM(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function BL(e){let t=aa[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const VL=[`people:profiles:icypeas@1`,`companies:profiles:icypeas@1`,`people:profiles:clado@1`,`people:profiles:clado@2`,`people:employees:leadmagic@1`,`companies:profiles:exa@1`,`people:profiles:exa@1`,`companies:profiles:crustdata@1`,`people:profiles:crustdata@1`],HL=r.enum(VL);function UL(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 WL(e,t){let n={name:e,config:t};return _c.hashObject(n)}var GL=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 WL(this.searchId,this.payload)}};function KL(e){return e.split(`@`)[0]}function qL(e){return`/docs/search-catalog/${KL(e)}/${e.split(`@`)[1]}`}const JL=`companies:profiles:crustdata@1`,YL=g(`company_name`),XL=g(`company_website_url`),ZL=g(`company_description`),QL=g(`company_profile_url`),$L=g(`crustdata_company_match`),eR=r.object({search_id:r.literal(JL),connector:Ji.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),cursor:ec({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}).nullable(),output_fields:L(r.object({[YL.name]:M({fieldName:YL.name}),[XL.name]:M({fieldName:YL.name}),[ZL.name]:M({fieldName:ZL.name}),[QL.name]:M({fieldName:QL.name}),[$L.name]:M({fieldName:$L.name})})),filters:r.object({hq_locations:P({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.location`,optionsDef:h(`locations`)}).default([]),crunchbase_categories:P({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}).default([]),crunchbase_investors:P({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}).default([]),tracxn_investors:P({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,required:!1,groupPath:`config.filters.investors`,disableSearch:!1,optionsDef:h(`company.tracxn_investors.crustdata`)}).default([]),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,options:m(`crustdata.company_types`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}).default([]),linkedin_industries:P({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}).default([]),markets:P({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),label:`Markets`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}).default([]),linkedin_categories:P({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:h(`company.linkedin_categories.crustdata`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}).default([]),headcount:N({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,required:!1,options:m(`crustdata.company_size`),groupPath:`config.filters.company_size`}).default([]),headcount_growth_last_6m_in_percent:N({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}).default([]),revenue_in_usd:Xs({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:N({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,disableSearch:!0,required:!1,options:m(`crustdata.funding_rounds`),description:``,groupPath:`config.filters.financials`}).default([]),last_funding_amount:Xs({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:N({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}).default([]),follower_growth_last_6m_in_percent:N({path:`config.filters.follower_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}).default([]),profile_summary_keywords:k({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,description:``,groupPath:`config.filters.keywords`}),competitor_websites:k({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:`Ex. 'google.com'`,groupPath:`config.filters.competitors`})}).check(e=>{UL(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),tR={default:{input:[{fields:[]}]}},nR=class extends GL{searchId=JL;schema=eR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[YL.name]:this.catalogOutput(YL),[XL.name]:this.catalogOutput(XL),[ZL.name]:this.catalogOutput(ZL),[QL.name]:this.catalogOutput(QL),[$L.name]:this.catalogOutput($L)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return tR}},rR=eR,iR={searchId:JL,billableOperation:`companies-profiles-crustdata`,baseSearch:KL(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[W.COMPANY_PROFILES],docPath:qL(JL),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:JL,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:[]}}}},aR=`companies:profiles:exa@1`,oR=g(`company_name`),sR=g(`company_website_url`),cR=g(`company_description`),lR=g(`company_industry`),uR=g(`headcount`),dR=g(`exa_match_evaluation`),fR=r.object({search_id:r.literal(aR),connector:Ji.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:L(r.object({[oR.name]:M({fieldName:oR.name}),[sR.name]:M({fieldName:oR.name}),[cR.name]:M({fieldName:cR.name}),[lR.name]:M({fieldName:lR.name}),[uR.name]:M({fieldName:uR.name}),[dR.name]:M({fieldName:dR.name})})),filters:r.object({query:tc({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})})})}),pR={default:{input:[{fields:[]}]}},mR=class extends GL{searchId=aR;schema=fR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[oR.name]:this.catalogOutput(oR),[sR.name]:this.catalogOutput(sR),[cR.name]:this.catalogOutput(cR),[lR.name]:this.catalogOutput(lR),[uR.name]:this.catalogOutput(uR),[dR.name]:this.catalogOutput(dR)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return pR}},hR=fR,gR={searchId:aR,billableOperation:`companies-profiles-exa`,baseSearch:KL(`companies:profiles:exa@1`),label:`Company finder (websets)`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Semantic AI search to find company profiles. This search can take several minutes.`,tags:[W.COMPANY_PROFILES],docPath:qL(aR),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:aR,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:``}}}},_R=`companies:profiles:icypeas@1`,vR=g(`company_industry`),yR=g(`company_name`),bR=g(`company_description`),xR=g(`company_website_url`),SR=g(`headcount`),CR=g(`company_region`),wR=g(`company_profile_url`),TR=g(`icypeas_company_match`),ER=r.object({search_id:r.literal(_R),connector:Ji.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,max:5e4,min:1,path:`config.limit`,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:L(r.object({company_name:M({fieldName:yR.name}),company_industry:M({fieldName:vR.name}),company_description:M({fieldName:bR.name}),company_website_url:M({fieldName:xR.name}),headcount:M({fieldName:SR.name}),company_region:M({fieldName:CR.name}),company_profile_url:M({fieldName:wR.name}),icypeas_company_match:M({fieldName:TR.name})})),filters:r.object({name:A({path:`config.filters.name`,sectionKey:`config.filters`,includeLabel:`Company names to include`,excludeLabel:`Company names to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:100}).optional(),type:j({path:`config.filters.type`,sectionKey:`config.filters`,label:``,description:``,placeholder:``,includeLabel:`Company types to include`,excludeLabel:`Company types to exclude`,optionsDef:{type:`static`,options:[{value:`Privately Held`,label:`Privately Held`},{value:`Public Company`,label:`Public Company`},{value:`Sole Proprietorship`,label:`Sole Proprietorship`},{value:`Self-Employed`,label:`Self-Employed`},{value:`Partnership`,label:`Partnership`},{value:`Nonprofit`,label:`Nonprofit`},{value:`Educational Institution`,label:`Educational Institution`},{value:`Government Agency`,label:`Government Agency`}]},groupPath:`config.filters.company_information`}).optional(),industry:j({path:`config.filters.industry`,sectionKey:`config.filters`,optionsDef:Re(`linkedin.industries`),includeLabel:`Industries to include`,excludeLabel:`Industries to exclude`,description:``,placeholder:``,groupPath:`config.filters.industry`,maxItems:50}).optional(),location:A({path:`config.filters.location`,sectionKey:`config.filters`,includeLabel:`Locations to include`,excludeLabel:`Locations to exclude`,description:``,placeholder:`US, FR, New York`,groupPath:`config.filters.geografic`,maxItems:20}).optional(),headcount:Xs({path:`config.filters.headcount`,sectionKey:`config.filters`,legend:`1-1M`,label:`Headcount`,description:``,min:1,max:1e6,unit:`employees`,groupPath:`config.filters.company_size`}).optional(),urn:A({path:`config.filters.urn`,sectionKey:`config.filters`,label:``,description:``,groupPath:`config.filters.linkedin`,excludeLabel:`URNs to exclude`,includeLabel:`URNs to include`,maxItems:200}).optional(),lid:A({path:`config.filters.lid`,sectionKey:`config.filters`,label:``,description:``,groupPath:`config.filters.linkedin`,includeLabel:`LinkedIn IDs to include`,excludeLabel:`LinkedIn IDs to exclude`,maxItems:200}).optional()}).check(e=>{UL(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),DR={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},OR=class extends GL{searchId=_R;schema=ER;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[yR.name]:this.catalogOutput(yR),[vR.name]:this.catalogOutput(vR),[wR.name]:this.catalogOutput(wR),[xR.name]:this.catalogOutput(xR),[bR.name]:this.catalogOutput(bR),[SR.name]:this.catalogOutput(SR),[CR.name]:this.catalogOutput(CR),[TR.name]:this.catalogOutput(TR)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return DR}},kR=ER,AR={searchId:_R,billableOperation:`companies-profiles-icypeas`,baseSearch:KL(`companies:profiles:icypeas@1`),label:`Find company profiles`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search a filter-based, general-purpose company database.`,tags:[W.COMPANY_PROFILES],docPath:qL(_R),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:_R,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:[]}}}}},jR=`people:profiles:clado@1`,MR=g(`name`),NR=g(`job_title`),PR=g(`company_name`),FR=g(`company_profile_url`),IR=g(`profile_url`),LR=g(`clado_person_match`),RR=r.object({search_id:r.literal(jR),connector:Ji.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(20),output_fields:L(r.object({[MR.name]:M({fieldName:MR.name}),[NR.name]:M({fieldName:NR.name}),[FR.name]:M({fieldName:FR.name}),[PR.name]:M({fieldName:PR.name}),[IR.name]:M({fieldName:IR.name}),[LR.name]:M({fieldName:LR.name})})),filters:r.object({query:tc({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})})})}),zR={default:{input:[{fields:[{outputField:`profile_url`}]}]}},BR=class extends GL{searchId=jR;schema=RR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[MR.name]:this.catalogOutput(MR),[NR.name]:this.catalogOutput(NR),[PR.name]:this.catalogOutput(PR),[IR.name]:this.catalogOutput(IR),[FR.name]:this.catalogOutput(FR),[LR.name]:this.catalogOutput(LR)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return zR}},VR=RR,HR={searchId:jR,billableOperation:`people-profiles-clado`,baseSearch:Zn(`people:profiles:clado@1`),label:`Find people profiles with Clado`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search through millions of LinkedIn profiles using natural language queries. This endpoint provides fast searching with AI-powered relevance matching.`,tags:[W.PEOPLE_PROFILES],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_search`,creditsPerSearch:3},provider:`clado`,defaultPayload:{search_id:jR,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:``}}}},UR=`people:profiles:clado@2`,WR=g(`name`),GR=g(`job_title`),KR=g(`company_name`),qR=g(`company_profile_url`),JR=g(`profile_url`),YR=g(`clado_person_match_v2`),XR=r.object({search_id:r.literal(UR),connector:Ji.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,max:1e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),search_id:ec({sectionKey:`general`,path:`config.search_id`,inputType:`text`,groupPath:`config.continue_existing_search`,label:`Search id`,description:`The id of the search you want to continue`}).nullable().default(``),offset:I({sectionKey:`general`,path:`config.offset`,groupPath:`config.continue_existing_search`,label:`Offset`,max:1e5,min:1,description:`To continue the previous search, provide both the search_id and the last offset.`}).nullish(),output_fields:L(r.object({[WR.name]:M({fieldName:WR.name}),[GR.name]:M({fieldName:GR.name}),[qR.name]:M({fieldName:qR.name}),[KR.name]:M({fieldName:KR.name}),[JR.name]:M({fieldName:JR.name}),[YR.name]:M({fieldName:YR.name})})),filters:r.object({query:tc({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`]})}),ZR={default:{input:[{fields:[{outputField:`profile_url`}]}]}},QR=class extends GL{searchId=UR;schema=XR;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[WR.name]:this.catalogOutput(WR),[GR.name]:this.catalogOutput(GR),[KR.name]:this.catalogOutput(KR),[JR.name]:this.catalogOutput(JR),[qR.name]:this.catalogOutput(qR),[YR.name]:this.catalogOutput(YR)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return ZR}},$R=XR,ez={searchId:UR,billableOperation:`people-profiles-clado`,baseSearch:Zn(`people:profiles:clado@2`),label:`Find people profiles`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search a growing dataset with semantic queries.`,tags:[],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_page`,creditsPerPage:3},provider:`clado`,defaultPayload:{search_id:UR,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:``}}}},tz=`people:employees:leadmagic@1`,nz=g(`name`),rz=g(`job_title`),iz=g(`company_website_url`),az=g(`company_name`),oz=r.object({search_id:r.literal(tz),connector:Ji.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,max:500,min:1,path:`config.limit`,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(50),output_fields:L(r.object({[nz.name]:M({fieldName:nz.name}),[az.name]:M({fieldName:az.name}),[iz.name]:M({fieldName:iz.name}),[rz.name]:M({fieldName:rz.name})})),filters:r.object({company_website_url:ec({path:`config.filters.company_website_url`,sectionKey:`config.filters`,groupPath:`config.filters.website`,inputType:`text`,description:`URL of the employer company.`,label:`Company Website URL`}).nullable()})})}),sz={default:{input:[{fields:[{outputField:iz.name}]}]}},cz=class extends GL{searchId=tz;schema=oz;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[nz.name]:this.catalogOutput(nz),[rz.name]:this.catalogOutput(rz),[iz.name]:this.catalogOutput(iz),[az.name]:this.catalogOutput(az)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return sz}},lz=oz,uz={searchId:tz,billableOperation:`people-employees-leadmagic`,baseSearch:KL(`people:employees:leadmagic@1`),label:`Employee finder`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search for employees of a company.`,tags:[W.PEOPLE_PROFILES],docPath:qL(tz),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:tz,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:``}}}},dz=`people:profiles:crustdata@1`,fz=g(`name`),pz=g(`company_website_url`),mz=g(`profile_url`),hz=g(`job_title`),gz=g(`crustdata_person_match`),_z=r.object({search_id:r.literal(dz),connector:Ji.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of results`}).default(100),cursor:ec({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}).nullable(),output_fields:L(r.object({[fz.name]:M({fieldName:fz.name}),[pz.name]:M({fieldName:pz.name}),[mz.name]:M({fieldName:mz.name}),[hz.name]:M({fieldName:hz.name}),[gz.name]:M({fieldName:gz.name})})),filters:r.object({locations:P({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Locations`,disableSearch:!1,required:!1,optionsDef:h(`locations`),groupPath:`config.filters.general`}).default([]),profile_headline_keywords:qs({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:qs({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_languages:N({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile languages`,disableSearch:!1,required:!1,options:m(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}).default([]),languages:N({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken languages`,disableSearch:!1,required:!1,options:m(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}).default([]),skills:P({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,placeholder:`.NET, PMO, ...`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.skills`,optionsDef:h(`skills`)}).default([]),years_of_experience:N({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}).default([]),current_seniority_levels:j({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),current_employers:k({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Current employers`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`person.current_employer_names.crustdata`)}),current_employers_website_urls:k({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Current employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),current_job_titles:k({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,order:1,groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}),current_employers_linkedin_industries:P({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Current employers industries`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`)}).default([]),years_at_current_company:N({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,options:m(`crustdata.years_of_experience`)}).default([]),previous_employers_website_urls:k({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),previous_seniority_levels:j({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,disableSearch:!0,optionsDef:Re(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}).default({include:[],exclude:[]}),previous_employers:k({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer name`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`person.past_employer_names.crustdata`)}),previous_job_titles:k({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}),previous_employers_linkedin_industries:P({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industry`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`)}).default([]),certifications:k({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,description:``}),honors:k({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,description:``}),recently_changed_jobs:$s({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:P({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}).default([]),degree_names:P({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}).default([]),school_names:P({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default([]),current_school_names:P({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`schools`)}).default([]),extracurricular_activities:k({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)})}).check(e=>{UL(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),vz={default:{input:[{fields:[]}]}},yz=class extends GL{searchId=dz;schema=_z;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[fz.name]:this.catalogOutput(fz),[pz.name]:this.catalogOutput(pz),[mz.name]:this.catalogOutput(mz),[hz.name]:this.catalogOutput(hz),[gz.name]:this.catalogOutput(gz)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return vz}},bz=_z,xz={searchId:dz,billableOperation:`people-profiles-crustdata`,baseSearch:KL(`people:profiles:crustdata@1`),label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[W.PEOPLE_PROFILES],docPath:qL(dz),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:dz,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:[]}}}},Sz=`people:profiles:exa@1`,Cz=g(`name`),wz=g(`profile_url`),Tz=g(`job_title`),Ez=g(`company_name`),Dz=g(`company_region`),Oz=g(`exa_match_evaluation`),kz=r.object({search_id:r.literal(Sz),connector:Ji.nullable().optional(),config:r.object({limit:I({path:`config.limit`,sectionKey:`general`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:L(r.object({[Cz.name]:M({fieldName:Cz.name}),[wz.name]:M({fieldName:wz.name}),[Tz.name]:M({fieldName:Tz.name}),[Ez.name]:M({fieldName:Ez.name}),[Dz.name]:M({fieldName:Dz.name}),[Oz.name]:M({fieldName:Oz.name})})),filters:r.object({query:tc({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})})})}),Az={default:{input:[{fields:[]}]}},jz=class extends GL{searchId=Sz;schema=kz;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Cz.name]:this.catalogOutput(Cz),[wz.name]:this.catalogOutput(wz),[Tz.name]:this.catalogOutput(Tz),[Ez.name]:this.catalogOutput(Ez),[Dz.name]:this.catalogOutput(Dz),[Oz.name]:this.catalogOutput(Oz)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Az}},Mz=kz,Nz={searchId:Sz,billableOperation:`people-profiles-exa`,baseSearch:KL(`people:profiles:exa@1`),label:`People finder (websets)`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Semantic AI search for people profiles. This search can take several minutes.`,tags:[W.COMPANY_PROFILES],docPath:qL(Sz),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:Sz,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:``}}}},Pz=`people:profiles:icypeas@1`,Fz=g(`name`),Iz=g(`job_title`),Lz=g(`profile_headline`),Rz=g(`company_website_url`),zz=g(`company_profile_url`),Bz=g(`profile_url`),Vz=g(`icypeas_person_match`),Hz=r.object({search_id:r.literal(Pz),connector:Ji.nullable().optional(),config:r.object({limit:I({path:`config.limit`,sectionKey:`general`,max:5e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:L(r.object({[Fz.name]:M({fieldName:Fz.name}),[Iz.name]:M({fieldName:Iz.name}),[Lz.name]:M({fieldName:Lz.name}),[Rz.name]:M({fieldName:Rz.name}),[zz.name]:M({fieldName:zz.name}),[Bz.name]:M({fieldName:Bz.name}),[Vz.name]:M({fieldName:Vz.name})})),filters:r.object({firstname:A({path:`config.filters.firstname`,sectionKey:`config.filters`,includeLabel:`First names to include`,excludeLabel:`First names to exclude`,description:``,placeholder:``,groupPath:`config.filters.personal_information`,maxItems:200}).optional(),lastname:A({path:`config.filters.lastname`,sectionKey:`config.filters`,includeLabel:`Last names to include`,excludeLabel:`Last names to exclude`,description:``,placeholder:``,groupPath:`config.filters.personal_information`,maxItems:200}).optional(),currentJobTitle:A({path:`config.filters.currentJobTitle`,sectionKey:`config.filters`,includeLabel:`Current job titles to include`,excludeLabel:`Current job titles to exclude`,description:``,placeholder:``,groupPath:`config.filters.job_information`,maxItems:200}).optional(),currentEmployersWebsiteUrls:A({groupPath:`config.filters.job_information`,path:`config.filters.currentEmployersWebsiteUrls`,sectionKey:`config.filters`,description:``,includeLabel:`Include current employer domains`,excludeLabel:`Exclude current employer domains`,maxItems:100}).optional(),pastEmployersWebsiteUrls:A({groupPath:`config.filters.job_information`,path:`config.filters.pastEmployersWebsiteUrls`,sectionKey:`config.filters`,description:``,includeLabel:`Past employers website URLs to include`,excludeLabel:`Past employers website URLs to exclude`,maxItems:100}).optional(),pastJobTitle:A({path:`config.filters.pastJobTitle`,sectionKey:`config.filters`,includeLabel:`Past job titles to include`,excludeLabel:`Past job titles to exclude`,description:``,placeholder:``,groupPath:`config.filters.job_information`,maxItems:200}).optional(),currentCompanyName:A({path:`config.filters.currentCompanyName`,sectionKey:`config.filters`,includeLabel:`Companies to include`,excludeLabel:`Companies to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:200}).optional(),pastCompanyName:A({path:`config.filters.pastCompanyName`,sectionKey:`config.filters`,includeLabel:`Past employers to include`,excludeLabel:`Past employers to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:200}).optional(),school:A({path:`config.filters.school`,sectionKey:`config.filters`,includeLabel:`Schools to include`,excludeLabel:`Schools to exclude`,label:``,description:``,placeholder:``,groupPath:`config.filters.education`,maxItems:200}).optional(),location:A({path:`config.filters.location`,sectionKey:`config.filters`,includeLabel:`Locations to include`,excludeLabel:`Locations to exclude`,description:`Filter by location`,placeholder:`e.g., US, FR, New York`,groupPath:`config.filters.geografic`,maxItems:200}).optional(),languages:A({path:`config.filters.languages`,sectionKey:`config.filters`,includeLabel:`Languages to include`,excludeLabel:`Languages to exclude`,description:`ex. EN, ES`,groupPath:`config.filters.languages`,maxItems:200}).optional(),skills:A({path:`config.filters.skills`,sectionKey:`config.filters`,includeLabel:`Skills to include`,excludeLabel:`Skills to exclude`,description:``,placeholder:``,groupPath:`config.filters.skills`,maxItems:200}).optional(),keyword:A({path:`config.filters.keyword`,sectionKey:`config.filters`,includeLabel:`Keywords to include`,excludeLabel:`Keywords to exclude`,description:``,placeholder:`CEO, Sales, Scrum`,groupPath:`config.filters.general_search`,maxItems:200}).optional()}).check(e=>{UL(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),Uz={default:{input:[{fields:[{outputField:`profile_url`}]}]}},Wz=class extends GL{searchId=Pz;schema=Hz;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Fz.name]:this.catalogOutput(Fz),[Iz.name]:this.catalogOutput(Iz),[Lz.name]:this.catalogOutput(Lz),[Rz.name]:this.catalogOutput(Rz),[zz.name]:this.catalogOutput(zz),[Bz.name]:this.catalogOutput(Bz),[Vz.name]:this.catalogOutput(Vz)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Uz}},Gz=Hz,Kz={searchId:Pz,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:KL(Pz),label:`Find people profiles`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search a filter-based, general-purpose lead database with people profiles.`,tags:[W.PEOPLE_PROFILES],docPath:qL(Pz),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:Pz,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:[]}}}}},qz={"people:profiles:crustdata@1":yz,"companies:profiles:crustdata@1":nR,"companies:profiles:exa@1":mR,"people:profiles:exa@1":jz,"people:profiles:icypeas@1":Wz,"companies:profiles:icypeas@1":OR,"people:employees:leadmagic@1":cz,"people:profiles:clado@1":BR,"people:profiles:clado@2":QR},Jz={"people:profiles:crustdata@1":bz,"companies:profiles:crustdata@1":rR,"companies:profiles:exa@1":hR,"people:profiles:exa@1":Mz,"people:profiles:icypeas@1":Gz,"companies:profiles:icypeas@1":kR,"people:employees:leadmagic@1":lz,"people:profiles:clado@1":VR,"people:profiles:clado@2":$R},Yz={"people:profiles:crustdata@1":xz,"companies:profiles:crustdata@1":iR,"companies:profiles:exa@1":gR,"people:profiles:exa@1":Nz,"people:profiles:icypeas@1":Kz,"companies:profiles:icypeas@1":AR,"people:employees:leadmagic@1":uz,"people:profiles:clado@1":HR,"people:profiles:clado@2":ez};function Xz(e){return qz[e]}function Zz(e){return Jz[e]}function Qz(e){return Yz[e].defaultPayload}const $z=t.discriminatedUnion(`search_id`,Object.values(Jz).map(e=>e)),eB=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=Qz(e.search_id);return t?{...e,config:vt(e?.config||{},t.config)}:e},$z);function tB(e){return Object.keys(Yz[e].defaultPayload.config.output_fields)}const nB=Ti,rB=t.object({value:di,status:ui,type:ci.optional(),format:Oi.nullable().optional(),resolved_by:Pi.nullable().optional(),widgets:wi.optional()}),iB=t.record(t.string(),rB.nullable()),aB=t.object({search:t.object({ref:HL}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(nB),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()})}),oB=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(iB),search_statuses:t.array(aB),organizationId:t.string()}).openapi(`SearchesResponseSchema`),sB=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),cB=sB.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),lB=t.object({config:cB.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(eB)}).openapi(`SearchesRequestSchema`);function uB(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function dB(){let e={};for(let t of Object.values(Yz)){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=uB(e.searchId);return uB(t.searchId)-n})}),e}const fB=dB();function pB(e){let t=[];for(let[n,r]of Object.entries(fB)){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:uB(i.searchId)})}return t}function mB(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 tB(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:fB}}function hB(e){return Yz[e]}function gB(e){let t=hB(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function _B(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e,is_default:!0}))}function vB(e){return _B(Hj(e).allowedUserConnectionProviders)}function yB(e){return _B([Dj(e).provider])}function bB(e){return _B([hB(e).provider])}const xB=[{id:`people`,label:`People`,color:`#8B7DFF`,order:0},{id:`companies`,label:`Companies`,color:`#10B981`,order:1},{id:`data`,label:`Data`,color:`#F59E0B`,order:2},{id:`deprecated`,label:`Deprecated`,color:`#94A3B8`,order:3}],SB=new Map(xB.map(e=>[e.id,e]));function CB(e){return SB.get(e)}function wB(){return xB}const TB={"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:[]},post_processing_exclude_company_profile_urls:[`https://www.linkedin.com/company/acme`],post_processing_exclude_company_names:[`Acme`]}}}],"companies:profiles:crustdata@2":[{search_id:`companies:profiles:crustdata@2`,config:{cursor:``,limit:10,filters:{hq_locations:{include:[`San Francisco, CA`],exclude:[]},crunchbase_categories:{include:[`Artificial Intelligence`],exclude:[]},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},company_types:{include:[],exclude:[]},linkedin_industries:{include:[`Technology`],exclude:[]},markets:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},headcount:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],revenue_in_usd:{from:1e4,to:1e6},last_funding_type:{include:[],exclude:[]},last_funding_amount:{from:null,to:null},number_of_followers:[],follower_growth_l6m_in_percent:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[`google.com`],exclude:[]}}}}],"people:profiles:crustdata@3":[{search_id:`people:profiles:crustdata@3`,config:{cursor:``,limit:10,filters:{locations:{include:[`Berlin, Germany`],exclude:[]},profile_headline_keywords:{include:[`Marketing`],exclude:[]},skills:{include:[`Python`,`Data Analysis`],exclude:[]},languages:{include:[`English`],exclude:[]},current_employment_job_titles:{include:[`Software Engineer`],exclude:[]},current_employment_job_functions:[`Engineering`],current_employment_seniority_levels:[`Senior`,`Director`],current_employer_headcount_brackets:[`51-200`],current_employment_tenure_brackets:[`1 to 2 years`],total_years_of_experience_brackets:[`3 to 5 years`]}}}],"posts:content:crustdata@1":[{search_id:`posts:content:crustdata@1`,config:{limit:10,filters:{keywords:[`LLM Evaluation`,`RAG`],keyword_operator:`OR`,date_posted:`past-month`,content_types:[`videos`],author_industries:[`Software Development`]}}}],"companies:entitysearch:parallel@1":[{search_id:`companies:entitysearch:parallel@1`,config:{objective:`AI startups in Europe that raised a Series A in 2024`,limit:100}}],"people:entitysearch:parallel@1":[{search_id:`people:entitysearch:parallel@1`,config:{objective:`Heads of Engineering at Series B fintech companies in the US`,limit:100}}],"people:eventguests:luma@1":[{search_id:`people:eventguests:luma@1`,connector:{strategy:`first`,connections:[]},config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},email:{enabled:!0,alias:``},luma_id:{enabled:!0,alias:``},registered_at:{enabled:!0,alias:``},luma_event_guest_match:{enabled:!0,alias:``}},filters:{event_id:`evt-sandbox-1`,approval_status:`approved`}}}],"sheet:rows@1":[{search_id:`sheet:rows@1`,connector:{strategy:`first`,connections:[]},config:{sheet:`demo-leads`,limit:100,cursor:``,include_metadata:!1}}],"bucket:entries@1":[{search_id:`bucket:entries@1`,connector:{strategy:`first`,connections:[]},config:{bucket:`crm-contacts`,limit:100,cursor:``,include_metadata:!1}}],"query:postgres@1":[{search_id:`query:postgres@1`,connector:{strategy:`first`,connections:[]},config:{query:`SELECT id, name, email FROM contacts ORDER BY id`,limit:100,page_number:1}}],"query:databricks@1":[{search_id:`query:databricks@1`,connector:{strategy:`first`,connections:[]},config:{query:`SELECT id, name, email FROM samples.tpch.customer ORDER BY id`,limit:100,page_number:1}}]};function EB(e,t,n){if(t==null)return{};try{let r=Qr(e,n)?.getStaticWidgets?.(t),i=lM(n,t);return jt(At(r||{},{display_value:i?{label:i}:void 0}))}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}var DB=class extends My{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function OB(e){let t=[];for(let n of e){if(n instanceof GL){t.push(n);continue}let e=n.search_id,r=Xz(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(eB.parse(n));t.push(i)}return t}function kB(e){try{return OB(e.searches)}catch(e){throw e instanceof DB?e:new Q([Z.ValidationFailed({error:e})])}}const AB=/[\\^$.+()|[\]{}]/g,jB=new Map;function MB(e){let t=jB.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(AB,`\\$&`)}let r=RegExp(`^${n}$`);return jB.set(e,r),r}function NB(e,t){return MB(t).test(e)}function PB(e,t){if(!t||t.length===0)return!1;for(let n of t)if(NB(e,n))return!0;return!1}function FB(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!PB(e,n)||r&&r.length>0&&PB(e,r))}function IB(e,t){return FB(e,t?.providers)}function LB(e,t){if(!t)return!0;if(!FB(e,t.pipes))return!1;if(t.providers){let n=Kj(e);if(n.length===0)return!0;if(!n.some(e=>IB(e,t)))return!1}return!0}function RB(e,t,n){return t?!(!FB(e,t.searches)||n!==void 0&&!IB(n,t)):!0}function zB(e,t,n){return t?!(!FB(e,t.searchesMulti)||n!==void 0&&!IB(n,t)):!0}function BB(e,t){return t?e.filter(e=>LB(e.pipeId,t)):e.slice()}function VB(e,t){return t?e.filter(e=>RB(e.searchId,t,e.provider)):e.slice()}function HB(e,t){return t?e.filter(e=>zB(e.searchId,t,e.provider)):e.slice()}function UB(e){return e.toLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean)}function WB(e){return e?e.flatMap(UB):[]}const GB={label:{prefix:100,exact:120},labelFirstWordBonus:40,keyword:{prefix:60,exact:70},tag:{prefix:40,exact:45},provider:{prefix:35,exact:40},id:{prefix:30,exact:35},description:{prefix:5,exact:6},exactLabelBonus:200},KB=GB;function qB(e){let t=UB(e.label);return{labelWords:t,keywordWords:WB(e.keywords),tagWords:WB(e.tags),providerWords:WB(e.providers),idWords:UB(e.id),descriptionWords:e.description?UB(e.description):[],normalizedLabel:t.join(` `)}}function JB(e,t,n){let r=0;for(let i of t){let t=i===e?n.exact:i.startsWith(e)?n.prefix:0;t>r&&(r=t)}return r}function YB(e,t){let n=0;for(let r=0;r<t.length;r++){let i=t[r],a=i===e?KB.label.exact:i.startsWith(e)?KB.label.prefix:0;a>0&&r===0&&(a+=KB.labelFirstWordBonus),a>n&&(n=a)}return n}function XB(e,t){let n=UB(t);if(n.length===0)return 0;let r=0;for(let t of n){let n=Math.max(YB(t,e.labelWords),JB(t,e.keywordWords,KB.keyword),JB(t,e.tagWords,KB.tag),JB(t,e.providerWords,KB.provider),JB(t,e.idWords,KB.id),JB(t,e.descriptionWords,KB.description));if(n===0)return 0;r+=n}return e.normalizedLabel===n.join(` `)&&(r+=KB.exactLabelBonus),r}function ZB(e){return e.keywords}function QB(e){let t=new Set(e.deprecatedProviders),n=Array.from(new Set([...e.managedProviders,...e.allowedUserConnectionProviders])).filter(e=>!t.has(e));return qB({label:e.label,id:e.pipeId,keywords:ZB(e),tags:e.tags,providers:n,description:e.description})}function $B(e){return qB({label:e.label,id:e.searchId,keywords:ZB(e),tags:e.tags,providers:[e.provider],description:e.description})}function eV(e){return qB({label:e.label,id:e.searchId,keywords:ZB(e),tags:e.tags,providers:[e.provider],description:e.description})}function tV(e){return qB({label:e.label,id:e.effectId,keywords:ZB(e),tags:e.tags,providers:Array.from(new Set([...e.managedProviders,...e.allowedUserConnectionProviders])),description:e.description})}function nV(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function rV(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function iV(e){return e.cost.allowManagedConnection?e.cost.credits.default:0}function aV(e){let t=Object.values(e.billableOperations).map(e=>e?.allowManagedConnection?e.credits.default:0);return t.length?Math.min(...t):0}function oV(e,t){let n=Math.max(1,t.minItems),r=Math.max(n,t.maxItems),i=[],a=[],o=0;for(let s of e){a.push(s),o+=t.sizeOf(s);let e=a.length>=r,c=o>=t.targetSize&&a.length>=n;(e||c)&&(i.push(a),a=[],o=0)}return a.length>0&&i.push(a),i}function sV(e){let t=sM(e);if(!t)return``;try{return te(t)||new URL(t).hostname}catch{return``}}const cV=[`http://`,`https://`,`mailto:`],lV=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function uV(e){return e?dV(e):[]}function dV(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&&lV.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=fV(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=fV(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:dV(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=fV(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:dV(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=fV(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:dV(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=fV(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=fV(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(cV.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:dV(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function fV(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(pV(e,r,n))return r;r+=1}return-1}function pV(e,t,n){if(t+n.length>e.length)return!1;for(let r=0;r<n.length;r++)if(e[t+r]!==n[r])return!1;return!0}export{oo as AI_MODELS,so as AI_MODEL_CATALOG,po as AI_MODEL_RAW_USD,wr as B2BPostMatchSchema,ze as BUCKET_TYPES,We as BucketClaimConfigSchema,Ge as BucketCounterConfigSchema,He as BucketFieldDefSchema,Ve as BucketFieldTypeSchema,Ue as BucketSchemaSchema,GB as CATALOG_SEARCH_WEIGHTS,co as CREDIT_USD_VALUE,Be as CURRENT_BUCKET_TYPE_VERSION,zi as CatalogSchemaRefSchema,EF as ConciseFieldValueSchema,na as ConditionBlockSchema,st as ConditionEvaluationError,ot as ConditionFieldNotFoundError,Ui as ConditionOperatorsSchema,St as EffectAllSelectionSchema,xt as EffectRowsSelectionSchema,wt as EffectSelectionSchema,Ct as EffectWindowSelectionSchema,WF as EffectsRequestSchema,GF as EffectsResponseSchema,UF as EffectsRunStatusSchema,KF as EffectsValidateRequestSchema,JF as EffectsValidateResponseSchema,qF as EffectsValidateStepSchema,Ii as ExpandedFieldValueSchema,Wc as FIELD_PLACEHOLDERS,ki as FieldAnnotationSchema,_M as FieldAnnotations,Ai as FieldAnnotationsSchema,ni as FieldNameSchema,Ei as FieldReasonSchema,di as FieldValueSchema,XI as FormStoreSchema,nL as HIGH_VOLUME_PRICING_MIN_CREDITS,Hi as JSONExtractSchema,fi as JSONMetaSchema,lo as MANAGED_TOKEN_MARGIN,zN as MANUAL_DEFAULT,Xi as NoConnectorSchema,_c as ObjectHasher,Ji as OptionalConnectorSchema,Ua as PIPE0_DEFAULT_API_KEY_METADATA_FLAG,Ha as PIPE0_DEFAULT_CONNECTION_PUBLIC_ID,ai as PIPE_IDS,Cj as PaginationTypeSchema,Sr as PersonProfileFieldSchema,Cw as PersonWorkemailWaterfall1Entry,Sw as PersonWorkemailWaterfall1PayloadSchema,xw as PersonWorkemailWaterfall1PipeClass,H as Pipe,My as Pipe0Error,oi as PipeIdSchema,Bj as PipePayloadSchema,ia as PipeRunIfSchema,Q as PipelineValidationError,ii as PipesEnvironmentSchema,Ti as PipesErrorSchema,Bi as PipesFieldDefinitionSchema,Vi as PipesFieldDefinitionsSchema,Li as PipesInputSchema,Qj as PipesRequestConfigSchema,$j as PipesRequestSchema,Zj as PipesResponseSchema,Vj as ProcessedPipePayloadSchema,_j as ProcessedSearchPayloadSchema,eB as ProcessedSearchesPayloadSchema,HF as ProcessedSheetEffectPayloadSchema,ri as ProviderNameSchema,Di as RECORD_FIELD_FORMATS,si as RECORD_FIELD_TYPES,jc as RESERVED_FIELD_NAMES,Wi as RUN_IF_OPERATOR_LABELS,Ki as RUN_IF_STATUS_OPERATORS,Gi as RUN_IF_VALUE_OPERATORS,LN as RUN_STATUS_OPTIONS,TF as RecordActionDetailSchema,Ni as RecordClaimedBySchema,OF as RecordDiffEntrySchema,Oi as RecordFieldFormatSchema,Fi as RecordFieldSchema,ui as RecordFieldStatusSchema,ci as RecordFieldTypeSchema,li as RecordIdSchema,Pi as RecordResolvedBySchema,Ri as RecordSchema,jy as RequestValidationError,Yi as RequiredConnectorSchema,Qi as RunIfStatusOperatorsSchema,$i as RunIfStatusValueSchema,Zi as RunIfValueOperatorsSchema,IN as RunStatusSchema,RN as SCHEDULED_DEFAULT,VL as SEARCHES_IDS,kD as SEARCH_IDS,nr as SENIORITY_LEVELS,yt as SHEET_EFFECT_IDS,$ as Search,yj as SearchErrorSchema,AD as SearchIdSchema,hj as SearchPayloadSchema,vj as SearchRequestSchema,wj as SearchResponseSchema,bj as SearchResultFieldSchema,xj as SearchResultSchema,nB as SearchesErrorSchema,HL as SearchesIdSchema,$z as SearchesPayloadSchema,sB as SearchesRequestBaseConfigSchema,lB as SearchesRequestSchema,oB as SearchesResponseSchema,rB as SearchesResultFieldSchema,iB as SearchesResultSchema,GL as SearchesSearch,aB as SearchesStatusSchema,B as SheetEffect,bt as SheetEffectIdSchema,BF as SheetEffectPayloadSchema,jF as SheetEffectStepSummarySchema,eI as SheetEffectValidationError,AF as SheetEffectsCountsSchema,kF as SheetEffectsDiffSchema,uo as TOKEN_BLOCK_SIZE_INPUT,fo as TOKEN_BLOCK_SIZE_OUTPUT,Ul as TYPES_TO_FORMATS,wo as TokenBlockAccumulator,DF as UpdatedActionDetailSchema,ra as ValueConditionBlockSchema,qI as WidgetsByKindSchema,wi as WidgetsSchema,Fc as all,Ta as analyzeLiquidTemplate,fL as analyzePipeFit,io as and,Ic as any,Jj as assertUniqueBillableOperations,h as autocomplete,Tr as b2bPostMatchExample,Ke as bucketConfigSchemaFor,$e as bucketSchemaFieldNames,et as bucketSchemasEqual,Qe as bucketSlugValue,xo as buildAiModelTokenBillableOperations,qB as buildCatalogSearchTarget,yM as buildDependencyGraph,Yc as buildInputRequirementFromTemplates,pI as buildResultColumns,bo as buildTokenNote,q as catalogInput,oV as chunkBySize,hc as cleanObject,sM as cleanUrl,oM as cleanWebsiteUrl,Zc as collectConstantReferencesFromTemplates,PI as collectPipeContextSelectFields,zc as collectRequirementFields,zI as collectSearchContextSelectFields,Xc as collectSecretReferencesFromTemplates,UI as collectSheetEffectContextSelectFields,MB as compilePattern,CI as computeTenure,vt as configDefaults,vo as creditsPerBlock,it as decodeBucketContract,fI as dedupeColumnNames,qe as defaultBucketConfig,ky as describeRequirement,rt as encodeBucketContract,kt as entityLogoFavicon,Ot as entityLogoProfessionalProfileUrl,hl as estimateGuardCredits,pt as evaluateConditionBlock,ls as extractFormMetadata,V as field,Zr as fieldBehaviorCatalog,Xr as fieldCatalog,Oy as fieldNameStr,uM as fieldTypeFromValue,FL as fieldsToObject,BB as filterPipeEntries,VB as filterSearchEntries,HB as filterSearchesEntries,RF as getAgentAllowedEffectIds,ho as getAiModelConnectionRequirements,mo as getAiModelProviders,So as getAiModelTokenBillingKeys,yo as getAiModelTokenCredits,go as getAllAiModelProviders,G as getBasePipeName,z as getBaseSheetEffectName,Ij as getDefaultOutputFields,Kj as getDefaultPipeProviders,Aj as getDefaultSearchOutputFields,tB as getDefaultSearchesOutputFields,nM as getDependentPipeNamesForInputProperty,rM as getDependentPipeNamesForPipe,sV as getDomain,fM as getExpansionState,Et as getFaviconUrlGoogle,g as getField,Qr as getFieldBehavior,zl as getFieldDisplayLabel,mM as getFieldWidgets,kj as getInitialSearchTableData,pB as getInitialSearchesTableData,QF as getInitialSheetEffectTableData,Yj as getInitialTableData,Uc as getInputHash,Eo as getJsonMetaForFieldDef,iV as getLoweestSearchCreditAmount,rV as getLoweestSearchesCreditAmount,nV as getLowestPipeCreditAmount,aV as getLowestSheetEffectCreditAmount,ti as getOutputFieldInfoFromDef,Uj as getPipeBillableOperationDef,eL as getPipeCategoryEntries,$I as getPipeCategoryEntry,Lj as getPipeClass,Hc as getPipeConfigHash,Rj as getPipeDefaultPayload,K as getPipeDocsURI,Hj as getPipeEntry,OI as getPipeFormMask,tM as getPipeInstances,FI as getPipePayloadFormConfig,zj as getPipePayloadSchema,QB as getPipeSearchTarget,Wj as getPipeVersion,X as getProviderBillableOperation,Qc as getProviderCreditsFromBillableOperations,BL as getProviderEntry,hI as getReadableFieldStatus,_B as getSandboxConnections,vB as getSandboxConnectionsForPipe,yB as getSandboxConnectionsForSearch,bB as getSandboxConnectionsForSearches,wB as getSearchCategoryEntries,CB as getSearchCategoryEntry,mj as getSearchClass,gj as getSearchDefaultPayload,Dj as getSearchEntry,EB as getSearchFieldWidgets,kI as getSearchFormMask,HP as getSearchInstance,RI as getSearchPayloadFormConfig,Sj as getSearchPayloadSchema,$B as getSearchSearchTarget,jj as getSearchTableDataAggregates,Tj as getSearchVersion,Xz as getSearchesClass,Qz as getSearchesDefaultPayload,hB as getSearchesEntry,hM as getSearchesFieldWidgets,OB as getSearchesInstances,Zz as getSearchesPayloadSchema,eV as getSearchesSearchTarget,mB as getSearchesTableDataAggregates,uB as getSearchesVersion,xr as getSeniorityEmojiFromTitle,br as getSeniorityLevelFromTitle,_t as getSheetEffectCategoryEntries,gt as getSheetEffectCategoryEntry,FF as getSheetEffectClass,vc as getSheetEffectConfigHash,VF as getSheetEffectDefaultPayload,IF as getSheetEffectEntry,AI as getSheetEffectFormMask,uI as getSheetEffectInstance,HI as getSheetEffectPayloadFormConfig,LF as getSheetEffectPayloadSchema,tV as getSheetEffectSearchTarget,eM as getStartingCostPerPipesProvider,Mj as getStartingCostPerSearchProvider,gB as getStartingCostPerSearchesProvider,Xj as getTableDataAggregates,iL as getTier,pM as getUnexpandedValue,Dt as ifDefined,R as inputFields,RL as inputFromRecord,LL as inputFromRecordArr,IL as inputFromRecords,WI as inputGuards,zF as isAgentAllowedEffect,ei as isCatalogField,Xn as isEmptyValue,$r as isFieldName,sL as isHighVolumeEligible,LB as isPipeAllowed,IB as isProviderAllowed,Rc as isRequirementMet,Bc as isRequirementSatisfiedByRecord,Mc as isReservedFieldName,RB as isSearchAllowed,zB as isSearchesAllowed,_o as isTokenBilledOperations,Ga as joinConnectionString,cL as listHighVolumeEligibleOperations,oL as listTiers,ml as managedDefaultCreditOf,Ze as mappedBucketFieldNames,el as markRecordFieldAsComplete,rl as markRecordFieldAsFailed,nl as markRecordFieldAsNoResult,tl as markRecordFieldAsPending,al as markRecordFieldAsProcessing,il as markRecordFieldAsSkipped,PB as matchesAny,NB as matchesPattern,ss as mergeFormConfig,At as mergeWidgets,C as noConnectorInput,dI as normalizeColumnName,Lc as optional,S as optionalConnectorInput,ao as or,L as outputFields,wa as parseLiquidTemplate,va as parseOutputTagArgs,CL as parseRecordValueOrError,Ya as parseRelaxedObject,uV as parseRichText,J as perUnit,Cr as personProfileMatchExample1,Fj as pipeCatalog,ZI as pipeCategoryCatalog,Nj as pipeClassCatalog,Pj as pipePayloadSchemaCatalog,Ps as pipesAsyncIncludeExcludeSelectInput,os as pipesConditionInput,Ks as pipesContextSelectInput,Is as pipesDateRangeInput,Ls as pipesDestinationFieldConfig,Ts as pipesFieldSelectInput,Cs as pipesFieldsSelectInput,Os as pipesIncludeExcludeInput,Ns as pipesIncludeExcludeSelectInput,T as pipesInputField,Us as pipesIntInput,Io as pipesJsonExtractionInput,Gs as pipesJsonSchemaField,Vs as pipesLLMSelectInput,Ms as pipesLooseObjectInput,ks as pipesMultiCreateInput,Hs as pipesMultiSelectInput,Ws as pipesNumberInput,D as pipesOptionalBooleanInput,As as pipesOrderedMultiCreateInput,O as pipesOutputField,_ as pipesPayloadRegistry,ds as pipesPromptInput,E as pipesProviderInput,Fs as pipesRangeInput,x as pipesRunIfInput,Bs as pipesSelectInput,tL as pipesSnippetCatalog,js as pipesTaggedOrderedMultiCreateInput,ps as pipesTaggedTextInput,fs as pipesTemplateInput,Rs as pipesTextInput,zs as pipesTextareaInput,ws as pipesTypedFieldsSelectInput,U as placeholder,zL as processInputObjects,vT as projectOptionsDef,_T as projectScopedSheetOptionsDef,Ye as providedCreationName,Je as providedCreationPolicy,aa as providerCatalog,Y as rateLimitRatioFallingProgression,qM as renameFieldInPipePayloads,Sa as renderLiquidTemplate,Ca as renderLiquidTemplateSync,hs as requiredConnectorInput,$c as requirementToInputFields,Ay as requirementUnmetMessage,no as requiresConnection,ro as requiresField,DI as resolveFormMask,Xe as resolveMappingEntry,mT as roundrobinBucketSlug,pT as roundrobinFilterKey,tI as runSheetEffectsValidation,BN as runStatusesToQueueConfig,XB as scoreCatalogSearch,pj as searchCatalog,xB as searchCategoryCatalog,dj as searchClassCatalog,fj as searchPayloadSchemaCatalog,TB as searchSnippetCatalog,F as searchesAsyncIncludeExcludeSelectInput,P as searchesAsyncMultiSelectInput,Yz as searchesCatalog,qz as searchesClassCatalog,rc as searchesContextSelectInput,Zs as searchesDateRangeInput,Ys as searchesExactRangeInput,A as searchesIncludeExcludeInput,j as searchesIncludeExcludeSelectInput,I as searchesIntInput,Js as searchesMinMaxIntInput,k as searchesMultiCreateInput,N as searchesMultiSelectInput,ic as searchesNumberField,Qs as searchesOptionalBooleanInput,vs as searchesOptionalConnectorInput,$s as searchesOptionalNullableBooleanInput,qs as searchesOrderedMultiCreateInput,M as searchesOutputField,v as searchesPayloadRegistry,Jz as searchesPayloadSchemaCatalog,Xs as searchesRangeInput,_s as searchesRequiredConnectorInput,nc as searchesSelectInput,ec as searchesTextInput,tc as searchesTextareaField,rr as seniorityLevelSchema,xT as sheetColumnsOptionsDef,PF as sheetEffectCatalog,mt as sheetEffectCategoryCatalog,MF as sheetEffectClassCatalog,NF as sheetEffectPayloadSchemaCatalog,$F as sheetEffectSnippetCatalog,as as sheetEffectsConditionInput,fc as sheetEffectsContextSelectInput,Es as sheetEffectsFieldsSelectInput,lc as sheetEffectsIntInput,pc as sheetEffectsLLMSelectInput,cc as sheetEffectsMultiSelectInput,w as sheetEffectsNoConnectorInput,dc as sheetEffectsOptionalBooleanInput,xs as sheetEffectsOptionalConnectorInput,uc as sheetEffectsOptionalIntInput,y as sheetEffectsPayloadRegistry,bs as sheetEffectsRequiredConnectorInput,mc as sheetEffectsSearchPayloadInput,sc as sheetEffectsSelectInput,Ds as sheetEffectsSelectionInput,ac as sheetEffectsTextInput,oc as sheetEffectsTextareaInput,gT as sheetOptionsDef,Hl as sortObjectKeys,Gj as sortPipeCatalogByBasePipe,Ej as sortSearchCatalogByBaseSearch,dB as sortSearchesCatalogByBaseSearch,XF as sortSheetEffectCatalogByBaseEffect,Wa as splitConnectionString,Re as staticAutocomplete,m as staticOptions,Vl as stringify,Mt as stripStaticWidgets,iI as summarizeEffectRun,SI as tagPrimaryCurrentEducation,jt as tagStaticWidgets,Bl as testPrint,aL as tierAtOrBelow,Co as tokenEstimate,EL as transformIntoResponse,at as tryDecodeBucketContract,Xa as tryParseRelaxedObject,bM as validatePipesOrError,kB as validateSearches,rI as validateSheetEffectsOrError,Z as validationErrorMessages};