{
  "openapi": "3.1.0",
  "info": {
    "title": "Hikoo REST API",
    "description": "Programmatic access to your Hikoo data: AI citations, prompts, topics, competitors, sources, audits, site health, indexation, AI-crawler traffic, and outreach. Authenticate with a personal API key sent as `Authorization: Bearer <key>`. Create one in the dashboard under **Settings > API keys**.",
    "version": "1.0.0"
  },
  "paths": {
    "/api/v1/public/me": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Get current user",
        "description": "Return the user the API key is bound to.",
        "operationId": "get_me_api_v1_public_me_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CurrentUserResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/workspaces": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "List workspaces",
        "description": "List every workspace you are a member of.",
        "operationId": "list_workspaces_api_v1_public_workspaces_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkspaceItem"
                  },
                  "title": "Response List Workspaces Api V1 Public Workspaces Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/workspaces/with-websites": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "List workspaces with their websites",
        "description": "Workspaces you belong to, each with its websites and their subscription status, in one call.",
        "operationId": "list_workspaces_with_websites_api_v1_public_workspaces_with_websites_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkspaceWithWebsites"
                  },
                  "title": "Response List Workspaces With Websites Api V1 Public Workspaces With Websites Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/websites": {
      "get": {
        "tags": [
          "Websites"
        ],
        "summary": "List websites",
        "description": "List the websites you can access, paginated. Each item includes `has_active_subscription`. Websites without an active subscription are listed, but their data endpoints answer `403`.",
        "operationId": "list_websites_api_v1_public_websites_get",
        "parameters": [
          {
            "name": "workspace_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by workspace",
              "title": "Workspace Id"
            },
            "description": "Filter by workspace"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Page Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedWebsites"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/website": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "Get a website",
        "description": "Return the website detail (subscription, plan, settings) for the given website_id.",
        "operationId": "get_website_api_v1_public_website_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/website/subscription": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "Get subscription details",
        "description": "Plan details for the website: plan tier, product name, status, trial and expiry dates, AI platforms covered, available features and quotas. Restricted to workspace owners and admins; other members get `403`.",
        "operationId": "get_subscription_details_api_v1_public_website_subscription_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionDetailsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/agent-analytics": {
      "get": {
        "tags": [
          "Agent analytics"
        ],
        "summary": "Get AI-crawler traffic",
        "description": "AI-agent traffic dashboard: totals, per-vendor rows and a visit trend.",
        "operationId": "get_agent_analytics_api_v1_public_agent_analytics_get",
        "parameters": [
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/TimeRange",
              "default": "1m"
            }
          },
          {
            "name": "vendors",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated vendor codes.",
              "title": "Vendors"
            },
            "description": "Comma-separated vendor codes."
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated intents: ai_referral, ai_search, ai_training, ai_agent, ai_crawler.",
              "title": "Categories"
            },
            "description": "Comma-separated intents: ai_referral, ai_search, ai_training, ai_agent, ai_crawler."
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentAnalyticsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/agent-analytics/pages": {
      "get": {
        "tags": [
          "Agent analytics"
        ],
        "summary": "List pages visited by AI crawlers",
        "description": "Paginated URLs fetched by AI crawlers, ordered by visits desc.\n\n`search` narrows the list to URLs containing the given substring.",
        "operationId": "get_agent_pages_api_v1_public_agent_analytics_pages_get",
        "parameters": [
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/TimeRange",
              "default": "1m"
            }
          },
          {
            "name": "vendors",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated vendor codes.",
              "title": "Vendors"
            },
            "description": "Comma-separated vendor codes."
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated intents: ai_referral, ai_search, ai_training, ai_agent, ai_crawler.",
              "title": "Categories"
            },
            "description": "Comma-separated intents: ai_referral, ai_search, ai_training, ai_agent, ai_crawler."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Page Size"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "description": "Case-insensitive substring match on the visited URL (host + path). A full URL is normalized (scheme, www., query and fragment dropped).",
              "title": "Search"
            },
            "description": "Case-insensitive substring match on the visited URL (host + path). A full URL is normalized (scheme, www., query and fragment dropped)."
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentPagesResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/audits/quota": {
      "get": {
        "tags": [
          "Audits"
        ],
        "summary": "Get audit quota",
        "description": "Audit quota usage (used, limit, remaining) for the current billing period. Check it before you start an audit.",
        "operationId": "get_audits_quota_api_v1_public_audits_quota_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteAuditQuotaSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/audits": {
      "get": {
        "tags": [
          "Audits"
        ],
        "summary": "List audits",
        "description": "List all audits for the target website (most recent first).",
        "operationId": "list_audits_api_v1_public_audits_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebsiteAuditItemSchema"
                  },
                  "title": "Response List Audits Api V1 Public Audits Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "post": {
        "tags": [
          "Audits"
        ],
        "summary": "Start a full-site audit",
        "description": "Queue a new full-site audit for the target website.",
        "operationId": "create_audit_api_v1_public_audits_post",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteAuditItemSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/audits/url": {
      "post": {
        "tags": [
          "Audits"
        ],
        "summary": "Audit a single URL",
        "description": "Audit a single URL on the website. URL must belong to the website's domain.",
        "operationId": "audit_single_url_api_v1_public_audits_url_post",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SingleUrlAuditRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteAuditItemSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/audits/pages": {
      "post": {
        "tags": [
          "Audits"
        ],
        "summary": "Audit selected pages",
        "description": "Audit a specific list of URLs on the website. Every URL must belong to the website's domain. Your plan caps how many pages you can audit each month.",
        "operationId": "audit_selected_pages_api_v1_public_audits_pages_post",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SelectedPagesAuditRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteAuditItemSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/audits/{audit_id}/sync": {
      "post": {
        "tags": [
          "Audits"
        ],
        "summary": "Re-run an audit",
        "description": "Queue a new audit that reuses the pages and criteria of a completed audit. Use it to re-check the same pages after you change them.",
        "operationId": "sync_audit_api_v1_public_audits__audit_id__sync_post",
        "parameters": [
          {
            "name": "audit_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Audit Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteAuditItemSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/audits/{audit_id}": {
      "get": {
        "tags": [
          "Audits"
        ],
        "summary": "Get an audit",
        "description": "Retrieve a specific audit with its audited pages.",
        "operationId": "get_audit_api_v1_public_audits__audit_id__get",
        "parameters": [
          {
            "name": "audit_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Audit Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteAuditWithPageSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/audits/{audit_id}/pages/{page_id}": {
      "get": {
        "tags": [
          "Audits"
        ],
        "summary": "Get an audited page",
        "description": "Detail of a single audit page, including every criterion (validated or not)\nand the recommendations attached to each.",
        "operationId": "get_audit_page_api_v1_public_audits__audit_id__pages__page_id__get",
        "parameters": [
          {
            "name": "audit_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Audit Id"
            }
          },
          {
            "name": "page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Page Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteAuditPageWithCriteriasSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/citations": {
      "get": {
        "tags": [
          "Citations"
        ],
        "summary": "List citations",
        "description": "Paginated list of AI citations for the target website (full content, sources, competitors).",
        "operationId": "list_citations_api_v1_public_citations_get",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "platforms[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiPlatform"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platforms[]"
            }
          },
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Time Range"
            }
          },
          {
            "name": "localizations[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Localizations[]"
            }
          },
          {
            "name": "website_cited",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to citations where the website is cited (True) or not (False)",
              "title": "Website Cited"
            },
            "description": "Filter to citations where the website is cited (True) or not (False)"
          },
          {
            "name": "topic_ids[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Topic Ids[]"
            }
          },
          {
            "name": "brand_scopes[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptBrandScope"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand scope (`branded` or `non_branded`).",
              "title": "Brand Scopes[]"
            },
            "description": "Filter by brand scope (`branded` or `non_branded`)."
          },
          {
            "name": "intents[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptIntent"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt intent.",
              "title": "Intents[]"
            },
            "description": "Filter by prompt intent."
          },
          {
            "name": "match_types[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CitationMatchType"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Match Types[]"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedCitations"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/citations/top-platforms": {
      "get": {
        "tags": [
          "Citations"
        ],
        "summary": "Get top platforms",
        "description": "Top AI platforms by citation count for the target website.",
        "operationId": "get_top_platforms_api_v1_public_citations_top_platforms_get",
        "parameters": [
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "description": "all_time, 1y, 1m, 1w, 1d",
              "title": "Time Range"
            },
            "description": "all_time, 1y, 1m, 1w, 1d"
          },
          {
            "name": "platforms[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiPlatform"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platforms[]"
            }
          },
          {
            "name": "localizations[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Localizations[]"
            }
          },
          {
            "name": "topic_ids[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Topic Ids[]"
            }
          },
          {
            "name": "brand_scopes[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptBrandScope"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand scope (`branded` or `non_branded`).",
              "title": "Brand Scopes[]"
            },
            "description": "Filter by brand scope (`branded` or `non_branded`)."
          },
          {
            "name": "intents[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptIntent"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt intent.",
              "title": "Intents[]"
            },
            "description": "Filter by prompt intent."
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TopPlatformCitation"
                  },
                  "title": "Response Get Top Platforms Api V1 Public Citations Top Platforms Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/citations/platforms": {
      "get": {
        "tags": [
          "Citations"
        ],
        "summary": "Get visibility by platform",
        "description": "Visibility trend data per platform for the target website.",
        "operationId": "get_platforms_share_of_voice_api_v1_public_citations_platforms_get",
        "parameters": [
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Time Range"
            }
          },
          {
            "name": "platforms[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiPlatform"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platforms[]"
            }
          },
          {
            "name": "localizations[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Localizations[]"
            }
          },
          {
            "name": "topic_ids[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Topic Ids[]"
            }
          },
          {
            "name": "brand_scopes[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptBrandScope"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand scope (`branded` or `non_branded`).",
              "title": "Brand Scopes[]"
            },
            "description": "Filter by brand scope (`branded` or `non_branded`)."
          },
          {
            "name": "intents[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptIntent"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt intent.",
              "title": "Intents[]"
            },
            "description": "Filter by prompt intent."
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EntityShareOfVoice"
                  },
                  "title": "Response Get Platforms Share Of Voice Api V1 Public Citations Platforms Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/citations/top-sources": {
      "get": {
        "tags": [
          "Citations"
        ],
        "summary": "Get top sources",
        "description": "Top source domains (or URLs) appearing in AI citations for the target website.",
        "operationId": "get_top_sources_api_v1_public_citations_top_sources_get",
        "parameters": [
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Time Range"
            }
          },
          {
            "name": "platforms[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiPlatform"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platforms[]"
            }
          },
          {
            "name": "localizations[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Localizations[]"
            }
          },
          {
            "name": "topic_ids[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Topic Ids[]"
            }
          },
          {
            "name": "brand_scopes[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptBrandScope"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand scope (`branded` or `non_branded`).",
              "title": "Brand Scopes[]"
            },
            "description": "Filter by brand scope (`branded` or `non_branded`)."
          },
          {
            "name": "intents[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptIntent"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt intent.",
              "title": "Intents[]"
            },
            "description": "Filter by prompt intent."
          },
          {
            "name": "group_by",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(domain|url)$",
              "default": "domain",
              "title": "Group By"
            }
          },
          {
            "name": "source_class",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SourceClass"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source Class"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SourceScope"
                },
                {
                  "type": "null"
                }
              ],
              "description": "all (default): every source. own: only pages of the tracked website (aliases included). external: everything else.",
              "title": "Scope"
            },
            "description": "all (default): every source. own: only pages of the tracked website (aliases included). external: everything else."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 10,
              "title": "Limit"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TopSourceDomain"
                  },
                  "title": "Response Get Top Sources Api V1 Public Citations Top Sources Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/citations/sentiment-summary": {
      "get": {
        "tags": [
          "Citations"
        ],
        "summary": "Get sentiment summary",
        "description": "Aggregated sentiment per brand (your website, your competitors and other brands) over the period. Requires a plan that includes sentiment analysis, otherwise `403`.",
        "operationId": "get_sentiment_summary_api_v1_public_citations_sentiment_summary_get",
        "parameters": [
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Time Range"
            }
          },
          {
            "name": "platforms[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiPlatform"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platforms[]"
            }
          },
          {
            "name": "localizations[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Localizations[]"
            }
          },
          {
            "name": "topic_ids[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Topic Ids[]"
            }
          },
          {
            "name": "brand_scopes[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptBrandScope"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand scope (`branded` or `non_branded`).",
              "title": "Brand Scopes[]"
            },
            "description": "Filter by brand scope (`branded` or `non_branded`)."
          },
          {
            "name": "intents[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptIntent"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt intent.",
              "title": "Intents[]"
            },
            "description": "Filter by prompt intent."
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SentimentSummaryResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/citations/sentiment-trend": {
      "get": {
        "tags": [
          "Citations"
        ],
        "summary": "Get sentiment trend",
        "description": "Sentiment counts over time, by day or by week. Requires a plan that includes sentiment analysis, otherwise `403`.",
        "operationId": "get_sentiment_trend_api_v1_public_citations_sentiment_trend_get",
        "parameters": [
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Time Range"
            }
          },
          {
            "name": "platforms[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiPlatform"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platforms[]"
            }
          },
          {
            "name": "localizations[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Localizations[]"
            }
          },
          {
            "name": "topic_ids[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Topic Ids[]"
            }
          },
          {
            "name": "brand_scopes[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptBrandScope"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand scope (`branded` or `non_branded`).",
              "title": "Brand Scopes[]"
            },
            "description": "Filter by brand scope (`branded` or `non_branded`)."
          },
          {
            "name": "intents[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptIntent"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt intent.",
              "title": "Intents[]"
            },
            "description": "Filter by prompt intent."
          },
          {
            "name": "bucket",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(day|week)$",
              "default": "day",
              "title": "Bucket"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SentimentTrendResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/citations/breakdown": {
      "get": {
        "tags": [
          "Citations"
        ],
        "summary": "Get citation breakdown",
        "description": "Counts per match type (`brand_mention`, `cited_link`, `background_link`) over the period, with the change against the previous period and a daily sparkline.",
        "operationId": "get_citations_breakdown_api_v1_public_citations_breakdown_get",
        "parameters": [
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Time Range"
            }
          },
          {
            "name": "platforms[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiPlatform"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platforms[]"
            }
          },
          {
            "name": "localizations[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Localizations[]"
            }
          },
          {
            "name": "topic_ids[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Topic Ids[]"
            }
          },
          {
            "name": "brand_scopes[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptBrandScope"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand scope (`branded` or `non_branded`).",
              "title": "Brand Scopes[]"
            },
            "description": "Filter by brand scope (`branded` or `non_branded`)."
          },
          {
            "name": "intents[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptIntent"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt intent.",
              "title": "Intents[]"
            },
            "description": "Filter by prompt intent."
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "IANA timezone for daily bucketing (defaults to UTC)",
              "title": "Tz"
            },
            "description": "IANA timezone for daily bucketing (defaults to UTC)"
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CitationsBreakdownResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/citations/all-sources": {
      "get": {
        "tags": [
          "Citations"
        ],
        "summary": "List all cited source URLs",
        "description": "Full list of source URLs cited in AI responses, paginated and sorted by\nfrequency. Unlike /top-sources this is not capped at 50 entries.\n\n`search` narrows the list to URLs containing the given substring.",
        "operationId": "get_all_source_urls_api_v1_public_citations_all_sources_get",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 25,
              "title": "Page Size"
            }
          },
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Time Range"
            }
          },
          {
            "name": "platforms[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiPlatform"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platforms[]"
            }
          },
          {
            "name": "localizations[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Localizations[]"
            }
          },
          {
            "name": "topic_ids[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Topic Ids[]"
            }
          },
          {
            "name": "brand_scopes[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptBrandScope"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand scope (`branded` or `non_branded`).",
              "title": "Brand Scopes[]"
            },
            "description": "Filter by brand scope (`branded` or `non_branded`)."
          },
          {
            "name": "intents[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptIntent"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt intent.",
              "title": "Intents[]"
            },
            "description": "Filter by prompt intent."
          },
          {
            "name": "source_class",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SourceClass"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source Class"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SourceScope"
                },
                {
                  "type": "null"
                }
              ],
              "description": "all (default): every source. own: only pages of the tracked website (aliases included). external: everything else.",
              "title": "Scope"
            },
            "description": "all (default): every source. own: only pages of the tracked website (aliases included). external: everything else."
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "description": "Case-insensitive substring match on the full URL.",
              "title": "Search"
            },
            "description": "Case-insensitive substring match on the full URL."
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedSourceUrls"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/citations/{citation_id}": {
      "get": {
        "tags": [
          "Citations"
        ],
        "summary": "Get a citation",
        "description": "One citation: the full answer, its sources, brand mentions, prompt and competitor ranks. Brand mentions are left out when your plan does not include sentiment analysis.",
        "operationId": "get_citation_api_v1_public_citations__citation_id__get",
        "parameters": [
          {
            "name": "citation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Citation Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CitationWithPrompt"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/competitors": {
      "get": {
        "tags": [
          "Competitors"
        ],
        "summary": "Get competitor ranking",
        "description": "Competitor ranking (share of voice) for the target website.",
        "operationId": "get_competitors_ranking_api_v1_public_competitors_get",
        "parameters": [
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Time Range"
            }
          },
          {
            "name": "platforms[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiPlatform"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platforms[]"
            }
          },
          {
            "name": "localizations[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Localizations[]"
            }
          },
          {
            "name": "topic_ids[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Topic Ids[]"
            }
          },
          {
            "name": "brand_scopes[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptBrandScope"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand scope (`branded` or `non_branded`).",
              "title": "Brand Scopes[]"
            },
            "description": "Filter by brand scope (`branded` or `non_branded`)."
          },
          {
            "name": "intents[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptIntent"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt intent.",
              "title": "Intents[]"
            },
            "description": "Filter by prompt intent."
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompetitorRankingResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "post": {
        "tags": [
          "Competitors"
        ],
        "summary": "Add a competitor",
        "description": "Add a competitor to the website. Answers `403` once your plan's competitor quota is reached.",
        "operationId": "add_competitor_api_v1_public_competitors_post",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompetitorCreateSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompetitorWithoutLogo"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/competitors/suggestions": {
      "get": {
        "tags": [
          "Competitors"
        ],
        "summary": "List competitor suggestions",
        "description": "Competitor candidates Hikoo detected in AI answers, most cited first. Each item carries `visibility`, the share of all your website's answers that name it. Requires a plan with competitor suggestions, otherwise `403`.",
        "operationId": "list_competitor_suggestions_api_v1_public_competitors_suggestions_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestedCompetitorListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/competitors/suggestions/{suggestion_id}/citations": {
      "get": {
        "tags": [
          "Competitors"
        ],
        "summary": "List citations behind a suggestion",
        "description": "The AI answers behind one suggestion, most recent first, with the prompt behind each answer and the rank the brand held in it.",
        "operationId": "list_competitor_suggestion_citations_api_v1_public_competitors_suggestions__suggestion_id__citations_get",
        "parameters": [
          {
            "name": "suggestion_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Suggestion Id"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestedCompetitorCitationsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/competitors/suggestions/{suggestion_id}/dismiss": {
      "post": {
        "tags": [
          "Competitors"
        ],
        "summary": "Dismiss a competitor suggestion",
        "description": "Dismiss a suggested competitor (hides it from future lists).",
        "operationId": "dismiss_competitor_suggestion_api_v1_public_competitors_suggestions__suggestion_id__dismiss_post",
        "parameters": [
          {
            "name": "suggestion_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Suggestion Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestedCompetitorItem"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/competitors/suggestions/{suggestion_id}/promote": {
      "post": {
        "tags": [
          "Competitors"
        ],
        "summary": "Promote a competitor suggestion",
        "description": "Track a suggested competitor, either as a new competitor or as an alternative name of one you already track. Answers `403` once your plan's competitor quota is reached.",
        "operationId": "promote_competitor_suggestion_api_v1_public_competitors_suggestions__suggestion_id__promote_post",
        "parameters": [
          {
            "name": "suggestion_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Suggestion Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuggestedCompetitorPromoteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompetitorWithoutLogo"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/competitors/{competitor_id}": {
      "put": {
        "tags": [
          "Competitors"
        ],
        "summary": "Update a competitor",
        "description": "Update a competitor's name, URL, or aliases.",
        "operationId": "update_competitor_api_v1_public_competitors__competitor_id__put",
        "parameters": [
          {
            "name": "competitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Competitor Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompetitorUpdateSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompetitorWithoutLogo"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "delete": {
        "tags": [
          "Competitors"
        ],
        "summary": "Remove a competitor",
        "description": "Remove a tracked competitor from the website.",
        "operationId": "delete_competitor_api_v1_public_competitors__competitor_id__delete",
        "parameters": [
          {
            "name": "competitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Competitor Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/competitors/citations": {
      "get": {
        "tags": [
          "Competitors"
        ],
        "summary": "Get citations per competitor",
        "description": "Citation counts per competitor for the requested period.",
        "operationId": "get_competitor_citations_api_v1_public_competitors_citations_get",
        "parameters": [
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Time Range"
            }
          },
          {
            "name": "platforms[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiPlatform"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platforms[]"
            }
          },
          {
            "name": "localizations[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Localizations[]"
            }
          },
          {
            "name": "topic_ids[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Topic Ids[]"
            }
          },
          {
            "name": "brand_scopes[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptBrandScope"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand scope (`branded` or `non_branded`).",
              "title": "Brand Scopes[]"
            },
            "description": "Filter by brand scope (`branded` or `non_branded`)."
          },
          {
            "name": "intents[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptIntent"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt intent.",
              "title": "Intents[]"
            },
            "description": "Filter by prompt intent."
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompetitorCitationsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/competitors/chart-stats": {
      "get": {
        "tags": [
          "Competitors"
        ],
        "summary": "Get share of voice chart",
        "description": "Share of voice chart data for the website and its competitors.",
        "operationId": "get_competitors_chart_api_v1_public_competitors_chart_stats_get",
        "parameters": [
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Time Range"
            }
          },
          {
            "name": "platforms[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiPlatform"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platforms[]"
            }
          },
          {
            "name": "localizations[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Localizations[]"
            }
          },
          {
            "name": "topic_ids[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Topic Ids[]"
            }
          },
          {
            "name": "brand_scopes[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptBrandScope"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand scope (`branded` or `non_branded`).",
              "title": "Brand Scopes[]"
            },
            "description": "Filter by brand scope (`branded` or `non_branded`)."
          },
          {
            "name": "intents[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptIntent"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt intent.",
              "title": "Intents[]"
            },
            "description": "Filter by prompt intent."
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EntityShareOfVoice"
                  },
                  "title": "Response Get Competitors Chart Api V1 Public Competitors Chart Stats Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/competitors/website-shares": {
      "get": {
        "tags": [
          "Competitors"
        ],
        "summary": "Get share of voice over time",
        "description": "Citation share of voice over time for the target website (vs all competitors).",
        "operationId": "get_competitive_share_over_time_api_v1_public_competitors_website_shares_get",
        "parameters": [
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Time Range"
            }
          },
          {
            "name": "platforms[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiPlatform"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platforms[]"
            }
          },
          {
            "name": "localizations[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Localizations[]"
            }
          },
          {
            "name": "topic_ids[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Topic Ids[]"
            }
          },
          {
            "name": "brand_scopes[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptBrandScope"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand scope (`branded` or `non_branded`).",
              "title": "Brand Scopes[]"
            },
            "description": "Filter by brand scope (`branded` or `non_branded`)."
          },
          {
            "name": "intents[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptIntent"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt intent.",
              "title": "Intents[]"
            },
            "description": "Filter by prompt intent."
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CitationShareOverTimeResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/competitors/limit": {
      "get": {
        "tags": [
          "Competitors"
        ],
        "summary": "Get competitor quota",
        "description": "Plan-based competitor quota for the website.",
        "operationId": "get_competitors_quota_api_v1_public_competitors_limit_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompetitorLimits"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/content-gaps/quota": {
      "get": {
        "tags": [
          "Content gaps"
        ],
        "summary": "Get content gap quota",
        "description": "Monthly content-gap analysis quota for the website.",
        "operationId": "get_content_gap_quota_api_v1_public_content_gaps_quota_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentSuggestionQuotaSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/content-gaps/summary": {
      "get": {
        "tags": [
          "Content gaps"
        ],
        "summary": "Get content gap summary",
        "description": "Summary stats for content gap suggestions: counts by status, priority, etc.",
        "operationId": "get_content_gap_summary_api_v1_public_content_gaps_summary_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/content-gaps": {
      "get": {
        "tags": [
          "Content gaps"
        ],
        "summary": "List content gaps",
        "description": "Paginated content-gap suggestions sorted by similarity score (lowest first\nmeans biggest gaps).",
        "operationId": "list_content_gaps_api_v1_public_content_gaps_get",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ContentGapStatus"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "min_score",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 1.0,
                  "minimum": 0.0
                },
                {
                  "type": "null"
                }
              ],
              "deprecated": true,
              "title": "Min Score"
            },
            "deprecated": true
          },
          {
            "name": "max_score",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 1.0,
                  "minimum": 0.0
                },
                {
                  "type": "null"
                }
              ],
              "deprecated": true,
              "title": "Max Score"
            },
            "deprecated": true
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGapListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/content-gaps/{suggestion_id}": {
      "get": {
        "tags": [
          "Content gaps"
        ],
        "summary": "Get a content gap",
        "description": "Full detail of a content-gap suggestion: brief, outline, reasoning,\nsimilar competitor topic, closest existing page on the website.",
        "operationId": "get_content_gap_api_v1_public_content_gaps__suggestion_id__get",
        "parameters": [
          {
            "name": "suggestion_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Suggestion Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGapSuggestionSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/health": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "Get site health",
        "description": "Global health (AI crawlers allowed, llms.txt, sitemap) + improvement suggestions.",
        "operationId": "get_health_api_v1_public_health_get",
        "parameters": [
          {
            "name": "include_dismissed",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Include Dismissed"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthOverviewResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/health/refresh": {
      "post": {
        "tags": [
          "Health"
        ],
        "summary": "Refresh site health",
        "description": "Re-check robots.txt, llms.txt and the sitemap now. Your plan limits refreshes per month.",
        "operationId": "refresh_health_api_v1_public_health_refresh_post",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalHealthResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/health/refresh-quota": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "Get health refresh quota",
        "description": "Plan-based quota usage for health refreshes in the current billing period.",
        "operationId": "get_health_refresh_quota_api_v1_public_health_refresh_quota_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteAuditQuotaSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/health/suggestions/{suggestion_id}/dismiss": {
      "post": {
        "tags": [
          "Health"
        ],
        "summary": "Dismiss a health suggestion",
        "description": "Dismiss a health suggestion so it stops appearing in the overview.",
        "operationId": "dismiss_suggestion_api_v1_public_health_suggestions__suggestion_id__dismiss_post",
        "parameters": [
          {
            "name": "suggestion_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Suggestion Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/health/suggestions/{suggestion_id}/restore": {
      "post": {
        "tags": [
          "Health"
        ],
        "summary": "Restore a health suggestion",
        "description": "Restore a previously dismissed health suggestion.",
        "operationId": "restore_suggestion_api_v1_public_health_suggestions__suggestion_id__restore_post",
        "parameters": [
          {
            "name": "suggestion_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Suggestion Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/health/suggestions/regenerate": {
      "post": {
        "tags": [
          "Health"
        ],
        "summary": "Regenerate health suggestions",
        "description": "Regenerate health suggestions from the pages currently indexed. Your plan limits regenerations per month.",
        "operationId": "regenerate_suggestions_api_v1_public_health_suggestions_regenerate_post",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/health/suggestions/regenerate-quota": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "Get suggestion regeneration quota",
        "description": "Plan-based quota usage for suggestion regenerations in the current billing period.",
        "operationId": "get_suggestion_regen_quota_api_v1_public_health_suggestions_regenerate_quota_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteAuditQuotaSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/health/suggestions/{suggestion_id}/pages": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "List pages affected by a suggestion",
        "description": "Paginated list of indexed pages affected by a health suggestion.",
        "operationId": "get_suggestion_pages_api_v1_public_health_suggestions__suggestion_id__pages_get",
        "parameters": [
          {
            "name": "suggestion_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Suggestion Id"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Per Page"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestionPagesResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/indexation/summary": {
      "get": {
        "tags": [
          "Indexation"
        ],
        "summary": "Get indexation summary",
        "description": "Aggregated stats on indexed pages: total, by category, health pass rate,\npages with errors or warnings, last crawl timestamp.",
        "operationId": "get_indexation_summary_api_v1_public_indexation_summary_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsitePageSummarySchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/indexation/status": {
      "get": {
        "tags": [
          "Indexation"
        ],
        "summary": "Get indexation status",
        "description": "Status of the latest indexation run (running, completed or failed) with its progress counters.",
        "operationId": "get_indexation_status_api_v1_public_indexation_status_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/indexation/pages": {
      "get": {
        "tags": [
          "Indexation"
        ],
        "summary": "List indexed pages",
        "description": "Paginated list of indexed pages, with filters on category, health,\nerrors, warnings, language, derived status, and URL/title search.\n\nEach page carries `search_metrics`: clicks and impressions from Google\nSearch Console (`google`) and Bing Webmaster Tools (`bing`), totals\nover the time filter (`time_range` 1w, 1m, 1y or all_time, counted back\nfrom the latest day with data; or `date_from` / `date_to`, which win;\nall time by default), null per provider when the site has not connected\nit. `search_sources` gives the exact days each provider's totals cover.\n`sort_by` (google_impressions, google_clicks, bing_impressions,\nbing_clicks) with `sort_direction` orders the list by one of them.",
        "operationId": "list_pages_api_v1_public_indexation_pages_get",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/WebsiteAuditPageCategory"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Category"
            }
          },
          {
            "name": "health_passed",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Health Passed"
            }
          },
          {
            "name": "has_errors",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Has Errors"
            }
          },
          {
            "name": "has_warnings",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Has Warnings"
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Language"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/WebsitePageStatus"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/PageSearchSort"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Sort By"
            }
          },
          {
            "name": "sort_direction",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SortDirection",
              "default": "desc"
            }
          },
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Preset the pages' search clicks and impressions add up over (counted back from the latest day with data). Omitted: all time.",
              "title": "Time Range"
            },
            "description": "Preset the pages' search clicks and impressions add up over (counted back from the latest day with data). Omitted: all time."
          },
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Custom range start, inclusive. Wins over time_range.",
              "title": "Date From"
            },
            "description": "Custom range start, inclusive. Wins over time_range."
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Custom range end, inclusive. Wins over time_range.",
              "title": "Date To"
            },
            "description": "Custom range end, inclusive. Wins over time_range."
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagesListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/indexation/pages/{page_id}": {
      "get": {
        "tags": [
          "Indexation"
        ],
        "summary": "Get an indexed page",
        "description": "Detail of one indexed page: URL, title, language, category, last crawled at, errors,\nand `search_metrics` (clicks and impressions in Google and Bing).",
        "operationId": "get_page_api_v1_public_indexation_pages__page_id__get",
        "parameters": [
          {
            "name": "page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Page Id"
            }
          },
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Preset the pages' search clicks and impressions add up over (counted back from the latest day with data). Omitted: all time.",
              "title": "Time Range"
            },
            "description": "Preset the pages' search clicks and impressions add up over (counted back from the latest day with data). Omitted: all time."
          },
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Custom range start, inclusive. Wins over time_range.",
              "title": "Date From"
            },
            "description": "Custom range start, inclusive. Wins over time_range."
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Custom range end, inclusive. Wins over time_range.",
              "title": "Date To"
            },
            "description": "Custom range end, inclusive. Wins over time_range."
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsitePageSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/indexation/errors": {
      "get": {
        "tags": [
          "Indexation"
        ],
        "summary": "List page errors",
        "description": "Most common health-check errors across the website's indexed pages.",
        "operationId": "list_page_errors_api_v1_public_indexation_errors_get",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 10,
              "title": "Limit"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommonErrorSchema"
                  },
                  "title": "Response List Page Errors Api V1 Public Indexation Errors Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/indexation/single-page": {
      "post": {
        "tags": [
          "Indexation"
        ],
        "summary": "Re-crawl a URL",
        "description": "Re-crawl one URL of the website. The URL must belong to the website's domain.",
        "operationId": "index_url_api_v1_public_indexation_single_page_post",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IndexSinglePagePublicRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/sources": {
      "get": {
        "tags": [
          "Outreach"
        ],
        "summary": "List outreach sources",
        "description": "Outreach sources for the target website, highest priority first.",
        "operationId": "list_sources_api_v1_public_outreach_sources_get",
        "parameters": [
          {
            "name": "tab",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/OutreachTab"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Tab to list: `active`, `needs_you`, `hikoo_working`, `waiting`, `in_progress` or `closed`.",
              "title": "Tab"
            },
            "description": "Tab to list: `active`, `needs_you`, `hikoo_working`, `waiting`, `in_progress` or `closed`."
          },
          {
            "name": "outcome",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/OutreachOutcome"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Narrows the closed tab: won, lost, disqualified.",
              "title": "Outcome"
            },
            "description": "Narrows the closed tab: won, lost, disqualified."
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated statuses",
              "title": "Status"
            },
            "description": "Comma-separated statuses"
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 120
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/OutreachSortField",
              "default": "stage"
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SortDirection",
              "default": "desc"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachSourceListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/sources/{source_id}": {
      "get": {
        "tags": [
          "Outreach"
        ],
        "summary": "Get an outreach source",
        "description": "Full dossier: pages, contacts, the resolution trail, and the timeline.",
        "operationId": "get_source_api_v1_public_outreach_sources__source_id__get",
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Source Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachSourceDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/overview": {
      "get": {
        "tags": [
          "Outreach"
        ],
        "summary": "Get outreach overview",
        "description": "What is in flight, what needs a human, and what is left of the caps.",
        "operationId": "overview_api_v1_public_outreach_overview_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachOverviewResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/sources/{source_id}/draft": {
      "post": {
        "tags": [
          "Outreach"
        ],
        "summary": "Request a pitch draft",
        "description": "Ask Hikoo to write a pitch for this source. The call answers right away. The draft lands in the approval queue a few seconds later, never in a mailbox: read the source again to get it.",
        "operationId": "create_draft_api_v1_public_outreach_sources__source_id__draft_post",
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Source Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachDraftRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachDraftQueuedResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/messages/{message_id}": {
      "patch": {
        "tags": [
          "Outreach"
        ],
        "summary": "Edit a pitch",
        "description": "Edit a draft. Any edit revokes a previous approval.",
        "operationId": "edit_message_api_v1_public_outreach_messages__message_id__patch",
        "parameters": [
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Message Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachMessageEditRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachMessageResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/messages/{message_id}/approve": {
      "post": {
        "tags": [
          "Outreach"
        ],
        "summary": "Approve a pitch",
        "description": "Approve a pitch. It leaves from your own mailbox, inside your sending hours and limits. Only the person who owns the source can approve it.",
        "operationId": "approve_message_api_v1_public_outreach_messages__message_id__approve_post",
        "parameters": [
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Message Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachMessageResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/sources/{source_id}/status": {
      "patch": {
        "tags": [
          "Outreach"
        ],
        "summary": "Set a source status",
        "description": "Declare what happened after the message went out.",
        "operationId": "set_status_api_v1_public_outreach_sources__source_id__status_patch",
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Source Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachStatusUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachSourceDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/sources/{source_id}/contact": {
      "patch": {
        "tags": [
          "Outreach"
        ],
        "summary": "Update a source contact",
        "description": "Correct the match, or switch to the alternate contact.",
        "operationId": "update_contact_api_v1_public_outreach_sources__source_id__contact_patch",
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Source Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachContactUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachSourceDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/sources/{source_id}/follow-up": {
      "put": {
        "tags": [
          "Outreach"
        ],
        "summary": "Reschedule a follow-up",
        "description": "Move the next follow-up of a waiting opportunity to another day.",
        "operationId": "reschedule_follow_up_api_v1_public_outreach_sources__source_id__follow_up_put",
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Source Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachFollowUpRescheduleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachSourceDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/sources/{source_id}/follow-up/skip": {
      "post": {
        "tags": [
          "Outreach"
        ],
        "summary": "Skip a follow-up",
        "description": "Do not send the next follow-up of a waiting opportunity.",
        "operationId": "skip_follow_up_api_v1_public_outreach_sources__source_id__follow_up_skip_post",
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Source Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachSourceDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/sources/{source_id}/hot-reply": {
      "post": {
        "tags": [
          "Outreach"
        ],
        "summary": "Answer a held reply",
        "description": "Ask for an answer to a reply Hikoo stopped on: ask their price, offer\nup to an amount, turn the fee down. Nothing is sent and nothing is paid\nby this call: it adds a request to the decision card, which a person\nconfirms in Hikoo (\"i_will_reply\" alone applies at once).",
        "operationId": "decide_hot_reply_api_v1_public_outreach_sources__source_id__hot_reply_post",
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Source Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachHotReplyDecision"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/sources/{source_id}/negotiation": {
      "post": {
        "tags": [
          "Outreach"
        ],
        "summary": "Authorize price negotiation",
        "description": "Ask Hikoo to be allowed to talk price on one source, up to an amount.\n\nNothing is authorised by this call: it opens a request on the source's\ndecision card, which the workspace owner or an admin confirms in Hikoo\n(single use, expires in 48 hours). The workspace money limits are checked\nnow (409 above them) and again at the confirmation.",
        "operationId": "authorise_negotiation_api_v1_public_outreach_sources__source_id__negotiation_post",
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Source Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachNegotiationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachPendingActionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "delete": {
        "tags": [
          "Outreach"
        ],
        "summary": "Revoke price negotiation",
        "description": "Take the authorisation back.",
        "operationId": "revoke_negotiation_api_v1_public_outreach_sources__source_id__negotiation_delete",
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Source Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachSourceDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/sources/{source_id}/note": {
      "post": {
        "tags": [
          "Outreach"
        ],
        "summary": "Add a note to a source",
        "operationId": "add_note_api_v1_public_outreach_sources__source_id__note_post",
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Source Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachNoteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "description": "Add a free-text note to a source's timeline."
      }
    },
    "/api/v1/public/outreach/home": {
      "get": {
        "tags": [
          "Outreach"
        ],
        "summary": "Get outreach home",
        "description": "Everything the Outreach home shows, counted once.\n\nThe three things waiting on a person, the results, what the agent is doing\nright now, the tab counts and the first page of rows, all from one\ngrouping. An agent asked \"what needs me\" answers from this.",
        "operationId": "outreach_home_api_v1_public_outreach_home_get",
        "parameters": [
          {
            "name": "tab",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tab"
            }
          },
          {
            "name": "outcome",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Outcome"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 120
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachHomeResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/work": {
      "get": {
        "tags": [
          "Outreach"
        ],
        "summary": "List active opportunities",
        "description": "Active opportunities grouped as the work screen groups them.",
        "operationId": "outreach_work_api_v1_public_outreach_work_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachWorkListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/activity": {
      "get": {
        "tags": [
          "Outreach"
        ],
        "summary": "List outreach activity",
        "description": "What Hikoo and the user did, newest first, grouped by day.",
        "operationId": "outreach_activity_api_v1_public_outreach_activity_get",
        "parameters": [
          {
            "name": "actor",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/OutreachActivityActor",
              "default": "all"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 300,
              "minimum": 1,
              "default": 120,
              "title": "Limit"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachActivityResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/messages/{message_id}/rewrite": {
      "post": {
        "tags": [
          "Outreach"
        ],
        "summary": "Rewrite a pitch",
        "description": "Tell Hikoo what to change in a pitch.\n\nWith a selection only that passage is sent to the model and only its\nreplacement comes back. The signature is out of scope either way: it\nbelongs to the mailbox and is appended at send time.",
        "operationId": "rewrite_pitch_api_v1_public_outreach_messages__message_id__rewrite_post",
        "parameters": [
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Message Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachRewriteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachMessageResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/messages/{message_id}/versions": {
      "get": {
        "tags": [
          "Outreach"
        ],
        "summary": "List pitch versions",
        "description": "Every state this pitch has been in, oldest first.",
        "operationId": "list_pitch_versions_api_v1_public_outreach_messages__message_id__versions_get",
        "parameters": [
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Message Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachMessageVersionsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/messages/{message_id}/version": {
      "post": {
        "tags": [
          "Outreach"
        ],
        "summary": "Restore a pitch version",
        "description": "Make an earlier version the one that would be sent.",
        "operationId": "go_to_pitch_version_api_v1_public_outreach_messages__message_id__version_post",
        "parameters": [
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Message Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachVersionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachMessageResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/settings": {
      "get": {
        "tags": [
          "Outreach"
        ],
        "summary": "Get outreach settings",
        "description": "What this workspace lets the agent do, kind of work by kind of work.",
        "operationId": "get_outreach_settings_api_v1_public_outreach_settings_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/settings/preset": {
      "put": {
        "tags": [
          "Outreach"
        ],
        "summary": "Apply a permission preset",
        "description": "Fill the whole grid in one call. The locked square stays locked.",
        "operationId": "set_outreach_preset_api_v1_public_outreach_settings_preset_put",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachPresetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/settings/permission": {
      "put": {
        "tags": [
          "Outreach"
        ],
        "summary": "Set one permission",
        "description": "Move one square of the permission grid.",
        "operationId": "set_outreach_permission_api_v1_public_outreach_settings_permission_put",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachPermissionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/settings/money": {
      "put": {
        "tags": [
          "Outreach"
        ],
        "summary": "Set payment limits",
        "description": "What the agent may offer. Empty means never pay, which is the default.\n\nSetting a ceiling is not spending it: every message naming a figure still\nwaits for a person to approve it.",
        "operationId": "set_outreach_money_api_v1_public_outreach_settings_money_put",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachMoneyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/settings/follow-ups": {
      "put": {
        "tags": [
          "Outreach"
        ],
        "summary": "Set follow-up cadence",
        "description": "How many times Hikoo comes back, and after how long.",
        "operationId": "set_outreach_follow_ups_api_v1_public_outreach_settings_follow_ups_put",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachFollowUpRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/settings/offer": {
      "put": {
        "tags": [
          "Outreach"
        ],
        "summary": "Set what the brand offers",
        "description": "What the brand can offer a publisher, replaced as a whole list.\nEmpty means a description of the brand and a link, nothing else.",
        "operationId": "set_outreach_offer_api_v1_public_outreach_settings_offer_put",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachOfferRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/settings/sender": {
      "put": {
        "tags": [
          "Outreach"
        ],
        "summary": "Set the sender profile",
        "description": "Who the mailboxes write as. Empty goes back to the decision by domain.",
        "operationId": "set_outreach_sender_profile_api_v1_public_outreach_settings_sender_put",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachSenderProfileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/mailboxes": {
      "get": {
        "tags": [
          "Outreach"
        ],
        "summary": "List sending mailboxes",
        "description": "Whose mailbox can send, and whose has gone stale.\n\nNothing leaves without one, so \"why is nothing being sent\" is usually\nanswered here.",
        "operationId": "outreach_mailboxes_api_v1_public_outreach_mailboxes_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachSiteMailboxesResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/blacklist": {
      "get": {
        "tags": [
          "Outreach"
        ],
        "summary": "List blocked domains and addresses",
        "operationId": "list_blacklist_api_v1_public_outreach_blacklist_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachBlacklistListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "description": "Domains and email addresses the outreach agent never contacts."
      },
      "post": {
        "tags": [
          "Outreach"
        ],
        "summary": "Block a domain or address",
        "description": "Add a domain or address to the do-not-contact list. Any draft waiting for it is cancelled.",
        "operationId": "add_blacklist_entry_api_v1_public_outreach_blacklist_post",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutreachBlacklistCreateRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutreachBlacklistEntryResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/outreach/blacklist/{entry_id}": {
      "delete": {
        "tags": [
          "Outreach"
        ],
        "summary": "Unblock a domain or address",
        "operationId": "remove_blacklist_entry_api_v1_public_outreach_blacklist__entry_id__delete",
        "parameters": [
          {
            "name": "entry_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entry Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "description": "Remove a domain or address from the blocklist."
      }
    },
    "/api/v1/public/prompts/quota": {
      "get": {
        "tags": [
          "Prompts"
        ],
        "summary": "Get prompt quota",
        "description": "Active prompt count, plan limit and remaining slots. Archived prompts do not count. Check it before you create prompts in bulk.",
        "operationId": "get_prompts_quota_api_v1_public_prompts_quota_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptQuotaSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/prompts": {
      "get": {
        "tags": [
          "Prompts"
        ],
        "summary": "List prompts",
        "description": "List prompts grouped by topic, each with its visibility score.",
        "operationId": "list_prompts_api_v1_public_prompts_get",
        "parameters": [
          {
            "name": "topic_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by topic ID",
              "title": "Topic Id"
            },
            "description": "Filter by topic ID"
          },
          {
            "name": "brand_scopes[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptBrandScope"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand scope (`branded` or `non_branded`).",
              "title": "Brand Scopes[]"
            },
            "description": "Filter by brand scope (`branded` or `non_branded`)."
          },
          {
            "name": "intents[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptIntent"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt intent.",
              "title": "Intents[]"
            },
            "description": "Filter by prompt intent."
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptGroupedByTopicSchema"
                  },
                  "title": "Response List Prompts Api V1 Public Prompts Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "post": {
        "tags": [
          "Prompts"
        ],
        "summary": "Create a prompt",
        "description": "Create a new prompt. Fails if the website's prompt quota is reached.",
        "operationId": "create_prompt_api_v1_public_prompts_post",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromptCreateSchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptBaseSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/prompts/{prompt_id}": {
      "put": {
        "tags": [
          "Prompts"
        ],
        "summary": "Update a prompt",
        "description": "Update an existing prompt.",
        "operationId": "update_prompt_api_v1_public_prompts__prompt_id__put",
        "parameters": [
          {
            "name": "prompt_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Prompt Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromptUpdateSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptBaseSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "delete": {
        "tags": [
          "Prompts"
        ],
        "summary": "Delete a prompt",
        "description": "Delete a prompt.",
        "operationId": "delete_prompt_api_v1_public_prompts__prompt_id__delete",
        "parameters": [
          {
            "name": "prompt_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Prompt Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/prompts/batch-update": {
      "post": {
        "tags": [
          "Prompts"
        ],
        "summary": "Update prompts in bulk",
        "description": "Apply the same change (topic, markets, intent, journey stage) to many prompts at once. Only the fields you send change; send `null` to clear a field. Returns `{updated: <count>}`.",
        "operationId": "batch_update_prompts_api_v1_public_prompts_batch_update_post",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromptBatchUpdateSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/prompts/batch-archive": {
      "post": {
        "tags": [
          "Prompts"
        ],
        "summary": "Archive prompts in bulk",
        "description": "Archive many active prompts at once, kept until they are restored.\n\nPrompts already archived, deleted or still drafts are skipped. Returns\n`{archived: <row count>}`.",
        "operationId": "batch_archive_prompts_api_v1_public_prompts_batch_archive_post",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromptBatchArchiveSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/prompts/{prompt_id}/archive": {
      "post": {
        "tags": [
          "Prompts"
        ],
        "summary": "Archive a prompt",
        "description": "Archive an active prompt: it stops being tracked, frees its quota slot\nand keeps its history, without expiry, until it is restored.",
        "operationId": "archive_prompt_api_v1_public_prompts__prompt_id__archive_post",
        "parameters": [
          {
            "name": "prompt_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Prompt Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptBaseSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/prompts/{prompt_id}/restore": {
      "post": {
        "tags": [
          "Prompts"
        ],
        "summary": "Restore a prompt",
        "description": "Restore an archived prompt, optionally swapping with an active one.\n\n`replace_with` names an active prompt to archive in exchange. Required\nonce the website has no free prompt slot, optional before that.",
        "operationId": "restore_prompt_api_v1_public_prompts__prompt_id__restore_post",
        "parameters": [
          {
            "name": "prompt_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Prompt Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromptRestoreRequestSchema",
                "default": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptBaseSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/prompts/{prompt_id}/citations": {
      "get": {
        "tags": [
          "Prompts"
        ],
        "summary": "List citations of a prompt",
        "description": "Paginated citations tied to a specific prompt.",
        "operationId": "get_prompt_citations_api_v1_public_prompts__prompt_id__citations_get",
        "parameters": [
          {
            "name": "prompt_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Prompt Id"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptWithCitationsSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/prompts/{prompt_id}/detail": {
      "get": {
        "tags": [
          "Prompts"
        ],
        "summary": "Get prompt detail",
        "description": "Aggregate payload for prompt drill-down: visibility + 7d delta, best\nrank with platform, coverage X/N, 30-day sparkline, per-platform coverage\ngrid, and the latest N answers in a single round trip.",
        "operationId": "get_prompt_detail_api_v1_public_prompts__prompt_id__detail_get",
        "parameters": [
          {
            "name": "prompt_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Prompt Id"
            }
          },
          {
            "name": "answers_limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 20,
              "minimum": 1,
              "default": 5,
              "title": "Answers Limit"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptDetailSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/prompts/{prompt_id}/answers": {
      "get": {
        "tags": [
          "Prompts"
        ],
        "summary": "List answers of a prompt",
        "description": "Every answer of a prompt, newest first. Pass `next_cursor` back as `cursor` until it is `null`. Answers that arrive meanwhile never shift or repeat a page.",
        "operationId": "get_prompt_answers_api_v1_public_prompts__prompt_id__answers_get",
        "parameters": [
          {
            "name": "prompt_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Prompt Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "next_cursor of the previous page",
              "title": "Cursor"
            },
            "description": "next_cursor of the previous page"
          },
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Time Range"
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive, YYYY-MM-DD. Overrides time_range.",
              "title": "Date From"
            },
            "description": "Inclusive, YYYY-MM-DD. Overrides time_range."
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive, YYYY-MM-DD. Overrides time_range.",
              "title": "Date To"
            },
            "description": "Inclusive, YYYY-MM-DD. Overrides time_range."
          },
          {
            "name": "platforms[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiPlatform"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platforms[]"
            }
          },
          {
            "name": "localizations[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Localizations[]"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptAnswersPageSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/prompts/{prompt_id}/stats": {
      "get": {
        "tags": [
          "Prompts"
        ],
        "summary": "Get prompt stats",
        "description": "Aggregated visibility stats for a prompt across every citation.",
        "operationId": "get_prompt_stats_api_v1_public_prompts__prompt_id__stats_get",
        "parameters": [
          {
            "name": "prompt_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Prompt Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptStatsSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/search-queries": {
      "get": {
        "tags": [
          "Search queries"
        ],
        "summary": "List search queries",
        "description": "Unique AI search query variants executed for the website, aggregated and paginated.",
        "operationId": "list_search_queries_api_v1_public_search_queries_get",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/AiPlatform"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platform"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedUniqueSearchQueries"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/search-queries/grouped": {
      "get": {
        "tags": [
          "Search queries"
        ],
        "summary": "List search query groups",
        "description": "AI search queries clustered by topic or by prompt, paginated by cluster,\neach with its query count, generations, platforms and most generated\nqueries.",
        "operationId": "list_search_query_groups_api_v1_public_search_queries_grouped_get",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 10,
              "title": "Page Size"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SearchQueryGroupSort",
              "default": "frequency"
            }
          },
          {
            "name": "group_by",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SearchQueryGroupBy",
              "description": "Cluster by topic or by prompt",
              "default": "topic"
            },
            "description": "Cluster by topic or by prompt"
          },
          {
            "name": "queries_limit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "Max queries sent per cluster (counts still cover all). Page the rest with /search-queries/grouped/queries.",
              "title": "Queries Limit"
            },
            "description": "Max queries sent per cluster (counts still cover all). Page the rest with /search-queries/grouped/queries."
          },
          {
            "name": "platforms",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiPlatform"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by AI platforms (repeatable)",
              "title": "Platforms"
            },
            "description": "Filter by AI platforms (repeatable)"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by query text (substring)",
              "title": "Q"
            },
            "description": "Filter by query text (substring)"
          },
          {
            "name": "topic_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to topics (repeatable)",
              "title": "Topic Ids"
            },
            "description": "Filter to topics (repeatable)"
          },
          {
            "name": "tag_ids[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt tags. Several values match any of them.",
              "title": "Tag Ids[]"
            },
            "description": "Filter by prompt tags. Several values match any of them."
          },
          {
            "name": "brand_scopes[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptBrandScope"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand scope (`branded` or `non_branded`).",
              "title": "Brand Scopes[]"
            },
            "description": "Filter by brand scope (`branded` or `non_branded`)."
          },
          {
            "name": "intents[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptIntent"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt intent.",
              "title": "Intents[]"
            },
            "description": "Filter by prompt intent."
          },
          {
            "name": "localizations[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by market (prompt localizations).",
              "title": "Localizations[]"
            },
            "description": "Filter by market (prompt localizations)."
          },
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Preset window (7d/30d/1y/all)",
              "title": "Time Range"
            },
            "description": "Preset window (7d/30d/1y/all)"
          },
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Custom start (inclusive, YYYY-MM-DD). Overrides time_range.",
              "title": "Date From"
            },
            "description": "Custom start (inclusive, YYYY-MM-DD). Overrides time_range."
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Custom end (inclusive, YYYY-MM-DD). Overrides time_range.",
              "title": "Date To"
            },
            "description": "Custom end (inclusive, YYYY-MM-DD). Overrides time_range."
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedSearchQueryGroups"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/search-queries/grouped/queries": {
      "get": {
        "tags": [
          "Search queries"
        ],
        "summary": "List queries in a group",
        "description": "One page of a single cluster's queries, most generated first.",
        "operationId": "list_search_queries_in_group_api_v1_public_search_queries_grouped_queries_get",
        "parameters": [
          {
            "name": "group_by",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SearchQueryGroupBy",
              "default": "topic"
            }
          },
          {
            "name": "group_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Topic or prompt id. Omit for the unclustered bucket.",
              "title": "Group Id"
            },
            "description": "Topic or prompt id. Omit for the unclustered bucket."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "platforms",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiPlatform"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by AI platforms (repeatable)",
              "title": "Platforms"
            },
            "description": "Filter by AI platforms (repeatable)"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by query text (substring)",
              "title": "Q"
            },
            "description": "Filter by query text (substring)"
          },
          {
            "name": "topic_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to topics (repeatable)",
              "title": "Topic Ids"
            },
            "description": "Filter to topics (repeatable)"
          },
          {
            "name": "tag_ids[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt tags. Several values match any of them.",
              "title": "Tag Ids[]"
            },
            "description": "Filter by prompt tags. Several values match any of them."
          },
          {
            "name": "brand_scopes[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptBrandScope"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand scope (`branded` or `non_branded`).",
              "title": "Brand Scopes[]"
            },
            "description": "Filter by brand scope (`branded` or `non_branded`)."
          },
          {
            "name": "intents[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptIntent"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by prompt intent.",
              "title": "Intents[]"
            },
            "description": "Filter by prompt intent."
          },
          {
            "name": "localizations[]",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by market (prompt localizations).",
              "title": "Localizations[]"
            },
            "description": "Filter by market (prompt localizations)."
          },
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Preset window (7d/30d/1y/all)",
              "title": "Time Range"
            },
            "description": "Preset window (7d/30d/1y/all)"
          },
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Custom start (inclusive, YYYY-MM-DD). Overrides time_range.",
              "title": "Date From"
            },
            "description": "Custom start (inclusive, YYYY-MM-DD). Overrides time_range."
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Custom end (inclusive, YYYY-MM-DD). Overrides time_range.",
              "title": "Date To"
            },
            "description": "Custom end (inclusive, YYYY-MM-DD). Overrides time_range."
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedUniqueSearchQueries"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/search-queries/by-prompt/{prompt_id}": {
      "get": {
        "tags": [
          "Search queries"
        ],
        "summary": "List search queries of a prompt",
        "description": "Unique search queries variants executed for a specific prompt.",
        "operationId": "get_prompt_search_queries_api_v1_public_search_queries_by_prompt__prompt_id__get",
        "parameters": [
          {
            "name": "prompt_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Prompt Id"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedUniqueSearchQueries"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/search-queries/by-citation/{citation_id}": {
      "get": {
        "tags": [
          "Search queries"
        ],
        "summary": "List search queries of a citation",
        "description": "All search query variants attached to a single citation. Useful for debugging\nwhich AI sub-question generated a citation.",
        "operationId": "get_citation_search_queries_api_v1_public_search_queries_by_citation__citation_id__get",
        "parameters": [
          {
            "name": "citation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Citation Id"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedSearchQueries"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/source-intelligence/sources": {
      "get": {
        "tags": [
          "Source intelligence"
        ],
        "summary": "List suggested sources",
        "description": "List suggested sources for the target website, ordered by citation count desc.",
        "operationId": "list_sources_api_v1_public_source_intelligence_sources_get",
        "parameters": [
          {
            "name": "source_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "review_platform | media | blog | directory | forum | wiki | social",
              "title": "Source Type"
            },
            "description": "review_platform | media | blog | directory | forum | wiki | social"
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "chatgpt | perplexity | gemini | claude",
              "title": "Platform"
            },
            "description": "chatgpt | perplexity | gemini | claude"
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Search by name or domain",
              "title": "Search"
            },
            "description": "Search by name or domain"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestedSourcesListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/source-intelligence/stats": {
      "get": {
        "tags": [
          "Source intelligence"
        ],
        "summary": "Get source intelligence stats",
        "description": "Aggregated stats: counts by source type and by platform.",
        "operationId": "get_stats_api_v1_public_source_intelligence_stats_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestedSourceStatsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/source-intelligence/pages": {
      "get": {
        "tags": [
          "Source intelligence"
        ],
        "summary": "List source pages",
        "description": "Cited pages, ordered by opportunity: what each page is, whether your brand is on it, and whether Hikoo has checked it. Read `brand_present` together with `page_examined`: both false means the page was not checked yet, not that you are absent. The list covers your plan's window, and `total_in_store` gives the full count. Each page also carries `momentum`.",
        "operationId": "list_source_pages_api_v1_public_source_intelligence_pages_get",
        "parameters": [
          {
            "name": "relation",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SourceRelation"
                },
                {
                  "type": "null"
                }
              ],
              "description": "owned | contested | lost_ground | open",
              "title": "Relation"
            },
            "description": "owned | contested | lost_ground | open"
          },
          {
            "name": "present",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "true: only pages the brand appears on. false: only pages it does not. Takes precedence over relation.",
              "title": "Present"
            },
            "description": "true: only pages the brand appears on. false: only pages it does not. Takes precedence over relation."
          },
          {
            "name": "topic_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Topic Id"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "momentum",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SourceMomentum"
                },
                {
                  "type": "null"
                }
              ],
              "description": "new | surging | steady | fading | dormant",
              "title": "Momentum"
            },
            "description": "new | surging | steady | fading | dormant"
          },
          {
            "name": "actionable_only",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Actionable Only"
            }
          },
          {
            "name": "active_only",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Active Only"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicSourcePagesResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/topics": {
      "get": {
        "tags": [
          "Topics"
        ],
        "summary": "List topics",
        "description": "List all topics tracked for the target website.",
        "operationId": "list_topics_api_v1_public_topics_get",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TopicResponse"
                  },
                  "title": "Response List Topics Api V1 Public Topics Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "post": {
        "tags": [
          "Topics"
        ],
        "summary": "Create a topic",
        "description": "Create a new topic for the target website.",
        "operationId": "create_topic_api_v1_public_topics_post",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TopicCreateSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TopicResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/topics/{topic_id}": {
      "put": {
        "tags": [
          "Topics"
        ],
        "summary": "Rename a topic",
        "description": "Rename a topic.",
        "operationId": "update_topic_api_v1_public_topics__topic_id__put",
        "parameters": [
          {
            "name": "topic_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Topic Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TopicUpdateSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TopicResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "delete": {
        "tags": [
          "Topics"
        ],
        "summary": "Delete a topic",
        "description": "Delete a topic from the website.",
        "operationId": "delete_topic_api_v1_public_topics__topic_id__delete",
        "parameters": [
          {
            "name": "topic_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Topic Id"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/public/url-lookup": {
      "get": {
        "tags": [
          "URL lookup"
        ],
        "summary": "Look up a URL",
        "description": "Look a URL up across AI-cited sources and AI-crawler traffic.\n\n`sources` covers citations: how many AI answers cited a matching URL,\non which platforms, from which prompts, and whether the URL was shown to\nthe user (mentioned) or only consulted in the background.\n\n`agent_traffic` covers agent analytics: how many times AI crawlers\nfetched a matching page and which agents did. `agent_traffic.enabled`\nis false when the plan doesn't include agent analytics, no hits then\nmeans \"not measured\", not \"never visited\".",
        "operationId": "lookup_url_api_v1_public_url_lookup_get",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "description": "URL or URL fragment to look up. Scheme, www., query string and fragment are stripped before matching, so a pasted browser URL works as-is. A bare path (/blog) or a bare domain also work.",
              "title": "Url"
            },
            "description": "URL or URL fragment to look up. Scheme, www., query string and fragment are stripped before matching, so a pasted browser URL works as-is. A bare path (/blog) or a bare domain also work."
          },
          {
            "name": "time_range",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TimeRange"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict both surfaces to this window. Omit for all time.",
              "title": "Time Range"
            },
            "description": "Restrict both surfaces to this window. Omit for all time."
          },
          {
            "name": "citations_limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 20,
              "title": "Citations Limit"
            }
          },
          {
            "name": "pages_limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 20,
              "title": "Pages Limit"
            }
          },
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Target website id",
              "title": "Website Id"
            },
            "description": "Target website id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UrlLookupResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AICrawlerStatusItem": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "company": {
            "type": "string",
            "title": "Company"
          },
          "importance": {
            "$ref": "#/components/schemas/CrawlerImportance"
          },
          "category": {
            "$ref": "#/components/schemas/AiCrawlerCategory",
            "default": "training"
          },
          "status": {
            "$ref": "#/components/schemas/CrawlerAccessStatus"
          }
        },
        "type": "object",
        "required": [
          "name",
          "company",
          "importance",
          "status"
        ],
        "title": "AICrawlerStatusItem"
      },
      "AgentAnalyticsResponse": {
        "properties": {
          "time_range": {
            "$ref": "#/components/schemas/TimeRange"
          },
          "summary": {
            "$ref": "#/components/schemas/AgentSummaryCard"
          },
          "trend": {
            "items": {
              "$ref": "#/components/schemas/AgentTrendPoint"
            },
            "type": "array",
            "title": "Trend"
          },
          "vendors": {
            "items": {
              "$ref": "#/components/schemas/AgentVendorRow"
            },
            "type": "array",
            "title": "Vendors"
          },
          "vendors_in_scope": {
            "items": {
              "$ref": "#/components/schemas/AgentVendorRow"
            },
            "type": "array",
            "title": "Vendors In Scope",
            "default": []
          },
          "categories": {
            "items": {
              "$ref": "#/components/schemas/AgentCategoryRow"
            },
            "type": "array",
            "title": "Categories",
            "default": []
          },
          "agents": {
            "items": {
              "$ref": "#/components/schemas/AgentBreakdownItem"
            },
            "type": "array",
            "title": "Agents",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "time_range",
          "summary",
          "trend",
          "vendors"
        ],
        "title": "AgentAnalyticsResponse"
      },
      "AgentBreakdownItem": {
        "properties": {
          "agent_key": {
            "type": "string",
            "title": "Agent Key"
          },
          "agent_name": {
            "type": "string",
            "title": "Agent Name"
          },
          "vendor": {
            "$ref": "#/components/schemas/AgentVendor"
          },
          "category": {
            "$ref": "#/components/schemas/AgentCategory",
            "default": "ai_crawler"
          },
          "visits": {
            "type": "integer",
            "title": "Visits"
          }
        },
        "type": "object",
        "required": [
          "agent_key",
          "agent_name",
          "vendor",
          "visits"
        ],
        "title": "AgentBreakdownItem"
      },
      "AgentCategory": {
        "type": "string",
        "enum": [
          "ai_referral",
          "ai_search",
          "ai_training",
          "ai_agent",
          "ai_crawler"
        ],
        "title": "AgentCategory"
      },
      "AgentCategoryRow": {
        "properties": {
          "category": {
            "$ref": "#/components/schemas/AgentCategory"
          },
          "visits": {
            "type": "integer",
            "title": "Visits"
          },
          "visits_delta": {
            "type": "integer",
            "title": "Visits Delta",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "category",
          "visits"
        ],
        "title": "AgentCategoryRow"
      },
      "AgentNextKind": {
        "type": "string",
        "enum": [
          "follow_up",
          "look_again",
          "send",
          "asks_you",
          "paused",
          "with_you",
          "working"
        ],
        "title": "AgentNextKind"
      },
      "AgentPageRow": {
        "properties": {
          "path": {
            "type": "string",
            "title": "Path"
          },
          "folder": {
            "type": "string",
            "title": "Folder"
          },
          "host": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Host"
          },
          "visits": {
            "type": "integer",
            "title": "Visits"
          },
          "visits_delta": {
            "type": "integer",
            "title": "Visits Delta"
          },
          "agents": {
            "items": {
              "$ref": "#/components/schemas/AgentBreakdownItem"
            },
            "type": "array",
            "title": "Agents"
          }
        },
        "type": "object",
        "required": [
          "path",
          "folder",
          "visits",
          "visits_delta",
          "agents"
        ],
        "title": "AgentPageRow"
      },
      "AgentPagesResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AgentPageRow"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total",
          "page",
          "page_size"
        ],
        "title": "AgentPagesResponse"
      },
      "AgentSummaryCard": {
        "properties": {
          "total_visits": {
            "type": "integer",
            "title": "Total Visits"
          },
          "unique_agents": {
            "type": "integer",
            "title": "Unique Agents"
          },
          "unique_pages": {
            "type": "integer",
            "title": "Unique Pages"
          },
          "top_agents": {
            "items": {
              "$ref": "#/components/schemas/AgentBreakdownItem"
            },
            "type": "array",
            "title": "Top Agents",
            "default": []
          },
          "total_visits_delta": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total Visits Delta"
          }
        },
        "type": "object",
        "required": [
          "total_visits",
          "unique_agents",
          "unique_pages"
        ],
        "title": "AgentSummaryCard"
      },
      "AgentTrendPoint": {
        "properties": {
          "date": {
            "type": "string",
            "title": "Date"
          },
          "visits": {
            "type": "integer",
            "title": "Visits"
          },
          "agents": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Agents",
            "default": {}
          },
          "vendors": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Vendors",
            "default": {}
          },
          "categories": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Categories",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "date",
          "visits"
        ],
        "title": "AgentTrendPoint"
      },
      "AgentVendor": {
        "type": "string",
        "enum": [
          "openai",
          "anthropic",
          "perplexity",
          "google",
          "microsoft",
          "xai",
          "mistral",
          "meta",
          "amazon",
          "apple",
          "bytedance",
          "alibaba",
          "baidu",
          "tencent",
          "deepseek",
          "moonshot",
          "zhipu",
          "huawei",
          "yandex",
          "cohere",
          "duckduckgo",
          "other"
        ],
        "title": "AgentVendor"
      },
      "AgentVendorRow": {
        "properties": {
          "vendor": {
            "$ref": "#/components/schemas/AgentVendor"
          },
          "visits": {
            "type": "integer",
            "title": "Visits"
          },
          "pages": {
            "type": "integer",
            "title": "Pages",
            "default": 0
          },
          "visits_delta": {
            "type": "integer",
            "title": "Visits Delta",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "vendor",
          "visits"
        ],
        "title": "AgentVendorRow"
      },
      "AiCrawlerCategory": {
        "type": "string",
        "enum": [
          "training",
          "search",
          "user"
        ],
        "title": "AiCrawlerCategory"
      },
      "AiPlatform": {
        "type": "string",
        "enum": [
          "ChatGPT",
          "Gemini",
          "AI Overviews",
          "Google AI Mode",
          "Perplexity",
          "Mistral",
          "Claude",
          "DeepSeek",
          "Grok",
          "Copilot",
          "Bing AI Mode"
        ],
        "title": "AiPlatform"
      },
      "AuditType": {
        "type": "string",
        "enum": [
          "FULL",
          "SELECTED_PAGES"
        ],
        "title": "AuditType"
      },
      "BotProtectionDetection": {
        "properties": {
          "resource": {
            "$ref": "#/components/schemas/HealthResource"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "http_status": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Http Status"
          }
        },
        "type": "object",
        "required": [
          "resource",
          "url"
        ],
        "title": "BotProtectionDetection"
      },
      "BrandKind": {
        "type": "string",
        "enum": [
          "own",
          "competitor",
          "unresolved"
        ],
        "title": "BrandKind"
      },
      "CitationBase": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "content": {
            "type": "string",
            "title": "Content"
          },
          "platform": {
            "$ref": "#/components/schemas/AiPlatform"
          },
          "sources": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sources"
          },
          "mentioned_sources": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mentioned Sources"
          },
          "website_cited": {
            "type": "boolean",
            "title": "Website Cited"
          },
          "match_types": {
            "items": {
              "$ref": "#/components/schemas/CitationMatchType"
            },
            "type": "array",
            "title": "Match Types"
          },
          "localization": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Localization"
          },
          "competitors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CompetitorWithoutLogo"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Competitors"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "website_rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Website Rank"
          },
          "website_rank_total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Website Rank Total"
          },
          "brand_mentions": {
            "items": {
              "$ref": "#/components/schemas/CitationBrandMentionSchema"
            },
            "type": "array",
            "title": "Brand Mentions"
          }
        },
        "type": "object",
        "required": [
          "id",
          "content",
          "platform",
          "website_cited",
          "created_at"
        ],
        "title": "CitationBase"
      },
      "CitationBrandMentionSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "brand_name_normalized": {
            "type": "string",
            "title": "Brand Name Normalized"
          },
          "is_tracked_website": {
            "type": "boolean",
            "title": "Is Tracked Website"
          },
          "resolved_competitor_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved Competitor Id"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "highlights": {
            "items": {
              "$ref": "#/components/schemas/CitationHighlightSchema"
            },
            "type": "array",
            "title": "Highlights"
          }
        },
        "type": "object",
        "required": [
          "id",
          "display_name",
          "brand_name_normalized",
          "is_tracked_website"
        ],
        "title": "CitationBrandMentionSchema"
      },
      "CitationBreakdownSeriesPoint": {
        "properties": {
          "date": {
            "type": "string",
            "title": "Date"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          },
          "denominator": {
            "type": "integer",
            "title": "Denominator",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "date",
          "count"
        ],
        "title": "CitationBreakdownSeriesPoint"
      },
      "CitationHighlightSchema": {
        "properties": {
          "text": {
            "type": "string",
            "title": "Text"
          },
          "type": {
            "$ref": "#/components/schemas/HighlightType"
          },
          "start": {
            "type": "integer",
            "title": "Start"
          },
          "end": {
            "type": "integer",
            "title": "End"
          }
        },
        "type": "object",
        "required": [
          "text",
          "type",
          "start",
          "end"
        ],
        "title": "CitationHighlightSchema"
      },
      "CitationMatchType": {
        "type": "string",
        "enum": [
          "brand_mention",
          "cited_link",
          "background_link"
        ],
        "title": "CitationMatchType"
      },
      "CitationMatchTypeBreakdown": {
        "properties": {
          "match_type": {
            "$ref": "#/components/schemas/CitationMatchType"
          },
          "count": {
            "type": "integer",
            "title": "Count",
            "default": 0
          },
          "previous_count": {
            "type": "integer",
            "title": "Previous Count",
            "default": 0
          },
          "delta": {
            "type": "integer",
            "title": "Delta",
            "default": 0
          },
          "delta_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Delta Pct"
          },
          "denominator": {
            "type": "integer",
            "title": "Denominator",
            "default": 0
          },
          "percentage": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percentage"
          },
          "previous_denominator": {
            "type": "integer",
            "title": "Previous Denominator",
            "default": 0
          },
          "previous_percentage": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Previous Percentage"
          },
          "percentage_delta": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percentage Delta"
          },
          "series": {
            "items": {
              "$ref": "#/components/schemas/CitationBreakdownSeriesPoint"
            },
            "type": "array",
            "title": "Series"
          }
        },
        "type": "object",
        "required": [
          "match_type"
        ],
        "title": "CitationMatchTypeBreakdown"
      },
      "CitationShareOverTime": {
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time",
            "title": "Date"
          },
          "share_of_voice": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Share Of Voice"
          }
        },
        "type": "object",
        "required": [
          "date"
        ],
        "title": "CitationShareOverTime"
      },
      "CitationShareOverTimeResponse": {
        "properties": {
          "entity_name": {
            "type": "string",
            "title": "Entity Name"
          },
          "data_points": {
            "items": {
              "$ref": "#/components/schemas/CitationShareOverTime"
            },
            "type": "array",
            "title": "Data Points"
          }
        },
        "type": "object",
        "required": [
          "entity_name",
          "data_points"
        ],
        "title": "CitationShareOverTimeResponse"
      },
      "CitationWithPrompt": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "content": {
            "type": "string",
            "title": "Content"
          },
          "platform": {
            "$ref": "#/components/schemas/AiPlatform"
          },
          "sources": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sources"
          },
          "mentioned_sources": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mentioned Sources"
          },
          "website_cited": {
            "type": "boolean",
            "title": "Website Cited"
          },
          "match_types": {
            "items": {
              "$ref": "#/components/schemas/CitationMatchType"
            },
            "type": "array",
            "title": "Match Types"
          },
          "localization": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Localization"
          },
          "competitors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CompetitorWithoutLogo"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Competitors"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "website_rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Website Rank"
          },
          "website_rank_total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Website Rank Total"
          },
          "brand_mentions": {
            "items": {
              "$ref": "#/components/schemas/CitationBrandMentionSchema"
            },
            "type": "array",
            "title": "Brand Mentions"
          },
          "prompt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptInCitation"
              },
              {
                "type": "null"
              }
            ]
          },
          "competitor_ranks": {
            "items": {
              "$ref": "#/components/schemas/CompetitorRankInCitation"
            },
            "type": "array",
            "title": "Competitor Ranks"
          }
        },
        "type": "object",
        "required": [
          "id",
          "content",
          "platform",
          "website_cited",
          "created_at"
        ],
        "title": "CitationWithPrompt"
      },
      "CitationsBreakdownResponse": {
        "properties": {
          "breakdown": {
            "items": {
              "$ref": "#/components/schemas/CitationMatchTypeBreakdown"
            },
            "type": "array",
            "title": "Breakdown"
          }
        },
        "type": "object",
        "required": [
          "breakdown"
        ],
        "title": "CitationsBreakdownResponse"
      },
      "ClosestPageSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          }
        },
        "type": "object",
        "required": [
          "id",
          "url",
          "title"
        ],
        "title": "ClosestPageSchema"
      },
      "CommonErrorSchema": {
        "properties": {
          "error_type": {
            "type": "string",
            "title": "Error Type"
          },
          "severity": {
            "type": "string",
            "title": "Severity"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "error_type",
          "severity",
          "count"
        ],
        "title": "CommonErrorSchema"
      },
      "CompetitorCitationsResponse": {
        "properties": {
          "entities": {
            "items": {
              "$ref": "#/components/schemas/EntityCitationCount"
            },
            "type": "array",
            "title": "Entities"
          },
          "answer_count": {
            "type": "integer",
            "title": "Answer Count"
          },
          "others_count": {
            "type": "integer",
            "title": "Others Count"
          }
        },
        "type": "object",
        "required": [
          "entities",
          "answer_count",
          "others_count"
        ],
        "title": "CompetitorCitationsResponse"
      },
      "CompetitorCreateSchema": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "logo_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Logo Url"
          },
          "aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "maxLength": 100,
                  "minLength": 1
                },
                "type": "array",
                "maxItems": 50
              },
              {
                "type": "null"
              }
            ],
            "title": "Aliases"
          },
          "url_aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "maxLength": 100,
                  "minLength": 1
                },
                "type": "array",
                "maxItems": 50
              },
              {
                "type": "null"
              }
            ],
            "title": "Url Aliases"
          }
        },
        "type": "object",
        "required": [
          "name",
          "url"
        ],
        "title": "CompetitorCreateSchema"
      },
      "CompetitorLimits": {
        "properties": {
          "limit": {
            "type": "integer",
            "title": "Limit"
          }
        },
        "type": "object",
        "required": [
          "limit"
        ],
        "title": "CompetitorLimits"
      },
      "CompetitorRankInCitation": {
        "properties": {
          "competitor_id": {
            "type": "integer",
            "title": "Competitor Id"
          },
          "rank": {
            "type": "integer",
            "title": "Rank"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "competitor_id",
          "rank"
        ],
        "title": "CompetitorRankInCitation"
      },
      "CompetitorRankingResponse": {
        "properties": {
          "entities": {
            "items": {
              "$ref": "#/components/schemas/RankedEntity"
            },
            "type": "array",
            "title": "Entities"
          },
          "answer_count": {
            "type": "integer",
            "title": "Answer Count"
          }
        },
        "type": "object",
        "required": [
          "entities",
          "answer_count"
        ],
        "title": "CompetitorRankingResponse"
      },
      "CompetitorStatSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "count"
        ],
        "title": "CompetitorStatSchema"
      },
      "CompetitorUpdateSchema": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "maxLength": 100,
                  "minLength": 1
                },
                "type": "array",
                "maxItems": 50
              },
              {
                "type": "null"
              }
            ],
            "title": "Aliases"
          },
          "url_aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "maxLength": 100,
                  "minLength": 1
                },
                "type": "array",
                "maxItems": 50
              },
              {
                "type": "null"
              }
            ],
            "title": "Url Aliases"
          }
        },
        "type": "object",
        "title": "CompetitorUpdateSchema"
      },
      "CompetitorWithoutLogo": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Aliases"
          },
          "url_aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url Aliases"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "url"
        ],
        "title": "CompetitorWithoutLogo"
      },
      "ContentAssetDecision": {
        "type": "string",
        "enum": [
          "new_page",
          "update_existing",
          "reject"
        ],
        "title": "ContentAssetDecision"
      },
      "ContentBuyerStage": {
        "type": "string",
        "enum": [
          "unaware",
          "problem_aware",
          "solution_aware",
          "product_aware",
          "most_aware"
        ],
        "title": "ContentBuyerStage"
      },
      "ContentCoverageRelation": {
        "type": "string",
        "enum": [
          "distinct",
          "adjacent",
          "overlap"
        ],
        "title": "ContentCoverageRelation"
      },
      "ContentGapListResponse": {
        "properties": {
          "suggestions": {
            "items": {
              "$ref": "#/components/schemas/ContentGapSuggestionListItemSchema"
            },
            "type": "array",
            "title": "Suggestions"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "limit": {
            "type": "integer",
            "title": "Limit"
          },
          "offset": {
            "type": "integer",
            "title": "Offset"
          },
          "similarity_threshold": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Similarity Threshold"
          }
        },
        "type": "object",
        "required": [
          "suggestions",
          "total",
          "limit",
          "offset"
        ],
        "title": "ContentGapListResponse"
      },
      "ContentGapStatus": {
        "type": "string",
        "enum": [
          "NEW",
          "REVIEWED",
          "ACCEPTED",
          "DISMISSED",
          "WRITTEN"
        ],
        "title": "ContentGapStatus"
      },
      "ContentGapSuggestionListItemSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "suggested_topic": {
            "type": "string",
            "title": "Suggested Topic"
          },
          "similarity_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Similarity Score"
          },
          "above_threshold": {
            "type": "boolean",
            "title": "Above Threshold",
            "default": false
          },
          "status": {
            "$ref": "#/components/schemas/ContentGapStatus"
          },
          "content_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Type"
          },
          "priority": {
            "$ref": "#/components/schemas/SuggestionPriority",
            "default": "medium"
          },
          "source_kind": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContentSuggestionSourceKind"
              },
              {
                "type": "null"
              }
            ]
          },
          "primary_query": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Query"
          },
          "content_job": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContentSuggestionJob"
              },
              {
                "type": "null"
              }
            ]
          },
          "generation_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Generation Version"
          },
          "brief_preview": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContentSuggestionBriefPreview"
              },
              {
                "type": "null"
              }
            ]
          },
          "evidence_summary": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContentSuggestionEvidenceSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "closest_page": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ClosestPageSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "suggested_topic",
          "similarity_score",
          "status",
          "closest_page",
          "created_at"
        ],
        "title": "ContentGapSuggestionListItemSchema"
      },
      "ContentGapSuggestionSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "client_site_id": {
            "type": "integer",
            "title": "Client Site Id"
          },
          "suggested_topic": {
            "type": "string",
            "title": "Suggested Topic"
          },
          "reasoning": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reasoning"
          },
          "content_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Type"
          },
          "content_brief": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Brief"
          },
          "priority": {
            "$ref": "#/components/schemas/SuggestionPriority",
            "default": "medium"
          },
          "source_kind": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContentSuggestionSourceKind"
              },
              {
                "type": "null"
              }
            ]
          },
          "primary_query": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Query"
          },
          "content_job": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContentSuggestionJob"
              },
              {
                "type": "null"
              }
            ]
          },
          "generation_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Generation Version"
          },
          "brief": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContentSuggestionBriefV1"
              },
              {
                "type": "null"
              }
            ]
          },
          "evidence": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContentSuggestionEvidenceV1"
              },
              {
                "type": "null"
              }
            ]
          },
          "similarity_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Similarity Score"
          },
          "above_threshold": {
            "type": "boolean",
            "title": "Above Threshold",
            "default": false
          },
          "similarity_threshold": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Similarity Threshold"
          },
          "status": {
            "$ref": "#/components/schemas/ContentGapStatus"
          },
          "closest_page": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ClosestPageSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "competitor_topic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Competitor Topic"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "client_site_id",
          "suggested_topic",
          "reasoning",
          "similarity_score",
          "status",
          "closest_page",
          "competitor_topic",
          "created_at"
        ],
        "title": "ContentGapSuggestionSchema"
      },
      "ContentRecommendedFormat": {
        "type": "string",
        "enum": [
          "article",
          "guide",
          "comparison",
          "tutorial",
          "checklist",
          "faq",
          "landing_page",
          "research_report"
        ],
        "title": "ContentRecommendedFormat"
      },
      "ContentSuggestionBriefPreview": {
        "properties": {
          "primary_query": {
            "type": "string",
            "title": "Primary Query"
          },
          "angle": {
            "type": "string",
            "title": "Angle"
          },
          "information_gain": {
            "type": "string",
            "title": "Information Gain"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "primary_query",
          "angle",
          "information_gain"
        ],
        "title": "ContentSuggestionBriefPreview"
      },
      "ContentSuggestionBriefV1": {
        "properties": {
          "version": {
            "type": "integer",
            "maximum": 1.0,
            "minimum": 1.0,
            "title": "Version",
            "default": 1
          },
          "primary_query": {
            "type": "string",
            "maxLength": 300,
            "minLength": 3,
            "title": "Primary Query"
          },
          "canonical_intent": {
            "type": "string",
            "maxLength": 600,
            "minLength": 10,
            "title": "Canonical Intent"
          },
          "search_intent": {
            "$ref": "#/components/schemas/SearchIntent"
          },
          "content_job": {
            "$ref": "#/components/schemas/ContentSuggestionJob"
          },
          "asset_decision": {
            "$ref": "#/components/schemas/ContentAssetDecision"
          },
          "buyer_stage": {
            "$ref": "#/components/schemas/ContentBuyerStage"
          },
          "audience": {
            "type": "string",
            "maxLength": 400,
            "minLength": 3,
            "title": "Audience"
          },
          "job_to_be_done": {
            "type": "string",
            "maxLength": 600,
            "minLength": 10,
            "title": "Job To Be Done"
          },
          "recommended_format": {
            "$ref": "#/components/schemas/ContentRecommendedFormat"
          },
          "angle": {
            "type": "string",
            "maxLength": 600,
            "minLength": 10,
            "title": "Angle"
          },
          "why_now": {
            "type": "string",
            "maxLength": 800,
            "minLength": 10,
            "title": "Why Now"
          },
          "reader_outcome": {
            "type": "string",
            "maxLength": 600,
            "minLength": 10,
            "title": "Reader Outcome"
          },
          "existing_coverage_summary": {
            "type": "string",
            "maxLength": 1200,
            "minLength": 10,
            "title": "Existing Coverage Summary"
          },
          "information_gain": {
            "type": "string",
            "maxLength": 1200,
            "minLength": 10,
            "title": "Information Gain"
          },
          "why_new_page": {
            "type": "string",
            "maxLength": 1000,
            "minLength": 10,
            "title": "Why New Page"
          },
          "outline": {
            "items": {
              "$ref": "#/components/schemas/ContentSuggestionOutlineSection"
            },
            "type": "array",
            "maxItems": 8,
            "minItems": 4,
            "title": "Outline"
          },
          "secondary_questions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 8,
            "title": "Secondary Questions"
          },
          "proof_plan": {
            "items": {
              "$ref": "#/components/schemas/ContentSuggestionProofRequirement"
            },
            "type": "array",
            "maxItems": 6,
            "minItems": 2,
            "title": "Proof Plan"
          },
          "original_value_requirements": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 8,
            "minItems": 1,
            "title": "Original Value Requirements"
          },
          "citable_blocks": {
            "items": {
              "$ref": "#/components/schemas/ContentSuggestionCitableBlock"
            },
            "type": "array",
            "maxItems": 5,
            "minItems": 1,
            "title": "Citable Blocks"
          },
          "internal_links": {
            "items": {
              "$ref": "#/components/schemas/ContentSuggestionInternalLink"
            },
            "type": "array",
            "maxItems": 6,
            "title": "Internal Links"
          },
          "overlap_notes": {
            "type": "string",
            "maxLength": 800,
            "minLength": 3,
            "title": "Overlap Notes"
          },
          "geo_requirements": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 8,
            "minItems": 1,
            "title": "Geo Requirements"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "primary_query",
          "canonical_intent",
          "search_intent",
          "content_job",
          "asset_decision",
          "buyer_stage",
          "audience",
          "job_to_be_done",
          "recommended_format",
          "angle",
          "why_now",
          "reader_outcome",
          "existing_coverage_summary",
          "information_gain",
          "why_new_page",
          "outline",
          "proof_plan",
          "original_value_requirements",
          "citable_blocks",
          "overlap_notes",
          "geo_requirements"
        ],
        "title": "ContentSuggestionBriefV1"
      },
      "ContentSuggestionCitableBlock": {
        "properties": {
          "block_type": {
            "type": "string",
            "maxLength": 80,
            "minLength": 3,
            "title": "Block Type"
          },
          "purpose": {
            "type": "string",
            "maxLength": 500,
            "minLength": 10,
            "title": "Purpose"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "block_type",
          "purpose"
        ],
        "title": "ContentSuggestionCitableBlock"
      },
      "ContentSuggestionEvidenceKind": {
        "type": "string",
        "enum": [
          "google_trends",
          "serp",
          "citation",
          "website",
          "gsc"
        ],
        "title": "ContentSuggestionEvidenceKind"
      },
      "ContentSuggestionEvidenceSource": {
        "properties": {
          "source_id": {
            "type": "string",
            "maxLength": 80,
            "pattern": "^source_[a-zA-Z0-9_-]+$",
            "title": "Source Id"
          },
          "title": {
            "type": "string",
            "maxLength": 600,
            "minLength": 1,
            "title": "Title"
          },
          "publisher": {
            "type": "string",
            "maxLength": 300,
            "minLength": 1,
            "title": "Publisher"
          },
          "source_type": {
            "$ref": "#/components/schemas/EvidenceSourceType"
          },
          "verification_status": {
            "$ref": "#/components/schemas/SourceVerificationStatus"
          },
          "source_url": {
            "type": "string",
            "title": "Source Url"
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At"
          },
          "observed_at": {
            "type": "string",
            "format": "date-time",
            "title": "Observed At"
          },
          "supports_proof_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 6,
            "title": "Supports Proof Ids"
          },
          "relevance_note": {
            "type": "string",
            "maxLength": 800,
            "minLength": 5,
            "title": "Relevance Note"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "source_id",
          "title",
          "publisher",
          "source_type",
          "verification_status",
          "source_url",
          "observed_at",
          "relevance_note"
        ],
        "title": "ContentSuggestionEvidenceSource"
      },
      "ContentSuggestionEvidenceSummary": {
        "properties": {
          "primary_source_kind": {
            "$ref": "#/components/schemas/ContentSuggestionSourceKind"
          },
          "primary_signal_label": {
            "type": "string",
            "title": "Primary Signal Label"
          },
          "primary_signal": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContentSuggestionSignalClass"
              },
              {
                "type": "null"
              }
            ]
          },
          "evidence_count": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Evidence Count"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "primary_source_kind",
          "primary_signal_label",
          "evidence_count"
        ],
        "title": "ContentSuggestionEvidenceSummary"
      },
      "ContentSuggestionEvidenceV1": {
        "properties": {
          "version": {
            "type": "integer",
            "maximum": 1.0,
            "minimum": 1.0,
            "title": "Version",
            "default": 1
          },
          "primary_source_kind": {
            "$ref": "#/components/schemas/ContentSuggestionSourceKind"
          },
          "signals": {
            "items": {
              "$ref": "#/components/schemas/ContentSuggestionSignal"
            },
            "type": "array",
            "maxItems": 20,
            "minItems": 1,
            "title": "Signals"
          },
          "proof_readiness": {
            "$ref": "#/components/schemas/ContentSuggestionProofReadiness"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/ContentSuggestionEvidenceSource"
            },
            "type": "array",
            "maxItems": 10,
            "title": "Sources"
          },
          "related_existing_pages": {
            "items": {
              "$ref": "#/components/schemas/RelatedExistingPage"
            },
            "type": "array",
            "maxItems": 5,
            "title": "Related Existing Pages"
          },
          "provenance": {
            "$ref": "#/components/schemas/ContentSuggestionProvenance"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "primary_source_kind",
          "signals",
          "proof_readiness",
          "provenance"
        ],
        "title": "ContentSuggestionEvidenceV1"
      },
      "ContentSuggestionInternalLink": {
        "properties": {
          "page_id": {
            "type": "integer",
            "title": "Page Id"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "reason": {
            "type": "string",
            "maxLength": 500,
            "minLength": 5,
            "title": "Reason"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "page_id",
          "url",
          "reason"
        ],
        "title": "ContentSuggestionInternalLink"
      },
      "ContentSuggestionJob": {
        "type": "string",
        "enum": [
          "direct_answer",
          "comparison",
          "decision_support",
          "use_case",
          "proof",
          "entity_explainer",
          "research_synthesis"
        ],
        "title": "ContentSuggestionJob"
      },
      "ContentSuggestionOutlineSection": {
        "properties": {
          "heading": {
            "type": "string",
            "maxLength": 180,
            "minLength": 3,
            "title": "Heading"
          },
          "objective": {
            "type": "string",
            "maxLength": 600,
            "minLength": 10,
            "title": "Objective"
          },
          "questions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 4,
            "minItems": 1,
            "title": "Questions"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "heading",
          "objective",
          "questions"
        ],
        "title": "ContentSuggestionOutlineSection"
      },
      "ContentSuggestionProofReadiness": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/ProofReadinessStatus"
          },
          "found_source_count": {
            "type": "integer",
            "maximum": 20.0,
            "minimum": 0.0,
            "title": "Found Source Count"
          },
          "brand_contribution_required": {
            "type": "boolean",
            "title": "Brand Contribution Required"
          },
          "reason": {
            "type": "string",
            "maxLength": 800,
            "minLength": 5,
            "title": "Reason"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status",
          "found_source_count",
          "brand_contribution_required",
          "reason"
        ],
        "title": "ContentSuggestionProofReadiness"
      },
      "ContentSuggestionProofRequirement": {
        "properties": {
          "proof_id": {
            "type": "string",
            "maxLength": 80,
            "pattern": "^proof_[a-zA-Z0-9_-]+$",
            "title": "Proof Id"
          },
          "claim_or_question": {
            "type": "string",
            "maxLength": 800,
            "minLength": 10,
            "title": "Claim Or Question"
          },
          "required_evidence": {
            "type": "string",
            "maxLength": 800,
            "minLength": 10,
            "title": "Required Evidence"
          },
          "preferred_source_type": {
            "$ref": "#/components/schemas/EvidenceSourceType"
          },
          "availability": {
            "$ref": "#/components/schemas/ProofAvailability"
          },
          "source_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 8,
            "title": "Source Ids"
          },
          "claim_boundary": {
            "type": "string",
            "maxLength": 800,
            "minLength": 10,
            "title": "Claim Boundary"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "proof_id",
          "claim_or_question",
          "required_evidence",
          "preferred_source_type",
          "availability",
          "claim_boundary"
        ],
        "title": "ContentSuggestionProofRequirement"
      },
      "ContentSuggestionProvenance": {
        "properties": {
          "research_key": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Research Key"
          },
          "seeds": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 2,
            "minItems": 1,
            "title": "Seeds"
          },
          "language": {
            "type": "string",
            "maxLength": 10,
            "minLength": 2,
            "title": "Language"
          },
          "location_code": {
            "type": "integer",
            "exclusiveMinimum": 0.0,
            "title": "Location Code"
          },
          "timeframe": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Timeframe"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "research_key",
          "seeds",
          "language",
          "location_code",
          "timeframe"
        ],
        "title": "ContentSuggestionProvenance"
      },
      "ContentSuggestionQuotaSchema": {
        "properties": {
          "used": {
            "type": "integer",
            "title": "Used"
          },
          "limit": {
            "type": "integer",
            "title": "Limit"
          },
          "research_runs_used": {
            "type": "integer",
            "title": "Research Runs Used"
          },
          "research_runs_limit": {
            "type": "integer",
            "title": "Research Runs Limit"
          },
          "resets_at": {
            "type": "string",
            "title": "Resets At"
          },
          "next_due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Due At"
          }
        },
        "type": "object",
        "required": [
          "used",
          "limit",
          "research_runs_used",
          "research_runs_limit",
          "resets_at"
        ],
        "title": "ContentSuggestionQuotaSchema"
      },
      "ContentSuggestionSignal": {
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/ContentSuggestionEvidenceKind"
          },
          "label": {
            "type": "string",
            "maxLength": 300,
            "minLength": 1,
            "title": "Label"
          },
          "query": {
            "type": "string",
            "maxLength": 300,
            "minLength": 1,
            "title": "Query"
          },
          "seed_query": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300
              },
              {
                "type": "null"
              }
            ],
            "title": "Seed Query"
          },
          "signal": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContentSuggestionSignalClass"
              },
              {
                "type": "null"
              }
            ]
          },
          "raw_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Raw Value"
          },
          "timeframe": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ],
            "title": "Timeframe"
          },
          "geo": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Geo"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "publisher": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300
              },
              {
                "type": "null"
              }
            ],
            "title": "Publisher"
          },
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 600
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "snippet": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1200
              },
              {
                "type": "null"
              }
            ],
            "title": "Snippet"
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url"
          },
          "observed_at": {
            "type": "string",
            "format": "date-time",
            "title": "Observed At"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind",
          "label",
          "query",
          "observed_at"
        ],
        "title": "ContentSuggestionSignal"
      },
      "ContentSuggestionSignalClass": {
        "type": "string",
        "enum": [
          "top",
          "rising",
          "breakout",
          "citation",
          "fanout",
          "editorial"
        ],
        "title": "ContentSuggestionSignalClass"
      },
      "ContentSuggestionSourceKind": {
        "type": "string",
        "enum": [
          "fanout",
          "editorial",
          "citation_gap",
          "google_trends",
          "blended",
          "gsc"
        ],
        "title": "ContentSuggestionSourceKind"
      },
      "CrawlBlockReason": {
        "type": "string",
        "enum": [
          "waf_challenge",
          "http_forbidden"
        ],
        "title": "CrawlBlockReason"
      },
      "CrawlerAccessStatus": {
        "type": "string",
        "enum": [
          "allowed",
          "blocked",
          "not_specified"
        ],
        "title": "CrawlerAccessStatus"
      },
      "CrawlerImportance": {
        "type": "string",
        "enum": [
          "critical",
          "high",
          "medium"
        ],
        "title": "CrawlerImportance"
      },
      "CurrentUserResponse": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "email",
          "full_name"
        ],
        "title": "CurrentUserResponse"
      },
      "EntityCitationCount": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "logo_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Logo Url"
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count"
          },
          "is_own": {
            "type": "boolean",
            "title": "Is Own"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "url",
          "citation_count",
          "is_own"
        ],
        "title": "EntityCitationCount"
      },
      "EntityShareOfVoice": {
        "properties": {
          "date": {
            "type": "string",
            "title": "Date"
          },
          "denominator": {
            "type": "integer",
            "title": "Denominator",
            "default": 0
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "date"
        ],
        "title": "EntityShareOfVoice"
      },
      "EvidenceSourceType": {
        "type": "string",
        "enum": [
          "market_signal",
          "official_documentation",
          "original_research",
          "industry_publication",
          "community",
          "internal_page",
          "brand_first_party_data",
          "unknown"
        ],
        "title": "EvidenceSourceType"
      },
      "GlobalHealthResponse": {
        "properties": {
          "robots_allows_ai": {
            "type": "boolean",
            "title": "Robots Allows Ai"
          },
          "robots_txt_exists": {
            "type": "boolean",
            "title": "Robots Txt Exists",
            "default": false
          },
          "llms_txt_exists": {
            "type": "boolean",
            "title": "Llms Txt Exists"
          },
          "sitemap_exists": {
            "type": "boolean",
            "title": "Sitemap Exists"
          },
          "sitemap_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sitemap Url"
          },
          "llms_txt_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Llms Txt Url"
          },
          "robots_txt_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Robots Txt Url"
          },
          "ai_crawlers_status": {
            "items": {
              "$ref": "#/components/schemas/AICrawlerStatusItem"
            },
            "type": "array",
            "title": "Ai Crawlers Status"
          },
          "robots_obsolete_agents": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Robots Obsolete Agents"
          },
          "bot_protection_detected": {
            "items": {
              "$ref": "#/components/schemas/BotProtectionDetection"
            },
            "type": "array",
            "title": "Bot Protection Detected"
          },
          "ai_crawler_visits_30d": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Crawler Visits 30D"
          },
          "last_health_check_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Health Check At"
          },
          "crawl_block_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CrawlBlockReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "crawl_blocked_pages": {
            "type": "integer",
            "title": "Crawl Blocked Pages",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "robots_allows_ai",
          "llms_txt_exists",
          "sitemap_exists",
          "last_health_check_at"
        ],
        "title": "GlobalHealthResponse"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "HealthCheckErrorSeverity": {
        "type": "string",
        "enum": [
          "error",
          "warning"
        ],
        "title": "HealthCheckErrorSeverity"
      },
      "HealthCheckErrorType": {
        "type": "string",
        "enum": [
          "robots_txt_missing",
          "robots_txt_blocks_ai",
          "llms_txt_missing",
          "sitemap_missing",
          "noindex_tag",
          "meta_description_missing",
          "meta_description_too_short",
          "meta_description_too_long",
          "title_missing",
          "title_too_short",
          "title_too_long",
          "schema_missing",
          "schema_invalid",
          "schema_article_missing",
          "schema_faq_missing",
          "h1_missing",
          "h1_multiple",
          "heading_hierarchy_broken",
          "canonical_missing",
          "canonical_mismatch",
          "open_graph_missing",
          "http_error",
          "slow_load_time",
          "images_missing_alt",
          "content_too_short",
          "no_internal_links",
          "date_outdated"
        ],
        "title": "HealthCheckErrorType"
      },
      "HealthErrorSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "error_type": {
            "$ref": "#/components/schemas/HealthCheckErrorType"
          },
          "severity": {
            "$ref": "#/components/schemas/HealthCheckErrorSeverity"
          },
          "message": {
            "type": "string",
            "title": "Message"
          },
          "details": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Details"
          }
        },
        "type": "object",
        "required": [
          "id",
          "error_type",
          "severity",
          "message"
        ],
        "title": "HealthErrorSchema"
      },
      "HealthOverviewResponse": {
        "properties": {
          "global_health": {
            "$ref": "#/components/schemas/GlobalHealthResponse"
          },
          "suggestions": {
            "items": {
              "$ref": "#/components/schemas/SuggestionResponse"
            },
            "type": "array",
            "title": "Suggestions"
          },
          "improvement_count": {
            "type": "integer",
            "title": "Improvement Count"
          },
          "creation_count": {
            "type": "integer",
            "title": "Creation Count"
          },
          "total_pages": {
            "type": "integer",
            "title": "Total Pages"
          },
          "pages_with_issues": {
            "type": "integer",
            "title": "Pages With Issues"
          }
        },
        "type": "object",
        "required": [
          "global_health",
          "suggestions",
          "improvement_count",
          "creation_count",
          "total_pages",
          "pages_with_issues"
        ],
        "title": "HealthOverviewResponse"
      },
      "HealthResource": {
        "type": "string",
        "enum": [
          "robots_txt",
          "llms_txt",
          "sitemap"
        ],
        "title": "HealthResource"
      },
      "HighlightType": {
        "type": "string",
        "enum": [
          "positive",
          "negative",
          "neutral"
        ],
        "title": "HighlightType"
      },
      "IndexSinglePagePublicRequest": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url"
          }
        },
        "type": "object",
        "required": [
          "url"
        ],
        "title": "IndexSinglePagePublicRequest"
      },
      "Language": {
        "type": "string",
        "enum": [
          "en",
          "fr"
        ],
        "title": "Language"
      },
      "LostGroundBrandRank": {
        "properties": {
          "competitor_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Competitor Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "is_site": {
            "type": "boolean",
            "title": "Is Site",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "LostGroundBrandRank"
      },
      "OutreachActionRow": {
        "properties": {
          "count": {
            "type": "integer",
            "title": "Count",
            "default": 0
          },
          "first_source_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "First Source Id"
          },
          "domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain"
          },
          "days_waiting": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Days Waiting"
          },
          "going_cold": {
            "type": "boolean",
            "title": "Going Cold",
            "default": false
          }
        },
        "type": "object",
        "title": "OutreachActionRow"
      },
      "OutreachActivityActor": {
        "type": "string",
        "enum": [
          "all",
          "hikoo",
          "you",
          "contacts",
          "done_alone",
          "decisions"
        ],
        "title": "OutreachActivityActor"
      },
      "OutreachActivityBucket": {
        "type": "string",
        "enum": [
          "today",
          "yesterday",
          "days_ago",
          "earlier_this_week",
          "earlier"
        ],
        "title": "OutreachActivityBucket"
      },
      "OutreachActivityEntry": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "type": {
            "$ref": "#/components/schemas/OutreachTouchType"
          },
          "actor": {
            "$ref": "#/components/schemas/OutreachActivityActor"
          },
          "actor_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Actor Name"
          },
          "source_id": {
            "type": "integer",
            "title": "Source Id"
          },
          "domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain"
          },
          "payload": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Payload"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "title": "Occurred At"
          },
          "bucket": {
            "$ref": "#/components/schemas/OutreachActivityBucket"
          },
          "bucket_params": {
            "type": "object",
            "title": "Bucket Params",
            "default": {}
          },
          "decision_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decision Text"
          }
        },
        "type": "object",
        "required": [
          "id",
          "type",
          "actor",
          "source_id",
          "occurred_at",
          "bucket"
        ],
        "title": "OutreachActivityEntry"
      },
      "OutreachActivityResponse": {
        "properties": {
          "entries": {
            "items": {
              "$ref": "#/components/schemas/OutreachActivityEntry"
            },
            "type": "array",
            "title": "Entries",
            "default": []
          },
          "has_more": {
            "type": "boolean",
            "title": "Has More",
            "default": false
          }
        },
        "type": "object",
        "title": "OutreachActivityResponse"
      },
      "OutreachActor": {
        "type": "string",
        "enum": [
          "agent",
          "user"
        ],
        "title": "OutreachActor"
      },
      "OutreachAgentLine": {
        "properties": {
          "key": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachAgentNow"
              },
              {
                "$ref": "#/components/schemas/OutreachAgentNext"
              }
            ],
            "title": "Key"
          },
          "params": {
            "type": "object",
            "title": "Params",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "key"
        ],
        "title": "OutreachAgentLine"
      },
      "OutreachAgentNext": {
        "type": "string",
        "enum": [
          "send_on_approval",
          "send_when_mailbox_connected",
          "send_scheduled",
          "follow_up",
          "next_check",
          "nothing_planned"
        ],
        "title": "OutreachAgentNext"
      },
      "OutreachAgentNow": {
        "type": "string",
        "enum": [
          "writing_pitches",
          "reading_replies",
          "finding_contacts",
          "qualifying",
          "reading_sources",
          "idle"
        ],
        "title": "OutreachAgentNow"
      },
      "OutreachAgentPlanResponse": {
        "properties": {
          "next_kind": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AgentNextKind"
              },
              {
                "type": "null"
              }
            ]
          },
          "next_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next At"
          },
          "why": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Why"
          },
          "decisions": {
            "items": {
              "$ref": "#/components/schemas/OutreachFounderDecisionLine"
            },
            "type": "array",
            "title": "Decisions",
            "default": []
          }
        },
        "type": "object",
        "title": "OutreachAgentPlanResponse"
      },
      "OutreachAutonomyLevel": {
        "type": "string",
        "enum": [
          "asks_you_first",
          "tells_you_after",
          "does_it_alone"
        ],
        "title": "OutreachAutonomyLevel"
      },
      "OutreachAutonomyPreset": {
        "type": "string",
        "enum": [
          "asks_you_everything",
          "follows_your_rules",
          "runs_on_its_own",
          "custom"
        ],
        "title": "OutreachAutonomyPreset"
      },
      "OutreachBlacklistCreateRequest": {
        "properties": {
          "value": {
            "type": "string",
            "maxLength": 254,
            "minLength": 3,
            "title": "Value"
          },
          "scope": {
            "$ref": "#/components/schemas/OutreachBlacklistScope",
            "default": "domain"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "value"
        ],
        "title": "OutreachBlacklistCreateRequest"
      },
      "OutreachBlacklistEntryResponse": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "scope": {
            "$ref": "#/components/schemas/OutreachBlacklistScope"
          },
          "value": {
            "type": "string",
            "title": "Value"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "created_by_user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By User Id"
          },
          "created_by_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Name"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "removed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Removed At"
          },
          "removed_by_user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Removed By User Id"
          }
        },
        "type": "object",
        "required": [
          "id",
          "scope",
          "value"
        ],
        "title": "OutreachBlacklistEntryResponse"
      },
      "OutreachBlacklistListResponse": {
        "properties": {
          "entries": {
            "items": {
              "$ref": "#/components/schemas/OutreachBlacklistEntryResponse"
            },
            "type": "array",
            "title": "Entries"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "entries",
          "total"
        ],
        "title": "OutreachBlacklistListResponse"
      },
      "OutreachBlacklistScope": {
        "type": "string",
        "enum": [
          "domain",
          "email"
        ],
        "title": "OutreachBlacklistScope"
      },
      "OutreachBlockedReason": {
        "type": "string",
        "enum": [
          "fetch_failed",
          "no_named_person",
          "no_target_url",
          "no_address",
          "no_email",
          "generic_address",
          "solo_inbox",
          "low_confidence",
          "missing_full_name",
          "address_inferred",
          "address_from_provider",
          "address_off_domain",
          "email_unknown",
          "email_risky",
          "email_invalid",
          "unresolved",
          "stopped_citing",
          "delivery_refused"
        ],
        "title": "OutreachBlockedReason"
      },
      "OutreachCapUsage": {
        "properties": {
          "used": {
            "type": "integer",
            "title": "Used"
          },
          "cap": {
            "type": "integer",
            "title": "Cap"
          },
          "remaining": {
            "type": "integer",
            "title": "Remaining"
          }
        },
        "type": "object",
        "required": [
          "used",
          "cap",
          "remaining"
        ],
        "title": "OutreachCapUsage"
      },
      "OutreachChannel": {
        "type": "string",
        "enum": [
          "email",
          "linkedin"
        ],
        "title": "OutreachChannel"
      },
      "OutreachCloseBy": {
        "type": "string",
        "enum": [
          "hikoo",
          "you",
          "them"
        ],
        "title": "OutreachCloseBy"
      },
      "OutreachCloseFamily": {
        "type": "string",
        "enum": [
          "won",
          "no_reply",
          "declined",
          "paid_only",
          "do_not_contact",
          "stopped_by_you",
          "already_mentioned",
          "not_a_fit",
          "competitor",
          "no_one_to_ask",
          "page_unavailable",
          "not_cited_enough",
          "no_contact",
          "out_of_scope",
          "other"
        ],
        "title": "OutreachCloseFamily"
      },
      "OutreachCloseReason": {
        "properties": {
          "family": {
            "$ref": "#/components/schemas/OutreachCloseFamily"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "by": {
            "$ref": "#/components/schemas/OutreachCloseBy"
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          },
          "params": {
            "type": "object",
            "title": "Params",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "family",
          "code",
          "by"
        ],
        "title": "OutreachCloseReason"
      },
      "OutreachContactAllowance": {
        "properties": {
          "used": {
            "type": "integer",
            "title": "Used"
          },
          "cap": {
            "type": "integer",
            "title": "Cap"
          },
          "reached": {
            "type": "boolean",
            "title": "Reached"
          },
          "resumes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resumes At"
          },
          "waiting": {
            "type": "integer",
            "title": "Waiting",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "used",
          "cap",
          "reached"
        ],
        "title": "OutreachContactAllowance"
      },
      "OutreachContactResponse": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "is_alternate": {
            "type": "boolean",
            "title": "Is Alternate",
            "default": false
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "role_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Title"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "linkedin_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Linkedin Url"
          },
          "confidence": {
            "type": "number",
            "title": "Confidence",
            "default": 0
          },
          "email_verified": {
            "type": "boolean",
            "title": "Email Verified",
            "default": false
          },
          "verification_result": {
            "$ref": "#/components/schemas/OutreachEmailVerification",
            "default": "unknown"
          },
          "is_generic": {
            "type": "boolean",
            "title": "Is Generic",
            "default": false
          },
          "job_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Job Title"
          }
        },
        "type": "object",
        "required": [
          "id",
          "full_name"
        ],
        "title": "OutreachContactResponse"
      },
      "OutreachContactUpdateRequest": {
        "properties": {
          "full_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ],
            "title": "Full Name"
          },
          "role_title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 160
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Title"
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 254
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "linkedin_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ],
            "title": "Linkedin Url"
          },
          "use_alternate": {
            "type": "boolean",
            "title": "Use Alternate",
            "default": false
          },
          "alternate_contact_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Alternate Contact Id"
          }
        },
        "type": "object",
        "title": "OutreachContactUpdateRequest"
      },
      "OutreachDeliverableType": {
        "type": "string",
        "enum": [
          "web_page",
          "newsletter",
          "podcast",
          "social_post",
          "video",
          "print",
          "product_review",
          "test_drive",
          "other"
        ],
        "title": "OutreachDeliverableType"
      },
      "OutreachDraftQueuedResponse": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "already_queued",
              "pending_confirmation"
            ],
            "title": "Status"
          },
          "decision_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decision Id"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "OutreachDraftQueuedResponse"
      },
      "OutreachDraftRequest": {
        "properties": {
          "follow_up": {
            "type": "boolean",
            "title": "Follow Up",
            "default": false
          }
        },
        "type": "object",
        "title": "OutreachDraftRequest"
      },
      "OutreachEmailVerification": {
        "type": "string",
        "enum": [
          "valid",
          "risky",
          "invalid",
          "unknown"
        ],
        "title": "OutreachEmailVerification"
      },
      "OutreachFollowUpPlanResponse": {
        "properties": {
          "upcoming": {
            "items": {
              "type": "string",
              "format": "date-time"
            },
            "type": "array",
            "title": "Upcoming",
            "default": []
          },
          "first_number": {
            "type": "integer",
            "title": "First Number",
            "default": 1
          },
          "ceiling": {
            "type": "integer",
            "title": "Ceiling",
            "default": 0
          },
          "closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closes At"
          }
        },
        "type": "object",
        "title": "OutreachFollowUpPlanResponse"
      },
      "OutreachFollowUpRequest": {
        "properties": {
          "maximum": {
            "type": "integer",
            "maximum": 3.0,
            "minimum": 0.0,
            "title": "Maximum",
            "default": 3
          },
          "delay_days": {
            "type": "integer",
            "maximum": 30.0,
            "minimum": 2.0,
            "title": "Delay Days",
            "default": 3
          }
        },
        "type": "object",
        "title": "OutreachFollowUpRequest"
      },
      "OutreachFollowUpRescheduleRequest": {
        "properties": {
          "at": {
            "type": "string",
            "format": "date-time",
            "title": "At"
          }
        },
        "type": "object",
        "required": [
          "at"
        ],
        "title": "OutreachFollowUpRescheduleRequest"
      },
      "OutreachFounderDecisionLine": {
        "properties": {
          "decision_id": {
            "type": "integer",
            "title": "Decision Id"
          },
          "text": {
            "type": "string",
            "title": "Text"
          },
          "decided_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decided At"
          },
          "by_user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "By User Id"
          },
          "by_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "By Name"
          }
        },
        "type": "object",
        "required": [
          "decision_id",
          "text"
        ],
        "title": "OutreachFounderDecisionLine"
      },
      "OutreachHandoverChoiceResponse": {
        "properties": {
          "choice": {
            "$ref": "#/components/schemas/OutreachHotReplyAnswer"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "consequence": {
            "type": "string",
            "title": "Consequence",
            "default": ""
          },
          "needs_amount": {
            "type": "boolean",
            "title": "Needs Amount",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "choice",
          "label"
        ],
        "title": "OutreachHandoverChoiceResponse"
      },
      "OutreachHomeActions": {
        "properties": {
          "hot_replies": {
            "$ref": "#/components/schemas/OutreachActionRow"
          },
          "pitches_to_approve": {
            "$ref": "#/components/schemas/OutreachActionRow"
          },
          "follow_ups_to_approve": {
            "$ref": "#/components/schemas/OutreachActionRow",
            "default": {
              "count": 0,
              "going_cold": false
            }
          },
          "replies_to_approve": {
            "$ref": "#/components/schemas/OutreachActionRow",
            "default": {
              "count": 0,
              "going_cold": false
            }
          }
        },
        "type": "object",
        "required": [
          "hot_replies",
          "pitches_to_approve"
        ],
        "title": "OutreachHomeActions"
      },
      "OutreachHomeMailbox": {
        "properties": {
          "any_connected": {
            "type": "boolean",
            "title": "Any Connected",
            "default": false
          },
          "sending_for_site": {
            "type": "boolean",
            "title": "Sending For Site",
            "default": false
          },
          "mine_connected": {
            "type": "boolean",
            "title": "Mine Connected",
            "default": false
          },
          "needs_reconnect": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Needs Reconnect",
            "default": []
          },
          "mailboxes": {
            "items": {
              "$ref": "#/components/schemas/OutreachMailboxStatus"
            },
            "type": "array",
            "title": "Mailboxes",
            "default": []
          }
        },
        "type": "object",
        "title": "OutreachHomeMailbox"
      },
      "OutreachHomeOutcomes": {
        "properties": {
          "won": {
            "type": "integer",
            "title": "Won",
            "default": 0
          },
          "lost": {
            "type": "integer",
            "title": "Lost",
            "default": 0
          },
          "disqualified": {
            "type": "integer",
            "title": "Disqualified",
            "default": 0
          }
        },
        "type": "object",
        "title": "OutreachHomeOutcomes"
      },
      "OutreachHomeResponse": {
        "properties": {
          "send_disabled": {
            "type": "boolean",
            "title": "Send Disabled",
            "default": false
          },
          "decisions_waiting": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decisions Waiting"
          },
          "tabs": {
            "$ref": "#/components/schemas/OutreachHomeTabs"
          },
          "outcomes": {
            "$ref": "#/components/schemas/OutreachHomeOutcomes"
          },
          "actions": {
            "$ref": "#/components/schemas/OutreachHomeActions"
          },
          "results": {
            "$ref": "#/components/schemas/OutreachHomeResults"
          },
          "agent_now": {
            "$ref": "#/components/schemas/OutreachAgentLine"
          },
          "agent_next": {
            "$ref": "#/components/schemas/OutreachAgentLine"
          },
          "contact_allowance": {
            "$ref": "#/components/schemas/OutreachContactAllowance"
          },
          "mailbox": {
            "$ref": "#/components/schemas/OutreachHomeMailbox"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/OutreachSourceListItem"
            },
            "type": "array",
            "title": "Rows",
            "default": []
          },
          "total": {
            "type": "integer",
            "title": "Total",
            "default": 0
          },
          "agent_mode": {
            "type": "boolean",
            "title": "Agent Mode",
            "default": false
          },
          "told_after": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachToldAfter"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "tabs",
          "outcomes",
          "actions",
          "results",
          "agent_now",
          "agent_next",
          "contact_allowance",
          "mailbox"
        ],
        "title": "OutreachHomeResponse"
      },
      "OutreachHomeResults": {
        "properties": {
          "mentions_won": {
            "type": "integer",
            "title": "Mentions Won",
            "default": 0
          },
          "active_opportunities": {
            "type": "integer",
            "title": "Active Opportunities",
            "default": 0
          },
          "pitched": {
            "type": "integer",
            "title": "Pitched",
            "default": 0
          },
          "replies": {
            "type": "integer",
            "title": "Replies",
            "default": 0
          },
          "reply_rate": {
            "type": "number",
            "title": "Reply Rate",
            "default": 0
          },
          "sources_analysed": {
            "type": "integer",
            "title": "Sources Analysed",
            "default": 0
          },
          "sources_kept": {
            "type": "integer",
            "title": "Sources Kept",
            "default": 0
          },
          "agreed_not_live": {
            "type": "integer",
            "title": "Agreed Not Live",
            "default": 0
          }
        },
        "type": "object",
        "title": "OutreachHomeResults"
      },
      "OutreachHomeTabs": {
        "properties": {
          "active": {
            "type": "integer",
            "title": "Active",
            "default": 0
          },
          "needs_you": {
            "type": "integer",
            "title": "Needs You",
            "default": 0
          },
          "hikoo_working": {
            "type": "integer",
            "title": "Hikoo Working",
            "default": 0
          },
          "waiting": {
            "type": "integer",
            "title": "Waiting",
            "default": 0
          },
          "closed": {
            "type": "integer",
            "title": "Closed",
            "default": 0
          },
          "in_progress": {
            "type": "integer",
            "title": "In Progress",
            "default": 0
          }
        },
        "type": "object",
        "title": "OutreachHomeTabs"
      },
      "OutreachHotReplyAnswer": {
        "type": "string",
        "enum": [
          "ask_their_price",
          "offer_up_to",
          "decline_politely",
          "i_will_reply",
          "ask_what_it_includes",
          "accept_non_money_terms",
          "answer_their_question",
          "instruct_agent"
        ],
        "title": "OutreachHotReplyAnswer"
      },
      "OutreachHotReplyDecision": {
        "properties": {
          "answer": {
            "$ref": "#/components/schemas/OutreachHotReplyAnswer"
          },
          "ceiling": {
            "anyOf": [
              {
                "type": "number",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ceiling"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 3
              },
              {
                "type": "null"
              }
            ],
            "title": "Currency"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "required": [
          "answer"
        ],
        "title": "OutreachHotReplyDecision"
      },
      "OutreachMailboxPauseReason": {
        "type": "string",
        "enum": [
          "reputation",
          "provider_limit"
        ],
        "title": "OutreachMailboxPauseReason"
      },
      "OutreachMailboxProvider": {
        "type": "string",
        "enum": [
          "google",
          "microsoft"
        ],
        "title": "OutreachMailboxProvider"
      },
      "OutreachMailboxSiteState": {
        "type": "string",
        "enum": [
          "sends",
          "paused_by_plan",
          "disconnected",
          "not_attached",
          "no_mailbox"
        ],
        "title": "OutreachMailboxSiteState"
      },
      "OutreachMailboxStatus": {
        "properties": {
          "user_id": {
            "type": "integer",
            "title": "User Id"
          },
          "user_email": {
            "type": "string",
            "title": "User Email"
          },
          "user_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Name"
          },
          "connected": {
            "type": "boolean",
            "title": "Connected"
          },
          "provider": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachMailboxProvider"
              },
              {
                "type": "null"
              }
            ]
          },
          "google_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Google Email"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active",
            "default": false
          },
          "paused": {
            "type": "boolean",
            "title": "Paused",
            "default": false
          },
          "signature_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Signature Role"
          },
          "signature_block": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Signature Block"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timezone"
          },
          "attached": {
            "type": "boolean",
            "title": "Attached",
            "default": false
          },
          "state": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachMailboxSiteState"
              },
              {
                "type": "null"
              }
            ]
          },
          "sends_for_site": {
            "type": "boolean",
            "title": "Sends For Site",
            "default": false
          },
          "daily_cap": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Daily Cap"
          },
          "warmup_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Warmup Until"
          },
          "paused_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Paused Until"
          },
          "paused_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachMailboxPauseReason"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "user_email",
          "connected"
        ],
        "title": "OutreachMailboxStatus"
      },
      "OutreachMediaFile": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "content_type": {
            "type": "string",
            "title": "Content Type"
          },
          "size": {
            "type": "integer",
            "title": "Size"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "content_type",
          "size",
          "url"
        ],
        "title": "OutreachMediaFile"
      },
      "OutreachMessageDirection": {
        "type": "string",
        "enum": [
          "outbound",
          "inbound"
        ],
        "title": "OutreachMessageDirection"
      },
      "OutreachMessageEditRequest": {
        "properties": {
          "subject": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject"
          },
          "body": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 8000
              },
              {
                "type": "null"
              }
            ],
            "title": "Body"
          }
        },
        "type": "object",
        "title": "OutreachMessageEditRequest"
      },
      "OutreachMessageResponse": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "channel": {
            "$ref": "#/components/schemas/OutreachChannel",
            "default": "email"
          },
          "sequence_position": {
            "type": "integer",
            "title": "Sequence Position"
          },
          "direction": {
            "$ref": "#/components/schemas/OutreachMessageDirection"
          },
          "subject": {
            "type": "string",
            "title": "Subject"
          },
          "body": {
            "type": "string",
            "title": "Body"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          },
          "status": {
            "$ref": "#/components/schemas/OutreachMessageStatus"
          },
          "scheduled_for": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scheduled For"
          },
          "sent_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sent At"
          },
          "gmail_thread_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gmail Thread Id"
          },
          "sender_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sender Email"
          },
          "sender_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sender Name"
          },
          "edited_by_human": {
            "type": "boolean",
            "title": "Edited By Human",
            "default": false
          },
          "edited_by_user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Edited By User Id"
          },
          "approved_by_user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Approved By User Id"
          },
          "failure_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Reason"
          },
          "signature": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Signature"
          },
          "version": {
            "type": "integer",
            "title": "Version",
            "default": 1
          },
          "version_position": {
            "type": "integer",
            "title": "Version Position",
            "default": 1
          },
          "version_count": {
            "type": "integer",
            "title": "Version Count",
            "default": 1
          },
          "changed_span": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Changed Span"
          },
          "written_in": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Written In"
          },
          "linkedin_part": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Linkedin Part"
          },
          "separate": {
            "type": "boolean",
            "title": "Separate",
            "default": false
          },
          "reading": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachReplyReadingResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "held": {
            "type": "boolean",
            "title": "Held",
            "default": false
          },
          "agent_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Reason"
          },
          "sent_without_asking": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sent Without Asking"
          },
          "agent_work_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Work Kind"
          }
        },
        "type": "object",
        "required": [
          "id",
          "sequence_position",
          "direction",
          "subject",
          "body",
          "status"
        ],
        "title": "OutreachMessageResponse"
      },
      "OutreachMessageStatus": {
        "type": "string",
        "enum": [
          "draft",
          "awaiting_approval",
          "approved",
          "scheduled",
          "sending",
          "sent",
          "failed",
          "cancelled"
        ],
        "title": "OutreachMessageStatus"
      },
      "OutreachMessageVersionResponse": {
        "properties": {
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "position": {
            "type": "integer",
            "title": "Position",
            "default": 1
          },
          "based_on_version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Based On Version"
          },
          "subject": {
            "type": "string",
            "title": "Subject"
          },
          "body": {
            "type": "string",
            "title": "Body"
          },
          "created_by": {
            "$ref": "#/components/schemas/OutreachActor"
          },
          "created_by_user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By User Id"
          },
          "created_by_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Name"
          },
          "instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Instruction"
          },
          "changed_span": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Changed Span"
          },
          "created_at_utc": {
            "type": "string",
            "format": "date-time",
            "title": "Created At Utc"
          }
        },
        "type": "object",
        "required": [
          "version",
          "subject",
          "body",
          "created_by",
          "created_at_utc"
        ],
        "title": "OutreachMessageVersionResponse"
      },
      "OutreachMessageVersionsResponse": {
        "properties": {
          "versions": {
            "items": {
              "$ref": "#/components/schemas/OutreachMessageVersionResponse"
            },
            "type": "array",
            "title": "Versions",
            "default": []
          },
          "current": {
            "type": "integer",
            "title": "Current",
            "default": 1
          },
          "current_position": {
            "type": "integer",
            "title": "Current Position",
            "default": 1
          },
          "total": {
            "type": "integer",
            "title": "Total",
            "default": 1
          }
        },
        "type": "object",
        "title": "OutreachMessageVersionsResponse"
      },
      "OutreachMoneyRequest": {
        "properties": {
          "max_per_mention": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0.0
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Per Mention"
          },
          "max_per_month": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0.0
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Per Month"
          },
          "currency": {
            "type": "string",
            "maxLength": 3,
            "minLength": 3,
            "title": "Currency",
            "default": "EUR"
          }
        },
        "type": "object",
        "title": "OutreachMoneyRequest"
      },
      "OutreachNegotiationRequest": {
        "properties": {
          "ceiling": {
            "anyOf": [
              {
                "type": "number",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string"
              }
            ],
            "title": "Ceiling"
          },
          "currency": {
            "type": "string",
            "maxLength": 3,
            "minLength": 3,
            "title": "Currency",
            "default": "EUR"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "required": [
          "ceiling"
        ],
        "title": "OutreachNegotiationRequest"
      },
      "OutreachNextActor": {
        "type": "string",
        "enum": [
          "you",
          "hikoo",
          "them",
          "nobody"
        ],
        "title": "OutreachNextActor"
      },
      "OutreachNextStep": {
        "properties": {
          "who": {
            "$ref": "#/components/schemas/OutreachNextActor"
          },
          "what": {
            "type": "string",
            "title": "What"
          },
          "params": {
            "type": "object",
            "title": "Params",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "who",
          "what"
        ],
        "title": "OutreachNextStep"
      },
      "OutreachNoteRequest": {
        "properties": {
          "note": {
            "type": "string",
            "maxLength": 4000,
            "minLength": 1,
            "title": "Note"
          },
          "for_hikoo": {
            "type": "boolean",
            "title": "For Hikoo",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "note"
        ],
        "title": "OutreachNoteRequest"
      },
      "OutreachOfferItem": {
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/OutreachOfferKind"
          },
          "detail": {
            "type": "string",
            "maxLength": 1200,
            "title": "Detail",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "kind"
        ],
        "title": "OutreachOfferItem"
      },
      "OutreachOfferKind": {
        "type": "string",
        "enum": [
          "spokesperson",
          "data",
          "test_product",
          "imagery",
          "discount_or_trial"
        ],
        "title": "OutreachOfferKind"
      },
      "OutreachOfferRequest": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/OutreachOfferItem"
            },
            "type": "array",
            "maxItems": 5,
            "title": "Items"
          }
        },
        "type": "object",
        "title": "OutreachOfferRequest"
      },
      "OutreachOutcome": {
        "type": "string",
        "enum": [
          "won",
          "lost",
          "disqualified"
        ],
        "title": "OutreachOutcome"
      },
      "OutreachOverviewResponse": {
        "properties": {
          "by_status": {
            "type": "object",
            "title": "By Status"
          },
          "awaiting_approval": {
            "type": "integer",
            "title": "Awaiting Approval"
          },
          "scheduled": {
            "type": "integer",
            "title": "Scheduled"
          },
          "needs_decision": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Needs Decision"
          },
          "unresolved_contacts": {
            "type": "integer",
            "title": "Unresolved Contacts"
          },
          "needs_human": {
            "type": "integer",
            "title": "Needs Human",
            "default": 0
          },
          "replies_received": {
            "type": "integer",
            "title": "Replies Received",
            "default": 0
          },
          "undeliverable_contacts": {
            "type": "integer",
            "title": "Undeliverable Contacts",
            "default": 0
          },
          "mailboxes_needing_reconnect": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Mailboxes Needing Reconnect",
            "default": []
          },
          "monthly_contacts": {
            "$ref": "#/components/schemas/OutreachCapUsage"
          },
          "daily_sends": {
            "$ref": "#/components/schemas/OutreachCapUsage"
          }
        },
        "type": "object",
        "required": [
          "by_status",
          "awaiting_approval",
          "scheduled",
          "needs_decision",
          "unresolved_contacts",
          "monthly_contacts",
          "daily_sends"
        ],
        "title": "OutreachOverviewResponse"
      },
      "OutreachPageReadStatus": {
        "type": "string",
        "enum": [
          "fresh",
          "stale",
          "unknown"
        ],
        "title": "OutreachPageReadStatus"
      },
      "OutreachPendingActionResponse": {
        "properties": {
          "pending": {
            "type": "boolean",
            "title": "Pending",
            "default": true
          },
          "decision_id": {
            "type": "integer",
            "title": "Decision Id"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "expires_at": {
            "type": "string",
            "title": "Expires At"
          },
          "message": {
            "type": "string",
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "decision_id",
          "kind",
          "expires_at",
          "message"
        ],
        "title": "OutreachPendingActionResponse"
      },
      "OutreachPermissionRequest": {
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/OutreachWorkKind"
          },
          "level": {
            "$ref": "#/components/schemas/OutreachAutonomyLevel"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "level"
        ],
        "title": "OutreachPermissionRequest"
      },
      "OutreachPermissionSquare": {
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/OutreachWorkKind"
          },
          "level": {
            "$ref": "#/components/schemas/OutreachAutonomyLevel"
          },
          "locked": {
            "type": "boolean",
            "title": "Locked",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "kind",
          "level"
        ],
        "title": "OutreachPermissionSquare"
      },
      "OutreachPlacementMethod": {
        "type": "string",
        "enum": [
          "crawl",
          "manual",
          "publisher_confirmed",
          "founder_confirmed",
          "url_provided"
        ],
        "title": "OutreachPlacementMethod"
      },
      "OutreachPlacementResponse": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "detected_at": {
            "type": "string",
            "format": "date-time",
            "title": "Detected At"
          },
          "detection_method": {
            "$ref": "#/components/schemas/OutreachPlacementMethod"
          },
          "snippet": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Snippet"
          },
          "si_state_applied": {
            "$ref": "#/components/schemas/OutreachSourceState"
          },
          "cited_confirmed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cited Confirmed At"
          },
          "deliverable_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachDeliverableType"
              },
              {
                "type": "null"
              }
            ]
          },
          "delivered_on": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Delivered On"
          }
        },
        "type": "object",
        "required": [
          "id",
          "detected_at",
          "detection_method",
          "si_state_applied"
        ],
        "title": "OutreachPlacementResponse"
      },
      "OutreachPresetRequest": {
        "properties": {
          "preset": {
            "$ref": "#/components/schemas/OutreachAutonomyPreset"
          }
        },
        "type": "object",
        "required": [
          "preset"
        ],
        "title": "OutreachPresetRequest"
      },
      "OutreachPriorityFactor": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "points": {
            "type": "integer",
            "title": "Points"
          },
          "max": {
            "type": "integer",
            "title": "Max"
          }
        },
        "type": "object",
        "required": [
          "key",
          "points",
          "max"
        ],
        "title": "OutreachPriorityFactor"
      },
      "OutreachRejectReason": {
        "type": "string",
        "enum": [
          "own_domain",
          "competitor",
          "suggested_competitor",
          "major_platform",
          "directory",
          "already_mentioned",
          "not_actionable",
          "blacklisted",
          "recently_contacted",
          "no_usable_url",
          "outside_si_window",
          "not_relevant",
          "page_gone",
          "refused_in_workspace",
          "rival_vendor",
          "below_citation_floor",
          "listed_nothing_to_correct",
          "listed_only_generic_asks",
          "page_unreachable",
          "draft_breaks_rules",
          "not_selected_by_triage",
          "page_blocked",
          "page_no_text",
          "test_based_no_offer",
          "review_aggregator",
          "head_to_head_comparison",
          "single_product_review",
          "language_unsupported",
          "category_mismatch",
          "market_mismatch",
          "follow_up_limit",
          "no_answerable_criterion",
          "stale_page",
          "vendor_page",
          "sponsored_page",
          "agent_not_fit"
        ],
        "title": "OutreachRejectReason"
      },
      "OutreachReplyReadingResponse": {
        "properties": {
          "intent": {
            "type": "string",
            "title": "Intent"
          },
          "related": {
            "type": "boolean",
            "title": "Related",
            "default": true
          },
          "needs_answer": {
            "type": "boolean",
            "title": "Needs Answer",
            "default": true
          },
          "summary": {
            "type": "string",
            "title": "Summary",
            "default": ""
          },
          "asks": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Asks"
          },
          "choices": {
            "items": {
              "$ref": "#/components/schemas/OutreachHandoverChoiceResponse"
            },
            "type": "array",
            "title": "Choices"
          },
          "price": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Price"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Currency"
          },
          "price_buys": {
            "type": "string",
            "title": "Price Buys",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "intent"
        ],
        "title": "OutreachReplyReadingResponse"
      },
      "OutreachRewriteRequest": {
        "properties": {
          "instruction": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 1,
            "title": "Instruction"
          },
          "selection_start": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Selection Start"
          },
          "selection_end": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Selection End"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Request Id"
          }
        },
        "type": "object",
        "required": [
          "instruction"
        ],
        "title": "OutreachRewriteRequest"
      },
      "OutreachSenderProfile": {
        "properties": {
          "relation": {
            "$ref": "#/components/schemas/OutreachSenderRelation"
          },
          "agency_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ],
            "title": "Agency Name"
          }
        },
        "type": "object",
        "required": [
          "relation"
        ],
        "title": "OutreachSenderProfile"
      },
      "OutreachSenderProfileRequest": {
        "properties": {
          "profile": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachSenderProfile"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "OutreachSenderProfileRequest"
      },
      "OutreachSenderRelation": {
        "type": "string",
        "enum": [
          "employee",
          "agency",
          "consultant"
        ],
        "title": "OutreachSenderRelation"
      },
      "OutreachSettingsResponse": {
        "properties": {
          "workspace_id": {
            "type": "integer",
            "title": "Workspace Id"
          },
          "autonomy_preset": {
            "$ref": "#/components/schemas/OutreachAutonomyPreset"
          },
          "permissions": {
            "items": {
              "$ref": "#/components/schemas/OutreachPermissionSquare"
            },
            "type": "array",
            "title": "Permissions",
            "default": []
          },
          "money_max_per_mention": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Money Max Per Mention"
          },
          "money_max_per_month": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Money Max Per Month"
          },
          "currency": {
            "type": "string",
            "title": "Currency",
            "default": "EUR"
          },
          "follow_up_enabled": {
            "type": "boolean",
            "title": "Follow Up Enabled",
            "default": true
          },
          "follow_up_max": {
            "type": "integer",
            "title": "Follow Up Max",
            "default": 3
          },
          "linkedin_enabled": {
            "type": "boolean",
            "title": "Linkedin Enabled",
            "default": true
          },
          "follow_up_delay_days": {
            "type": "integer",
            "title": "Follow Up Delay Days",
            "default": 3
          },
          "onboarding_completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Onboarding Completed At"
          },
          "offer": {
            "items": {
              "$ref": "#/components/schemas/OutreachOfferItem"
            },
            "type": "array",
            "title": "Offer",
            "default": []
          },
          "media": {
            "items": {
              "$ref": "#/components/schemas/OutreachMediaFile"
            },
            "type": "array",
            "title": "Media",
            "default": []
          },
          "sender_profile": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachSenderProfile"
              },
              {
                "type": "null"
              }
            ]
          },
          "asks_you_first_count": {
            "type": "integer",
            "title": "Asks You First Count",
            "default": 0
          },
          "tells_you_after_count": {
            "type": "integer",
            "title": "Tells You After Count",
            "default": 0
          },
          "does_it_alone_count": {
            "type": "integer",
            "title": "Does It Alone Count",
            "default": 0
          },
          "agent_mode": {
            "type": "boolean",
            "title": "Agent Mode",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "workspace_id",
          "autonomy_preset"
        ],
        "title": "OutreachSettingsResponse"
      },
      "OutreachSiteMailboxesResponse": {
        "properties": {
          "mailboxes": {
            "items": {
              "$ref": "#/components/schemas/OutreachMailboxStatus"
            },
            "type": "array",
            "title": "Mailboxes"
          },
          "limit": {
            "type": "integer",
            "title": "Limit",
            "default": 0
          },
          "attached_count": {
            "type": "integer",
            "title": "Attached Count",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "mailboxes"
        ],
        "title": "OutreachSiteMailboxesResponse"
      },
      "OutreachSortField": {
        "type": "string",
        "enum": [
          "priority",
          "domain",
          "status",
          "stage",
          "contact",
          "owner",
          "citations",
          "updated"
        ],
        "title": "OutreachSortField"
      },
      "OutreachSourceDetail": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "domain": {
            "type": "string",
            "title": "Domain"
          },
          "status": {
            "$ref": "#/components/schemas/OutreachStatus"
          },
          "status_set_by": {
            "$ref": "#/components/schemas/OutreachActor"
          },
          "status_updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status Updated At"
          },
          "priority": {
            "type": "number",
            "title": "Priority",
            "default": 0
          },
          "priority_factors": {
            "items": {
              "$ref": "#/components/schemas/OutreachPriorityFactor"
            },
            "type": "array",
            "title": "Priority Factors",
            "default": []
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          },
          "blocked_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachRejectReason"
              },
              {
                "$ref": "#/components/schemas/OutreachBlockedReason"
              },
              {
                "type": "null"
              }
            ],
            "title": "Blocked Reason"
          },
          "snooze_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Snooze Until"
          },
          "next_resolution_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Resolution At"
          },
          "owner_user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner User Id"
          },
          "owner_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Name"
          },
          "first_contacted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "First Contacted At"
          },
          "last_activity_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Activity At"
          },
          "followup_count": {
            "type": "integer",
            "title": "Followup Count",
            "default": 0
          },
          "needs_decision": {
            "type": "boolean",
            "title": "Needs Decision",
            "default": false
          },
          "close": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Close"
          },
          "deal_terms": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deal Terms"
          },
          "exchange": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange"
          },
          "decision": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decision"
          },
          "follow_up_blocked": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Follow Up Blocked"
          },
          "primary_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Url"
          },
          "primary_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Title"
          },
          "url_count": {
            "type": "integer",
            "title": "Url Count",
            "default": 0
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count",
            "default": 0
          },
          "platforms": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Platforms",
            "default": []
          },
          "contact": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachContactResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "prior_contact_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior Contact At"
          },
          "prior_contact_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior Contact Email"
          },
          "prior_contact_replied": {
            "type": "boolean",
            "title": "Prior Contact Replied",
            "default": false
          },
          "stage": {
            "$ref": "#/components/schemas/OutreachStage",
            "default": "hikoo_working"
          },
          "outcome": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachOutcome"
              },
              {
                "type": "null"
              }
            ]
          },
          "stage_detail": {
            "$ref": "#/components/schemas/OutreachStageDetail",
            "default": "qualifying"
          },
          "stage_detail_params": {
            "type": "object",
            "title": "Stage Detail Params",
            "default": {}
          },
          "waiting_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Waiting Days"
          },
          "next_follow_up_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Follow Up At"
          },
          "closed_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closed Reason"
          },
          "with_you_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "With You Until"
          },
          "paused_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Paused Until"
          },
          "next_step": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachNextStep"
              },
              {
                "type": "null"
              }
            ]
          },
          "close_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachCloseReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "agent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachAgentPlanResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "urls": {
            "items": {
              "$ref": "#/components/schemas/OutreachSourceUrlResponse"
            },
            "type": "array",
            "title": "Urls",
            "default": []
          },
          "contacts": {
            "items": {
              "$ref": "#/components/schemas/OutreachContactResponse"
            },
            "type": "array",
            "title": "Contacts",
            "default": []
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/OutreachMessageResponse"
            },
            "type": "array",
            "title": "Messages",
            "default": []
          },
          "timeline": {
            "items": {
              "$ref": "#/components/schemas/OutreachTouchResponse"
            },
            "type": "array",
            "title": "Timeline",
            "default": []
          },
          "placements": {
            "items": {
              "$ref": "#/components/schemas/OutreachPlacementResponse"
            },
            "type": "array",
            "title": "Placements",
            "default": []
          },
          "measurement_baseline": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Measurement Baseline"
          },
          "placement_watch_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Placement Watch Until"
          },
          "prior_contact_thread_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior Contact Thread Id"
          },
          "prior_contact_scanned_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior Contact Scanned At"
          },
          "agent_drafting": {
            "type": "boolean",
            "title": "Agent Drafting",
            "default": false
          },
          "draft_failed": {
            "type": "boolean",
            "title": "Draft Failed",
            "default": false
          },
          "negotiation_ceiling": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Negotiation Ceiling"
          },
          "negotiation_currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Negotiation Currency"
          },
          "negotiation_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Negotiation Note"
          },
          "negotiation_set_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Negotiation Set At"
          },
          "negotiation_offers": {
            "type": "integer",
            "title": "Negotiation Offers",
            "default": 0
          },
          "follow_up_plan": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachFollowUpPlanResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "handed_from_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handed From Email"
          },
          "handed_from": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handed From"
          },
          "must_continue": {
            "type": "boolean",
            "title": "Must Continue",
            "default": false
          },
          "contact_research_allowed": {
            "type": "boolean",
            "title": "Contact Research Allowed",
            "default": false
          },
          "first_mail_rewrite_allowed": {
            "type": "boolean",
            "title": "First Mail Rewrite Allowed",
            "default": false
          },
          "first_mail_rewrite_pending": {
            "type": "boolean",
            "title": "First Mail Rewrite Pending",
            "default": false
          },
          "first_mail_outdated": {
            "type": "boolean",
            "title": "First Mail Outdated",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "domain",
          "status",
          "status_set_by"
        ],
        "title": "OutreachSourceDetail"
      },
      "OutreachSourceListItem": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "domain": {
            "type": "string",
            "title": "Domain"
          },
          "status": {
            "$ref": "#/components/schemas/OutreachStatus"
          },
          "status_set_by": {
            "$ref": "#/components/schemas/OutreachActor"
          },
          "status_updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status Updated At"
          },
          "priority": {
            "type": "number",
            "title": "Priority",
            "default": 0
          },
          "priority_factors": {
            "items": {
              "$ref": "#/components/schemas/OutreachPriorityFactor"
            },
            "type": "array",
            "title": "Priority Factors",
            "default": []
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          },
          "blocked_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachRejectReason"
              },
              {
                "$ref": "#/components/schemas/OutreachBlockedReason"
              },
              {
                "type": "null"
              }
            ],
            "title": "Blocked Reason"
          },
          "snooze_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Snooze Until"
          },
          "next_resolution_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Resolution At"
          },
          "owner_user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner User Id"
          },
          "owner_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Name"
          },
          "first_contacted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "First Contacted At"
          },
          "last_activity_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Activity At"
          },
          "followup_count": {
            "type": "integer",
            "title": "Followup Count",
            "default": 0
          },
          "needs_decision": {
            "type": "boolean",
            "title": "Needs Decision",
            "default": false
          },
          "close": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Close"
          },
          "deal_terms": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deal Terms"
          },
          "exchange": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange"
          },
          "decision": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decision"
          },
          "follow_up_blocked": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Follow Up Blocked"
          },
          "primary_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Url"
          },
          "primary_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Title"
          },
          "url_count": {
            "type": "integer",
            "title": "Url Count",
            "default": 0
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count",
            "default": 0
          },
          "platforms": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Platforms",
            "default": []
          },
          "contact": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachContactResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "prior_contact_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior Contact At"
          },
          "prior_contact_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior Contact Email"
          },
          "prior_contact_replied": {
            "type": "boolean",
            "title": "Prior Contact Replied",
            "default": false
          },
          "stage": {
            "$ref": "#/components/schemas/OutreachStage",
            "default": "hikoo_working"
          },
          "outcome": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachOutcome"
              },
              {
                "type": "null"
              }
            ]
          },
          "stage_detail": {
            "$ref": "#/components/schemas/OutreachStageDetail",
            "default": "qualifying"
          },
          "stage_detail_params": {
            "type": "object",
            "title": "Stage Detail Params",
            "default": {}
          },
          "waiting_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Waiting Days"
          },
          "next_follow_up_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Follow Up At"
          },
          "closed_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closed Reason"
          },
          "with_you_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "With You Until"
          },
          "paused_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Paused Until"
          },
          "next_step": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachNextStep"
              },
              {
                "type": "null"
              }
            ]
          },
          "close_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutreachCloseReason"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "domain",
          "status",
          "status_set_by"
        ],
        "title": "OutreachSourceListItem"
      },
      "OutreachSourceListResponse": {
        "properties": {
          "sources": {
            "items": {
              "$ref": "#/components/schemas/OutreachSourceListItem"
            },
            "type": "array",
            "title": "Sources"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "sources",
          "total"
        ],
        "title": "OutreachSourceListResponse"
      },
      "OutreachSourceState": {
        "type": "string",
        "enum": [
          "mentioned",
          "cited"
        ],
        "title": "OutreachSourceState"
      },
      "OutreachSourceUrlResponse": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count",
            "default": 0
          },
          "platforms": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Platforms",
            "default": []
          },
          "queries": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Queries",
            "default": []
          },
          "prompt_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Prompt Ids",
            "default": []
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At"
          },
          "first_seen_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "First Seen At"
          },
          "last_seen_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Seen At"
          },
          "editorial_weight": {
            "type": "number",
            "title": "Editorial Weight",
            "default": 0
          },
          "is_primary_target": {
            "type": "boolean",
            "title": "Is Primary Target",
            "default": false
          },
          "author": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Author"
          },
          "competitors_on_page": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Competitors On Page",
            "default": []
          },
          "page_competitors": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PageCompetitorsResponse"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "url"
        ],
        "title": "OutreachSourceUrlResponse"
      },
      "OutreachStage": {
        "type": "string",
        "enum": [
          "needs_you",
          "hikoo_working",
          "waiting",
          "closed"
        ],
        "title": "OutreachStage"
      },
      "OutreachStageDetail": {
        "type": "string",
        "enum": [
          "hot_reply_money",
          "hot_reply",
          "delivery_refused",
          "taken_by_you",
          "approve_pitch",
          "approve_reply",
          "approve_follow_up",
          "decision",
          "qualifying",
          "finding_person",
          "writing_pitch",
          "waiting_to_search",
          "waiting_to_write",
          "contact_quota_reached",
          "waiting_reply",
          "follow_up_due",
          "followed_up",
          "waiting_to_connect",
          "in_discussion",
          "snoozed",
          "awaiting_publication",
          "with_you_until",
          "paused_until",
          "queued_to_send",
          "no_person_yet",
          "no_person_last_look",
          "mention_online",
          "they_declined",
          "lost_paid_only",
          "do_not_contact",
          "no_reply",
          "you_stopped",
          "disqualified"
        ],
        "title": "OutreachStageDetail"
      },
      "OutreachStatus": {
        "type": "string",
        "enum": [
          "eligible",
          "rejected",
          "contact_pending",
          "contact_unresolved",
          "draft_ready",
          "awaiting_approval",
          "contacted",
          "replied",
          "needs_human",
          "in_discussion",
          "no_reply",
          "declined",
          "placed",
          "stopped",
          "blacklisted",
          "snoozed"
        ],
        "title": "OutreachStatus"
      },
      "OutreachStatusUpdateRequest": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/OutreachStatus"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "OutreachStatusUpdateRequest"
      },
      "OutreachTab": {
        "type": "string",
        "enum": [
          "active",
          "needs_you",
          "hikoo_working",
          "waiting",
          "closed",
          "in_progress"
        ],
        "title": "OutreachTab"
      },
      "OutreachToldAfter": {
        "properties": {
          "count": {
            "type": "integer",
            "title": "Count",
            "default": 0
          },
          "since": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Since"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/OutreachToldAfterItem"
            },
            "type": "array",
            "title": "Items",
            "default": []
          }
        },
        "type": "object",
        "title": "OutreachToldAfter"
      },
      "OutreachToldAfterItem": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "source_id": {
            "type": "integer",
            "title": "Source Id"
          },
          "domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain"
          },
          "payload": {
            "type": "object",
            "title": "Payload",
            "default": {}
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "title": "Occurred At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "source_id",
          "occurred_at"
        ],
        "title": "OutreachToldAfterItem"
      },
      "OutreachTouchResponse": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "type": {
            "$ref": "#/components/schemas/OutreachTouchType"
          },
          "payload": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Payload"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "actor": {
            "$ref": "#/components/schemas/OutreachActor"
          },
          "actor_user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Actor User Id"
          },
          "actor_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Actor Name"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "title": "Occurred At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "type",
          "actor",
          "occurred_at"
        ],
        "title": "OutreachTouchResponse"
      },
      "OutreachTouchType": {
        "type": "string",
        "enum": [
          "qualified",
          "new_url_detected",
          "contact_resolved",
          "contact_unresolved",
          "contact_corrected",
          "draft_generated",
          "draft_edited",
          "approved",
          "sent",
          "send_failed",
          "status_changed",
          "followup_sent",
          "blacklisted",
          "reply_received",
          "handed_to_human",
          "prior_contact_found",
          "negotiation_authorised",
          "offer_made",
          "placement_detected",
          "manual_note"
        ],
        "title": "OutreachTouchType"
      },
      "OutreachVersionRequest": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          }
        },
        "type": "object",
        "required": [
          "version"
        ],
        "title": "OutreachVersionRequest"
      },
      "OutreachWorkGroup": {
        "properties": {
          "stage": {
            "$ref": "#/components/schemas/OutreachStage"
          },
          "total": {
            "type": "integer",
            "title": "Total",
            "default": 0
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/OutreachSourceListItem"
            },
            "type": "array",
            "title": "Items",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "stage"
        ],
        "title": "OutreachWorkGroup"
      },
      "OutreachWorkKind": {
        "type": "string",
        "enum": [
          "find_opportunities",
          "qualify_opportunity",
          "find_person",
          "research_person",
          "write_pitch",
          "send_pitch",
          "send_follow_up",
          "spot_hot_reply",
          "answer_objection",
          "accept_payment"
        ],
        "title": "OutreachWorkKind"
      },
      "OutreachWorkListResponse": {
        "properties": {
          "groups": {
            "items": {
              "$ref": "#/components/schemas/OutreachWorkGroup"
            },
            "type": "array",
            "title": "Groups",
            "default": []
          },
          "order": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Order",
            "default": []
          },
          "total": {
            "type": "integer",
            "title": "Total",
            "default": 0
          },
          "visible_per_group": {
            "type": "integer",
            "title": "Visible Per Group",
            "default": 3
          }
        },
        "type": "object",
        "title": "OutreachWorkListResponse"
      },
      "PageCategorySource": {
        "type": "string",
        "enum": [
          "auto_heuristic",
          "auto_llm",
          "manual",
          "sitemap"
        ],
        "title": "PageCategorySource"
      },
      "PageCompetitorResponse": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "position": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Position"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "PageCompetitorResponse"
      },
      "PageCompetitorsResponse": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/OutreachPageReadStatus",
            "default": "unknown"
          },
          "read_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Read At"
          },
          "competitors": {
            "items": {
              "$ref": "#/components/schemas/PageCompetitorResponse"
            },
            "type": "array",
            "title": "Competitors",
            "default": []
          },
          "brand_on_page": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand On Page"
          },
          "brand_position": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Position"
          }
        },
        "type": "object",
        "title": "PageCompetitorsResponse"
      },
      "PageItem": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Category"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          },
          "health_check_passed": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Health Check Passed"
          },
          "error_count": {
            "type": "integer",
            "title": "Error Count"
          },
          "warning_count": {
            "type": "integer",
            "title": "Warning Count"
          },
          "errors": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Errors"
          },
          "last_indexed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Indexed At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "url",
          "title",
          "category",
          "language",
          "health_check_passed",
          "error_count",
          "warning_count",
          "errors",
          "last_indexed_at"
        ],
        "title": "PageItem"
      },
      "PageSearchMetricsSchema": {
        "properties": {
          "google": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SearchMetricSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "bing": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SearchMetricSchema"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "PageSearchMetricsSchema"
      },
      "PageSearchSort": {
        "type": "string",
        "enum": [
          "google_impressions",
          "google_clicks",
          "bing_impressions",
          "bing_clicks"
        ],
        "title": "PageSearchSort"
      },
      "PagesListResponse": {
        "properties": {
          "pages": {
            "items": {
              "$ref": "#/components/schemas/WebsitePageListItemSchema"
            },
            "type": "array",
            "title": "Pages"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "limit": {
            "type": "integer",
            "title": "Limit"
          },
          "offset": {
            "type": "integer",
            "title": "Offset"
          },
          "search_sources": {
            "items": {
              "$ref": "#/components/schemas/SearchSourceSchema"
            },
            "type": "array",
            "title": "Search Sources",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "pages",
          "total",
          "limit",
          "offset"
        ],
        "title": "PagesListResponse"
      },
      "PaginatedCitations": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/CitationWithPrompt"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "total_pages": {
            "type": "integer",
            "title": "Total Pages"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total",
          "page",
          "page_size",
          "total_pages"
        ],
        "title": "PaginatedCitations"
      },
      "PaginatedSearchQueries": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SearchQueryBase"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "total_pages": {
            "type": "integer",
            "title": "Total Pages"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total",
          "page",
          "page_size",
          "total_pages"
        ],
        "title": "PaginatedSearchQueries"
      },
      "PaginatedSearchQueryGroups": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SearchQueryTopicGroup"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "total_pages": {
            "type": "integer",
            "title": "Total Pages"
          },
          "total_queries": {
            "type": "integer",
            "title": "Total Queries"
          },
          "top_platform": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiPlatform"
              },
              {
                "type": "null"
              }
            ]
          },
          "top_platform_share": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Top Platform Share"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total",
          "page",
          "page_size",
          "total_pages",
          "total_queries"
        ],
        "title": "PaginatedSearchQueryGroups"
      },
      "PaginatedSourceUrls": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SourceUrlBreakdown"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "total_pages": {
            "type": "integer",
            "title": "Total Pages"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total",
          "page",
          "page_size",
          "total_pages"
        ],
        "title": "PaginatedSourceUrls"
      },
      "PaginatedUniqueSearchQueries": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/UniqueSearchQuery"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "total_pages": {
            "type": "integer",
            "title": "Total Pages"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total",
          "page",
          "page_size",
          "total_pages"
        ],
        "title": "PaginatedUniqueSearchQueries"
      },
      "PaginatedWebsites": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/WebsiteListItem"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "total_pages": {
            "type": "integer",
            "title": "Total Pages"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total",
          "page",
          "page_size",
          "total_pages"
        ],
        "title": "PaginatedWebsites"
      },
      "PlatformStatSchema": {
        "properties": {
          "platform": {
            "type": "string",
            "title": "Platform"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          },
          "percentage": {
            "type": "number",
            "title": "Percentage"
          }
        },
        "type": "object",
        "required": [
          "platform",
          "count",
          "percentage"
        ],
        "title": "PlatformStatSchema"
      },
      "PromptAnswersPageSchema": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PromptLatestAnswerSchema"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PromptAnswersPageSchema"
      },
      "PromptArchiveReason": {
        "type": "string",
        "enum": [
          "quota",
          "user"
        ],
        "title": "PromptArchiveReason"
      },
      "PromptBaseSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "content": {
            "type": "string",
            "title": "Content"
          },
          "topic_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic Id"
          },
          "topic_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic Name"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagOnPromptSchema"
            },
            "type": "array",
            "title": "Tags",
            "default": []
          },
          "localizations": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Localizations",
            "default": [
              "worldwide"
            ]
          },
          "intent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptIntent"
              },
              {
                "type": "null"
              }
            ]
          },
          "journey_stage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptJourneyStage"
              },
              {
                "type": "null"
              }
            ]
          },
          "brand_scope": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptBrandScope"
              },
              {
                "type": "null"
              }
            ]
          },
          "brand_scope_manual": {
            "type": "boolean",
            "title": "Brand Scope Manual",
            "default": false
          },
          "source_keyword": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Keyword"
          },
          "visibility": {
            "type": "number",
            "title": "Visibility",
            "default": 0.0
          },
          "visibility_delta_7d": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Visibility Delta 7D"
          },
          "answer_count": {
            "type": "integer",
            "title": "Answer Count",
            "default": 0
          },
          "visibility_reference": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Visibility Reference"
          },
          "reference_answer_count": {
            "type": "integer",
            "title": "Reference Answer Count",
            "default": 0
          },
          "visibility_delta_reference": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Visibility Delta Reference"
          },
          "status": {
            "$ref": "#/components/schemas/PromptStatus",
            "default": "unclaimed"
          },
          "top_platforms": {
            "items": {
              "$ref": "#/components/schemas/PromptPlatformBreakdownSchema"
            },
            "type": "array",
            "title": "Top Platforms",
            "default": []
          },
          "sentiment_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sentiment Score"
          },
          "sentiment_highlights_count": {
            "type": "integer",
            "title": "Sentiment Highlights Count",
            "default": 0
          },
          "sentiment_positive_count": {
            "type": "integer",
            "title": "Sentiment Positive Count",
            "default": 0
          },
          "sentiment_negative_count": {
            "type": "integer",
            "title": "Sentiment Negative Count",
            "default": 0
          },
          "sentiment_neutral_count": {
            "type": "integer",
            "title": "Sentiment Neutral Count",
            "default": 0
          },
          "ai_search_volume": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Search Volume"
          },
          "ai_volume_delta": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Volume Delta"
          },
          "volume_updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Volume Updated At"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active",
            "default": true
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "archive_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptArchiveReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "content",
          "created_at"
        ],
        "title": "PromptBaseSchema"
      },
      "PromptBatchArchiveSchema": {
        "properties": {
          "prompt_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 1500,
            "minItems": 1,
            "title": "Prompt Ids"
          }
        },
        "type": "object",
        "required": [
          "prompt_ids"
        ],
        "title": "PromptBatchArchiveSchema"
      },
      "PromptBatchUpdateSchema": {
        "properties": {
          "prompt_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 1500,
            "minItems": 1,
            "title": "Prompt Ids"
          },
          "topic_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic Id"
          },
          "localizations": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Localizations"
          },
          "intent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptIntent"
              },
              {
                "type": "null"
              }
            ]
          },
          "journey_stage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptJourneyStage"
              },
              {
                "type": "null"
              }
            ]
          },
          "brand_scope": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptBrandScope"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "prompt_ids"
        ],
        "title": "PromptBatchUpdateSchema"
      },
      "PromptBrandScope": {
        "type": "string",
        "enum": [
          "branded",
          "non_branded"
        ],
        "title": "PromptBrandScope"
      },
      "PromptCreateSchema": {
        "properties": {
          "content": {
            "type": "string",
            "title": "Content"
          },
          "topic_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic Id"
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          },
          "localizations": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Localizations",
            "default": [
              "worldwide"
            ]
          },
          "intent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptIntent"
              },
              {
                "type": "null"
              }
            ]
          },
          "journey_stage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptJourneyStage"
              },
              {
                "type": "null"
              }
            ]
          },
          "brand_scope": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptBrandScope"
              },
              {
                "type": "null"
              }
            ]
          },
          "source_keyword": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Keyword"
          }
        },
        "type": "object",
        "required": [
          "content"
        ],
        "title": "PromptCreateSchema"
      },
      "PromptDetailSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "content": {
            "type": "string",
            "title": "Content"
          },
          "topic_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic Id"
          },
          "topic_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic Name"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagOnPromptSchema"
            },
            "type": "array",
            "title": "Tags",
            "default": []
          },
          "intent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptIntent"
              },
              {
                "type": "null"
              }
            ]
          },
          "journey_stage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptJourneyStage"
              },
              {
                "type": "null"
              }
            ]
          },
          "brand_scope": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptBrandScope"
              },
              {
                "type": "null"
              }
            ]
          },
          "brand_scope_manual": {
            "type": "boolean",
            "title": "Brand Scope Manual",
            "default": false
          },
          "localizations": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Localizations",
            "default": [
              "worldwide"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/PromptStatus"
          },
          "visibility": {
            "type": "number",
            "title": "Visibility"
          },
          "visibility_delta_7d": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Visibility Delta 7D"
          },
          "answer_count": {
            "type": "integer",
            "title": "Answer Count",
            "default": 0
          },
          "avg_position": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avg Position"
          },
          "avg_position_delta": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avg Position Delta"
          },
          "best_rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Best Rank"
          },
          "best_rank_platform": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiPlatform"
              },
              {
                "type": "null"
              }
            ]
          },
          "coverage_cited": {
            "type": "integer",
            "title": "Coverage Cited"
          },
          "coverage_total": {
            "type": "integer",
            "title": "Coverage Total"
          },
          "ai_search_volume": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Search Volume"
          },
          "ai_volume_delta": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Volume Delta"
          },
          "volume_trend": {
            "items": {
              "$ref": "#/components/schemas/PromptVolumeTrendPointSchema"
            },
            "type": "array",
            "title": "Volume Trend",
            "default": []
          },
          "visibility_30d": {
            "items": {
              "$ref": "#/components/schemas/PromptVisibilityPointSchema"
            },
            "type": "array",
            "title": "Visibility 30D",
            "default": []
          },
          "per_platform": {
            "items": {
              "$ref": "#/components/schemas/PromptPlatformDetailSchema"
            },
            "type": "array",
            "title": "Per Platform",
            "default": []
          },
          "latest_answers": {
            "items": {
              "$ref": "#/components/schemas/PromptLatestAnswerSchema"
            },
            "type": "array",
            "title": "Latest Answers",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id",
          "content",
          "status",
          "visibility",
          "coverage_cited",
          "coverage_total"
        ],
        "title": "PromptDetailSchema"
      },
      "PromptGroupedByTopicSchema": {
        "properties": {
          "topic_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic Id"
          },
          "topic_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic Name"
          },
          "average_visibility": {
            "type": "number",
            "title": "Average Visibility",
            "default": 0.0
          },
          "prompts": {
            "items": {
              "$ref": "#/components/schemas/PromptBaseSchema"
            },
            "type": "array",
            "title": "Prompts"
          }
        },
        "type": "object",
        "required": [
          "prompts"
        ],
        "title": "PromptGroupedByTopicSchema"
      },
      "PromptInCitation": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "content": {
            "type": "string",
            "title": "Content"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "content",
          "created_at"
        ],
        "title": "PromptInCitation"
      },
      "PromptInfo": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "content": {
            "type": "string",
            "title": "Content"
          }
        },
        "type": "object",
        "required": [
          "id",
          "content"
        ],
        "title": "PromptInfo"
      },
      "PromptIntent": {
        "type": "string",
        "enum": [
          "informational",
          "comparative",
          "transactional",
          "navigational"
        ],
        "title": "PromptIntent"
      },
      "PromptJourneyStage": {
        "type": "string",
        "enum": [
          "discovery",
          "consideration",
          "decision",
          "retention"
        ],
        "title": "PromptJourneyStage"
      },
      "PromptLatestAnswerSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "platform": {
            "$ref": "#/components/schemas/AiPlatform"
          },
          "content": {
            "type": "string",
            "title": "Content"
          },
          "website_rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Website Rank"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "brand_mentions": {
            "items": {
              "$ref": "#/components/schemas/CitationBrandMentionSchema"
            },
            "type": "array",
            "title": "Brand Mentions",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id",
          "platform",
          "content",
          "created_at"
        ],
        "title": "PromptLatestAnswerSchema"
      },
      "PromptPlatformBreakdownSchema": {
        "properties": {
          "platform": {
            "$ref": "#/components/schemas/AiPlatform"
          },
          "cited_count": {
            "type": "integer",
            "title": "Cited Count"
          },
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          }
        },
        "type": "object",
        "required": [
          "platform",
          "cited_count",
          "total_count"
        ],
        "title": "PromptPlatformBreakdownSchema"
      },
      "PromptPlatformCoverage": {
        "type": "string",
        "enum": [
          "cited",
          "partial",
          "not_cited",
          "no_data"
        ],
        "title": "PromptPlatformCoverage"
      },
      "PromptPlatformDetailSchema": {
        "properties": {
          "platform": {
            "$ref": "#/components/schemas/AiPlatform"
          },
          "coverage": {
            "$ref": "#/components/schemas/PromptPlatformCoverage"
          },
          "cited_count": {
            "type": "integer",
            "title": "Cited Count"
          },
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "best_rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Best Rank"
          }
        },
        "type": "object",
        "required": [
          "platform",
          "coverage",
          "cited_count",
          "total_count"
        ],
        "title": "PromptPlatformDetailSchema"
      },
      "PromptQuotaSchema": {
        "properties": {
          "used": {
            "type": "integer",
            "title": "Used"
          },
          "limit": {
            "type": "integer",
            "title": "Limit"
          },
          "remaining": {
            "type": "integer",
            "title": "Remaining"
          }
        },
        "type": "object",
        "required": [
          "used",
          "limit",
          "remaining"
        ],
        "title": "PromptQuotaSchema"
      },
      "PromptRestoreRequestSchema": {
        "properties": {
          "replace_with": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Replace With"
          }
        },
        "type": "object",
        "title": "PromptRestoreRequestSchema"
      },
      "PromptStatsSchema": {
        "properties": {
          "answer_count": {
            "type": "integer",
            "title": "Answer Count"
          },
          "brand_mentions": {
            "type": "integer",
            "title": "Brand Mentions"
          },
          "visibility": {
            "type": "number",
            "title": "Visibility"
          },
          "platforms": {
            "items": {
              "$ref": "#/components/schemas/PlatformStatSchema"
            },
            "type": "array",
            "title": "Platforms"
          },
          "competitors": {
            "items": {
              "$ref": "#/components/schemas/CompetitorStatSchema"
            },
            "type": "array",
            "title": "Competitors"
          }
        },
        "type": "object",
        "required": [
          "answer_count",
          "brand_mentions",
          "visibility",
          "platforms",
          "competitors"
        ],
        "title": "PromptStatsSchema"
      },
      "PromptStatus": {
        "type": "string",
        "enum": [
          "winning",
          "at_risk",
          "losing",
          "unclaimed"
        ],
        "title": "PromptStatus"
      },
      "PromptUpdateSchema": {
        "properties": {
          "content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content"
          },
          "topic_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic Id"
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          },
          "localizations": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Localizations"
          },
          "intent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptIntent"
              },
              {
                "type": "null"
              }
            ]
          },
          "journey_stage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptJourneyStage"
              },
              {
                "type": "null"
              }
            ]
          },
          "brand_scope": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptBrandScope"
              },
              {
                "type": "null"
              }
            ]
          },
          "source_keyword": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Keyword"
          }
        },
        "type": "object",
        "title": "PromptUpdateSchema"
      },
      "PromptVisibilityPointSchema": {
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "title": "Date"
          },
          "visibility": {
            "type": "number",
            "title": "Visibility"
          }
        },
        "type": "object",
        "required": [
          "date",
          "visibility"
        ],
        "title": "PromptVisibilityPointSchema"
      },
      "PromptVolumeTrendPointSchema": {
        "properties": {
          "year": {
            "type": "integer",
            "title": "Year"
          },
          "month": {
            "type": "integer",
            "title": "Month"
          },
          "ai_search_volume": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Search Volume"
          }
        },
        "type": "object",
        "required": [
          "year",
          "month"
        ],
        "title": "PromptVolumeTrendPointSchema"
      },
      "PromptWithCitationsSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "content": {
            "type": "string",
            "title": "Content"
          },
          "topic_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic Id"
          },
          "topic_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic Name"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagOnPromptSchema"
            },
            "type": "array",
            "title": "Tags",
            "default": []
          },
          "localizations": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Localizations",
            "default": [
              "worldwide"
            ]
          },
          "intent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptIntent"
              },
              {
                "type": "null"
              }
            ]
          },
          "journey_stage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptJourneyStage"
              },
              {
                "type": "null"
              }
            ]
          },
          "brand_scope": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptBrandScope"
              },
              {
                "type": "null"
              }
            ]
          },
          "brand_scope_manual": {
            "type": "boolean",
            "title": "Brand Scope Manual",
            "default": false
          },
          "source_keyword": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Keyword"
          },
          "visibility": {
            "type": "number",
            "title": "Visibility",
            "default": 0.0
          },
          "visibility_delta_7d": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Visibility Delta 7D"
          },
          "answer_count": {
            "type": "integer",
            "title": "Answer Count",
            "default": 0
          },
          "visibility_reference": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Visibility Reference"
          },
          "reference_answer_count": {
            "type": "integer",
            "title": "Reference Answer Count",
            "default": 0
          },
          "visibility_delta_reference": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Visibility Delta Reference"
          },
          "status": {
            "$ref": "#/components/schemas/PromptStatus",
            "default": "unclaimed"
          },
          "top_platforms": {
            "items": {
              "$ref": "#/components/schemas/PromptPlatformBreakdownSchema"
            },
            "type": "array",
            "title": "Top Platforms",
            "default": []
          },
          "sentiment_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sentiment Score"
          },
          "sentiment_highlights_count": {
            "type": "integer",
            "title": "Sentiment Highlights Count",
            "default": 0
          },
          "sentiment_positive_count": {
            "type": "integer",
            "title": "Sentiment Positive Count",
            "default": 0
          },
          "sentiment_negative_count": {
            "type": "integer",
            "title": "Sentiment Negative Count",
            "default": 0
          },
          "sentiment_neutral_count": {
            "type": "integer",
            "title": "Sentiment Neutral Count",
            "default": 0
          },
          "ai_search_volume": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Search Volume"
          },
          "ai_volume_delta": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Volume Delta"
          },
          "volume_updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Volume Updated At"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active",
            "default": true
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "archive_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptArchiveReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "citations": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CitationBase"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Citations"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "total_pages": {
            "type": "integer",
            "title": "Total Pages"
          }
        },
        "type": "object",
        "required": [
          "id",
          "content",
          "created_at",
          "total",
          "page",
          "page_size",
          "total_pages"
        ],
        "title": "PromptWithCitationsSchema"
      },
      "ProofAvailability": {
        "type": "string",
        "enum": [
          "found",
          "brand_contribution_needed",
          "research_required"
        ],
        "title": "ProofAvailability"
      },
      "ProofReadinessStatus": {
        "type": "string",
        "enum": [
          "ready",
          "ready_with_brand_contribution",
          "insufficient"
        ],
        "title": "ProofReadinessStatus"
      },
      "PublicSourcePage": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url"
          },
          "domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "source_type": {
            "type": "string",
            "title": "Source Type"
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count",
            "default": 0
          },
          "platforms": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Platforms",
            "default": []
          },
          "first_cited_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "First Cited At"
          },
          "last_cited_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Cited At"
          },
          "relation": {
            "$ref": "#/components/schemas/SourceRelation"
          },
          "brand_present": {
            "type": "boolean",
            "title": "Brand Present",
            "default": false
          },
          "present_on_page": {
            "items": {
              "$ref": "#/components/schemas/LostGroundBrandRank"
            },
            "type": "array",
            "title": "Present On Page",
            "default": []
          },
          "presence_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SourcePresenceStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "page_examined": {
            "type": "boolean",
            "title": "Page Examined",
            "default": false
          },
          "presence_known": {
            "type": "boolean",
            "title": "Presence Known",
            "default": false
          },
          "opportunity_score": {
            "type": "number",
            "title": "Opportunity Score",
            "default": 0
          },
          "momentum": {
            "$ref": "#/components/schemas/SourceMomentum",
            "default": "steady"
          },
          "citations_30d": {
            "type": "integer",
            "title": "Citations 30D",
            "default": 0
          },
          "citations_prev_30d": {
            "type": "integer",
            "title": "Citations Prev 30D",
            "default": 0
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active",
            "default": true
          },
          "actionable": {
            "type": "boolean",
            "title": "Actionable",
            "default": true
          },
          "is_sponsored": {
            "type": "boolean",
            "title": "Is Sponsored",
            "default": false
          },
          "is_press_release": {
            "type": "boolean",
            "title": "Is Press Release",
            "default": false
          },
          "author": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Author"
          }
        },
        "type": "object",
        "required": [
          "url",
          "title",
          "source_type",
          "relation"
        ],
        "title": "PublicSourcePage"
      },
      "PublicSourcePagesResponse": {
        "properties": {
          "pages": {
            "items": {
              "$ref": "#/components/schemas/PublicSourcePage"
            },
            "type": "array",
            "title": "Pages"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "relation_counts": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Relation Counts",
            "default": {}
          },
          "plan_max": {
            "type": "integer",
            "title": "Plan Max",
            "default": 0
          },
          "total_in_store": {
            "type": "integer",
            "title": "Total In Store",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "pages",
          "total"
        ],
        "title": "PublicSourcePagesResponse"
      },
      "RankedEntity": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "logo_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Logo Url"
          },
          "aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Aliases"
          },
          "url_aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url Aliases"
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count"
          },
          "rank": {
            "type": "integer",
            "title": "Rank"
          },
          "is_own": {
            "type": "boolean",
            "title": "Is Own"
          },
          "avg_position": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avg Position"
          },
          "visibility": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Visibility"
          },
          "share_of_voice": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Share Of Voice"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "url",
          "citation_count",
          "rank",
          "is_own"
        ],
        "title": "RankedEntity"
      },
      "RelatedExistingPage": {
        "properties": {
          "page_id": {
            "type": "integer",
            "title": "Page Id"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 600
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "relationship": {
            "$ref": "#/components/schemas/ContentCoverageRelation"
          },
          "reason": {
            "type": "string",
            "maxLength": 800,
            "minLength": 5,
            "title": "Reason"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "page_id",
          "url",
          "relationship",
          "reason"
        ],
        "title": "RelatedExistingPage"
      },
      "SearchConsoleLinkStatus": {
        "type": "string",
        "enum": [
          "syncing",
          "ready",
          "failed",
          "reauth_required"
        ],
        "title": "SearchConsoleLinkStatus"
      },
      "SearchConsoleProvider": {
        "type": "string",
        "enum": [
          "google",
          "bing"
        ],
        "title": "SearchConsoleProvider"
      },
      "SearchIntent": {
        "type": "string",
        "enum": [
          "informational",
          "commercial_investigation",
          "transactional",
          "navigational"
        ],
        "title": "SearchIntent"
      },
      "SearchMetricSchema": {
        "properties": {
          "clicks": {
            "type": "integer",
            "title": "Clicks"
          },
          "impressions": {
            "type": "integer",
            "title": "Impressions"
          }
        },
        "type": "object",
        "required": [
          "clicks",
          "impressions"
        ],
        "title": "SearchMetricSchema"
      },
      "SearchMetricsGranularity": {
        "type": "string",
        "enum": [
          "day",
          "week"
        ],
        "title": "SearchMetricsGranularity"
      },
      "SearchQueryBase": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "query": {
            "type": "string",
            "title": "Query"
          },
          "platform": {
            "$ref": "#/components/schemas/AiPlatform"
          },
          "citation_id": {
            "type": "integer",
            "title": "Citation Id"
          },
          "prompt_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prompt Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "query",
          "platform",
          "citation_id",
          "created_at"
        ],
        "title": "SearchQueryBase"
      },
      "SearchQueryGroupBy": {
        "type": "string",
        "enum": [
          "topic",
          "prompt"
        ],
        "title": "SearchQueryGroupBy"
      },
      "SearchQueryGroupSort": {
        "type": "string",
        "enum": [
          "frequency",
          "queries",
          "recent"
        ],
        "title": "SearchQueryGroupSort"
      },
      "SearchQueryTopicGroup": {
        "properties": {
          "topic": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TopicInfo"
              },
              {
                "type": "null"
              }
            ]
          },
          "prompt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptInfo"
              },
              {
                "type": "null"
              }
            ]
          },
          "query_count": {
            "type": "integer",
            "title": "Query Count"
          },
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "platforms": {
            "items": {
              "$ref": "#/components/schemas/AiPlatform"
            },
            "type": "array",
            "title": "Platforms"
          },
          "last_seen": {
            "type": "string",
            "format": "date-time",
            "title": "Last Seen"
          },
          "queries": {
            "items": {
              "$ref": "#/components/schemas/UniqueSearchQuery"
            },
            "type": "array",
            "title": "Queries"
          }
        },
        "type": "object",
        "required": [
          "query_count",
          "total_count",
          "platforms",
          "last_seen",
          "queries"
        ],
        "title": "SearchQueryTopicGroup"
      },
      "SearchSourceSchema": {
        "properties": {
          "provider": {
            "$ref": "#/components/schemas/SearchConsoleProvider"
          },
          "status": {
            "$ref": "#/components/schemas/SearchConsoleLinkStatus"
          },
          "granularity": {
            "$ref": "#/components/schemas/SearchMetricsGranularity"
          },
          "period_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Period Start"
          },
          "period_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Period End"
          },
          "data_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Data Start"
          },
          "data_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Data End"
          },
          "last_synced_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Synced At"
          }
        },
        "type": "object",
        "required": [
          "provider",
          "status",
          "granularity"
        ],
        "title": "SearchSourceSchema"
      },
      "SelectedPagesAuditRequest": {
        "properties": {
          "urls": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Urls"
          }
        },
        "type": "object",
        "required": [
          "urls"
        ],
        "title": "SelectedPagesAuditRequest"
      },
      "SentimentBrandSummary": {
        "properties": {
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "brand_name_normalized": {
            "type": "string",
            "title": "Brand Name Normalized"
          },
          "brand_kind": {
            "$ref": "#/components/schemas/BrandKind"
          },
          "resolved_competitor_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved Competitor Id"
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count"
          },
          "mention_count": {
            "type": "integer",
            "title": "Mention Count"
          },
          "positive_count": {
            "type": "integer",
            "title": "Positive Count"
          },
          "negative_count": {
            "type": "integer",
            "title": "Negative Count"
          },
          "neutral_count": {
            "type": "integer",
            "title": "Neutral Count"
          }
        },
        "type": "object",
        "required": [
          "display_name",
          "brand_name_normalized",
          "brand_kind",
          "citation_count",
          "mention_count",
          "positive_count",
          "negative_count",
          "neutral_count"
        ],
        "title": "SentimentBrandSummary"
      },
      "SentimentSummaryResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SentimentBrandSummary"
            },
            "type": "array",
            "title": "Items"
          },
          "total_brands": {
            "type": "integer",
            "title": "Total Brands"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total_brands"
        ],
        "title": "SentimentSummaryResponse"
      },
      "SentimentTrendPoint": {
        "properties": {
          "date": {
            "type": "string",
            "title": "Date"
          },
          "positive_count": {
            "type": "integer",
            "title": "Positive Count"
          },
          "negative_count": {
            "type": "integer",
            "title": "Negative Count"
          },
          "neutral_count": {
            "type": "integer",
            "title": "Neutral Count"
          },
          "mention_count": {
            "type": "integer",
            "title": "Mention Count"
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count"
          }
        },
        "type": "object",
        "required": [
          "date",
          "positive_count",
          "negative_count",
          "neutral_count",
          "mention_count",
          "citation_count"
        ],
        "title": "SentimentTrendPoint"
      },
      "SentimentTrendResponse": {
        "properties": {
          "bucket": {
            "type": "string",
            "title": "Bucket"
          },
          "points": {
            "items": {
              "$ref": "#/components/schemas/SentimentTrendPoint"
            },
            "type": "array",
            "title": "Points"
          }
        },
        "type": "object",
        "required": [
          "bucket",
          "points"
        ],
        "title": "SentimentTrendResponse"
      },
      "SingleUrlAuditRequest": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url"
          }
        },
        "type": "object",
        "required": [
          "url"
        ],
        "title": "SingleUrlAuditRequest"
      },
      "SortDirection": {
        "type": "string",
        "enum": [
          "asc",
          "desc"
        ],
        "title": "SortDirection"
      },
      "SourceClass": {
        "type": "string",
        "enum": [
          "all",
          "mentioned",
          "background"
        ],
        "title": "SourceClass"
      },
      "SourceMomentum": {
        "type": "string",
        "enum": [
          "new",
          "surging",
          "steady",
          "fading",
          "dormant"
        ],
        "title": "SourceMomentum"
      },
      "SourcePresenceStatus": {
        "type": "string",
        "enum": [
          "pending",
          "present",
          "absent",
          "blocked"
        ],
        "title": "SourcePresenceStatus"
      },
      "SourceRelation": {
        "type": "string",
        "enum": [
          "lost_ground",
          "contested",
          "owned",
          "open"
        ],
        "title": "SourceRelation"
      },
      "SourceScope": {
        "type": "string",
        "enum": [
          "all",
          "own",
          "external"
        ],
        "title": "SourceScope"
      },
      "SourceUrlBreakdown": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count"
          },
          "percentage": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percentage"
          },
          "answer_count": {
            "type": "integer",
            "title": "Answer Count",
            "default": 0
          },
          "retrieved_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retrieved Pct"
          },
          "citations_per_answer": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Citations Per Answer"
          },
          "citation_share": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Citation Share"
          },
          "retrieved_pct_reference": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retrieved Pct Reference"
          },
          "retrieved_pct_delta": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retrieved Pct Delta"
          },
          "rank_reference": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank Reference"
          },
          "new_in_period": {
            "type": "boolean",
            "title": "New In Period",
            "default": false
          },
          "prompts": {
            "items": {
              "$ref": "#/components/schemas/SourceUrlPromptInfo"
            },
            "type": "array",
            "title": "Prompts"
          },
          "platforms": {
            "items": {
              "$ref": "#/components/schemas/SourceUrlPlatformCount"
            },
            "type": "array",
            "title": "Platforms"
          }
        },
        "type": "object",
        "required": [
          "url",
          "citation_count"
        ],
        "title": "SourceUrlBreakdown"
      },
      "SourceUrlDetail": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url"
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count"
          },
          "platforms": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Platforms"
          },
          "last_cited_at": {
            "type": "string",
            "format": "date-time",
            "title": "Last Cited At"
          }
        },
        "type": "object",
        "required": [
          "url",
          "citation_count",
          "platforms",
          "last_cited_at"
        ],
        "title": "SourceUrlDetail"
      },
      "SourceUrlPlatformCount": {
        "properties": {
          "platform": {
            "$ref": "#/components/schemas/AiPlatform"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "platform",
          "count"
        ],
        "title": "SourceUrlPlatformCount"
      },
      "SourceUrlPromptInfo": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "content": {
            "type": "string",
            "title": "Content"
          }
        },
        "type": "object",
        "required": [
          "id",
          "content"
        ],
        "title": "SourceUrlPromptInfo"
      },
      "SourceVerificationStatus": {
        "type": "string",
        "enum": [
          "signal_verified",
          "metadata_only"
        ],
        "title": "SourceVerificationStatus"
      },
      "SubStatus": {
        "type": "string",
        "enum": [
          "incomplete",
          "incomplete_expired",
          "trialing",
          "active",
          "past_due",
          "canceled",
          "unpaid",
          "paused"
        ],
        "title": "SubStatus"
      },
      "SubscriptionDetailsResponse": {
        "properties": {
          "plan_tier": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Tier"
          },
          "product_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Name"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "trial_ends_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trial Ends At"
          },
          "ai_platforms": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Ai Platforms"
          },
          "features": {
            "type": "object",
            "title": "Features"
          },
          "quotas": {
            "type": "object",
            "title": "Quotas"
          }
        },
        "type": "object",
        "required": [
          "plan_tier",
          "product_name",
          "status",
          "started_at",
          "expires_at",
          "trial_ends_at",
          "ai_platforms",
          "features",
          "quotas"
        ],
        "title": "SubscriptionDetailsResponse"
      },
      "SuggestedCompetitorCitationItem": {
        "properties": {
          "citation_id": {
            "type": "integer",
            "title": "Citation Id"
          },
          "platform": {
            "$ref": "#/components/schemas/AiPlatform"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "localization": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Localization"
          },
          "prompt_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prompt Id"
          },
          "prompt_content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prompt Content"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "rank_total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank Total"
          },
          "rank_is_structured": {
            "type": "boolean",
            "title": "Rank Is Structured",
            "default": false
          },
          "excerpt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Excerpt"
          },
          "excerpt_highlights": {
            "items": {
              "prefixItems": [
                {
                  "type": "integer"
                },
                {
                  "type": "integer"
                }
              ],
              "type": "array",
              "maxItems": 2,
              "minItems": 2
            },
            "type": "array",
            "title": "Excerpt Highlights"
          }
        },
        "type": "object",
        "required": [
          "citation_id",
          "platform",
          "created_at"
        ],
        "title": "SuggestedCompetitorCitationItem"
      },
      "SuggestedCompetitorCitationsResponse": {
        "properties": {
          "suggestion_id": {
            "type": "integer",
            "title": "Suggestion Id"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count",
            "default": 0
          },
          "summary": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SuggestedCompetitorSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/SuggestedCompetitorCitationItem"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "total_pages": {
            "type": "integer",
            "title": "Total Pages"
          }
        },
        "type": "object",
        "required": [
          "suggestion_id",
          "display_name",
          "items",
          "total",
          "page",
          "page_size",
          "total_pages"
        ],
        "title": "SuggestedCompetitorCitationsResponse"
      },
      "SuggestedCompetitorItem": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "name_normalized": {
            "type": "string",
            "title": "Name Normalized"
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count"
          },
          "first_seen_at": {
            "type": "string",
            "format": "date-time",
            "title": "First Seen At"
          },
          "last_seen_at": {
            "type": "string",
            "format": "date-time",
            "title": "Last Seen At"
          },
          "dismissed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dismissed At"
          },
          "promoted_to_competitor_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Promoted To Competitor Id"
          },
          "visibility": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Visibility"
          }
        },
        "type": "object",
        "required": [
          "id",
          "display_name",
          "name_normalized",
          "citation_count",
          "first_seen_at",
          "last_seen_at"
        ],
        "title": "SuggestedCompetitorItem"
      },
      "SuggestedCompetitorListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SuggestedCompetitorItem"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "SuggestedCompetitorListResponse"
      },
      "SuggestedCompetitorPlatformStat": {
        "properties": {
          "platform": {
            "$ref": "#/components/schemas/AiPlatform"
          },
          "named_answer_count": {
            "type": "integer",
            "title": "Named Answer Count"
          },
          "answer_count": {
            "type": "integer",
            "title": "Answer Count"
          },
          "visibility": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Visibility"
          }
        },
        "type": "object",
        "required": [
          "platform",
          "named_answer_count",
          "answer_count"
        ],
        "title": "SuggestedCompetitorPlatformStat"
      },
      "SuggestedCompetitorPromoteRequest": {
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "logo_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048
              },
              {
                "type": "null"
              }
            ],
            "title": "Logo Url"
          },
          "aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Aliases"
          },
          "link_to_competitor_id": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Link To Competitor Id"
          }
        },
        "type": "object",
        "title": "SuggestedCompetitorPromoteRequest"
      },
      "SuggestedCompetitorPromptStat": {
        "properties": {
          "prompt_id": {
            "type": "integer",
            "title": "Prompt Id"
          },
          "prompt_content": {
            "type": "string",
            "title": "Prompt Content"
          },
          "named_answer_count": {
            "type": "integer",
            "title": "Named Answer Count"
          },
          "answer_count": {
            "type": "integer",
            "title": "Answer Count"
          }
        },
        "type": "object",
        "required": [
          "prompt_id",
          "prompt_content",
          "named_answer_count",
          "answer_count"
        ],
        "title": "SuggestedCompetitorPromptStat"
      },
      "SuggestedCompetitorSummary": {
        "properties": {
          "named_answer_count": {
            "type": "integer",
            "title": "Named Answer Count"
          },
          "answer_count": {
            "type": "integer",
            "title": "Answer Count"
          },
          "last_named_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Named At"
          },
          "visibility": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Visibility"
          },
          "avg_rank": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avg Rank"
          },
          "ranked_answer_count": {
            "type": "integer",
            "title": "Ranked Answer Count",
            "default": 0
          },
          "platforms": {
            "items": {
              "$ref": "#/components/schemas/SuggestedCompetitorPlatformStat"
            },
            "type": "array",
            "title": "Platforms"
          },
          "top_prompts": {
            "items": {
              "$ref": "#/components/schemas/SuggestedCompetitorPromptStat"
            },
            "type": "array",
            "title": "Top Prompts"
          },
          "trend_window_days": {
            "type": "integer",
            "title": "Trend Window Days"
          },
          "recent_visibility": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recent Visibility"
          },
          "previous_visibility": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Previous Visibility"
          }
        },
        "type": "object",
        "required": [
          "named_answer_count",
          "answer_count",
          "trend_window_days"
        ],
        "title": "SuggestedCompetitorSummary"
      },
      "SuggestedSourceResponse": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "domain": {
            "type": "string",
            "title": "Domain"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "source_type": {
            "type": "string",
            "enum": [
              "review_platform",
              "media",
              "blog",
              "directory",
              "forum",
              "wiki",
              "social"
            ],
            "title": "Source Type"
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count"
          },
          "platform_citations": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Platform Citations"
          },
          "is_review_site": {
            "type": "boolean",
            "title": "Is Review Site"
          },
          "from_citation": {
            "type": "boolean",
            "title": "From Citation"
          },
          "first_seen_at": {
            "type": "string",
            "format": "date-time",
            "title": "First Seen At"
          },
          "last_seen_at": {
            "type": "string",
            "format": "date-time",
            "title": "Last Seen At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "urls": {
            "items": {
              "$ref": "#/components/schemas/SourceUrlDetail"
            },
            "type": "array",
            "title": "Urls",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id",
          "domain",
          "name",
          "source_type",
          "citation_count",
          "is_review_site",
          "from_citation",
          "first_seen_at",
          "last_seen_at",
          "created_at"
        ],
        "title": "SuggestedSourceResponse"
      },
      "SuggestedSourceStatsResponse": {
        "properties": {
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "by_type": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "By Type"
          },
          "by_platform": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "By Platform"
          }
        },
        "type": "object",
        "required": [
          "total",
          "by_type",
          "by_platform"
        ],
        "title": "SuggestedSourceStatsResponse"
      },
      "SuggestedSourcesListResponse": {
        "properties": {
          "sources": {
            "items": {
              "$ref": "#/components/schemas/SuggestedSourceResponse"
            },
            "type": "array",
            "title": "Sources"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "sources",
          "total"
        ],
        "title": "SuggestedSourcesListResponse"
      },
      "SuggestionPagesResponse": {
        "properties": {
          "suggestion": {
            "$ref": "#/components/schemas/SuggestionResponse"
          },
          "pages": {
            "items": {
              "$ref": "#/components/schemas/PageItem"
            },
            "type": "array",
            "title": "Pages"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "per_page": {
            "type": "integer",
            "title": "Per Page"
          }
        },
        "type": "object",
        "required": [
          "suggestion",
          "pages",
          "total",
          "page",
          "per_page"
        ],
        "title": "SuggestionPagesResponse"
      },
      "SuggestionPriority": {
        "type": "string",
        "enum": [
          "high",
          "medium",
          "low"
        ],
        "title": "SuggestionPriority"
      },
      "SuggestionResponse": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "suggestion_type": {
            "type": "string",
            "title": "Suggestion Type"
          },
          "suggestion_category": {
            "type": "string",
            "title": "Suggestion Category"
          },
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Category"
          },
          "priority": {
            "type": "string",
            "title": "Priority"
          },
          "affected_pages_count": {
            "type": "integer",
            "title": "Affected Pages Count"
          },
          "example_urls": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Example Urls"
          },
          "message": {
            "type": "string",
            "title": "Message"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "dismissed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dismissed At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "suggestion_type",
          "suggestion_category",
          "category",
          "priority",
          "affected_pages_count",
          "example_urls",
          "message",
          "description",
          "dismissed_at"
        ],
        "title": "SuggestionResponse"
      },
      "TagColor": {
        "type": "string",
        "enum": [
          "slate",
          "red",
          "orange",
          "amber",
          "green",
          "teal",
          "blue",
          "indigo",
          "purple",
          "pink"
        ],
        "title": "TagColor"
      },
      "TagOnPromptSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "color": {
            "$ref": "#/components/schemas/TagColor"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "color"
        ],
        "title": "TagOnPromptSchema"
      },
      "TimeRange": {
        "type": "string",
        "enum": [
          "all_time",
          "1y",
          "1m",
          "1w",
          "1d"
        ],
        "title": "TimeRange"
      },
      "TopPlatformCitation": {
        "properties": {
          "platform": {
            "$ref": "#/components/schemas/AiPlatform"
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count"
          },
          "answer_count": {
            "type": "integer",
            "title": "Answer Count",
            "default": 0
          },
          "visibility": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Visibility"
          }
        },
        "type": "object",
        "required": [
          "platform",
          "citation_count"
        ],
        "title": "TopPlatformCitation"
      },
      "TopSourceDomain": {
        "properties": {
          "domain": {
            "type": "string",
            "title": "Domain"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count"
          },
          "percentage": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percentage"
          },
          "avg_position": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avg Position"
          },
          "answer_count": {
            "type": "integer",
            "title": "Answer Count",
            "default": 0
          },
          "retrieved_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retrieved Pct"
          },
          "citations_per_answer": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Citations Per Answer"
          },
          "citation_share": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Citation Share"
          }
        },
        "type": "object",
        "required": [
          "domain",
          "citation_count"
        ],
        "title": "TopSourceDomain"
      },
      "TopicCreateSchema": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "TopicCreateSchema"
      },
      "TopicInfo": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "title": "TopicInfo"
      },
      "TopicResponse": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          }
        },
        "type": "object",
        "required": [
          "name",
          "id"
        ],
        "title": "TopicResponse"
      },
      "TopicUpdateSchema": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "TopicUpdateSchema"
      },
      "UniqueSearchQuery": {
        "properties": {
          "query": {
            "type": "string",
            "title": "Query"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          },
          "platforms": {
            "items": {
              "$ref": "#/components/schemas/AiPlatform"
            },
            "type": "array",
            "title": "Platforms"
          },
          "prompt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptInfo"
              },
              {
                "type": "null"
              }
            ]
          },
          "topic": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TopicInfo"
              },
              {
                "type": "null"
              }
            ]
          },
          "first_seen": {
            "type": "string",
            "format": "date-time",
            "title": "First Seen"
          },
          "last_seen": {
            "type": "string",
            "format": "date-time",
            "title": "Last Seen"
          }
        },
        "type": "object",
        "required": [
          "query",
          "count",
          "platforms",
          "first_seen",
          "last_seen"
        ],
        "title": "UniqueSearchQuery"
      },
      "UrlLookupAgentPage": {
        "properties": {
          "host": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Host"
          },
          "path": {
            "type": "string",
            "title": "Path"
          },
          "visits": {
            "type": "integer",
            "title": "Visits"
          },
          "first_visit_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "First Visit At"
          },
          "last_visit_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Visit At"
          },
          "agents": {
            "items": {
              "$ref": "#/components/schemas/AgentBreakdownItem"
            },
            "type": "array",
            "title": "Agents",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "path",
          "visits"
        ],
        "title": "UrlLookupAgentPage"
      },
      "UrlLookupAgentTraffic": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": false
          },
          "found": {
            "type": "boolean",
            "title": "Found",
            "default": false
          },
          "total_visits": {
            "type": "integer",
            "title": "Total Visits",
            "default": 0
          },
          "first_visit_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "First Visit At"
          },
          "last_visit_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Visit At"
          },
          "pages": {
            "items": {
              "$ref": "#/components/schemas/UrlLookupAgentPage"
            },
            "type": "array",
            "title": "Pages",
            "default": []
          }
        },
        "type": "object",
        "title": "UrlLookupAgentTraffic"
      },
      "UrlLookupCitationHit": {
        "properties": {
          "citation_id": {
            "type": "integer",
            "title": "Citation Id"
          },
          "platform": {
            "$ref": "#/components/schemas/AiPlatform"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "localization": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Localization"
          },
          "prompt_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prompt Id"
          },
          "prompt_content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prompt Content"
          },
          "matched_urls": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Matched Urls",
            "default": []
          },
          "is_mentioned": {
            "type": "boolean",
            "title": "Is Mentioned",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "citation_id",
          "platform",
          "created_at"
        ],
        "title": "UrlLookupCitationHit"
      },
      "UrlLookupResponse": {
        "properties": {
          "query": {
            "type": "string",
            "title": "Query"
          },
          "normalized_query": {
            "type": "string",
            "title": "Normalized Query"
          },
          "found": {
            "type": "boolean",
            "title": "Found",
            "default": false
          },
          "sources": {
            "$ref": "#/components/schemas/UrlLookupSources"
          },
          "agent_traffic": {
            "$ref": "#/components/schemas/UrlLookupAgentTraffic"
          }
        },
        "type": "object",
        "required": [
          "query",
          "normalized_query",
          "sources",
          "agent_traffic"
        ],
        "title": "UrlLookupResponse"
      },
      "UrlLookupSources": {
        "properties": {
          "found": {
            "type": "boolean",
            "title": "Found",
            "default": false
          },
          "citation_count": {
            "type": "integer",
            "title": "Citation Count",
            "default": 0
          },
          "occurrence_count": {
            "type": "integer",
            "title": "Occurrence Count",
            "default": 0
          },
          "mentioned_count": {
            "type": "integer",
            "title": "Mentioned Count",
            "default": 0
          },
          "background_count": {
            "type": "integer",
            "title": "Background Count",
            "default": 0
          },
          "first_seen_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "First Seen At"
          },
          "last_seen_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Seen At"
          },
          "matched_urls": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Matched Urls",
            "default": []
          },
          "platforms": {
            "items": {
              "$ref": "#/components/schemas/SourceUrlPlatformCount"
            },
            "type": "array",
            "title": "Platforms",
            "default": []
          },
          "prompts": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Prompts",
            "default": []
          },
          "citations": {
            "items": {
              "$ref": "#/components/schemas/UrlLookupCitationHit"
            },
            "type": "array",
            "title": "Citations",
            "default": []
          }
        },
        "type": "object",
        "title": "UrlLookupSources"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "WebsiteAnalysisError": {
        "type": "string",
        "enum": [
          "crawl_failed",
          "llm_unavailable",
          "llm_invalid_response",
          "unknown"
        ],
        "title": "WebsiteAnalysisError"
      },
      "WebsiteAnalysisStatus": {
        "type": "string",
        "enum": [
          "pending",
          "analyzing",
          "completed",
          "failed"
        ],
        "title": "WebsiteAnalysisStatus"
      },
      "WebsiteAuditCriteriaItemSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "weight": {
            "type": "number",
            "title": "Weight"
          },
          "validated": {
            "type": "boolean",
            "title": "Validated"
          },
          "website_audit_recommendations": {
            "items": {
              "$ref": "#/components/schemas/WebsiteAuditRecommendationSchema"
            },
            "type": "array",
            "title": "Website Audit Recommendations",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "weight",
          "validated"
        ],
        "title": "WebsiteAuditCriteriaItemSchema"
      },
      "WebsiteAuditItemSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "website_id": {
            "type": "integer",
            "title": "Website Id"
          },
          "status": {
            "$ref": "#/components/schemas/WebsiteAuditStatus"
          },
          "overall_score": {
            "type": "number",
            "title": "Overall Score"
          },
          "max_possible_score": {
            "type": "number",
            "title": "Max Possible Score"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "number_of_audited_pages": {
            "type": "integer",
            "title": "Number Of Audited Pages"
          },
          "language": {
            "$ref": "#/components/schemas/Language",
            "default": "en"
          },
          "audit_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditType"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "website_id",
          "status",
          "overall_score",
          "max_possible_score",
          "started_at",
          "completed_at",
          "created_at",
          "number_of_audited_pages"
        ],
        "title": "WebsiteAuditItemSchema"
      },
      "WebsiteAuditPageCategory": {
        "type": "string",
        "enum": [
          "global",
          "home_page",
          "blog_post",
          "blog_list_page",
          "service_page",
          "product_page",
          "pricing_page",
          "landing_page",
          "docs_page",
          "knowledge_base_article",
          "faq_page",
          "about_page",
          "contact_page",
          "checkout_page",
          "other",
          "default",
          "unreachable",
          "case_study",
          "guide",
          "product_list_page",
          "cart_page",
          "legal_page",
          "auth_page",
          "category_page",
          "search_page",
          "utility_page",
          "glossary_page",
          "comparison_page",
          "use_case_page",
          "ecommerce_product_page"
        ],
        "title": "WebsiteAuditPageCategory"
      },
      "WebsiteAuditPageItemSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "page_url": {
            "type": "string",
            "title": "Page Url"
          },
          "page_category": {
            "$ref": "#/components/schemas/WebsiteAuditPageCategory"
          },
          "overall_score": {
            "type": "number",
            "title": "Overall Score"
          },
          "max_possible_score": {
            "type": "number",
            "title": "Max Possible Score"
          },
          "error_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Text"
          }
        },
        "type": "object",
        "required": [
          "id",
          "page_url",
          "page_category",
          "overall_score",
          "max_possible_score",
          "error_text"
        ],
        "title": "WebsiteAuditPageItemSchema"
      },
      "WebsiteAuditPageWithCriteriasSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "page_url": {
            "type": "string",
            "title": "Page Url"
          },
          "page_category": {
            "$ref": "#/components/schemas/WebsiteAuditPageCategory"
          },
          "overall_score": {
            "type": "number",
            "title": "Overall Score"
          },
          "max_possible_score": {
            "type": "number",
            "title": "Max Possible Score"
          },
          "error_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Text"
          },
          "criterias": {
            "items": {
              "$ref": "#/components/schemas/WebsiteAuditCriteriaItemSchema"
            },
            "type": "array",
            "title": "Criterias"
          }
        },
        "type": "object",
        "required": [
          "id",
          "page_url",
          "page_category",
          "overall_score",
          "max_possible_score",
          "error_text",
          "criterias"
        ],
        "title": "WebsiteAuditPageWithCriteriasSchema"
      },
      "WebsiteAuditQuotaSchema": {
        "properties": {
          "used": {
            "type": "integer",
            "title": "Used"
          },
          "limit": {
            "type": "integer",
            "title": "Limit"
          },
          "resets_at": {
            "type": "string",
            "title": "Resets At"
          }
        },
        "type": "object",
        "required": [
          "used",
          "limit",
          "resets_at"
        ],
        "title": "WebsiteAuditQuotaSchema"
      },
      "WebsiteAuditRecommendationSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "website_audit_criteria_id": {
            "type": "integer",
            "title": "Website Audit Criteria Id"
          },
          "description": {
            "type": "string",
            "title": "Description"
          }
        },
        "type": "object",
        "required": [
          "id",
          "website_audit_criteria_id",
          "description"
        ],
        "title": "WebsiteAuditRecommendationSchema"
      },
      "WebsiteAuditStatus": {
        "type": "integer",
        "enum": [
          1,
          2,
          3,
          4
        ],
        "title": "WebsiteAuditStatus"
      },
      "WebsiteAuditWithPageSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "website_id": {
            "type": "integer",
            "title": "Website Id"
          },
          "status": {
            "$ref": "#/components/schemas/WebsiteAuditStatus"
          },
          "overall_score": {
            "type": "number",
            "title": "Overall Score"
          },
          "max_possible_score": {
            "type": "number",
            "title": "Max Possible Score"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "number_of_audited_pages": {
            "type": "integer",
            "title": "Number Of Audited Pages"
          },
          "language": {
            "$ref": "#/components/schemas/Language",
            "default": "en"
          },
          "audit_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditType"
              },
              {
                "type": "null"
              }
            ]
          },
          "pages": {
            "items": {
              "$ref": "#/components/schemas/WebsiteAuditPageItemSchema"
            },
            "type": "array",
            "title": "Pages"
          }
        },
        "type": "object",
        "required": [
          "id",
          "website_id",
          "status",
          "overall_score",
          "max_possible_score",
          "started_at",
          "completed_at",
          "created_at",
          "number_of_audited_pages",
          "pages"
        ],
        "title": "WebsiteAuditWithPageSchema"
      },
      "WebsiteListItem": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "workspace_id": {
            "type": "integer",
            "title": "Workspace Id"
          },
          "has_active_subscription": {
            "type": "boolean",
            "title": "Has Active Subscription"
          },
          "plan_tier": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Tier"
          },
          "plan_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "url",
          "workspace_id",
          "has_active_subscription"
        ],
        "title": "WebsiteListItem"
      },
      "WebsitePageListItemSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          },
          "category": {
            "$ref": "#/components/schemas/WebsiteAuditPageCategory"
          },
          "category_source": {
            "$ref": "#/components/schemas/PageCategorySource"
          },
          "health_check_passed": {
            "type": "boolean",
            "title": "Health Check Passed"
          },
          "error_count": {
            "type": "integer",
            "title": "Error Count",
            "default": 0
          },
          "warning_count": {
            "type": "integer",
            "title": "Warning Count",
            "default": 0
          },
          "last_crawled_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Crawled At"
          },
          "crawl_block_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CrawlBlockReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/WebsitePageStatus"
          },
          "search_metrics": {
            "$ref": "#/components/schemas/PageSearchMetricsSchema",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "id",
          "url",
          "category",
          "category_source",
          "health_check_passed",
          "status"
        ],
        "title": "WebsitePageListItemSchema"
      },
      "WebsitePageSchema": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "website_id": {
            "type": "integer",
            "title": "Website Id"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "meta_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Meta Description"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          },
          "category": {
            "$ref": "#/components/schemas/WebsiteAuditPageCategory"
          },
          "category_source": {
            "$ref": "#/components/schemas/PageCategorySource"
          },
          "health_check_passed": {
            "type": "boolean",
            "title": "Health Check Passed"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active"
          },
          "is_indexable": {
            "type": "boolean",
            "title": "Is Indexable"
          },
          "http_status_code": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Http Status Code"
          },
          "last_crawled_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Crawled At"
          },
          "last_changed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Changed At"
          },
          "last_health_check_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Health Check At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "health_errors": {
            "items": {
              "$ref": "#/components/schemas/HealthErrorSchema"
            },
            "type": "array",
            "title": "Health Errors",
            "default": []
          },
          "search_metrics": {
            "$ref": "#/components/schemas/PageSearchMetricsSchema",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "id",
          "website_id",
          "url",
          "category",
          "category_source",
          "health_check_passed",
          "is_active",
          "is_indexable",
          "created_at"
        ],
        "title": "WebsitePageSchema"
      },
      "WebsitePageStatus": {
        "type": "string",
        "enum": [
          "blocked",
          "not_crawled",
          "crawled",
          "errors",
          "warnings",
          "analysed"
        ],
        "title": "WebsitePageStatus"
      },
      "WebsitePageSummarySchema": {
        "properties": {
          "total_pages": {
            "type": "integer",
            "title": "Total Pages"
          },
          "by_category": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "By Category"
          },
          "health_passed": {
            "type": "integer",
            "title": "Health Passed"
          },
          "health_failed": {
            "type": "integer",
            "title": "Health Failed"
          },
          "errors_by_type": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Errors By Type",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "total_pages",
          "by_category",
          "health_passed",
          "health_failed"
        ],
        "title": "WebsitePageSummarySchema"
      },
      "WebsiteResponse": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "logo_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Logo Url"
          },
          "localization": {
            "type": "string",
            "title": "Localization",
            "default": "worldwide"
          },
          "workspace_id": {
            "type": "integer",
            "title": "Workspace Id"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "analysis_status": {
            "$ref": "#/components/schemas/WebsiteAnalysisStatus",
            "default": "pending"
          },
          "analysis_error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WebsiteAnalysisError"
              },
              {
                "type": "null"
              }
            ]
          },
          "industry": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Industry"
          },
          "brand_identity": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Identity"
          },
          "topics": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Topics"
          },
          "competitors": {
            "items": {
              "$ref": "#/components/schemas/CompetitorWithoutLogo"
            },
            "type": "array",
            "title": "Competitors"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          },
          "aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Aliases"
          },
          "url_aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url Aliases"
          },
          "has_active_subscription": {
            "type": "boolean",
            "title": "Has Active Subscription",
            "default": false
          },
          "is_churned": {
            "type": "boolean",
            "title": "Is Churned",
            "default": false
          },
          "subscription_product_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subscription Product Name"
          },
          "subscription_product_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subscription Product Id"
          },
          "subscription_billing_interval": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subscription Billing Interval"
          },
          "subscription_price": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subscription Price"
          },
          "subscription_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SubStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "exports_enabled": {
            "type": "boolean",
            "title": "Exports Enabled",
            "default": false
          },
          "ai_prompt_gen_enabled": {
            "type": "boolean",
            "title": "Ai Prompt Gen Enabled",
            "default": true
          },
          "source_intelligence_enabled": {
            "type": "boolean",
            "title": "Source Intelligence Enabled",
            "default": true
          },
          "sentiment_analysis_enabled": {
            "type": "boolean",
            "title": "Sentiment Analysis Enabled",
            "default": true
          },
          "competitor_suggestions_enabled": {
            "type": "boolean",
            "title": "Competitor Suggestions Enabled",
            "default": true
          },
          "marketing_plan_enabled": {
            "type": "boolean",
            "title": "Marketing Plan Enabled",
            "default": false
          },
          "blog_articles_enabled": {
            "type": "boolean",
            "title": "Blog Articles Enabled",
            "default": false
          },
          "agent_analytics_enabled": {
            "type": "boolean",
            "title": "Agent Analytics Enabled",
            "default": false
          },
          "prompt_volume_enabled": {
            "type": "boolean",
            "title": "Prompt Volume Enabled",
            "default": false
          },
          "reports_enabled": {
            "type": "boolean",
            "title": "Reports Enabled",
            "default": false
          },
          "reports_white_label": {
            "type": "boolean",
            "title": "Reports White Label",
            "default": false
          },
          "report_exports_monthly_limit": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Report Exports Monthly Limit"
          },
          "shared_reports_limit": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Shared Reports Limit"
          },
          "active_prompt_count": {
            "type": "integer",
            "title": "Active Prompt Count",
            "default": 0
          },
          "plan_tier": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Tier"
          },
          "trial_ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trial Ends At"
          },
          "paused_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Paused At"
          },
          "requires_post_trial_choice": {
            "type": "boolean",
            "title": "Requires Post Trial Choice",
            "default": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "name",
          "url",
          "workspace_id",
          "id",
          "topics",
          "competitors",
          "created_at"
        ],
        "title": "WebsiteResponse"
      },
      "WorkspaceItem": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "role": {
            "$ref": "#/components/schemas/WorkspaceRole"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "role"
        ],
        "title": "WorkspaceItem"
      },
      "WorkspaceRole": {
        "type": "string",
        "enum": [
          "owner",
          "admin",
          "member",
          "viewer"
        ],
        "title": "WorkspaceRole"
      },
      "WorkspaceWebsiteItem": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "has_active_subscription": {
            "type": "boolean",
            "title": "Has Active Subscription"
          },
          "plan_tier": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Tier"
          },
          "plan_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "url",
          "has_active_subscription"
        ],
        "title": "WorkspaceWebsiteItem"
      },
      "WorkspaceWithWebsites": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "role": {
            "$ref": "#/components/schemas/WorkspaceRole"
          },
          "websites": {
            "items": {
              "$ref": "#/components/schemas/WorkspaceWebsiteItem"
            },
            "type": "array",
            "title": "Websites"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "role",
          "websites"
        ],
        "title": "WorkspaceWithWebsites"
      },
      "Error": {
        "type": "object",
        "title": "Error",
        "required": [
          "detail"
        ],
        "properties": {
          "detail": {
            "type": "string",
            "description": "Human-readable explanation of the error."
          }
        }
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Personal API key created in the dashboard under Settings > API keys."
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "The `Authorization` header is missing, malformed, or the key is invalid, expired or revoked.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "detail": "Invalid or expired API key"
            }
          }
        }
      },
      "Forbidden": {
        "description": "The key is valid but not allowed to do this: the website has no active subscription, your role in the workspace is read-only for a write request, or your email is not verified.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "detail": "This website has no active subscription, so its data is unavailable."
            }
          }
        },
        "headers": {
          "X-Error-Code": {
            "description": "Stable machine-readable error code, when one applies (for example `rate_limited`).",
            "schema": {
              "type": "string"
            }
          }
        }
      },
      "NotFound": {
        "description": "The website, or the resource in the path, does not exist or is not visible to this key.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "detail": "Website not found"
            }
          }
        }
      },
      "RateLimited": {
        "description": "Too many requests for this API key. Wait for the number of seconds in `Retry-After`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "detail": "Too many requests. Please try again shortly."
            }
          }
        },
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait before retrying.",
            "schema": {
              "type": "integer"
            }
          },
          "X-Error-Code": {
            "description": "Stable machine-readable error code, when one applies (for example `rate_limited`).",
            "schema": {
              "type": "string"
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.tryhikoo.com",
      "description": "Production"
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "tags": [
    {
      "name": "Account",
      "description": "The user behind the API key."
    },
    {
      "name": "Workspaces",
      "description": "Workspaces the user belongs to. Use them to find the websites you can query."
    },
    {
      "name": "Websites",
      "description": "Every website the user can access, with its subscription status."
    },
    {
      "name": "Website",
      "description": "Metadata and plan of one website."
    },
    {
      "name": "Citations",
      "description": "Every time an AI assistant answers one of your prompts, Hikoo stores the answer as a citation. These endpoints list them and aggregate them by platform, source, sentiment and match type."
    },
    {
      "name": "Prompts",
      "description": "Prompts are the questions Hikoo sends to AI assistants for a website. Create, edit, archive and restore them, and read their visibility, answers and citations."
    },
    {
      "name": "Topics",
      "description": "Topics group prompts. Every prompt belongs to one topic."
    },
    {
      "name": "Search queries",
      "description": "The web searches AI assistants run internally (query fan-out) before answering your prompts."
    },
    {
      "name": "URL lookup",
      "description": "Where one URL shows up, across AI-cited sources and AI-crawler traffic, in one call."
    },
    {
      "name": "Competitors",
      "description": "Tracked competitors, their share of voice, and the competitor suggestions Hikoo detects in AI answers."
    },
    {
      "name": "Source intelligence",
      "description": "The domains and pages AI assistants cite for your prompts, and who appears on them."
    },
    {
      "name": "Audits",
      "description": "GEO audits of a full site, a list of pages or a single URL."
    },
    {
      "name": "Health",
      "description": "Site-level checks for AI readiness (robots.txt, llms.txt, sitemap) and improvement suggestions."
    },
    {
      "name": "Indexation",
      "description": "The pages Hikoo crawled on your website, their category, health and errors."
    },
    {
      "name": "Content gaps",
      "description": "Topics where AI assistants answer without citing you, with a content brief for each."
    },
    {
      "name": "Agent analytics",
      "description": "Traffic from AI crawlers and AI agents on your website."
    },
    {
      "name": "Outreach",
      "description": "The outreach agent: sources worth getting cited on, their contacts, the pitches waiting for approval, follow-ups, and what the agent is allowed to do on its own."
    }
  ]
}
