{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipe0-com/json-schema/pipe0-com-pipes-response-schema-schema.json",
  "title": "PipesResponseSchema",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/pipe0-com-openapi-openapi.json#/components/schemas/PipesResponseSchema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    },
    "order": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "field_definitions": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "string",
              "number",
              "boolean",
              "json",
              "unknown",
              "yield"
            ]
          },
          "label": {
            "type": "string"
          },
          "added_by": {
            "type": "object",
            "properties": {
              "ref": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "prompt:run@1",
                      "classify:boolean@1",
                      "classify:choice@1",
                      "agent:run@1",
                      "company:newssummary:website@1",
                      "company:newssummary:domain@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",
                      "event:create:googlecalendar@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",
                      "lead:enroll:instantly@1",
                      "lead:enroll:nooks@1",
                      "lead:assert:emailbison@1",
                      "lead:enroll:emailbison@1",
                      "lead:match:emailbison@1",
                      "prospect:match:nooks@1",
                      "person:intro:happenstance@1",
                      "company:contacts:happenstance@1",
                      "user:match:nooks@1",
                      "contact:match:hubspot@1",
                      "companies:match:hubspot@1",
                      "deals:match:hubspot@1",
                      "object:update:hubspot@1",
                      "object:delete:hubspot@1",
                      "object:merge:hubspot@1",
                      "objects:match:hubspot@1",
                      "object:associations:hubspot@1",
                      "activity:log:hubspot@1",
                      "contact:assert:hubspot@1",
                      "object:assert:hubspot@1",
                      "company:assert:hubspot@1",
                      "association:assert:hubspot@1",
                      "association:remove:hubspot@1",
                      "deal:create:hubspot@1",
                      "person:match:salesforce@1",
                      "accounts:match:salesforce@1",
                      "opportunities:match:salesforce@1",
                      "record:lookup:salesforce@1",
                      "record:update:salesforce@1",
                      "record:delete:salesforce@1",
                      "record:merge:salesforce@1",
                      "records:match:salesforce@1",
                      "record:assert:salesforce@1",
                      "contact:assert:salesforce@1",
                      "lead:assert:salesforce@1",
                      "account:assert:salesforce@1",
                      "opportunity:create:salesforce@1",
                      "activities:find:salesforce@1",
                      "activity:log:salesforce@1",
                      "person:match:attio@1",
                      "companies:match:attio@1",
                      "deals:match:attio@1",
                      "record:match:attio@1",
                      "record:lookup:attio@1",
                      "record:update:attio@1",
                      "record:delete:attio@1",
                      "record:merge:attio@1",
                      "records:match:attio@1",
                      "row:append:googlesheets@1",
                      "rows:update:googlesheets@1",
                      "row:findfirst:googlesheets@1",
                      "rows:find:googlesheets@1",
                      "person:assert:attio@1",
                      "company:assert:attio@1",
                      "record:assert:attio@1",
                      "deal:create:attio@1",
                      "listentry:assert:attio@1",
                      "listentry:remove:attio@1",
                      "activities:find:attio@1",
                      "lead:enroll:amplemarket@1",
                      "role:waterfall@1",
                      "roles:waterfall@1",
                      "company:identity@2",
                      "company:identity@3",
                      "company:domains@1",
                      "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@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",
                      "wait@1",
                      "poll@1",
                      "confirm@1",
                      "choice@1",
                      "formula:run@1",
                      "signals:personprofilematch@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",
                      "reactors:post:crustdata@1",
                      "posts:crustdata@1",
                      "posts:x@1",
                      "place:reviews:dataforseo@1",
                      "place:match:dataforseo@1",
                      "company:searchrankings:dataforseo@1",
                      "company:aioverviews:dataforseo@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:workemail:profileurl:waterfall@1",
                      "person:workemail:profileurl:waterfall@1",
                      "person:identity:email:waterfall@2",
                      "person:identity:socialurl:waterfall@1",
                      "person:devprofileurl:profileurl:waterfall@1",
                      "http:request@1",
                      "company:identity@1",
                      "people:professionalprofile:waterfall@1",
                      "people:professionalprofileurl:email:waterfall@1"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "input"
                    ]
                  }
                ]
              },
              "config_hash": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pipe_index": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "ref",
              "config_hash",
              "pipe_index"
            ]
          },
          "format": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "json_object",
              "json_list",
              "json_list_string",
              "url",
              "website_url",
              "profile_url",
              "email",
              "datetime",
              "currency",
              "date",
              "phone",
              "markdown",
              "long_text",
              "text",
              "int",
              "decimal",
              "address_line_1",
              "zip_code",
              "percent",
              "domain",
              "yield_confirm",
              "yield_choice",
              null
            ]
          },
          "is_primary_output": {
            "type": "boolean"
          },
          "order": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "type",
          "label",
          "added_by",
          "format",
          "is_primary_output"
        ]
      }
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "path": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ]
      }
    },
    "records": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ]
          },
          "fields": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "value": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    {
                      "type": "array",
                      "items": {}
                    }
                  ]
                },
                "status": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "completed"
                      ]
                    },
                    {
                      "type": "string",
                      "enum": [
                        "failed"
                      ]
                    },
                    {
                      "type": "string",
                      "enum": [
                        "pending"
                      ]
                    },
                    {
                      "type": "string",
                      "enum": [
                        "queued"
                      ]
                    },
                    {
                      "type": "string",
                      "enum": [
                        "processing"
                      ]
                    },
                    {
                      "type": "string",
                      "enum": [
                        "no_result"
                      ]
                    },
                    {
                      "type": "string",
                      "enum": [
                        "skipped"
                      ]
                    },
                    {
                      "type": "string",
                      "enum": [
                        "yielded"
                      ]
                    }
                  ]
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "string",
                    "number",
                    "boolean",
                    "json",
                    "unknown",
                    "yield"
                  ]
                },
                "reason": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "summary",
                    "message"
                  ]
                },
                "claimed_by": {
                  "type": "object",
                  "properties": {
                    "ref": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "prompt:run@1",
                        "classify:boolean@1",
                        "classify:choice@1",
                        "agent:run@1",
                        "company:newssummary:website@1",
                        "company:newssummary:domain@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",
                        "event:create:googlecalendar@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",
                        "lead:enroll:instantly@1",
                        "lead:enroll:nooks@1",
                        "lead:assert:emailbison@1",
                        "lead:enroll:emailbison@1",
                        "lead:match:emailbison@1",
                        "prospect:match:nooks@1",
                        "person:intro:happenstance@1",
                        "company:contacts:happenstance@1",
                        "user:match:nooks@1",
                        "contact:match:hubspot@1",
                        "companies:match:hubspot@1",
                        "deals:match:hubspot@1",
                        "object:update:hubspot@1",
                        "object:delete:hubspot@1",
                        "object:merge:hubspot@1",
                        "objects:match:hubspot@1",
                        "object:associations:hubspot@1",
                        "activity:log:hubspot@1",
                        "contact:assert:hubspot@1",
                        "object:assert:hubspot@1",
                        "company:assert:hubspot@1",
                        "association:assert:hubspot@1",
                        "association:remove:hubspot@1",
                        "deal:create:hubspot@1",
                        "person:match:salesforce@1",
                        "accounts:match:salesforce@1",
                        "opportunities:match:salesforce@1",
                        "record:lookup:salesforce@1",
                        "record:update:salesforce@1",
                        "record:delete:salesforce@1",
                        "record:merge:salesforce@1",
                        "records:match:salesforce@1",
                        "record:assert:salesforce@1",
                        "contact:assert:salesforce@1",
                        "lead:assert:salesforce@1",
                        "account:assert:salesforce@1",
                        "opportunity:create:salesforce@1",
                        "activities:find:salesforce@1",
                        "activity:log:salesforce@1",
                        "person:match:attio@1",
                        "companies:match:attio@1",
                        "deals:match:attio@1",
                        "record:match:attio@1",
                        "record:lookup:attio@1",
                        "record:update:attio@1",
                        "record:delete:attio@1",
                        "record:merge:attio@1",
                        "records:match:attio@1",
                        "row:append:googlesheets@1",
                        "rows:update:googlesheets@1",
                        "row:findfirst:googlesheets@1",
                        "rows:find:googlesheets@1",
                        "person:assert:attio@1",
                        "company:assert:attio@1",
                        "record:assert:attio@1",
                        "deal:create:attio@1",
                        "listentry:assert:attio@1",
                        "listentry:remove:attio@1",
                        "activities:find:attio@1",
                        "lead:enroll:amplemarket@1",
                        "role:waterfall@1",
                        "roles:waterfall@1",
                        "company:identity@2",
                        "company:identity@3",
                        "company:domains@1",
                        "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@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",
                        "wait@1",
                        "poll@1",
                        "confirm@1",
                        "choice@1",
                        "formula:run@1",
                        "signals:personprofilematch@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",
                        "reactors:post:crustdata@1",
                        "posts:crustdata@1",
                        "posts:x@1",
                        "place:reviews:dataforseo@1",
                        "place:match:dataforseo@1",
                        "company:searchrankings:dataforseo@1",
                        "company:aioverviews:dataforseo@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:workemail:profileurl:waterfall@1",
                        "person:workemail:profileurl:waterfall@1",
                        "person:identity:email:waterfall@2",
                        "person:identity:socialurl:waterfall@1",
                        "person:devprofileurl:profileurl:waterfall@1",
                        "http:request@1",
                        "company:identity@1",
                        "people:professionalprofile:waterfall@1",
                        "people:professionalprofileurl:email:waterfall@1",
                        "input",
                        null
                      ]
                    },
                    "config_hash": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "ref",
                    "config_hash"
                  ]
                },
                "resolved_by": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "ref": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "prompt:run@1",
                        "classify:boolean@1",
                        "classify:choice@1",
                        "agent:run@1",
                        "company:newssummary:website@1",
                        "company:newssummary:domain@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",
                        "event:create:googlecalendar@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",
                        "lead:enroll:instantly@1",
                        "lead:enroll:nooks@1",
                        "lead:assert:emailbison@1",
                        "lead:enroll:emailbison@1",
                        "lead:match:emailbison@1",
                        "prospect:match:nooks@1",
                        "person:intro:happenstance@1",
                        "company:contacts:happenstance@1",
                        "user:match:nooks@1",
                        "contact:match:hubspot@1",
                        "companies:match:hubspot@1",
                        "deals:match:hubspot@1",
                        "object:update:hubspot@1",
                        "object:delete:hubspot@1",
                        "object:merge:hubspot@1",
                        "objects:match:hubspot@1",
                        "object:associations:hubspot@1",
                        "activity:log:hubspot@1",
                        "contact:assert:hubspot@1",
                        "object:assert:hubspot@1",
                        "company:assert:hubspot@1",
                        "association:assert:hubspot@1",
                        "association:remove:hubspot@1",
                        "deal:create:hubspot@1",
                        "person:match:salesforce@1",
                        "accounts:match:salesforce@1",
                        "opportunities:match:salesforce@1",
                        "record:lookup:salesforce@1",
                        "record:update:salesforce@1",
                        "record:delete:salesforce@1",
                        "record:merge:salesforce@1",
                        "records:match:salesforce@1",
                        "record:assert:salesforce@1",
                        "contact:assert:salesforce@1",
                        "lead:assert:salesforce@1",
                        "account:assert:salesforce@1",
                        "opportunity:create:salesforce@1",
                        "activities:find:salesforce@1",
                        "activity:log:salesforce@1",
                        "person:match:attio@1",
                        "companies:match:attio@1",
                        "deals:match:attio@1",
                        "record:match:attio@1",
                        "record:lookup:attio@1",
                        "record:update:attio@1",
                        "record:delete:attio@1",
                        "record:merge:attio@1",
                        "records:match:attio@1",
                        "row:append:googlesheets@1",
                        "rows:update:googlesheets@1",
                        "row:findfirst:googlesheets@1",
                        "rows:find:googlesheets@1",
                        "person:assert:attio@1",
                        "company:assert:attio@1",
                        "record:assert:attio@1",
                        "deal:create:attio@1",
                        "listentry:assert:attio@1",
                        "listentry:remove:attio@1",
                        "activities:find:attio@1",
                        "lead:enroll:amplemarket@1",
                        "role:waterfall@1",
                        "roles:waterfall@1",
                        "company:identity@2",
                        "company:identity@3",
                        "company:domains@1",
                        "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@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",
                        "wait@1",
                        "poll@1",
                        "confirm@1",
                        "choice@1",
                        "formula:run@1",
                        "signals:personprofilematch@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",
                        "reactors:post:crustdata@1",
                        "posts:crustdata@1",
                        "posts:x@1",
                        "place:reviews:dataforseo@1",
                        "place:match:dataforseo@1",
                        "company:searchrankings:dataforseo@1",
                        "company:aioverviews:dataforseo@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:workemail:profileurl:waterfall@1",
                        "person:workemail:profileurl:waterfall@1",
                        "person:identity:email:waterfall@2",
                        "person:identity:socialurl:waterfall@1",
                        "person:devprofileurl:profileurl:waterfall@1",
                        "http:request@1",
                        "company:identity@1",
                        "people:professionalprofile:waterfall@1",
                        "people:professionalprofileurl:email:waterfall@1",
                        "input",
                        "system",
                        null
                      ]
                    },
                    "environment": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "production",
                        "sandbox",
                        null
                      ]
                    },
                    "config_hash": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "input_hash": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "ref",
                    "environment",
                    "config_hash",
                    "input_hash"
                  ]
                },
                "widgets": {
                  "type": "object",
                  "properties": {
                    "display_value": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "static"
                          ]
                        },
                        "label": {
                          "type": "string"
                        },
                        "marks": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "bold",
                              "italic",
                              "underline",
                              "strikethrough"
                            ]
                          }
                        }
                      }
                    },
                    "entity_logo": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "static"
                          ]
                        },
                        "image_url": {
                          "type": "string",
                          "format": "uri",
                          "description": "URL to the provider's logo image."
                        },
                        "entity": {
                          "type": "string",
                          "description": "The name of the entity."
                        }
                      },
                      "required": [
                        "image_url",
                        "entity"
                      ]
                    },
                    "external_link": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "static"
                          ]
                        },
                        "url": {
                          "type": "string",
                          "format": "uri",
                          "description": "Destination opened when the external-link icon is clicked."
                        }
                      },
                      "required": [
                        "url"
                      ]
                    },
                    "location_indicator": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "static"
                          ]
                        },
                        "emoji": {
                          "type": "string",
                          "description": "Country flag emoji."
                        }
                      },
                      "required": [
                        "emoji"
                      ]
                    },
                    "avatar": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "static"
                          ]
                        },
                        "image_url": {
                          "type": "string",
                          "format": "uri",
                          "description": "URL to the provider's logo image."
                        },
                        "name": {
                          "type": "string",
                          "description": "The name of the avatar owner."
                        }
                      },
                      "required": [
                        "image_url",
                        "name"
                      ]
                    },
                    "waterfall": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "static"
                          ]
                        },
                        "attempted_providers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "provider": {
                                "type": "string",
                                "enum": [
                                  "pipe0",
                                  "findymail",
                                  "crustdata",
                                  "hunter",
                                  "zerobounce",
                                  "millionverifier",
                                  "googlemaps",
                                  "gemini",
                                  "anthropic",
                                  "leadmagic",
                                  "mixrank",
                                  "builtwith",
                                  "perplexity",
                                  "serper",
                                  "icypeas",
                                  "prospeo",
                                  "clado",
                                  "resend",
                                  "slack",
                                  "gmail",
                                  "googlecalendar",
                                  "googlesheets",
                                  "firecrawl",
                                  "exa",
                                  "dataforseo",
                                  "openai",
                                  "companyenrich",
                                  "logodev",
                                  "amplemarket",
                                  "parallel",
                                  "surfe",
                                  "wiza",
                                  "aviato",
                                  "forager",
                                  "luma",
                                  "postgres",
                                  "databricks",
                                  "lemlist",
                                  "instantly",
                                  "nooks",
                                  "emailbison",
                                  "happenstance",
                                  "typesafe",
                                  "hubspot",
                                  "salesforce",
                                  "attio",
                                  "x",
                                  "hackernews",
                                  "calcom"
                                ]
                              }
                            },
                            "required": [
                              "provider"
                            ]
                          }
                        },
                        "available_providers": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "pipe0",
                              "findymail",
                              "crustdata",
                              "hunter",
                              "zerobounce",
                              "millionverifier",
                              "googlemaps",
                              "gemini",
                              "anthropic",
                              "leadmagic",
                              "mixrank",
                              "builtwith",
                              "perplexity",
                              "serper",
                              "icypeas",
                              "prospeo",
                              "clado",
                              "resend",
                              "slack",
                              "gmail",
                              "googlecalendar",
                              "googlesheets",
                              "firecrawl",
                              "exa",
                              "dataforseo",
                              "openai",
                              "companyenrich",
                              "logodev",
                              "amplemarket",
                              "parallel",
                              "surfe",
                              "wiza",
                              "aviato",
                              "forager",
                              "luma",
                              "postgres",
                              "databricks",
                              "lemlist",
                              "instantly",
                              "nooks",
                              "emailbison",
                              "happenstance",
                              "typesafe",
                              "hubspot",
                              "salesforce",
                              "attio",
                              "x",
                              "hackernews",
                              "calcom"
                            ]
                          }
                        },
                        "successful_provider": {
                          "type": "string",
                          "enum": [
                            "pipe0",
                            "findymail",
                            "crustdata",
                            "hunter",
                            "zerobounce",
                            "millionverifier",
                            "googlemaps",
                            "gemini",
                            "anthropic",
                            "leadmagic",
                            "mixrank",
                            "builtwith",
                            "perplexity",
                            "serper",
                            "icypeas",
                            "prospeo",
                            "clado",
                            "resend",
                            "slack",
                            "gmail",
                            "googlecalendar",
                            "googlesheets",
                            "firecrawl",
                            "exa",
                            "dataforseo",
                            "openai",
                            "companyenrich",
                            "logodev",
                            "amplemarket",
                            "parallel",
                            "surfe",
                            "wiza",
                            "aviato",
                            "forager",
                            "luma",
                            "postgres",
                            "databricks",
                            "lemlist",
                            "instantly",
                            "nooks",
                            "emailbison",
                            "happenstance",
                            "typesafe",
                            "hubspot",
                            "salesforce",
                            "attio",
                            "x",
                            "hackernews",
                            "calcom"
                          ]
                        }
                      },
                      "required": [
                        "attempted_providers",
                        "available_providers"
                      ]
                    },
                    "icon": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "static"
                          ]
                        },
                        "key": {
                          "type": "string",
                          "enum": [
                            "linkedin",
                            "job",
                            "seniority_c_suite",
                            "seniority_leadership",
                            "seniority_manager",
                            "seniority_senior_ic",
                            "seniority_ic",
                            "seniority_frontline",
                            "seniority_junior",
                            "seniority_unknown"
                          ]
                        }
                      },
                      "required": [
                        "key"
                      ]
                    },
                    "action_summary": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "static"
                          ]
                        },
                        "result_status": {
                          "type": "string",
                          "enum": [
                            "completed",
                            "failed"
                          ]
                        }
                      },
                      "required": [
                        "result_status"
                      ]
                    },
                    "sources": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "static"
                          ]
                        },
                        "list": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              },
                              "url": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "source",
                              "url"
                            ]
                          }
                        }
                      },
                      "required": [
                        "list"
                      ]
                    },
                    "confidence": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "static"
                          ]
                        },
                        "numeric": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 5
                        }
                      },
                      "required": [
                        "numeric"
                      ]
                    },
                    "emoji": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "static"
                          ]
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "value"
                      ]
                    }
                  },
                  "description": "A map of widgets associated with this field for UI display, keyed by widget type."
                },
                "format": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "json_object",
                    "json_list",
                    "json_list_string",
                    "url",
                    "website_url",
                    "profile_url",
                    "email",
                    "datetime",
                    "currency",
                    "date",
                    "phone",
                    "markdown",
                    "long_text",
                    "text",
                    "int",
                    "decimal",
                    "address_line_1",
                    "zip_code",
                    "percent",
                    "domain",
                    "yield_confirm",
                    "yield_choice",
                    null
                  ]
                }
              },
              "required": [
                "value",
                "status",
                "type",
                "reason",
                "claimed_by",
                "resolved_by",
                "format"
              ]
            }
          }
        },
        "required": [
          "id",
          "fields"
        ]
      }
    },
    "status": {
      "type": "string",
      "enum": [
        "completed",
        "failed",
        "pending",
        "processing",
        "canceled"
      ]
    },
    "credits": {
      "$ref": "#/$defs/RunCreditsSchema"
    }
  },
  "required": [
    "id",
    "organization_id",
    "order",
    "field_definitions",
    "errors",
    "records",
    "status"
  ],
  "$defs": {
    "RunCreditsSchema": {
      "type": "object",
      "properties": {
        "spent": {
          "type": "number",
          "description": "Credits this run has consumed so far, rounded to 4 decimals. Grows while the run is processing; final once its status is terminal. A worker restart mid-run may leave the last few records unattributed."
        }
      },
      "required": [
        "spent"
      ]
    }
  }
}