//#region src/generated/openapi.types.d.ts /** * This file was auto-generated by openapi-typescript. * Do not make direct changes to the file. */ interface paths { "/v1/pipes/run/sync": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** @description Enrich data synchronously. This endpoint waits for the enrichment to complete before returning a result. Use with fewer than 10 records. To enrich more data at once use the '/run' endpoint. */ post: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { config?: components["schemas"]["PipesRequestConfig"]; field_annotations?: components["schemas"]["PipesFieldAnnotations"]; pipes: components["schemas"]["PipePayload"][]; input: components["schemas"]["PipesInputSchema"][]; scopes?: string[]; }; }; }; responses: { /** @description Run pipeline request */200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["PipesResponseSchema"]; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Required resource not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Still running — poll the async endpoint */ 408: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Queued-record hard limit reached (or the request-rate bucket was exceeded) */ 429: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/pipes/run": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** @description Enrich data asynchronously. Create an enrichment task. Check this task by polling the '/check' endpoint until the status becomes 'completed'. */ post: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { config?: components["schemas"]["PipesRequestConfig"]; field_annotations?: components["schemas"]["PipesFieldAnnotations"]; pipes: components["schemas"]["PipePayload"][]; input: components["schemas"]["PipesInputSchema"][]; scopes?: string[]; }; }; }; responses: { /** @description Run pipeline request */201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["PipesResponseSchema"]; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Required resource not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Queued-record hard limit reached (or the request-rate bucket was exceeded) */ 429: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/pipes/check/{run_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** @description Check status of enrichment task. Poll this endpoint until the status becomes 'completed' or 'failed'. Recommended polling intervals are between 1-3s. */ get: { parameters: { query?: never; header?: never; path: { run_id: string | null; }; cookie?: never; }; requestBody?: never; responses: { /** @description Return current processing state */200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["PipesResponseSchema"]; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/pipes/cancel/{run_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** @description Cancel an enrichment run that is still queued (status 'pending'). Canceling returns the run's records to your capacity immediately (see the X-P1/P2/P3-Capacity headers), which can restore a better task priority for subsequent submissions. Runs that are already processing, finished, or created by sheets cannot be canceled. */ post: { parameters: { query?: never; header?: never; path: { run_id: string | null; }; cookie?: never; }; requestBody?: never; responses: { /** @description The canceled run */200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["PipesResponseSchema"]; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Run is no longer pending */ 409: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/pipes/validate": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** @description Validate a pipes enrichment request without executing it. Checks schema, pipe dependencies, ordering, run_if conditions, and connector requirements. */ post: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { config?: components["schemas"]["PipesRequestConfig"]; field_annotations?: components["schemas"]["PipesFieldAnnotations"]; pipes: components["schemas"]["PipePayload"][]; input: components["schemas"]["PipesInputSchema"][]; scopes?: string[]; }; }; }; responses: { /** @description Validation result */200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @enum {boolean} */valid: true; } | { /** @enum {boolean} */valid: false; errors: { type: string; message: string; pipe_id?: string; field_name?: string; detail?: string; }[]; }; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Required resource not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/pipes/connections": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** @description Retrieve available user connections per pipeId */ post: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { /** @enum {string} */pipe_id: "prompt:run@1" | "agent:run@1" | "company:newssummary:website@1" | "company:newssummary:domain@1" | "company:techstack:builtwith@1" | "company:techstack:builtwith@2" | "company:websiteurl:email@1" | "company:domain:workemail@1" | "company:funding:leadmagic@1" | "company:funding:waterfall@1" | "people:workemail:waterfall@1" | "person:workemail:waterfall@1" | "people:email:iswork@1" | "email:iswork@1" | "people:name:split@1" | "person:name:split@1" | "person:name:join@1" | "people:email:validate:zerobounce@2" | "email:validate:zerobounce@1" | "company:overview@1" | "company:overview@2" | "company:overview@3" | "json:extract:multi@1" | "email:write@1" | "message:write@1" | "email:send:resend@1" | "email:send:gmail@1" | "email:draft:gmail@1" | "message:send:slack@1" | "message:send-direct:slack@1" | "template:fill@1" | "contact:create:resend@1" | "lead:enroll:lemlist@1" | "contact:match:hubspot@1" | "company:match:hubspot@1" | "deal:match:hubspot@1" | "object:update:hubspot@1" | "object:associations:hubspot@1" | "activity:log:hubspot@1" | "person:match:salesforce@1" | "account:match:salesforce@1" | "opportunity:match:salesforce@1" | "record:lookup:salesforce@1" | "record:update:salesforce@1" | "record:assert:salesforce@1" | "activities:find:salesforce@1" | "activity:log:salesforce@1" | "person:match:attio@1" | "company:match:attio@1" | "deal:match:attio@1" | "record:match:attio@1" | "record:lookup:attio@1" | "record:update:attio@1" | "activities:find:attio@1" | "lead:enroll:amplemarket@1" | "people:match:role:waterfall@1" | "role:waterfall@1" | "roles:waterfall@1" | "company:identity@2" | "company:identity@3" | "company:identity:crustdata@1" | "people:phone:profile:waterfall@1" | "person:mobile:profileurl:waterfall@1" | "people:personalemail:profile:waterfall@1" | "person:personalemail:profileurl:waterfall@1" | "people:profile:waterfall@1" | "person:profile:waterfall@1" | "person:profile:waterfall@2" | "people:profileurl:email:waterfall@1" | "person:profileurl:email:waterfall@1" | "person:profileurl:name@1" | "person:email:validate:millionverifier@1" | "person:mobile:workemail:waterfall@1" | "fields:merge@1" | "field:slugify@1" | "field:domainify@1" | "field:timestamp@1" | "formula:run@1" | "signals:personprofilematch@1" | "website:scrape:firecrawl@1" | "website:extract:parallel@1" | "website:markdown:parallel@1" | "row:append:sheet@1" | "row:expandappend:sheet@1" | "row:roundrobin:sheet@1" | "bucket:claim@1" | "stream:enroll@1" | "stream:unenroll@1" | "bucket:count@1" | "bucket:check@1" | "bucket:countif@1" | "rows:find:sheet@1" | "rows:delete:sheet@1" | "rows:find:postgres@1" | "rows:find:databricks@1" | "company:lookalikes:companyenrich@2" | "person:posts:content:crustdata@1" | "profile:posts:x@1" | "post:create:x@1" | "ads:linkedin:waterfall@1" | "ads:google:waterfall@1" | "ads:meta:waterfall@1" | "company:match:crustdata@1" | "company:match:crustdata@2" | "company:match:amplemarket@1" | "company:jobs:amplemarket@1" | "people:profile:workemail:crustdata@1" | "person:profile:workemail:crustdata@1" | "people:workemail:profileurl:waterfall@1" | "person:workemail:profileurl:waterfall@1" | "people:identity:email:waterfall@1" | "person:identity:email:waterfall@1" | "person:identity:email:waterfall@2" | "person:devprofileurl:profileurl:waterfall@1" | "http:request@1" | "company:identity@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1"; /** * @default production * @enum {string} */ environment?: "production" | "sandbox"; public_ids?: string[]; }; }; }; responses: { /** @description Custom pipe connections */200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: { public_id: string; provider: string; is_default: boolean; /** @enum {string} */ ownership_level: "organization" | "team" | "user"; }[]; }; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Required resource not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/pipes/field-context": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** @description Get contextual data (dropdown options, etc.) for a pipe config field that supports dynamic context. */ post: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { field_path: string; /** @default */ query?: string; payload: { [key: string]: unknown; }; /** * @default production * @enum {string} */ environment?: "production" | "sandbox"; }; }; }; responses: { /** @description Field context */200: { headers: { [name: string]: unknown; }; content: { "application/json": { field_options: { [key: string]: { options: { value: string; label: string; widgets?: { provider_logo?: { /** @enum {string} */provider: "pipe0" | "findymail" | "crustdata" | "hunter" | "zerobounce" | "millionverifier" | "googlemaps" | "gemini" | "anthropic" | "leadmagic" | "mixrank" | "builtwith" | "perplexity" | "serper" | "icypeas" | "prospeo" | "clado" | "resend" | "slack" | "gmail" | "googlecalendar" | "firecrawl" | "exa" | "openai" | "companyenrich" | "logodev" | "amplemarket" | "parallel" | "surfe" | "wiza" | "aviato" | "forager" | "luma" | "postgres" | "databricks" | "lemlist" | "hubspot" | "salesforce" | "attio" | "x" | "hackernews" | "calcom"; }; emoji?: { char: string; }; icon?: { /** @enum {string} */key: "school" | "user" | "location" | "language" | "brain" | "book" | "web" | "plug" | "money" | "office" | "job" | "search" | "output" | "input" | "mix" | "bill" | "linkedin" | "text" | "workflow" | "letter" | "source" | "activity" | "boxes" | "competition" | "bolt" | "star" | "scholar" | "briefcase" | "history" | "sparkles" | "list" | "sliders" | "factory" | "award" | "tags" | "handshake" | "contact" | "mail" | "calendar" | "chart" | "code" | "braces" | "filter"; }; logo_url?: { url: string; alt?: string; }; pricing?: { credits: number; }; token_pricing?: { inputPerBlock: number; outputPerBlock: number; blockSize: number; }; field_type?: { type: string; format?: string; }; }; data?: { [key: string]: string; }; }[]; }; }; }; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Required resource not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/searches/check/{run_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** @description Check status of search task. Poll this endpoint to until the status becomes 'completed'. Recommended polling intervals are between 1-3s. */ get: { parameters: { query?: never; header?: never; path: { run_id: string | null; }; cookie?: never; }; requestBody?: never; responses: { /** @description Return current processing state */200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SearchesResponseSchema"]; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/searches/run/sync": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** @description Search for companies and leads synchronously. This endpoint waits for the search to complete before returning a result. For large search requests this endpoint will time out. */ post: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["SearchesRequestSchema"]; }; }; responses: { /** @description Run searches request */200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SearchesResponseSchema"]; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Required resource not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/searches/run": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** @description Use multiple data sources to search for people and company data. */ post: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["SearchesRequestSchema"]; }; }; responses: { /** @description Run pipeline request */201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SearchesResponseSchema"]; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Required resource not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/search/check/{run_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** @description Check status of search task. */ get: { parameters: { query?: never; header?: never; path: { run_id: string | null; }; cookie?: never; }; requestBody?: never; responses: { /** @description Return current processing state */200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SearchResponseSchema"]; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/search/cancel/{run_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** @description Cancel a search run that is still queued (status 'pending'). Canceling returns the run to your capacity immediately (see the X-P1/P2/P3-Capacity headers). Runs that are already processing or finished cannot be canceled. */ post: { parameters: { query?: never; header?: never; path: { run_id: string | null; }; cookie?: never; }; requestBody?: never; responses: { /** @description The canceled run */200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SearchResponseSchema"]; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Run is no longer pending */ 409: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/search/run/sync": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** @description Search for people and companies and receive the results immediately. This endpoint can time out on large requests. */ post: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["SearchRequestSchema"]; }; }; responses: { /** @description Run searches request */200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SearchResponseSchema"]; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Required resource not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Still running — poll the async endpoint */ 408: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Queued-record hard limit reached (or the request-rate bucket was exceeded) */ 429: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/search/run": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** @description Search for people and companies */ post: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["SearchRequestSchema"]; }; }; responses: { /** @description Run search request */201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SearchResponseSchema"]; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Required resource not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Queued-record hard limit reached (or the request-rate bucket was exceeded) */ 429: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/search/validate": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** @description Validate a search request without executing it. Checks search_id, filters, and connector configuration. */ post: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["SearchRequestSchema"]; }; }; responses: { /** @description Validation result */200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @enum {boolean} */valid: true; } | { /** @enum {boolean} */valid: false; errors: { type: string; message: string; detail?: string; }[]; }; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Required resource not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/search/connections": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** @description Retrieve available user connections per searchId */ post: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { /** @enum {string} */search_id: "companies:profiles:crustdata@1" | "companies:profiles:crustdata@2" | "companies:profiles:crustdata@3" | "companies:profiles:amplemarket@1" | "companies:profiles:amplemarket@2" | "jobs:crustdata@1" | "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" | "research:agent@1" | "people:eventguests:luma@1" | "people:channelmembers:slack@1" | "events:googlecalendar@1" | "sheet:rows@1" | "bucket:entries@1" | "query:postgres@1" | "query:databricks@1" | "posts:content:crustdata@1" | "posts:x@1" | "people:followers:x@1" | "people:followers:self:x@1" | "contacts:hubspot@1" | "companies:hubspot@1" | "deals:hubspot@1" | "owners:hubspot@1" | "contacts:salesforce@1" | "leads:salesforce@1" | "accounts:salesforce@1" | "opportunities:salesforce@1" | "users:salesforce@1" | "query:salesforce@1" | "people:attio@1" | "companies:attio@1" | "deals:attio@1" | "records:attio@1" | "entries:attio@1" | "query:attio@1" | "users:attio@1"; /** * @default production * @enum {string} */ environment?: "production" | "sandbox"; public_ids?: string[]; }; }; }; responses: { /** @description Custom search connections */200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: { public_id: string; provider: string; is_default: boolean; /** @enum {string} */ ownership_level: "organization" | "team" | "user"; }[]; }; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Required resource not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/search/field-context": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** @description Get contextual data (dropdown options, etc.) for a search field that supports dynamic context. */ post: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { field_path: string; /** @default */ query?: string; payload: { [key: string]: unknown; }; /** * @default production * @enum {string} */ environment?: "production" | "sandbox"; }; }; }; responses: { /** @description Field context */200: { headers: { [name: string]: unknown; }; content: { "application/json": { field_options: { [key: string]: { options: { value: string; label: string; widgets?: { provider_logo?: { /** @enum {string} */provider: "pipe0" | "findymail" | "crustdata" | "hunter" | "zerobounce" | "millionverifier" | "googlemaps" | "gemini" | "anthropic" | "leadmagic" | "mixrank" | "builtwith" | "perplexity" | "serper" | "icypeas" | "prospeo" | "clado" | "resend" | "slack" | "gmail" | "googlecalendar" | "firecrawl" | "exa" | "openai" | "companyenrich" | "logodev" | "amplemarket" | "parallel" | "surfe" | "wiza" | "aviato" | "forager" | "luma" | "postgres" | "databricks" | "lemlist" | "hubspot" | "salesforce" | "attio" | "x" | "hackernews" | "calcom"; }; emoji?: { char: string; }; icon?: { /** @enum {string} */key: "school" | "user" | "location" | "language" | "brain" | "book" | "web" | "plug" | "money" | "office" | "job" | "search" | "output" | "input" | "mix" | "bill" | "linkedin" | "text" | "workflow" | "letter" | "source" | "activity" | "boxes" | "competition" | "bolt" | "star" | "scholar" | "briefcase" | "history" | "sparkles" | "list" | "sliders" | "factory" | "award" | "tags" | "handshake" | "contact" | "mail" | "calendar" | "chart" | "code" | "braces" | "filter"; }; logo_url?: { url: string; alt?: string; }; pricing?: { credits: number; }; token_pricing?: { inputPerBlock: number; outputPerBlock: number; blockSize: number; }; field_type?: { type: string; format?: string; }; }; data?: { [key: string]: string; }; }[]; }; }; }; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Required resource not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/{organizationId}/connections": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** @description Get connections visible to the caller: organization-level, the caller's team-level (optionally narrowed by team_id), and the caller's own user-level connections. */ get: { parameters: { query?: { /** @description Current team context: restricts team-level connections to this team (caller must be a member). */team_id?: string; }; header?: never; path: { organizationId: string | null; }; cookie?: never; }; requestBody?: never; responses: { /** @description List of connections */200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: { id: string; public_id: string; provider: string; /** @enum {string} */ method: "api_key" | "oauth_token" | "oauth_token_bundle" | "access_link"; encryption_version: string; metadata: string | number | boolean | null | { [key: string]: unknown; } | unknown[]; organization_id: string; /** @enum {string} */ ownership_level: "organization" | "team" | "user"; team_id: string | null; user_id: string | null; external_account_id: string | null; scopes: string[]; is_active: boolean; is_default: boolean; /** Format: date */ created_at: string; /** Format: date */ updated_at: string; }[]; }; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; put?: never; /** @description Create custom connection. New connections start USER-scoped (private to their creator) unless ownership_level says otherwise; promote later via PATCH. The first connection created for a provider within a scope automatically becomes that scope's default (is_default). */ post: { parameters: { query?: never; header?: never; path: { organizationId: string | null; }; cookie?: never; }; requestBody: { content: { "application/json": { /** @enum {string} */method: "api_key"; public_id: string; /** @enum {string} */ provider: "pipe0" | "findymail" | "crustdata" | "hunter" | "zerobounce" | "millionverifier" | "googlemaps" | "gemini" | "anthropic" | "leadmagic" | "mixrank" | "builtwith" | "perplexity" | "serper" | "icypeas" | "prospeo" | "clado" | "resend" | "slack" | "gmail" | "googlecalendar" | "firecrawl" | "exa" | "openai" | "companyenrich" | "logodev" | "amplemarket" | "parallel" | "surfe" | "wiza" | "aviato" | "forager" | "luma" | "postgres" | "databricks" | "lemlist" | "hubspot" | "salesforce" | "attio" | "x" | "hackernews" | "calcom"; secret: string; /** * @default user * @enum {string} */ ownership_level?: "organization" | "team" | "user"; team_id?: string | null; } | { /** @enum {string} */method: "oauth_token"; public_id: string; /** @enum {string} */ provider: "pipe0" | "findymail" | "crustdata" | "hunter" | "zerobounce" | "millionverifier" | "googlemaps" | "gemini" | "anthropic" | "leadmagic" | "mixrank" | "builtwith" | "perplexity" | "serper" | "icypeas" | "prospeo" | "clado" | "resend" | "slack" | "gmail" | "googlecalendar" | "firecrawl" | "exa" | "openai" | "companyenrich" | "logodev" | "amplemarket" | "parallel" | "surfe" | "wiza" | "aviato" | "forager" | "luma" | "postgres" | "databricks" | "lemlist" | "hubspot" | "salesforce" | "attio" | "x" | "hackernews" | "calcom"; access_token: string; /** * @default user * @enum {string} */ ownership_level?: "organization" | "team" | "user"; team_id?: string | null; } | { /** @enum {string} */method: "oauth_token_bundle"; public_id: string; /** @enum {string} */ provider: "pipe0" | "findymail" | "crustdata" | "hunter" | "zerobounce" | "millionverifier" | "googlemaps" | "gemini" | "anthropic" | "leadmagic" | "mixrank" | "builtwith" | "perplexity" | "serper" | "icypeas" | "prospeo" | "clado" | "resend" | "slack" | "gmail" | "googlecalendar" | "firecrawl" | "exa" | "openai" | "companyenrich" | "logodev" | "amplemarket" | "parallel" | "surfe" | "wiza" | "aviato" | "forager" | "luma" | "postgres" | "databricks" | "lemlist" | "hubspot" | "salesforce" | "attio" | "x" | "hackernews" | "calcom"; access_token: string; refresh_token: string; /** * @default user * @enum {string} */ ownership_level?: "organization" | "team" | "user"; team_id?: string | null; }; }; }; responses: { /** @description Create credentials */201: { headers: { [name: string]: unknown; }; content: { "application/json": { id: string; public_id: string; provider: string; /** @enum {string} */ method: "api_key" | "oauth_token" | "oauth_token_bundle" | "access_link"; encryption_version: string; metadata: string | number | boolean | null | { [key: string]: unknown; } | unknown[]; organization_id: string; /** @enum {string} */ ownership_level: "organization" | "team" | "user"; team_id: string | null; user_id: string | null; external_account_id: string | null; scopes: string[]; is_active: boolean; is_default: boolean; /** Format: date */ created_at: string; /** Format: date */ updated_at: string; }; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/{organizationId}/connections/{connectionId}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** @description Delete custom connection */ delete: { parameters: { query?: never; header?: never; path: { organizationId: string | null; connectionId: string | null; }; cookie?: never; }; requestBody?: never; responses: { /** @description Task deleted */204: { headers: { [name: string]: unknown; }; content?: never; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; options?: never; head?: never; /** @description Update a connection: toggle is_default (setting it to true makes this connection the default for its provider within its scope and unsets the previous default), and/or PROMOTE its ownership scope (user→team, user→org, team→org — never downward). */ patch: { parameters: { query?: never; header?: never; path: { organizationId: string | null; connectionId: string | null; }; cookie?: never; }; requestBody: { content: { "application/json": { is_default?: boolean; /** @enum {string} */ ownership_level?: "organization" | "team"; team_id?: string | null; }; }; }; responses: { /** @description Updated connection */200: { headers: { [name: string]: unknown; }; content: { "application/json": { id: string; public_id: string; provider: string; /** @enum {string} */ method: "api_key" | "oauth_token" | "oauth_token_bundle" | "access_link"; encryption_version: string; metadata: string | number | boolean | null | { [key: string]: unknown; } | unknown[]; organization_id: string; /** @enum {string} */ ownership_level: "organization" | "team" | "user"; team_id: string | null; user_id: string | null; external_account_id: string | null; scopes: string[]; is_active: boolean; is_default: boolean; /** Format: date */ created_at: string; /** Format: date */ updated_at: string; }; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; trace?: never; }; "/v1/{organizationId}/connections/{connectionId}/secret": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; /** @description Replace a connection's secret IN PLACE. The connection keeps its stable public_id, scope, and default flag, so every sheet or workflow referencing it keeps working — e.g. swap in a new key after the previous owner left. The method must match the connection's existing method. */ put: { parameters: { query?: never; header?: never; path: { organizationId: string | null; connectionId: string | null; }; cookie?: never; }; requestBody: { content: { "application/json": { /** @enum {string} */method: "api_key"; secret: string; } | { /** @enum {string} */method: "oauth_token"; access_token: string; } | { /** @enum {string} */method: "oauth_token_bundle"; access_token: string; refresh_token: string; }; }; }; responses: { /** @description Connection with replaced secret */200: { headers: { [name: string]: unknown; }; content: { "application/json": { id: string; public_id: string; provider: string; /** @enum {string} */ method: "api_key" | "oauth_token" | "oauth_token_bundle" | "access_link"; encryption_version: string; metadata: string | number | boolean | null | { [key: string]: unknown; } | unknown[]; organization_id: string; /** @enum {string} */ ownership_level: "organization" | "team" | "user"; team_id: string | null; user_id: string | null; external_account_id: string | null; scopes: string[]; is_active: boolean; is_default: boolean; /** Format: date */ created_at: string; /** Format: date */ updated_at: string; }; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/organizations/{organizationId}/secrets": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** @description List secrets visible to the caller (cascade: org + their teams + their user-level). Optional `?scopes=` applies scope intersection on top. */ get: { parameters: { query?: { /** @description Comma-separated scope tags. When present, intersects with each secret's scopes (empty-scoped secrets always pass). */scopes?: string; /** @description Current team context. When set, team-level secrets are restricted to this team only (caller must be a member). Org and user-level secrets are unaffected. */ team_id?: string; /** @description Case-insensitive substring filter applied to label, publicId, and providerHint. Empty/absent returns the full visible set. */ query?: string; /** @description Comma-separated list of secret publicIds to look up. When present, only secrets whose publicId is in this list are returned (cascade visibility and scope filtering still apply). */ public_ids?: string; }; header?: never; path: { organizationId: string | null; }; cookie?: never; }; requestBody?: never; responses: { /** @description Visible secrets */200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: { id: string; public_id: string; label: string; description: string | null; provider_hint: string | null; /** @enum {string} */ ownership_level: "organization" | "team" | "user"; organization_id: string; team_id: string | null; user_id: string | null; scopes: string[]; encryption_version: string; mask: string; created_by: string; rotated_by: string | null; /** Format: date */ rotated_at: string | null; /** Format: date */ last_used_at: string | null; /** Format: date */ created_at: string; /** Format: date */ updated_at: string; }[]; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; put?: never; /** @description Create a new encrypted secret. The raw value is never returned after creation. */ post: { parameters: { query?: never; header?: never; path: { organizationId: string | null; }; cookie?: never; }; requestBody: { content: { "application/json": { label: string; value: string; description?: string | null; provider_hint?: string | null; /** @enum {string} */ ownership_level: "organization" | "team" | "user"; team_id?: string | null; user_id?: string | null; scopes?: string[]; }; }; }; responses: { /** @description Secret created */201: { headers: { [name: string]: unknown; }; content: { "application/json": { id: string; public_id: string; label: string; description: string | null; provider_hint: string | null; /** @enum {string} */ ownership_level: "organization" | "team" | "user"; organization_id: string; team_id: string | null; user_id: string | null; scopes: string[]; encryption_version: string; mask: string; created_by: string; rotated_by: string | null; /** Format: date */ rotated_at: string | null; /** Format: date */ last_used_at: string | null; /** Format: date */ created_at: string; /** Format: date */ updated_at: string; }; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description A secret with this label already exists in the organization */ 409: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/organizations/{organizationId}/secrets/{secretId}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** @description Fetch a secret's metadata. The raw value is never returned. */ get: { parameters: { query?: never; header?: never; path: { organizationId: string | null; secretId: string | null; }; cookie?: never; }; requestBody?: never; responses: { /** @description Secret */200: { headers: { [name: string]: unknown; }; content: { "application/json": { id: string; public_id: string; label: string; description: string | null; provider_hint: string | null; /** @enum {string} */ ownership_level: "organization" | "team" | "user"; organization_id: string; team_id: string | null; user_id: string | null; scopes: string[]; encryption_version: string; mask: string; created_by: string; rotated_by: string | null; /** Format: date */ rotated_at: string | null; /** Format: date */ last_used_at: string | null; /** Format: date */ created_at: string; /** Format: date */ updated_at: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; put?: never; post?: never; /** @description Permanently delete a secret. References to it from existing pipe configs will hard-fail at runtime. */ delete: { parameters: { query?: never; header?: never; path: { organizationId: string | null; secretId: string | null; }; cookie?: never; }; requestBody?: never; responses: { /** @description Secret deleted */204: { headers: { [name: string]: unknown; }; content?: never; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; options?: never; head?: never; /** @description Update a secret's metadata (label, description, provider hint, scopes). Use POST /rotate to change the value. */ patch: { parameters: { query?: never; header?: never; path: { organizationId: string | null; secretId: string | null; }; cookie?: never; }; requestBody: { content: { "application/json": { label?: string; description?: string | null; provider_hint?: string | null; scopes?: string[]; }; }; }; responses: { /** @description Updated secret */200: { headers: { [name: string]: unknown; }; content: { "application/json": { id: string; public_id: string; label: string; description: string | null; provider_hint: string | null; /** @enum {string} */ ownership_level: "organization" | "team" | "user"; organization_id: string; team_id: string | null; user_id: string | null; scopes: string[]; encryption_version: string; mask: string; created_by: string; rotated_by: string | null; /** Format: date */ rotated_at: string | null; /** Format: date */ last_used_at: string | null; /** Format: date */ created_at: string; /** Format: date */ updated_at: string; }; }; }; /** @description Bad request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; trace?: never; }; "/v1/organizations/{organizationId}/secrets/{secretId}/rotate": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** @description Replace a secret's encrypted value in place. Mask is regenerated; rotated_at/by are recorded. */ post: { parameters: { query?: never; header?: never; path: { organizationId: string | null; secretId: string | null; }; cookie?: never; }; requestBody: { content: { "application/json": { value: string; }; }; }; responses: { /** @description Rotated secret */200: { headers: { [name: string]: unknown; }; content: { "application/json": { id: string; public_id: string; label: string; description: string | null; provider_hint: string | null; /** @enum {string} */ ownership_level: "organization" | "team" | "user"; organization_id: string; team_id: string | null; user_id: string | null; scopes: string[]; encryption_version: string; mask: string; created_by: string; rotated_by: string | null; /** Format: date */ rotated_at: string | null; /** Format: date */ last_used_at: string | null; /** Format: date */ created_at: string; /** Format: date */ updated_at: string; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/organizations/{organizationId}/constants": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** @description List constants visible to the caller (cascade: org + their teams + their user-level). Optional `?scopes=` applies scope intersection on top. */ get: { parameters: { query?: { /** @description Comma-separated scope tags. When present, intersects with each constant's scopes (empty-scoped constants always pass). */scopes?: string; /** @description Current team context. When set, team-level constants are restricted to this team only (caller must be a member). Org and user-level constants are unaffected. */ team_id?: string; /** @description Case-insensitive substring filter applied to label, publicId, and providerHint. Empty/absent returns the full visible set. */ query?: string; /** @description Comma-separated list of constant publicIds to look up. When present, only constants whose publicId is in this list are returned (cascade visibility and scope filtering still apply). */ public_ids?: string; }; header?: never; path: { organizationId: string | null; }; cookie?: never; }; requestBody?: never; responses: { /** @description Visible constants */200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: { id: string; public_id: string; label: string; description: string | null; provider_hint: string | null; /** @enum {string} */ ownership_level: "organization" | "team" | "user"; organization_id: string; team_id: string | null; user_id: string | null; scopes: string[]; value: string; /** @enum {string} */ format: "value" | "text"; created_by: string; /** Format: date */ last_used_at: string | null; /** Format: date */ created_at: string; /** Format: date */ updated_at: string; }[]; }; }; }; /** @description Unauthorized */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { type: string; title: string; status: number; detail: string; }; }; }; }; }; put?: never; /** @description Create a new constant. Constants are plaintext config values referenced from pipe templates as `{{ CONSTANTS.