{
 "openapi": "3.1.0",
 "info": {
  "title": "theStacc API",
  "version": "1.0.0",
  "description": "The theStacc API lets an agent run a project's marketing: plan, write and edit blogs, social posts and Google Business Profile posts, and read Search Console, GA4, site audit and keyword data. A person approves what gets published.\n\n**Authentication.** Every request carries `Authorization: Bearer <token>`. Get a token either way:\n\n- OAuth 2.1 (authorization code with PKCE S256, dynamic client registration). Metadata: https://mcp.thestacc.com/.well-known/oauth-authorization-server\n- A project agent key (`sk_agent_...`) created in the theStacc app.\n\nEach token belongs to one project and carries only the scopes it was granted. A call without the scope it needs returns 403 with `error_code: missing_scope`.\n\nThe same API is available as an MCP server at https://mcp.thestacc.com/mcp. Docs: https://thestacc.com/docs",
  "contact": {
   "name": "theStacc support",
   "url": "https://thestacc.com/contact/",
   "email": "hello@thestacc.com"
  },
  "termsOfService": "https://thestacc.com/terms/"
 },
 "externalDocs": {
  "description": "theStacc docs",
  "url": "https://thestacc.com/docs"
 },
 "servers": [
  {
   "url": "https://api.thestacc.com"
  }
 ],
 "tags": [
  {
   "name": "blog",
   "description": "Blogs, the content plan, keywords, Search Console, GA4 and site audits"
  },
  {
   "name": "social",
   "description": "Social posts for Instagram, Facebook, LinkedIn and X"
  },
  {
   "name": "local-seo",
   "description": "Google Business Profile locations, posts and reviews"
  }
 ],
 "paths": {
  "/blog/api/v1/blogs": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Blogs",
    "description": "Get all blogs for a project.\nUsed by dashboard to populate content calendar.",
    "operationId": "get_blogs_api_v1_blogs_get",
    "security": [
     {
      "oauth2": [
       "blog:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "description": "Project ID to fetch blogs for",
       "title": "Project Id"
      },
      "description": "Project ID to fetch blogs for"
     },
     {
      "name": "status_filter",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Filter by status. Accepts one status or a comma-separated list ('generated_pending_review,pending_review').",
       "title": "Status Filter"
      },
      "description": "Filter by status. Accepts one status or a comma-separated list ('generated_pending_review,pending_review')."
     },
     {
      "name": "month",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer",
         "maximum": 12,
         "minimum": 1
        },
        {
         "type": "null"
        }
       ],
       "description": "Filter by month",
       "title": "Month"
      },
      "description": "Filter by month"
     },
     {
      "name": "year",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer",
         "maximum": 2100,
         "minimum": 2020
        },
        {
         "type": "null"
        }
       ],
       "description": "Filter by year",
       "title": "Year"
      },
      "description": "Filter by year"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "default": 100,
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "include_indexing",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "description": "Attach indexing state to each row. Costs up to 4 extra round trips, so callers that do not render it (the Content Hub queue) pass false.",
       "default": true,
       "title": "Include Indexing"
      },
      "description": "Attach indexing state to each row. Costs up to 4 extra round trips, so callers that do not render it (the Content Hub queue) pass false."
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BlogListResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/agent-context": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Agent Context",
    "description": "Return the project this principal is scoped to, and what it may do there.",
    "operationId": "get_agent_context_api_v1_blogs_agent_context_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AgentContextResponse"
        }
       }
      }
     }
    },
    "security": [
     {
      "oauth2": []
     },
     {
      "agentKey": []
     }
    ]
   }
  },
  "/blog/api/v1/blogs/generate-custom": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Generate Custom Blog",
    "description": "Draft a blog from a user-provided abstract and start generating it.",
    "operationId": "generate_custom_blog_api_v1_blogs_generate_custom_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GenerateCustomRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GenerateCustomResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ]
   }
  },
  "/blog/api/v1/blogs/generate-more": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Generate More Blogs",
    "description": "Customer requests N more bonus blogs. Validates headroom, inserts\nplaceholders with status='awaiting_user_date', runs ONE batched Claude\ncall to fill titles+keywords, and returns the dates list so the\ndashboard can show what was created.",
    "operationId": "generate_more_blogs_api_v1_blogs_generate_more_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GenerateMoreRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GenerateMoreResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ]
   }
  },
  "/blog/api/v1/blogs/{blog_id}": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Blog Detail",
    "description": "Get full blog details including content.\nUsed by blog detail/editor page.",
    "operationId": "get_blog_detail_api_v1_blogs__blog_id__get",
    "security": [
     {
      "oauth2": [
       "blog:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BlogDetailResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "blog"
    ],
    "summary": "Update Blog",
    "description": "Update blog content and metadata.\nUsed by the blog editor to save changes.",
    "operationId": "update_blog_api_v1_blogs__blog_id__put",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     },
     {
      "name": "X-Fairview-Principal",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Fairview-Principal"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BlogUpdateRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BlogDetailResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/article-draft": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Article Draft",
    "operationId": "get_article_draft_api_v1_blogs__blog_id__article_draft_get",
    "security": [
     {
      "oauth2": [
       "blog:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ArticleDraftEnvelope"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "blog"
    ],
    "summary": "Update Article Draft",
    "operationId": "update_article_draft_api_v1_blogs__blog_id__article_draft_patch",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/UpdateArticleDraftRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ArticleDraftEnvelope"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/article-draft/generate": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Generate Article Draft",
    "operationId": "generate_article_draft_api_v1_blogs__blog_id__article_draft_generate_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GenerateArticleDraftRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ArticleDraftEnvelope"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/calculate-score": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Calculate Blog Score",
    "description": "Re-measure one blog with the FULL agreed scorer: mechanics AND the judge.",
    "operationId": "calculate_blog_score_api_v1_blogs__blog_id__calculate_score_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalculateScoreResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/cancel-generation": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Cancel Blog Generation",
    "description": "Cancel an in-progress blog generation.\nSets status back to 'to_be_generated' so it can be regenerated later.",
    "operationId": "cancel_blog_generation_api_v1_blogs__blog_id__cancel_generation_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BlogUpdateResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/compliance-check": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Compliance Check",
    "description": "Refresh advisory findings without changing content, status, or publishing rights.",
    "operationId": "compliance_check_api_v1_blogs__blog_id__compliance_check_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ComplianceCheckResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/export": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Export Blog",
    "description": "Download a blog as Markdown (default), HTML, or PDF.",
    "operationId": "export_blog_api_v1_blogs__blog_id__export_get",
    "security": [
     {
      "oauth2": [
       "blog:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     },
     {
      "name": "format",
      "in": "query",
      "required": false,
      "schema": {
       "enum": [
        "markdown",
        "html",
        "pdf"
       ],
       "type": "string",
       "default": "markdown",
       "title": "Format"
      }
     },
     {
      "name": "front_matter",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": true,
       "title": "Front Matter"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/fix-compliance": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Fix Compliance",
    "description": "Repair advisory findings only when the user explicitly requests it.",
    "operationId": "fix_compliance_api_v1_blogs__blog_id__fix_compliance_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FixComplianceResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/fix-score": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Fix Blog Score",
    "description": "Raise one or more low SEO-mechanics categories with AI.",
    "operationId": "fix_blog_score_api_v1_blogs__blog_id__fix_score_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/FixScoreRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FixScoreResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/generate": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Trigger Blog Generation",
    "description": "Trigger blog content generation.\nQueues the blog on the priority worker and returns immediately.\nPoll /generation-status for progress.",
    "operationId": "trigger_blog_generation_api_v1_blogs__blog_id__generate_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GenerationRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GenerationTriggerResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/generation-status": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Generation Status",
    "description": "Get the current generation status for a blog.\nUsed for polling during generation.",
    "operationId": "get_generation_status_api_v1_blogs__blog_id__generation_status_get",
    "security": [
     {
      "oauth2": [
       "blog:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GenerationStatusResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/image-versions": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "List Blog Image Versions",
    "description": "Every picture this post has had, and the slots it can go into.",
    "operationId": "list_blog_image_versions_api_v1_blogs__blog_id__image_versions_get",
    "security": [
     {
      "oauth2": [
       "blog:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/image-versions/use": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Use Blog Image Version",
    "description": "Put an earlier picture into one slot, with no new image made.",
    "operationId": "use_blog_image_version_api_v1_blogs__blog_id__image_versions_use_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/UseImageVersionRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/publish": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Publish Blog",
    "description": "Publish a blog to WordPress, Webflow, Ghost, or Webhook integration.\nBlog must be in 'approved', 'scheduled', 'generated_pending_review',\n'modified_pending_review', or 'unpublished' (republish) status.",
    "operationId": "publish_blog_api_v1_blogs__blog_id__publish_post",
    "security": [
     {
      "oauth2": [
       "blog:publish"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     },
     {
      "name": "x-fairview-principal",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Fairview-Principal"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BlogPublishRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BlogPublishResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/regenerate-image": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Regenerate Image",
    "description": "Regenerate an image in blog content with AI.\nApplies style adjustments based on slider value (Modern/Abstract/Realistic).",
    "operationId": "regenerate_image_api_v1_blogs__blog_id__regenerate_image_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RegenerateImageRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RegenerateImageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/regenerate-plan": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Regenerate Blog Plan",
    "description": "Regenerate the blog title and description for the blog's existing keyword.",
    "operationId": "regenerate_blog_plan_api_v1_blogs__blog_id__regenerate_plan_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RegeneratePlanResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/regenerate-section": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Regenerate Section",
    "description": "Regenerate a section of blog content with AI.\nApplies tone and length adjustments based on slider values.",
    "operationId": "regenerate_section_api_v1_blogs__blog_id__regenerate_section_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RegenerateSectionRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RegenerateSectionResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/retry-failed-images": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Retry Failed Images",
    "description": "Re-run image generation for ONLY the placeholders that failed last time.",
    "operationId": "retry_failed_images_api_v1_blogs__blog_id__retry_failed_images_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RetryFailedImagesResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/revise": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Revise Blog",
    "description": "Rewrite the whole article with the owner's instruction, facts and length.",
    "operationId": "revise_blog_api_v1_blogs__blog_id__revise_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ReviseRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReviseResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/scheduled-date": {
   "put": {
    "tags": [
     "blog"
    ],
    "summary": "Set Scheduled Date",
    "description": "Customer commits a publish date for an awaiting bonus blog.",
    "operationId": "set_scheduled_date_api_v1_blogs__blog_id__scheduled_date_put",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SetScheduledDateRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SetScheduledDateResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/blogs/{blog_id}/upload-image": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Upload Image",
    "description": "Upload a real image into a blog as native media (instead of an AI image).",
    "operationId": "upload_image_api_v1_blogs__blog_id__upload_image_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Blog Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/onboarding/content-plan-info/{project_id}": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Content Plan Info",
    "description": "Get content plan status and expiry info for a project.",
    "operationId": "get_content_plan_info_api_v1_onboarding_content_plan_info__project_id__get",
    "security": [
     {
      "oauth2": [
       "blog:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ContentPlanInfoResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/analytics/blog-performance": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Blog Performance",
    "description": "GA landing-page performance joined to GSC page metrics by published blog.",
    "operationId": "get_blog_performance_api_v1_projects__project_id__analytics_blog_performance_get",
    "security": [
     {
      "oauth2": [
       "seo:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     },
     {
      "name": "range",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "pattern": "^(28d|90d)$",
       "default": "28d",
       "title": "Range"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/analytics/ga4": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Ga4",
    "operationId": "get_ga4_api_v1_projects__project_id__analytics_ga4_get",
    "security": [
     {
      "oauth2": [
       "seo:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     },
     {
      "name": "days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 180,
       "minimum": 1,
       "default": 28,
       "title": "Days"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/analytics/insights": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Insights",
    "operationId": "get_insights_api_v1_projects__project_id__analytics_insights_get",
    "security": [
     {
      "oauth2": [
       "seo:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/analytics/report": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Report",
    "description": "Monthly report: content shipped + GSC + GA4 + indexing + insights + leads.",
    "operationId": "get_report_api_v1_projects__project_id__analytics_report_get",
    "security": [
     {
      "oauth2": [
       "seo:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     },
     {
      "name": "month",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Month"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/analytics/search-console": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Search Console",
    "operationId": "get_search_console_api_v1_projects__project_id__analytics_search_console_get",
    "security": [
     {
      "oauth2": [
       "seo:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     },
     {
      "name": "days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 180,
       "minimum": 1,
       "default": 28,
       "title": "Days"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/analytics/status": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Analytics Status",
    "operationId": "analytics_status_api_v1_projects__project_id__analytics_status_get",
    "security": [
     {
      "oauth2": [
       "seo:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/blogs/{blog_id}/questions": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Blog Questions",
    "description": "Up to 3 questions only the business can answer for this post: what the\nwriter left out, then what the judge found missing. Answers go to\nPOST /{project_id}/business-facts with this blog_id; a blank answer skips.",
    "operationId": "get_blog_questions_api_v1_projects__project_id__blogs__blog_id__questions_get",
    "security": [
     {
      "oauth2": [
       "blog:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     },
     {
      "name": "blog_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Blog Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BlogQuestionsResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/business-facts": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Business Facts",
    "operationId": "get_business_facts_api_v1_projects__project_id__business_facts_get",
    "security": [
     {
      "oauth2": [
       "blog:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     },
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "enum": [
        "confirmed",
        "needs_confirmation",
        "all"
       ],
       "type": "string",
       "default": "confirmed",
       "title": "Status"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FactsResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Save Business Facts",
    "description": "Save the answers that were filled in; blank ones are skipped. Returns\nevery fact now on file so the client can show what we remember.",
    "operationId": "save_business_facts_api_v1_projects__project_id__business_facts_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SaveFactsRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FactsResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/business-facts/{fact_id}": {
   "delete": {
    "tags": [
     "blog"
    ],
    "summary": "Delete Business Fact",
    "operationId": "delete_business_fact_api_v1_projects__project_id__business_facts__fact_id__delete",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     },
     {
      "name": "fact_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Fact Id"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/business-facts/{fact_id}/confirm": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Confirm Business Fact",
    "operationId": "confirm_business_fact_api_v1_projects__project_id__business_facts__fact_id__confirm_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     },
     {
      "name": "fact_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Fact Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ConfirmFactRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BusinessFact"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/business-facts/{fact_id}/reject": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Reject Business Fact",
    "operationId": "reject_business_fact_api_v1_projects__project_id__business_facts__fact_id__reject_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     },
     {
      "name": "fact_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Fact Id"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/keywords": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "List Keywords",
    "description": "List all keywords for the project, with derived blog state.",
    "operationId": "list_keywords_api_v1_projects__project_id__keywords_get",
    "security": [
     {
      "oauth2": [
       "seo:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/KeywordRow"
         },
         "title": "Response List Keywords Api V1 Projects  Project Id  Keywords Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Bulk Add Keywords",
    "description": "Add one or more keywords. Auto-schedules up to MAX_ACTIVE; rest go to pool.",
    "operationId": "bulk_add_keywords_api_v1_projects__project_id__keywords_post",
    "security": [
     {
      "oauth2": [
       "keywords:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BulkAddRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BulkAddResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/keywords/generate": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Generate Keywords",
    "description": "Manually generate a fresh batch of SEO keywords into the pool via Claude.",
    "operationId": "generate_keywords_api_v1_projects__project_id__keywords_generate_post",
    "security": [
     {
      "oauth2": [
       "keywords:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GenerateKeywordsResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/keywords/suggest": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Suggest Keywords",
    "description": "Check keywords the customer typed and suggest a phrasing people search.",
    "operationId": "suggest_keywords_api_v1_projects__project_id__keywords_suggest_post",
    "security": [
     {
      "oauth2": [
       "keywords:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/KeywordSuggestRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/KeywordSuggestRow"
         },
         "title": "Response Suggest Keywords Api V1 Projects  Project Id  Keywords Suggest Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/must-include": {
   "put": {
    "tags": [
     "blog"
    ],
    "summary": "Save Must Include",
    "description": "Replace a post's must-include list (and optionally its instructions).",
    "operationId": "save_must_include_api_v1_projects__project_id__must_include_put",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MustIncludeRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MustIncludeResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/owner-questions": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Queue Owner Question",
    "operationId": "queue_owner_question_api_v1_projects__project_id__owner_questions_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/OwnerQuestionRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/seo-audit": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Dashboard",
    "operationId": "get_dashboard_api_v1_projects__project_id__seo_audit_get",
    "security": [
     {
      "oauth2": [
       "seo:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/seo-audit/findings": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "List Findings",
    "operationId": "list_findings_api_v1_projects__project_id__seo_audit_findings_get",
    "security": [
     {
      "oauth2": [
       "seo:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     },
     {
      "name": "stage",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Stage"
      }
     },
     {
      "name": "severity",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Severity"
      }
     },
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Kind"
      }
     },
     {
      "name": "search",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Search"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "default": 1,
       "title": "Page"
      }
     },
     {
      "name": "pageSize",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 50,
       "title": "Pagesize"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/seo-audit/findings/{finding_id}": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Finding",
    "operationId": "get_finding_api_v1_projects__project_id__seo_audit_findings__finding_id__get",
    "security": [
     {
      "oauth2": [
       "seo:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     },
     {
      "name": "finding_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Finding Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/seo-audit/pages": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "List Pages",
    "operationId": "list_pages_api_v1_projects__project_id__seo_audit_pages_get",
    "security": [
     {
      "oauth2": [
       "seo:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     },
     {
      "name": "disposition",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Disposition"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 200,
       "title": "Limit"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/seo-audit/readiness": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Readiness",
    "description": "Current site-level evidence for pre-generation and pre-publish UI.",
    "operationId": "get_readiness_api_v1_projects__project_id__seo_audit_readiness_get",
    "security": [
     {
      "oauth2": [
       "seo:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/seo-audit/runs": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Create Run",
    "description": "Start an audit. Editor access required.",
    "operationId": "create_run_api_v1_projects__project_id__seo_audit_runs_post",
    "security": [
     {
      "oauth2": [
       "seo:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RunRequest"
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "List Runs",
    "operationId": "list_runs_api_v1_projects__project_id__seo_audit_runs_get",
    "security": [
     {
      "oauth2": [
       "seo:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "default": 20,
       "title": "Limit"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/seo-audit/runs/{run_id}": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Run",
    "operationId": "get_run_api_v1_projects__project_id__seo_audit_runs__run_id__get",
    "security": [
     {
      "oauth2": [
       "seo:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     },
     {
      "name": "run_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Run Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/teach": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Teach Summary",
    "description": "What the writer knows and how many questions are waiting, by category.",
    "operationId": "get_teach_summary_api_v1_projects__project_id__teach_get",
    "security": [
     {
      "oauth2": [
       "blog:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TeachSummary"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/teach/answers": {
   "post": {
    "tags": [
     "blog"
    ],
    "summary": "Post Teach Answers",
    "description": "Save interview answers as business facts; may return one follow-up.",
    "operationId": "post_teach_answers_api_v1_projects__project_id__teach_answers_post",
    "security": [
     {
      "oauth2": [
       "blog:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TeachAnswersRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TeachAnswersResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/teach/questions": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Teach Questions",
    "description": "The next interview session: up to 5 cards, most-needed first.",
    "operationId": "get_teach_questions_api_v1_projects__project_id__teach_questions_get",
    "security": [
     {
      "oauth2": [
       "blog:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TeachCardsResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/blog/api/v1/projects/{project_id}/writer-learning": {
   "get": {
    "tags": [
     "blog"
    ],
    "summary": "Get Writer Learning",
    "operationId": "get_writer_learning_api_v1_projects__project_id__writer_learning_get",
    "security": [
     {
      "oauth2": [
       "blog:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/connect/gbp/connection": {
   "get": {
    "tags": [
     "local-seo"
    ],
    "summary": "Get Gbp Connection",
    "description": "Get current GBP connection details for a location.",
    "operationId": "get_gbp_connection_api_v1_connect_gbp_connection_get",
    "security": [
     {
      "oauth2": [
       "gbp:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "description": "Location ID",
       "title": "Location Id"
      },
      "description": "Location ID"
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConnectionStatusResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations": {
   "get": {
    "tags": [
     "local-seo"
    ],
    "summary": "List Locations",
    "description": "List locations for a project (or, in legacy mode, the user's account).",
    "operationId": "list_locations_api_v1_locations_get",
    "security": [
     {
      "oauth2": [
       "gbp:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Project Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LocationListResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}": {
   "get": {
    "tags": [
     "local-seo"
    ],
    "summary": "Get Location",
    "description": "Get a specific location by ID.",
    "operationId": "get_location_api_v1_locations__location_id__get",
    "security": [
     {
      "oauth2": [
       "gbp:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LocationResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/google-profile": {
   "get": {
    "tags": [
     "local-seo"
    ],
    "summary": "Get Google Profile",
    "operationId": "get_google_profile_api_v1_locations__location_id__google_profile_get",
    "security": [
     {
      "oauth2": [
       "gbp:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/google-profile/action-links": {
   "post": {
    "tags": [
     "local-seo"
    ],
    "summary": "Create Action Link",
    "operationId": "create_action_link_api_v1_locations__location_id__google_profile_action_links_post",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ActionLinkCreate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "local-seo"
    ],
    "summary": "Update Action Link",
    "operationId": "update_action_link_api_v1_locations__location_id__google_profile_action_links_patch",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ActionLinkUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "local-seo"
    ],
    "summary": "Delete Action Link",
    "operationId": "delete_action_link_api_v1_locations__location_id__google_profile_action_links_delete",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/NamedItem"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/google-profile/attributes": {
   "patch": {
    "tags": [
     "local-seo"
    ],
    "summary": "Update Attributes",
    "description": "Set the named attributes only. `attribute_mask` defaults to the names\nsent, so every other attribute stays as it is.",
    "operationId": "update_attributes_api_v1_locations__location_id__google_profile_attributes_patch",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AttributesUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/google-profile/details": {
   "patch": {
    "tags": [
     "local-seo"
    ],
    "summary": "Update Details",
    "operationId": "update_details_api_v1_locations__location_id__google_profile_details_patch",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DetailsUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/google-profile/hours": {
   "patch": {
    "tags": [
     "local-seo"
    ],
    "summary": "Update Hours",
    "operationId": "update_hours_api_v1_locations__location_id__google_profile_hours_patch",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/HoursUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/google-profile/photos": {
   "post": {
    "tags": [
     "local-seo"
    ],
    "summary": "Add Photo",
    "description": "Upload a photo to the Google gallery. The file is validated like a post\nimage and stored in our public bucket, because Google fetches `media_url`\nitself and needs a stable public URL.",
    "operationId": "add_photo_api_v1_locations__location_id__google_profile_photos_post",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Body_add_photo_api_v1_locations__location_id__google_profile_photos_post"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "local-seo"
    ],
    "summary": "Delete Photo",
    "operationId": "delete_photo_api_v1_locations__location_id__google_profile_photos_delete",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/NamedItem"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/google-profile/services": {
   "patch": {
    "tags": [
     "local-seo"
    ],
    "summary": "Update Services",
    "operationId": "update_services_api_v1_locations__location_id__google_profile_services_patch",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ServicesUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts": {
   "get": {
    "tags": [
     "local-seo"
    ],
    "summary": "List Posts",
    "description": "List posts for a location with optional filters.",
    "operationId": "list_posts_api_v1_locations__location_id__posts_get",
    "security": [
     {
      "oauth2": [
       "gbp:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "year",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Year"
      }
     },
     {
      "name": "month",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer",
         "maximum": 12,
         "minimum": 1
        },
        {
         "type": "null"
        }
       ],
       "title": "Month"
      }
     },
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 100,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PostListResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts/content-plan-info": {
   "get": {
    "tags": [
     "local-seo"
    ],
    "summary": "Get Content Plan Info",
    "description": "Plan expiry + next-plan availability for a location (drives the banner).",
    "operationId": "get_content_plan_info_api_v1_locations__location_id__posts_content_plan_info_get",
    "security": [
     {
      "oauth2": [
       "gbp:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts/generate-single": {
   "post": {
    "tags": [
     "local-seo"
    ],
    "summary": "Generate Single Post",
    "description": "Generate a single post.",
    "operationId": "generate_single_post_api_v1_locations__location_id__posts_generate_single_post",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GenerateSinglePostRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts/{post_id}": {
   "get": {
    "tags": [
     "local-seo"
    ],
    "summary": "Get Post",
    "description": "Get a specific post by ID.",
    "operationId": "get_post_api_v1_locations__location_id__posts__post_id__get",
    "security": [
     {
      "oauth2": [
       "gbp:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PostDetailResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "local-seo"
    ],
    "summary": "Update Post",
    "description": "Update a post.",
    "operationId": "update_post_api_v1_locations__location_id__posts__post_id__patch",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/local_seo_UpdatePostRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PostResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts/{post_id}/image": {
   "delete": {
    "tags": [
     "local-seo"
    ],
    "summary": "Remove Post Image",
    "description": "Detach media from a draft GBP post; text publishing remains available.",
    "operationId": "remove_post_image_api_v1_locations__location_id__posts__post_id__image_delete",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     },
     {
      "name": "allow_content_removal",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Allow Content Removal"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PostResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts/{post_id}/image/edit": {
   "post": {
    "tags": [
     "local-seo"
    ],
    "summary": "Edit Post Image",
    "operationId": "edit_post_image_api_v1_locations__location_id__posts__post_id__image_edit_post",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ImageEditRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts/{post_id}/image/generate": {
   "post": {
    "tags": [
     "local-seo"
    ],
    "summary": "Generate Image For Post",
    "description": "Generate and attach one photo while keeping text publishing independent.",
    "operationId": "generate_image_for_post_api_v1_locations__location_id__posts__post_id__image_generate_post",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/GeneratePostImageRequest"
         },
         {
          "type": "null"
         }
        ],
        "title": "Request"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PostResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts/{post_id}/image/library": {
   "post": {
    "tags": [
     "local-seo"
    ],
    "summary": "Use Library Image For Post",
    "description": "Make one of the business's own Library photos this post's image.",
    "operationId": "use_library_image_for_post_api_v1_locations__location_id__posts__post_id__image_library_post",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LibraryImageRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PostResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts/{post_id}/image/references": {
   "post": {
    "tags": [
     "local-seo"
    ],
    "summary": "Upload Edit Reference",
    "operationId": "upload_edit_reference_api_v1_locations__location_id__posts__post_id__image_references_post",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Body_upload_edit_reference_api_v1_locations__location_id__posts__post_id__image_references_post"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts/{post_id}/image/revisions": {
   "get": {
    "tags": [
     "local-seo"
    ],
    "summary": "Image Edit Versions",
    "operationId": "image_edit_versions_api_v1_locations__location_id__posts__post_id__image_revisions_get",
    "security": [
     {
      "oauth2": [
       "gbp:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts/{post_id}/image/revisions/{revision_id}/use": {
   "post": {
    "tags": [
     "local-seo"
    ],
    "summary": "Use Post Image Version",
    "operationId": "use_post_image_version_api_v1_locations__location_id__posts__post_id__image_revisions__revision_id__use_post",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     },
     {
      "name": "revision_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Revision Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ImageVersionUseRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts/{post_id}/image/upload": {
   "post": {
    "tags": [
     "local-seo"
    ],
    "summary": "Upload Post Image",
    "description": "Attach one validated JPEG/PNG to a GBP post.",
    "operationId": "upload_post_image_api_v1_locations__location_id__posts__post_id__image_upload_post",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Body_upload_post_image_api_v1_locations__location_id__posts__post_id__image_upload_post"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PostResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts/{post_id}/publish": {
   "post": {
    "tags": [
     "local-seo"
    ],
    "summary": "Publish Post To Gbp",
    "description": "Publish a post directly to GBP via Postproxy.",
    "operationId": "publish_post_to_gbp_api_v1_locations__location_id__posts__post_id__publish_post",
    "security": [
     {
      "oauth2": [
       "gbp:publish"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/CompliancePublishRequest"
         },
         {
          "type": "null"
         }
        ],
        "title": "Request"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts/{post_id}/regenerate": {
   "post": {
    "tags": [
     "local-seo"
    ],
    "summary": "Regenerate Post",
    "description": "Regenerate a single post.",
    "operationId": "regenerate_post_api_v1_locations__location_id__posts__post_id__regenerate_post",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/RegeneratePostRequest"
         },
         {
          "type": "null"
         }
        ],
        "title": "Body"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts/{post_id}/retry-publish": {
   "post": {
    "tags": [
     "local-seo"
    ],
    "summary": "Retry Publish Post",
    "description": "Retry publishing a failed post to GBP.",
    "operationId": "retry_publish_post_api_v1_locations__location_id__posts__post_id__retry_publish_post",
    "security": [
     {
      "oauth2": [
       "gbp:publish"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/CompliancePublishRequest"
         },
         {
          "type": "null"
         }
        ],
        "title": "Request"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/posts/{post_id}/sync-status": {
   "post": {
    "tags": [
     "local-seo"
    ],
    "summary": "Sync Post Status",
    "description": "Refresh a post's status from the publishing vendor (Postproxy).",
    "operationId": "sync_post_status_api_v1_locations__location_id__posts__post_id__sync_status_post",
    "security": [
     {
      "oauth2": [
       "gbp:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PostResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/saved-values": {
   "get": {
    "tags": [
     "local-seo"
    ],
    "summary": "List Saved Values",
    "description": "Open backups, newest first: the owner's old value next to Google's.",
    "operationId": "list_saved_values_api_v1_locations__location_id__saved_values_get",
    "security": [
     {
      "oauth2": [
       "gbp:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/local-seo/api/v1/locations/{location_id}/saved-values/{backup_id}/close": {
   "post": {
    "tags": [
     "local-seo"
    ],
    "summary": "Close Saved Value",
    "description": "Take one field off the list: every open backup of that field closes,\nso an older copy of the same field does not reappear.",
    "operationId": "close_saved_value_api_v1_locations__location_id__saved_values__backup_id__close_post",
    "security": [
     {
      "oauth2": [
       "gbp:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "location_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Location Id"
      }
     },
     {
      "name": "backup_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Backup Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SavedValueClose"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/social/api/v1/posts": {
   "get": {
    "tags": [
     "social"
    ],
    "summary": "List Posts",
    "description": "List social posts for a project.",
    "operationId": "list_posts_api_v1_posts_get",
    "security": [
     {
      "oauth2": [
       "social:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "project_id",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     },
     {
      "name": "content_plan_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Content Plan Id"
      }
     },
     {
      "name": "post_status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Post Status"
      }
     },
     {
      "name": "repurposed_only",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Repurposed Only"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 100,
       "title": "Limit"
      }
     },
     {
      "name": "summary",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": true,
       "title": "Summary"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/social/api/v1/posts/add-topics": {
   "post": {
    "tags": [
     "social"
    ],
    "summary": "Add Topics",
    "description": "Create plan rows for user-named topics, one per free day from start_date.",
    "operationId": "add_topics_api_v1_posts_add_topics_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AddTopicsRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AddTopicsResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "oauth2": [
       "social:write"
      ]
     },
     {
      "agentKey": []
     }
    ]
   }
  },
  "/social/api/v1/posts/{post_id}": {
   "get": {
    "tags": [
     "social"
    ],
    "summary": "Get Post",
    "description": "Get single post detail.",
    "operationId": "get_post_api_v1_posts__post_id__get",
    "security": [
     {
      "oauth2": [
       "social:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "social"
    ],
    "summary": "Update Post",
    "description": "Update post fields.",
    "operationId": "update_post_api_v1_posts__post_id__patch",
    "security": [
     {
      "oauth2": [
       "social:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/UpdatePostRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/social/api/v1/posts/{post_id}/creative-revisions": {
   "get": {
    "tags": [
     "social"
    ],
    "summary": "Get Creative Revisions",
    "operationId": "get_creative_revisions_api_v1_posts__post_id__creative_revisions_get",
    "security": [
     {
      "oauth2": [
       "social:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/social/api/v1/posts/{post_id}/creative-revisions/{revision_id}/use": {
   "post": {
    "tags": [
     "social"
    ],
    "summary": "Use Creative Revision",
    "operationId": "use_creative_revision_api_v1_posts__post_id__creative_revisions__revision_id__use_post",
    "security": [
     {
      "oauth2": [
       "social:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     },
     {
      "name": "revision_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Revision Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CreativeRevisionUseRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/social/api/v1/posts/{post_id}/generate": {
   "post": {
    "tags": [
     "social"
    ],
    "summary": "Generate Post",
    "description": "Queue full post generation (caption + images) on the priority worker.",
    "operationId": "generate_post_api_v1_posts__post_id__generate_post",
    "security": [
     {
      "oauth2": [
       "social:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GeneratePostRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/social/api/v1/posts/{post_id}/generation-status": {
   "get": {
    "tags": [
     "social"
    ],
    "summary": "Get Generation Status",
    "description": "Poll generation progress.",
    "operationId": "get_generation_status_api_v1_posts__post_id__generation_status_get",
    "security": [
     {
      "oauth2": [
       "social:read"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/social/api/v1/posts/{post_id}/publish": {
   "post": {
    "tags": [
     "social"
    ],
    "summary": "Publish Post",
    "description": "Publish or schedule a post via Postproxy.",
    "operationId": "publish_post_api_v1_posts__post_id__publish_post",
    "security": [
     {
      "oauth2": [
       "social:publish"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PublishPostRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/social/api/v1/posts/{post_id}/regenerate-caption": {
   "post": {
    "tags": [
     "social"
    ],
    "summary": "Regenerate Caption",
    "description": "Regenerate a platform caption — no images and no status change.",
    "operationId": "regenerate_caption_api_v1_posts__post_id__regenerate_caption_post",
    "security": [
     {
      "oauth2": [
       "social:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RegenerateCaptionRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/social/api/v1/posts/{post_id}/regenerate-image": {
   "post": {
    "tags": [
     "social"
    ],
    "summary": "Regenerate Image",
    "description": "Re-run only the image stage on an already-generated post.",
    "operationId": "regenerate_image_api_v1_posts__post_id__regenerate_image_post",
    "security": [
     {
      "oauth2": [
       "social:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/social_RegenerateImageRequest"
         },
         {
          "type": "null"
         }
        ],
        "title": "Request"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/social/api/v1/posts/{post_id}/studio-edit": {
   "post": {
    "tags": [
     "social"
    ],
    "summary": "Studio Edit",
    "description": "Prompt-edit a code-rendered carousel (doc patch + free re-render).",
    "operationId": "studio_edit_api_v1_posts__post_id__studio_edit_post",
    "security": [
     {
      "oauth2": [
       "social:write"
      ]
     },
     {
      "agentKey": []
     }
    ],
    "parameters": [
     {
      "name": "post_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Post Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/StudioEditRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "securitySchemes": {
   "oauth2": {
    "type": "oauth2",
    "description": "OAuth 2.1 authorization code with PKCE (S256). Clients register dynamically.",
    "flows": {
     "authorizationCode": {
      "authorizationUrl": "https://api.thestacc.com/blog/api/v1/oauth/authorize",
      "tokenUrl": "https://api.thestacc.com/blog/api/v1/oauth/token",
      "scopes": {
       "blog:publish": "Publish blogs a person has approved",
       "blog:read": "Read blogs, the content plan and generation progress",
       "blog:write": "Generate, edit and schedule blogs and their images",
       "gbp:publish": "Publish approved Google Business Profile posts and replies",
       "gbp:read": "Read Google Business Profile locations, posts and reviews",
       "gbp:write": "Create and edit Google Business Profile posts and review replies",
       "keywords:write": "Add and research keywords",
       "seo:read": "Read Search Console, GA4, site audit and keyword data",
       "seo:write": "Start site audits",
       "social:publish": "Publish social posts a person has approved",
       "social:read": "Read social posts and their image versions",
       "social:write": "Create and edit social posts, captions and images"
      }
     }
    }
   },
   "agentKey": {
    "type": "http",
    "scheme": "bearer",
    "description": "A project agent key (sk_agent_...). It carries the scopes chosen when it was created."
   }
  },
  "schemas": {
   "ActionLinkCreate": {
    "properties": {
     "uri": {
      "type": "string",
      "maxLength": 2048,
      "title": "Uri"
     },
     "type": {
      "type": "string",
      "title": "Type"
     }
    },
    "type": "object",
    "required": [
     "uri",
     "type"
    ],
    "title": "ActionLinkCreate"
   },
   "ActionLinkUpdate": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 400,
      "minLength": 3,
      "title": "Name"
     },
     "uri": {
      "type": "string",
      "maxLength": 2048,
      "title": "Uri"
     }
    },
    "type": "object",
    "required": [
     "name",
     "uri"
    ],
    "title": "ActionLinkUpdate"
   },
   "AddTopicsRequest": {
    "properties": {
     "project_id": {
      "type": "string",
      "title": "Project Id"
     },
     "topics": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 10,
      "minItems": 1,
      "title": "Topics"
     },
     "start_date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Start Date",
      "description": "YYYY-MM-DD, default tomorrow"
     },
     "platforms": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Platforms"
     }
    },
    "type": "object",
    "required": [
     "project_id",
     "topics"
    ],
    "title": "AddTopicsRequest"
   },
   "AddTopicsResponse": {
    "properties": {
     "post_ids": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Post Ids"
     },
     "scheduled_dates": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Scheduled Dates"
     },
     "content_plan_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content Plan Id"
     },
     "platforms": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Platforms"
     }
    },
    "type": "object",
    "required": [
     "post_ids",
     "scheduled_dates",
     "content_plan_id",
     "platforms"
    ],
    "title": "AddTopicsResponse"
   },
   "AgentContextResponse": {
    "properties": {
     "project_id": {
      "type": "string",
      "title": "Project Id"
     },
     "account_id": {
      "type": "string",
      "title": "Account Id"
     },
     "project_name": {
      "type": "string",
      "title": "Project Name"
     },
     "scopes": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Scopes"
     },
     "modules": {
      "additionalProperties": {
       "type": "boolean"
      },
      "type": "object",
      "title": "Modules"
     }
    },
    "type": "object",
    "required": [
     "project_id",
     "account_id",
     "project_name"
    ],
    "title": "AgentContextResponse"
   },
   "ArticleDraft": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "blog_id": {
      "type": "string",
      "title": "Blog Id"
     },
     "project_id": {
      "type": "string",
      "title": "Project Id"
     },
     "headline": {
      "type": "string",
      "title": "Headline"
     },
     "body_markdown": {
      "type": "string",
      "title": "Body Markdown"
     },
     "source_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Source Url"
     },
     "cover_image_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Cover Image Url"
     },
     "status": {
      "type": "string",
      "enum": [
       "generating",
       "ready",
       "failed"
      ],
      "title": "Status"
     },
     "generation_started_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Generation Started At"
     },
     "generation_error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Generation Error"
     },
     "generated_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Generated At"
     },
     "user_edited": {
      "type": "boolean",
      "title": "User Edited",
      "default": false
     },
     "created_at": {
      "type": "string",
      "title": "Created At"
     },
     "updated_at": {
      "type": "string",
      "title": "Updated At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "blog_id",
     "project_id",
     "headline",
     "body_markdown",
     "status",
     "created_at",
     "updated_at"
    ],
    "title": "ArticleDraft"
   },
   "ArticleDraftEnvelope": {
    "properties": {
     "draft": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/ArticleDraft"
       },
       {
        "type": "null"
       }
      ]
     },
     "source_changed": {
      "type": "boolean",
      "title": "Source Changed",
      "default": false
     }
    },
    "type": "object",
    "title": "ArticleDraftEnvelope"
   },
   "AttributesUpdate": {
    "properties": {
     "attributes": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "maxItems": 50,
      "minItems": 1,
      "title": "Attributes"
     }
    },
    "type": "object",
    "required": [
     "attributes"
    ],
    "title": "AttributesUpdate"
   },
   "BlogAuthor": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Name"
     },
     "type": {
      "type": "string",
      "enum": [
       "Person",
       "Organization"
      ],
      "title": "Type"
     },
     "id": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200,
        "minLength": 1
       },
       {
        "type": "null"
       }
      ],
      "title": "Id"
     }
    },
    "type": "object",
    "required": [
     "name",
     "type"
    ],
    "title": "BlogAuthor",
    "description": "Explicit byline for custom-site publishing; omitted keeps legacy behavior."
   },
   "BlogDetailResponse": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "project_id": {
      "type": "string",
      "title": "Project Id"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "slug": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Slug"
     },
     "excerpt": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Excerpt"
     },
     "content": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content"
     },
     "meta_title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Meta Title"
     },
     "meta_description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Meta Description"
     },
     "blog_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Blog Type"
     },
     "categories": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Categories",
      "default": []
     },
     "tags": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Tags",
      "default": []
     },
     "featured_image_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Featured Image Url"
     },
     "wp_author_id": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Wp Author Id"
     },
     "wp_author_ids": {
      "anyOf": [
       {
        "items": {
         "type": "integer"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Wp Author Ids"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "approved_by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Approved By"
     },
     "scheduled_date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Scheduled Date"
     },
     "publish_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Publish At"
     },
     "published_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Published At"
     },
     "created_at": {
      "type": "string",
      "title": "Created At"
     },
     "updated_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Updated At"
     },
     "keyword": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/BlogKeywordResponse"
       },
       {
        "type": "null"
       }
      ]
     },
     "ai_generation_config": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ai Generation Config"
     },
     "origin_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Origin Source"
     },
     "created_by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Created By"
     },
     "content_idea_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content Idea Id"
     },
     "external_platform": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "External Platform"
     },
     "external_post_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "External Post Id"
     },
     "published_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Published Url"
     },
     "integration_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Integration Id"
     },
     "last_synced_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Synced At"
     },
     "needs_sync": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Needs Sync"
     },
     "last_sync_result": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Sync Result"
     },
     "publish_last_error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Publish Last Error"
     },
     "publish_attempts": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Publish Attempts"
     },
     "indexing": {
      "anyOf": [
       {
        "additionalProperties": {
         "anyOf": [
          {
           "type": "string"
          },
          {
           "type": "boolean"
          },
          {
           "type": "null"
          }
         ]
        },
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Indexing"
     },
     "unresolved_internal_links": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Unresolved Internal Links",
      "default": []
     },
     "live": {
      "additionalProperties": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "object",
      "title": "Live",
      "default": {}
     },
     "server_now": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Server Now"
     },
     "approval_needs_refresh": {
      "type": "boolean",
      "title": "Approval Needs Refresh",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "id",
     "project_id",
     "title",
     "status",
     "created_at"
    ],
    "title": "BlogDetailResponse",
    "description": "Full blog detail response including content."
   },
   "BlogKeywordResponse": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "keyword": {
      "type": "string",
      "title": "Keyword"
     },
     "status": {
      "type": "string",
      "title": "Status"
     }
    },
    "type": "object",
    "required": [
     "id",
     "keyword",
     "status"
    ],
    "title": "BlogKeywordResponse",
    "description": "Keyword associated with a blog."
   },
   "BlogListItemResponse": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "project_id": {
      "type": "string",
      "title": "Project Id"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "slug": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Slug"
     },
     "excerpt": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Excerpt"
     },
     "blog_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Blog Type"
     },
     "categories": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Categories",
      "default": []
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "approved_by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Approved By"
     },
     "scheduled_date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Scheduled Date"
     },
     "publish_time": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Publish Time"
     },
     "published_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Published At"
     },
     "created_at": {
      "type": "string",
      "title": "Created At"
     },
     "updated_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Updated At"
     },
     "origin_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Origin Source"
     },
     "created_by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Created By"
     },
     "content_idea_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content Idea Id"
     },
     "keyword": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/BlogKeywordResponse"
       },
       {
        "type": "null"
       }
      ]
     },
     "score": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Score"
     },
     "word_count": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Word Count"
     },
     "quota_status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Quota Status"
     },
     "quota_defer_count": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Quota Defer Count"
     },
     "seo": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Seo"
     },
     "indexing": {
      "anyOf": [
       {
        "additionalProperties": {
         "anyOf": [
          {
           "type": "string"
          },
          {
           "type": "boolean"
          },
          {
           "type": "null"
          }
         ]
        },
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Indexing"
     },
     "ai_generation_config": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ai Generation Config"
     },
     "topic_group_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Topic Group Id"
     },
     "topic_group_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Topic Group Name"
     },
     "plan_status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Plan Status"
     },
     "publish_last_error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Publish Last Error"
     },
     "publish_next_retry_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Publish Next Retry At"
     },
     "live": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Live"
     }
    },
    "type": "object",
    "required": [
     "id",
     "project_id",
     "title",
     "status",
     "created_at"
    ],
    "title": "BlogListItemResponse",
    "description": "Blog item in list view — no external platform fields."
   },
   "BlogListResponse": {
    "properties": {
     "blogs": {
      "items": {
       "$ref": "#/components/schemas/BlogListItemResponse"
      },
      "type": "array",
      "title": "Blogs"
     },
     "total": {
      "type": "integer",
      "title": "Total"
     },
     "server_now": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Server Now"
     }
    },
    "type": "object",
    "required": [
     "blogs",
     "total"
    ],
    "title": "BlogListResponse",
    "description": "List of blogs response."
   },
   "BlogPublishRequest": {
    "properties": {
     "integration_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Integration Id"
     }
    },
    "type": "object",
    "title": "BlogPublishRequest",
    "description": "Request to publish blog to integration."
   },
   "BlogPublishResponse": {
    "properties": {
     "success": {
      "type": "boolean",
      "title": "Success"
     },
     "blog_id": {
      "type": "string",
      "title": "Blog Id"
     },
     "message": {
      "type": "string",
      "title": "Message"
     },
     "published_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Published Url"
     },
     "error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Error"
     },
     "error_code": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Error Code"
     },
     "skipped_webflow_fields": {
      "items": {
       "$ref": "#/components/schemas/SkippedWebflowField"
      },
      "type": "array",
      "title": "Skipped Webflow Fields",
      "default": []
     }
    },
    "type": "object",
    "required": [
     "success",
     "blog_id",
     "message"
    ],
    "title": "BlogPublishResponse",
    "description": "Response after blog publish attempt."
   },
   "BlogQuestion": {
    "properties": {
     "question": {
      "type": "string",
      "title": "Question"
     },
     "source": {
      "type": "string",
      "title": "Source",
      "default": ""
     },
     "dimension": {
      "type": "string",
      "title": "Dimension",
      "default": ""
     },
     "options": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Options"
     },
     "value": {
      "type": "string",
      "title": "Value",
      "default": ""
     },
     "example": {
      "type": "string",
      "title": "Example",
      "default": ""
     },
     "key": {
      "type": "string",
      "title": "Key",
      "default": ""
     }
    },
    "type": "object",
    "required": [
     "question"
    ],
    "title": "BlogQuestion"
   },
   "BlogQuestionsResponse": {
    "properties": {
     "questions": {
      "items": {
       "$ref": "#/components/schemas/BlogQuestion"
      },
      "type": "array",
      "title": "Questions"
     }
    },
    "type": "object",
    "required": [
     "questions"
    ],
    "title": "BlogQuestionsResponse"
   },
   "BlogUpdateRequest": {
    "properties": {
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "slug": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Slug"
     },
     "content": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content"
     },
     "excerpt": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Excerpt"
     },
     "meta_title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Meta Title"
     },
     "meta_description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Meta Description"
     },
     "categories": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Categories"
     },
     "tags": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tags"
     },
     "featured_image_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Featured Image Url"
     },
     "header_image_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Header Image Url"
     },
     "allow_image_removal": {
      "type": "boolean",
      "title": "Allow Image Removal",
      "default": false
     },
     "wp_author_id": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Wp Author Id"
     },
     "wp_author_ids": {
      "anyOf": [
       {
        "items": {
         "type": "integer"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Wp Author Ids"
     },
     "author": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/BlogAuthor"
       },
       {
        "type": "null"
       }
      ]
     },
     "scheduled_date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Scheduled Date"
     },
     "publish_time": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Publish Time"
     },
     "publish_at": {
      "anyOf": [
       {},
       {
        "type": "null"
       }
      ],
      "title": "Publish At"
     },
     "blog_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Blog Type"
     },
     "keyword": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Keyword"
     },
     "user_direction": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Direction"
     },
     "plan_brief": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Plan Brief"
     },
     "regenerate_description": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Regenerate Description"
     },
     "expected_updated_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expected Updated At"
     },
     "swapped_image": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/SwappedImage"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "title": "BlogUpdateRequest",
    "description": "Request to update blog content and metadata."
   },
   "BlogUpdateResponse": {
    "properties": {
     "success": {
      "type": "boolean",
      "title": "Success"
     },
     "blog_id": {
      "type": "string",
      "title": "Blog Id"
     },
     "message": {
      "type": "string",
      "title": "Message"
     },
     "publish_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Publish At"
     }
    },
    "type": "object",
    "required": [
     "success",
     "blog_id",
     "message"
    ],
    "title": "BlogUpdateResponse",
    "description": "Response after blog update."
   },
   "Body_add_photo_api_v1_locations__location_id__google_profile_photos_post": {
    "properties": {
     "file": {
      "type": "string",
      "contentMediaType": "application/octet-stream",
      "title": "File"
     },
     "category": {
      "type": "string",
      "title": "Category",
      "default": "ADDITIONAL"
     }
    },
    "type": "object",
    "required": [
     "file"
    ],
    "title": "Body_add_photo_api_v1_locations__location_id__google_profile_photos_post"
   },
   "Body_upload_edit_reference_api_v1_locations__location_id__posts__post_id__image_references_post": {
    "properties": {
     "file": {
      "type": "string",
      "contentMediaType": "application/octet-stream",
      "title": "File"
     }
    },
    "type": "object",
    "required": [
     "file"
    ],
    "title": "Body_upload_edit_reference_api_v1_locations__location_id__posts__post_id__image_references_post"
   },
   "Body_upload_post_image_api_v1_locations__location_id__posts__post_id__image_upload_post": {
    "properties": {
     "file": {
      "type": "string",
      "contentMediaType": "application/octet-stream",
      "title": "File"
     }
    },
    "type": "object",
    "required": [
     "file"
    ],
    "title": "Body_upload_post_image_api_v1_locations__location_id__posts__post_id__image_upload_post"
   },
   "BulkAddRequest": {
    "properties": {
     "keywords": {
      "items": {
       "type": "string",
       "maxLength": 80
      },
      "type": "array",
      "maxItems": 50,
      "minItems": 1,
      "title": "Keywords"
     }
    },
    "type": "object",
    "required": [
     "keywords"
    ],
    "title": "BulkAddRequest",
    "description": "Body of POST /projects/{project_id}/keywords. Works for 1 or N.\n\nCapped at 50 to avoid Claude-call timeouts on the bulk-add path. The\ncustomer's primary case is 30 onboarding keywords; larger pastes are\nsplit into multiple requests by the frontend.\n\nPer-keyword `max_length=80` mirrors the frontend's parseBulkInput\nfilter — defense-in-depth so a direct API caller can't bypass the\nUI cap and store unbounded text in `core.blog_keywords.keyword`."
   },
   "BulkAddResponse": {
    "properties": {
     "added": {
      "items": {
       "$ref": "#/components/schemas/KeywordRow"
      },
      "type": "array",
      "title": "Added"
     },
     "duplicates": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Duplicates"
     },
     "pool_overflow": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Pool Overflow",
      "description": "Keywords stored switched on but not given a date yet: the calendar already holds MAX_ACTIVE dated posts, there is no content plan yet, or their placeholder/plan-refresh failed. They are picked up as dates free up."
     },
     "failed": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Failed",
      "description": "Keywords that couldn't be added at all (upsert returned None). These never make it to `added` OR `pool_overflow` — they're outright dropped. Frontend surfaces a separate 'N failed' note."
     },
     "warning": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Warning",
      "description": "Reason all keywords went to the pool when the user expected scheduling. Values: 'content_plan_missing' (project hasn't generated its initial 30-day plan yet) or 'plan_refresh_failed' (some/all placeholders had their Claude plan-refresh fail and were cleaned up to the pool)."
     }
    },
    "type": "object",
    "required": [
     "added",
     "duplicates"
    ],
    "title": "BulkAddResponse"
   },
   "BusinessFact": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "question": {
      "type": "string",
      "title": "Question"
     },
     "answer": {
      "type": "string",
      "title": "Answer"
     },
     "topic": {
      "type": "string",
      "title": "Topic"
     },
     "source": {
      "type": "string",
      "title": "Source"
     },
     "blog_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Blog Id"
     },
     "created_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Created At"
     },
     "updated_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Updated At"
     },
     "status": {
      "type": "string",
      "title": "Status",
      "default": "confirmed"
     },
     "source_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Source Url"
     },
     "evidence": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Evidence"
     },
     "importance": {
      "type": "string",
      "title": "Importance",
      "default": "normal"
     }
    },
    "type": "object",
    "required": [
     "id",
     "question",
     "answer",
     "topic",
     "source"
    ],
    "title": "BusinessFact"
   },
   "CalculateScoreResponse": {
    "properties": {
     "success": {
      "type": "boolean",
      "title": "Success"
     },
     "blog_id": {
      "type": "string",
      "title": "Blog Id"
     },
     "score": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Score"
     },
     "word_count": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Word Count"
     },
     "message": {
      "type": "string",
      "title": "Message"
     },
     "judged": {
      "type": "boolean",
      "title": "Judged",
      "default": false
     },
     "overall": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Overall"
     },
     "semantic_judge": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Semantic Judge"
     },
     "page_one_pages": {
      "type": "integer",
      "title": "Page One Pages",
      "default": 0
     },
     "reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "success",
     "blog_id",
     "message"
    ],
    "title": "CalculateScoreResponse",
    "description": "Response after calculating SEO score."
   },
   "ComplianceCheckResponse": {
    "properties": {
     "enabled": {
      "type": "boolean",
      "title": "Enabled"
     },
     "result": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Result"
     },
     "overridable": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Overridable"
     },
     "summary": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Summary"
     },
     "check_error": {
      "type": "boolean",
      "title": "Check Error",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "enabled"
    ],
    "title": "ComplianceCheckResponse",
    "description": "Advisory findings for a draft; they do not restrict publication."
   },
   "CompliancePublishRequest": {
    "properties": {
     "compliance_override": {
      "type": "boolean",
      "title": "Compliance Override",
      "default": false
     },
     "compliance_override_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Compliance Override Reason"
     }
    },
    "type": "object",
    "title": "CompliancePublishRequest"
   },
   "ConfirmFactRequest": {
    "properties": {
     "answer": {
      "type": "string",
      "maxLength": 2000,
      "title": "Answer",
      "default": ""
     }
    },
    "type": "object",
    "title": "ConfirmFactRequest"
   },
   "ConnectionStatusResponse": {
    "properties": {
     "connected": {
      "type": "boolean",
      "title": "Connected"
     },
     "accounts": {
      "items": {
       "$ref": "#/components/schemas/GBPAccount"
      },
      "type": "array",
      "title": "Accounts",
      "default": []
     },
     "postproxy_profile_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Postproxy Profile Id"
     },
     "connected_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Connected At"
     },
     "auto_publish_enabled": {
      "type": "boolean",
      "title": "Auto Publish Enabled",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "connected"
    ],
    "title": "ConnectionStatusResponse",
    "description": "GBP connection status."
   },
   "ContentPlanInfoResponse": {
    "properties": {
     "latest_plan": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Latest Plan"
     },
     "next_plan_exists": {
      "type": "boolean",
      "title": "Next Plan Exists",
      "default": false
     },
     "total_plans": {
      "type": "integer",
      "title": "Total Plans",
      "default": 0
     },
     "can_generate_next": {
      "type": "boolean",
      "title": "Can Generate Next",
      "default": false
     }
    },
    "type": "object",
    "title": "ContentPlanInfoResponse",
    "description": "Response with content plan status/expiry info."
   },
   "CreativeRevisionUseRequest": {
    "properties": {
     "expected_updated_at": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1,
      "title": "Expected Updated At"
     }
    },
    "type": "object",
    "required": [
     "expected_updated_at"
    ],
    "title": "CreativeRevisionUseRequest"
   },
   "DetailsUpdate": {
    "properties": {
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 750
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "website": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2048
       },
       {
        "type": "null"
       }
      ],
      "title": "Website"
     },
     "primary_phone": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 24
       },
       {
        "type": "null"
       }
      ],
      "title": "Primary Phone"
     }
    },
    "type": "object",
    "title": "DetailsUpdate"
   },
   "FactAnswer": {
    "properties": {
     "question": {
      "type": "string",
      "maxLength": 300,
      "minLength": 1,
      "title": "Question"
     },
     "answer": {
      "type": "string",
      "maxLength": 2000,
      "title": "Answer",
      "default": ""
     },
     "dimension": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 40
       },
       {
        "type": "null"
       }
      ],
      "title": "Dimension"
     }
    },
    "type": "object",
    "required": [
     "question"
    ],
    "title": "FactAnswer"
   },
   "FactConflict": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "question": {
      "type": "string",
      "title": "Question"
     },
     "answer": {
      "type": "string",
      "title": "Answer"
     },
     "new_answer": {
      "type": "string",
      "title": "New Answer",
      "default": ""
     }
    },
    "type": "object",
    "required": [
     "id",
     "question",
     "answer"
    ],
    "title": "FactConflict",
    "description": "An older fact a save sent to \"Facts to confirm\": the new answer changes\na price, count or date on the same subject (services/business_memory)."
   },
   "FactsResponse": {
    "properties": {
     "facts": {
      "items": {
       "$ref": "#/components/schemas/BusinessFact"
      },
      "type": "array",
      "title": "Facts"
     }
    },
    "type": "object",
    "required": [
     "facts"
    ],
    "title": "FactsResponse"
   },
   "FixComplianceResponse": {
    "properties": {
     "enabled": {
      "type": "boolean",
      "title": "Enabled"
     },
     "result": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Result"
     },
     "overridable": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Overridable"
     },
     "summary": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Summary"
     },
     "check_error": {
      "type": "boolean",
      "title": "Check Error",
      "default": false
     },
     "repaired": {
      "type": "boolean",
      "title": "Repaired",
      "default": false
     },
     "cleared": {
      "type": "boolean",
      "title": "Cleared",
      "default": false
     },
     "content": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content"
     },
     "busy": {
      "type": "boolean",
      "title": "Busy",
      "default": false
     },
     "ai_accepted": {
      "type": "boolean",
      "title": "Ai Accepted",
      "default": false
     },
     "ai_accepted_count": {
      "type": "integer",
      "title": "Ai Accepted Count",
      "default": 0
     }
    },
    "type": "object",
    "required": [
     "enabled"
    ],
    "title": "FixComplianceResponse",
    "description": "Verdict after an on-demand \"Fix with AI\" repair pass.\n\nSame shape as the read-only check plus:\n  - `repaired`: the model rewrote the content and the new draft was saved.\n  - `cleared`: the post now passes (nothing left to resolve).\n  - `content`: the saved draft, so the editor can swap it in without a\n    refetch. Null when nothing was written."
   },
   "FixScoreRequest": {
    "properties": {
     "categories": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 11,
      "minItems": 1,
      "title": "Categories"
     },
     "skip_questions": {
      "type": "boolean",
      "title": "Skip Questions",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "categories"
    ],
    "title": "FixScoreRequest",
    "description": "Which score categories the customer asked to fix."
   },
   "FixScoreResponse": {
    "properties": {
     "accepted": {
      "type": "boolean",
      "title": "Accepted"
     },
     "busy": {
      "type": "boolean",
      "title": "Busy"
     },
     "message": {
      "type": "string",
      "title": "Message"
     },
     "token": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Token"
     },
     "categories": {
      "anyOf": [
       {
        "items": {
         "additionalProperties": true,
         "type": "object"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Categories"
     },
     "needs_input": {
      "type": "boolean",
      "title": "Needs Input",
      "default": false
     },
     "questions": {
      "anyOf": [
       {
        "items": {
         "additionalProperties": {
          "type": "string"
         },
         "type": "object"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Questions"
     }
    },
    "type": "object",
    "required": [
     "accepted",
     "busy",
     "message"
    ],
    "title": "FixScoreResponse",
    "description": "Synchronous answer to a fix request. The work itself is asynchronous.\n\n`accepted=False, busy=True`  -> a fix is already running on this blog.\n`accepted=False, busy=False` -> nothing to do; `categories` carries the\n                                FRESH scores so the panel can repaint.\n`accepted=True`              -> poll GET /blogs/{id} and read\n                                ai_generation_config.seo_fix."
   },
   "GBPAccount": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Address"
     },
     "platform": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Platform"
     }
    },
    "type": "object",
    "required": [
     "id"
    ],
    "title": "GBPAccount",
    "description": "A GBP account/location from the publish vendor (Postproxy)."
   },
   "GenerateArticleDraftRequest": {
    "properties": {
     "force": {
      "type": "boolean",
      "title": "Force",
      "default": false
     }
    },
    "type": "object",
    "title": "GenerateArticleDraftRequest"
   },
   "GenerateCustomRequest": {
    "properties": {
     "project_id": {
      "type": "string",
      "title": "Project Id"
     },
     "abstract": {
      "type": "string",
      "maxLength": 4000,
      "minLength": 1,
      "title": "Abstract",
      "description": "Free-text brief / pointers for the article"
     },
     "blog_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Blog Type"
     }
    },
    "type": "object",
    "required": [
     "project_id",
     "abstract"
    ],
    "title": "GenerateCustomRequest"
   },
   "GenerateCustomResponse": {
    "properties": {
     "status": {
      "type": "string",
      "title": "Status"
     },
     "blog_id": {
      "type": "string",
      "title": "Blog Id"
     }
    },
    "type": "object",
    "required": [
     "status",
     "blog_id"
    ],
    "title": "GenerateCustomResponse"
   },
   "GenerateKeywordsResponse": {
    "properties": {
     "added": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Added"
     },
     "skipped_duplicates": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Skipped Duplicates",
      "default": []
     },
     "remaining_this_month": {
      "type": "integer",
      "title": "Remaining This Month"
     }
    },
    "type": "object",
    "required": [
     "added",
     "remaining_this_month"
    ],
    "title": "GenerateKeywordsResponse",
    "description": "Result of POST /keywords/generate."
   },
   "GenerateMoreRequest": {
    "properties": {
     "project_id": {
      "type": "string",
      "title": "Project Id"
     },
     "titles": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array",
        "maxItems": 10
       },
       {
        "type": "null"
       }
      ],
      "title": "Titles"
     },
     "count": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Count",
      "description": "How many bonus blogs to add. Bounded by the customer's remaining headroom (effective_quota - already_scheduled). No per-click cap beyond that — the customer paid for the plan, they decide how to spend the headroom."
     }
    },
    "type": "object",
    "required": [
     "project_id",
     "count"
    ],
    "title": "GenerateMoreRequest"
   },
   "GenerateMoreResponse": {
    "properties": {
     "added": {
      "type": "integer",
      "title": "Added"
     },
     "project_id": {
      "type": "string",
      "title": "Project Id"
     },
     "content_plan_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content Plan Id"
     },
     "scheduled_dates": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Scheduled Dates"
     },
     "placeholder_blog_ids": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Placeholder Blog Ids",
      "default": []
     },
     "headroom_remaining": {
      "type": "integer",
      "title": "Headroom Remaining"
     },
     "titles_filled": {
      "type": "boolean",
      "title": "Titles Filled",
      "default": true
     },
     "titles_filled_count": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Titles Filled Count"
     },
     "titles_fill_error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Titles Fill Error"
     },
     "message": {
      "type": "string",
      "title": "Message"
     }
    },
    "type": "object",
    "required": [
     "added",
     "project_id",
     "content_plan_id",
     "scheduled_dates",
     "headroom_remaining",
     "message"
    ],
    "title": "GenerateMoreResponse"
   },
   "GeneratePostImageRequest": {
    "properties": {
     "additional_direction": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Additional Direction"
     }
    },
    "type": "object",
    "title": "GeneratePostImageRequest"
   },
   "GeneratePostRequest": {
    "properties": {
     "additional_direction": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Additional Direction"
     },
     "only_if_unwritten": {
      "type": "boolean",
      "title": "Only If Unwritten",
      "default": false
     },
     "expected_updated_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expected Updated At"
     },
     "remember": {
      "type": "boolean",
      "title": "Remember",
      "default": false
     }
    },
    "type": "object",
    "title": "GeneratePostRequest",
    "description": "Trigger post generation."
   },
   "GenerateSinglePostRequest": {
    "properties": {
     "post_type": {
      "type": "string",
      "title": "Post Type"
     },
     "scheduled_date": {
      "type": "string",
      "title": "Scheduled Date"
     },
     "topic": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Topic"
     },
     "source_text": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Source Text"
     }
    },
    "type": "object",
    "required": [
     "post_type",
     "scheduled_date"
    ],
    "title": "GenerateSinglePostRequest",
    "description": "Request to generate a single post."
   },
   "GenerationRequest": {
    "properties": {
     "additional_direction": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Additional Direction"
     },
     "only_if_unwritten": {
      "type": "boolean",
      "title": "Only If Unwritten",
      "default": false
     }
    },
    "type": "object",
    "title": "GenerationRequest",
    "description": "Request to generate blog content."
   },
   "GenerationStatusResponse": {
    "properties": {
     "success": {
      "type": "boolean",
      "title": "Success"
     },
     "blog_id": {
      "type": "string",
      "title": "Blog Id"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "status_message": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status Message"
     },
     "word_count": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Word Count"
     },
     "images_total": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Images Total"
     },
     "images_generated": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Images Generated"
     },
     "content_length": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content Length"
     },
     "error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Error"
     },
     "live": {
      "additionalProperties": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "object",
      "title": "Live",
      "default": {}
     },
     "server_now": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Server Now"
     },
     "generation_started_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Generation Started At"
     }
    },
    "type": "object",
    "required": [
     "success",
     "blog_id",
     "status"
    ],
    "title": "GenerationStatusResponse",
    "description": "Response with blog generation status."
   },
   "GenerationTriggerResponse": {
    "properties": {
     "success": {
      "type": "boolean",
      "title": "Success"
     },
     "blog_id": {
      "type": "string",
      "title": "Blog Id"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "message": {
      "type": "string",
      "title": "Message"
     }
    },
    "type": "object",
    "required": [
     "success",
     "blog_id",
     "status",
     "message"
    ],
    "title": "GenerationTriggerResponse",
    "description": "Response when generation is triggered."
   },
   "HTTPValidationError": {
    "properties": {
     "detail": {
      "items": {
       "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
     }
    },
    "type": "object",
    "title": "HTTPValidationError"
   },
   "HoursUpdate": {
    "properties": {
     "regular": {
      "anyOf": [
       {
        "items": {
         "$ref": "#/components/schemas/Period"
        },
        "type": "array",
        "maxItems": 50
       },
       {
        "type": "null"
       }
      ],
      "title": "Regular"
     },
     "special": {
      "anyOf": [
       {
        "items": {
         "$ref": "#/components/schemas/SpecialPeriod"
        },
        "type": "array",
        "maxItems": 100
       },
       {
        "type": "null"
       }
      ],
      "title": "Special"
     }
    },
    "type": "object",
    "title": "HoursUpdate"
   },
   "ImageEditRequest": {
    "properties": {
     "instruction": {
      "type": "string",
      "maxLength": 4096,
      "minLength": 1,
      "title": "Instruction"
     },
     "request_id": {
      "type": "string",
      "format": "uuid",
      "title": "Request Id"
     },
     "base_revision_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Base Revision Id"
     },
     "reference_urls": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 4,
      "title": "Reference Urls"
     },
     "prepared_image_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Prepared Image Url"
     },
     "prepared_from_clean_base": {
      "type": "boolean",
      "title": "Prepared From Clean Base",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "instruction",
     "request_id"
    ],
    "title": "ImageEditRequest"
   },
   "ImageVersionUseRequest": {
    "properties": {
     "expected_updated_at": {
      "type": "string",
      "title": "Expected Updated At"
     }
    },
    "type": "object",
    "required": [
     "expected_updated_at"
    ],
    "title": "ImageVersionUseRequest"
   },
   "InImageCopyOverride": {
    "properties": {
     "headline": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Headline"
     },
     "cta_text": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Cta Text"
     },
     "mechanism_line": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Mechanism Line"
     },
     "outcome_line": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Outcome Line"
     }
    },
    "type": "object",
    "title": "InImageCopyOverride"
   },
   "KeywordRow": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "keyword": {
      "type": "string",
      "title": "Keyword"
     },
     "source": {
      "type": "string",
      "enum": [
       "system",
       "user"
      ],
      "title": "Source"
     },
     "active": {
      "type": "boolean",
      "title": "Active"
     },
     "scheduled_date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Scheduled Date"
     },
     "blog_state": {
      "anyOf": [
       {
        "type": "string",
        "enum": [
         "planned",
         "generating",
         "draft_ready",
         "approved",
         "published"
        ]
       },
       {
        "type": "null"
       }
      ],
      "title": "Blog State"
     },
     "blog_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Blog Id"
     },
     "created_at": {
      "type": "string",
      "title": "Created At"
     },
     "enabled": {
      "type": "boolean",
      "title": "Enabled",
      "default": true
     },
     "usage_count": {
      "type": "integer",
      "title": "Usage Count",
      "default": 0
     },
     "last_generated_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Generated At"
     },
     "pool_status": {
      "type": "string",
      "enum": [
       "active",
       "queued",
       "cooling_down",
       "disabled"
      ],
      "title": "Pool Status",
      "default": "queued"
     },
     "priority": {
      "type": "boolean",
      "title": "Priority",
      "default": false
     },
     "quota_consumed": {
      "type": "boolean",
      "title": "Quota Consumed",
      "default": false
     },
     "search_volume": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Search Volume"
     },
     "forecast_clicks": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Forecast Clicks"
     },
     "competition": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Competition"
     },
     "competition_index": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Competition Index"
     },
     "monthly_volumes": {
      "anyOf": [
       {
        "items": {
         "additionalProperties": true,
         "type": "object"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Monthly Volumes"
     },
     "volume_checked_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Volume Checked At"
     },
     "difficulty_score": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Difficulty Score"
     },
     "difficulty_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Difficulty Source"
     },
     "intent": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Intent"
     },
     "intent_probability": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Intent Probability"
     },
     "cluster_role": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Cluster Role"
     },
     "discovery_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Discovery Source"
     },
     "top_bid_low_micros": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Top Bid Low Micros"
     },
     "top_bid_high_micros": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Top Bid High Micros"
     },
     "google_data_source": {
      "anyOf": [
       {
        "type": "string",
        "enum": [
         "search_console",
         "google_analytics"
        ]
       },
       {
        "type": "null"
       }
      ],
      "title": "Google Data Source"
     }
    },
    "type": "object",
    "required": [
     "id",
     "keyword",
     "source",
     "active",
     "created_at"
    ],
    "title": "KeywordRow",
    "description": "One row of the Keywords settings table.\n\nMatches the frontend's ``KeywordRow`` type (camelCase mapped client-side)."
   },
   "KeywordSuggestRequest": {
    "properties": {
     "keywords": {
      "items": {
       "type": "string",
       "maxLength": 80
      },
      "type": "array",
      "maxItems": 50,
      "minItems": 1,
      "title": "Keywords"
     }
    },
    "type": "object",
    "required": [
     "keywords"
    ],
    "title": "KeywordSuggestRequest",
    "description": "Body of POST /projects/{project_id}/keywords/suggest. Same caps as bulk add."
   },
   "KeywordSuggestRow": {
    "properties": {
     "keyword": {
      "type": "string",
      "title": "Keyword"
     },
     "search_volume": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Search Volume"
     },
     "status": {
      "type": "string",
      "enum": [
       "has_demand",
       "better_found",
       "no_demand",
       "unmeasured"
      ],
      "title": "Status"
     },
     "suggestion": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/KeywordSuggestion"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "keyword",
     "status"
    ],
    "title": "KeywordSuggestRow",
    "description": "One checked keyword. ``status``: has_demand | better_found | no_demand | unmeasured."
   },
   "KeywordSuggestion": {
    "properties": {
     "keyword": {
      "type": "string",
      "title": "Keyword"
     },
     "search_volume": {
      "type": "integer",
      "title": "Search Volume"
     }
    },
    "type": "object",
    "required": [
     "keyword",
     "search_volume"
    ],
    "title": "KeywordSuggestion"
   },
   "LibraryImageRequest": {
    "properties": {
     "asset_id": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Asset Id"
     }
    },
    "type": "object",
    "required": [
     "asset_id"
    ],
    "title": "LibraryImageRequest"
   },
   "LocationListResponse": {
    "properties": {
     "locations": {
      "items": {
       "$ref": "#/components/schemas/LocationResponse"
      },
      "type": "array",
      "title": "Locations"
     },
     "total": {
      "type": "integer",
      "title": "Total"
     },
     "limit_info": {
      "additionalProperties": true,
      "type": "object",
      "title": "Limit Info"
     }
    },
    "type": "object",
    "required": [
     "locations",
     "total",
     "limit_info"
    ],
    "title": "LocationListResponse",
    "description": "Response with list of locations."
   },
   "LocationResponse": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "project_id": {
      "type": "string",
      "title": "Project Id"
     },
     "google_place_id": {
      "type": "string",
      "title": "Google Place Id"
     },
     "business_name": {
      "type": "string",
      "title": "Business Name"
     },
     "address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Address"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "state": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "State"
     },
     "zip_code": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Zip Code"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "website": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Website"
     },
     "primary_category": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Primary Category"
     },
     "current_rating": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Current Rating"
     },
     "review_count": {
      "type": "integer",
      "title": "Review Count"
     },
     "service_areas": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Service Areas"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "last_synced_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Synced At"
     },
     "created_at": {
      "type": "string",
      "title": "Created At"
     },
     "business_description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Business Description"
     },
     "services": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Services",
      "default": []
     },
     "pain_points": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Pain Points",
      "default": []
     },
     "business_hours": {
      "additionalProperties": {
       "type": "string"
      },
      "type": "object",
      "title": "Business Hours",
      "default": {}
     },
     "usps": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Usps",
      "default": []
     },
     "certifications": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Certifications",
      "default": []
     },
     "tone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tone"
     },
     "conversion_goals": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Conversion Goals",
      "default": []
     },
     "seasonal_triggers": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Seasonal Triggers",
      "default": []
     },
     "sync_status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sync Status",
      "default": "idle"
     },
     "sync_started_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sync Started At"
     },
     "sync_error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sync Error"
     },
     "auto_publish_enabled": {
      "type": "boolean",
      "title": "Auto Publish Enabled",
      "default": false
     },
     "posting_mode": {
      "type": "string",
      "title": "Posting Mode",
      "default": "manual"
     },
     "publish_time": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Publish Time",
      "default": "09:00"
     },
     "auto_image_enabled": {
      "type": "boolean",
      "title": "Auto Image Enabled",
      "default": true
     },
     "offer_defaults": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Offer Defaults"
     },
     "gbp_connected": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Gbp Connected"
     },
     "gbp_connected_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Gbp Connected At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "project_id",
     "google_place_id",
     "business_name",
     "review_count",
     "service_areas",
     "status",
     "created_at"
    ],
    "title": "LocationResponse",
    "description": "Location response."
   },
   "MustIncludeRequest": {
    "properties": {
     "idea_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Idea Id"
     },
     "blog_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Blog Id"
     },
     "items": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "maxItems": 24,
      "title": "Items"
     },
     "instructions": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Instructions"
     }
    },
    "type": "object",
    "title": "MustIncludeRequest"
   },
   "MustIncludeResponse": {
    "properties": {
     "items": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Items"
     },
     "instructions": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Instructions"
     }
    },
    "type": "object",
    "required": [
     "items"
    ],
    "title": "MustIncludeResponse"
   },
   "NamedItem": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 400,
      "minLength": 3,
      "title": "Name"
     }
    },
    "type": "object",
    "required": [
     "name"
    ],
    "title": "NamedItem"
   },
   "OwnerQuestionRequest": {
    "properties": {
     "question": {
      "type": "string",
      "maxLength": 300,
      "minLength": 1,
      "title": "Question"
     },
     "reason": {
      "type": "string",
      "maxLength": 500,
      "title": "Reason",
      "default": ""
     },
     "source": {
      "type": "string",
      "enum": [
       "assistant",
       "blog",
       "social",
       "gbp",
       "idea"
      ],
      "title": "Source",
      "default": "assistant"
     }
    },
    "type": "object",
    "required": [
     "question"
    ],
    "title": "OwnerQuestionRequest"
   },
   "Period": {
    "properties": {
     "open_day": {
      "type": "string",
      "title": "Open Day"
     },
     "open_time": {
      "type": "string",
      "title": "Open Time"
     },
     "close_day": {
      "type": "string",
      "title": "Close Day"
     },
     "close_time": {
      "type": "string",
      "title": "Close Time"
     }
    },
    "type": "object",
    "required": [
     "open_day",
     "open_time",
     "close_day",
     "close_time"
    ],
    "title": "Period"
   },
   "PostDetailResponse": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "location_id": {
      "type": "string",
      "title": "Location Id"
     },
     "post_type": {
      "type": "string",
      "title": "Post Type"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "content": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content"
     },
     "image_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Image Url"
     },
     "cta_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Cta Type"
     },
     "cta_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Cta Url"
     },
     "offer_code": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Offer Code"
     },
     "offer_terms": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Offer Terms"
     },
     "offer_valid_until": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Offer Valid Until"
     },
     "scheduled_date": {
      "type": "string",
      "title": "Scheduled Date"
     },
     "scheduled_time": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Scheduled Time"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "copied_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Copied At"
     },
     "published_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Published At"
     },
     "zernio_post_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Zernio Post Id"
     },
     "postproxy_post_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Postproxy Post Id"
     },
     "zernio_post_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Zernio Post Url"
     },
     "publish_error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Publish Error"
     },
     "publish_failure_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Publish Failure Reason"
     },
     "publish_attempted_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Publish Attempted At"
     },
     "ai_generation_config": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ai Generation Config"
     },
     "created_at": {
      "type": "string",
      "title": "Created At"
     },
     "updated_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Updated At"
     },
     "origin_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Origin Source"
     },
     "created_by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Created By"
     },
     "content_idea_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content Idea Id"
     },
     "live": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Live"
     },
     "server_now": {
      "type": "string",
      "title": "Server Now"
     }
    },
    "type": "object",
    "required": [
     "id",
     "location_id",
     "post_type",
     "scheduled_date",
     "status",
     "created_at",
     "server_now"
    ],
    "title": "PostDetailResponse",
    "description": "The detail read: the post plus the server clock its live progress is\nmeasured against, so the browser's own clock never skews the canvas."
   },
   "PostListResponse": {
    "properties": {
     "posts": {
      "items": {
       "$ref": "#/components/schemas/PostResponse"
      },
      "type": "array",
      "title": "Posts"
     },
     "total": {
      "type": "integer",
      "title": "Total"
     },
     "server_now": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Server Now"
     }
    },
    "type": "object",
    "required": [
     "posts",
     "total"
    ],
    "title": "PostListResponse",
    "description": "Response with list of posts."
   },
   "PostResponse": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "location_id": {
      "type": "string",
      "title": "Location Id"
     },
     "post_type": {
      "type": "string",
      "title": "Post Type"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "content": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content"
     },
     "image_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Image Url"
     },
     "cta_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Cta Type"
     },
     "cta_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Cta Url"
     },
     "offer_code": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Offer Code"
     },
     "offer_terms": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Offer Terms"
     },
     "offer_valid_until": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Offer Valid Until"
     },
     "scheduled_date": {
      "type": "string",
      "title": "Scheduled Date"
     },
     "scheduled_time": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Scheduled Time"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "copied_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Copied At"
     },
     "published_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Published At"
     },
     "zernio_post_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Zernio Post Id"
     },
     "postproxy_post_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Postproxy Post Id"
     },
     "zernio_post_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Zernio Post Url"
     },
     "publish_error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Publish Error"
     },
     "publish_failure_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Publish Failure Reason"
     },
     "publish_attempted_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Publish Attempted At"
     },
     "ai_generation_config": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ai Generation Config"
     },
     "created_at": {
      "type": "string",
      "title": "Created At"
     },
     "updated_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Updated At"
     },
     "origin_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Origin Source"
     },
     "created_by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Created By"
     },
     "content_idea_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content Idea Id"
     },
     "live": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Live"
     }
    },
    "type": "object",
    "required": [
     "id",
     "location_id",
     "post_type",
     "scheduled_date",
     "status",
     "created_at"
    ],
    "title": "PostResponse",
    "description": "GBP Post response model."
   },
   "PublishPostRequest": {
    "properties": {
     "publish_now": {
      "type": "boolean",
      "title": "Publish Now"
     },
     "scheduled_for": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Scheduled For"
     },
     "timezone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Timezone"
     },
     "platforms": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Platforms"
     },
     "platform_accounts": {
      "anyOf": [
       {
        "additionalProperties": {
         "type": "string"
        },
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Platform Accounts"
     },
     "add_platforms": {
      "type": "boolean",
      "title": "Add Platforms",
      "default": false
     },
     "compliance_override": {
      "type": "boolean",
      "title": "Compliance Override",
      "default": false
     },
     "compliance_override_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Compliance Override Reason"
     }
    },
    "type": "object",
    "required": [
     "publish_now"
    ],
    "title": "PublishPostRequest",
    "description": "Publish or schedule a post via Postproxy.\n\n`platforms` is the optional subset to publish to in this call. When\nomitted, the publish endpoint targets all of `post.platforms` that\nhaven't already been successfully published (current behaviour). When\nspecified, only those platforms get a vendor post created — used by\nthe per-platform publish dialog so users can:\n  - publish to LinkedIn first, IG/FB later (selective initial push)\n  - re-publish a post to newly-connected platforms days after the\n    original publish (LinkedIn published Monday, then IG connected\n    Wednesday → user re-opens publish dialog and ticks IG only).\nEach platform that gets published in a call is recorded in\n`social_posts.platform_publishes[platform]` with its own vendor post id\nand timestamp, so multiple publish operations per post don't clobber\neach other's state."
   },
   "RegenerateCaptionRequest": {
    "properties": {
     "platform": {
      "type": "string",
      "title": "Platform"
     },
     "additional_direction": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Additional Direction"
     },
     "user_text": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "User Text"
     },
     "remember": {
      "type": "boolean",
      "title": "Remember",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "platform"
    ],
    "title": "RegenerateCaptionRequest",
    "description": "Regenerate caption for a specific platform only (no images)."
   },
   "RegenerateImageRequest": {
    "properties": {
     "image_src": {
      "type": "string",
      "maxLength": 2000,
      "title": "Image Src",
      "default": ""
     },
     "image_alt": {
      "type": "string",
      "maxLength": 500,
      "title": "Image Alt",
      "default": ""
     },
     "style": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Style",
      "default": 50
     },
     "custom_prompt": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 1000
       },
       {
        "type": "null"
       }
      ],
      "title": "Custom Prompt"
     },
     "mode": {
      "anyOf": [
       {
        "type": "string",
        "enum": [
         "create",
         "edit"
        ]
       },
       {
        "type": "null"
       }
      ],
      "title": "Mode"
     },
     "image_type": {
      "anyOf": [
       {
        "type": "string",
        "enum": [
         "photo",
         "diagram",
         "infographic",
         "illustration",
         "brand_text"
        ]
       },
       {
        "type": "null"
       }
      ],
      "title": "Image Type"
     },
     "image_occurrence": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 100.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Image Occurrence"
     },
     "image_occurrence_of": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 100.0,
        "minimum": 1.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Image Occurrence Of"
     },
     "place": {
      "type": "boolean",
      "title": "Place",
      "default": true
     },
     "edit_from_url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Edit From Url"
     },
     "product_ids": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array",
        "maxItems": 3
       },
       {
        "type": "null"
       }
      ],
      "title": "Product Ids"
     }
    },
    "type": "object",
    "title": "RegenerateImageRequest",
    "description": "Request to regenerate an image in blog content."
   },
   "RegenerateImageResponse": {
    "properties": {
     "success": {
      "type": "boolean",
      "title": "Success"
     },
     "new_image_url": {
      "type": "string",
      "title": "New Image Url"
     },
     "message": {
      "type": "string",
      "title": "Message"
     },
     "status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status"
     },
     "error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Error"
     }
    },
    "type": "object",
    "required": [
     "success",
     "new_image_url",
     "message"
    ],
    "title": "RegenerateImageResponse",
    "description": "Response for image regeneration.\n\nRegeneration is async (see the endpoint docstring): the response returns\nimmediately with status=\"regenerating\" and the original image_src, then the\nimage is swapped in place server-side and the status flips to success/failed\nin ai_generation_config (the frontend polls the blog and updates live)."
   },
   "RegeneratePlanResponse": {
    "properties": {
     "success": {
      "type": "boolean",
      "title": "Success"
     },
     "blog_id": {
      "type": "string",
      "title": "Blog Id"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "keyword": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Keyword"
     },
     "blog_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Blog Type"
     },
     "excerpt": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Excerpt"
     },
     "error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Error"
     }
    },
    "type": "object",
    "required": [
     "success",
     "blog_id"
    ],
    "title": "RegeneratePlanResponse",
    "description": "Response for per-blog plan regeneration."
   },
   "RegeneratePostRequest": {
    "properties": {
     "user_direction": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Direction"
     }
    },
    "type": "object",
    "title": "RegeneratePostRequest"
   },
   "RegenerateSectionRequest": {
    "properties": {
     "section_html": {
      "type": "string",
      "maxLength": 100000,
      "title": "Section Html"
     },
     "tone": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Tone",
      "default": 50
     },
     "length": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Length",
      "default": 50
     },
     "additional_prompt": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 1000
       },
       {
        "type": "null"
       }
      ],
      "title": "Additional Prompt"
     },
     "persist": {
      "type": "boolean",
      "title": "Persist",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "section_html"
    ],
    "title": "RegenerateSectionRequest",
    "description": "Request to regenerate a section of blog content."
   },
   "RegenerateSectionResponse": {
    "properties": {
     "success": {
      "type": "boolean",
      "title": "Success"
     },
     "regenerated_html": {
      "type": "string",
      "title": "Regenerated Html"
     },
     "message": {
      "type": "string",
      "title": "Message"
     },
     "error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Error"
     },
     "persisted": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Persisted"
     }
    },
    "type": "object",
    "required": [
     "success",
     "regenerated_html",
     "message"
    ],
    "title": "RegenerateSectionResponse",
    "description": "Response with regenerated section content."
   },
   "RetryFailedImagesResponse": {
    "properties": {
     "success": {
      "type": "boolean",
      "title": "Success"
     },
     "blog_id": {
      "type": "string",
      "title": "Blog Id"
     },
     "retried": {
      "type": "integer",
      "title": "Retried"
     },
     "succeeded": {
      "type": "integer",
      "title": "Succeeded"
     },
     "still_failed": {
      "type": "integer",
      "title": "Still Failed"
     },
     "new_status": {
      "type": "string",
      "title": "New Status"
     },
     "results": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Results"
     },
     "message": {
      "type": "string",
      "title": "Message"
     }
    },
    "type": "object",
    "required": [
     "success",
     "blog_id",
     "retried",
     "succeeded",
     "still_failed",
     "new_status",
     "results",
     "message"
    ],
    "title": "RetryFailedImagesResponse",
    "description": "Per-image outcome of retrying the failed images on a blog."
   },
   "ReviseRequest": {
    "properties": {
     "instruction": {
      "type": "string",
      "maxLength": 8000,
      "minLength": 3,
      "title": "Instruction"
     }
    },
    "type": "object",
    "required": [
     "instruction"
    ],
    "title": "ReviseRequest",
    "description": "What the owner asked for, in their words, facts included."
   },
   "ReviseResponse": {
    "properties": {
     "accepted": {
      "type": "boolean",
      "title": "Accepted"
     },
     "busy": {
      "type": "boolean",
      "title": "Busy",
      "default": false
     },
     "token": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Token"
     },
     "message": {
      "type": "string",
      "title": "Message"
     }
    },
    "type": "object",
    "required": [
     "accepted",
     "message"
    ],
    "title": "ReviseResponse"
   },
   "RunRequest": {
    "properties": {
     "trigger": {
      "type": "string",
      "const": "manual",
      "title": "Trigger",
      "default": "manual"
     },
     "idempotencyKey": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Idempotencykey"
     }
    },
    "type": "object",
    "title": "RunRequest"
   },
   "SaveFactsRequest": {
    "properties": {
     "answers": {
      "items": {
       "$ref": "#/components/schemas/FactAnswer"
      },
      "type": "array",
      "maxItems": 20,
      "minItems": 1,
      "title": "Answers"
     },
     "source": {
      "type": "string",
      "enum": [
       "fix_prompt",
       "settings",
       "assistant",
       "onboarding"
      ],
      "title": "Source",
      "default": "fix_prompt"
     },
     "blog_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Blog Id"
     }
    },
    "type": "object",
    "required": [
     "answers"
    ],
    "title": "SaveFactsRequest"
   },
   "SavedValueClose": {
    "properties": {
     "restored": {
      "type": "boolean",
      "title": "Restored",
      "default": false
     }
    },
    "type": "object",
    "title": "SavedValueClose"
   },
   "ServicesUpdate": {
    "properties": {
     "service_items": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "maxItems": 200,
      "title": "Service Items"
     }
    },
    "type": "object",
    "required": [
     "service_items"
    ],
    "title": "ServicesUpdate"
   },
   "SetScheduledDateRequest": {
    "properties": {
     "scheduled_date": {
      "type": "string",
      "title": "Scheduled Date",
      "description": "ISO date YYYY-MM-DD"
     }
    },
    "type": "object",
    "required": [
     "scheduled_date"
    ],
    "title": "SetScheduledDateRequest"
   },
   "SetScheduledDateResponse": {
    "properties": {
     "success": {
      "type": "boolean",
      "title": "Success"
     },
     "blog_id": {
      "type": "string",
      "title": "Blog Id"
     },
     "scheduled_date": {
      "type": "string",
      "title": "Scheduled Date"
     },
     "message": {
      "type": "string",
      "title": "Message"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "planned_on_commit": {
      "type": "boolean",
      "title": "Planned On Commit",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "success",
     "blog_id",
     "scheduled_date",
     "message"
    ],
    "title": "SetScheduledDateResponse"
   },
   "SkippedWebflowField": {
    "properties": {
     "fairview_key": {
      "type": "string",
      "title": "Fairview Key"
     },
     "webflow_slug": {
      "type": "string",
      "title": "Webflow Slug"
     },
     "reason": {
      "type": "string",
      "title": "Reason"
     },
     "sent_value": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sent Value"
     },
     "allowed_values": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Allowed Values"
     }
    },
    "type": "object",
    "required": [
     "fairview_key",
     "webflow_slug",
     "reason"
    ],
    "title": "SkippedWebflowField",
    "description": "One Webflow field whose value was dropped at publish/sync time\nbecause it failed pre-flight validation (e.g. an Option value not\nin the Webflow Option's allowed list). Surfaced to the frontend\nso the user gets a non-blocking warning instead of silently\ndiscovering a missing field on their live site."
   },
   "SpecialPeriod": {
    "properties": {
     "date": {
      "type": "string",
      "format": "date",
      "title": "Date"
     },
     "end_date": {
      "anyOf": [
       {
        "type": "string",
        "format": "date"
       },
       {
        "type": "null"
       }
      ],
      "title": "End Date"
     },
     "closed": {
      "type": "boolean",
      "title": "Closed",
      "default": false
     },
     "open_time": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Open Time"
     },
     "close_time": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Close Time"
     }
    },
    "type": "object",
    "required": [
     "date"
    ],
    "title": "SpecialPeriod"
   },
   "StudioEditRequest": {
    "properties": {
     "request_id": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Request Id"
     },
     "instruction": {
      "type": "string",
      "title": "Instruction"
     },
     "intent": {
      "anyOf": [
       {
        "type": "string",
        "enum": [
         "scene",
         "image"
        ]
       },
       {
        "type": "null"
       }
      ],
      "title": "Intent"
     },
     "slide_index": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Slide Index"
     },
     "apply_all": {
      "type": "boolean",
      "title": "Apply All",
      "default": false
     },
     "reference_urls": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 4,
      "title": "Reference Urls"
     },
     "user_reference_count": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 4.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "User Reference Count"
     },
     "prepared_image_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Prepared Image Url"
     },
     "base_revision_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Base Revision Id"
     },
     "prepared_from_clean_base": {
      "type": "boolean",
      "title": "Prepared From Clean Base",
      "default": false
     },
     "remember": {
      "type": "boolean",
      "title": "Remember",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "instruction"
    ],
    "title": "StudioEditRequest"
   },
   "SwappedImage": {
    "properties": {
     "old_url": {
      "type": "string",
      "title": "Old Url"
     },
     "new_url": {
      "type": "string",
      "title": "New Url"
     },
     "alt_text": {
      "type": "string",
      "title": "Alt Text",
      "default": ""
     },
     "mode": {
      "type": "string",
      "enum": [
       "edit",
       "create"
      ],
      "title": "Mode",
      "default": "edit"
     },
     "edit_prompt": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Edit Prompt"
     },
     "slot": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Slot"
     }
    },
    "type": "object",
    "required": [
     "old_url",
     "new_url"
    ],
    "title": "SwappedImage",
    "description": "An image swapped in for an existing one (the assistant's \"Use this\")."
   },
   "TeachAnswer": {
    "properties": {
     "action": {
      "type": "string",
      "enum": [
       "answer",
       "skip",
       "not_relevant",
       "private",
       "confirm",
       "reject"
      ],
      "title": "Action",
      "default": "answer"
     },
     "source": {
      "type": "string",
      "maxLength": 300,
      "minLength": 1,
      "title": "Source"
     },
     "question": {
      "type": "string",
      "maxLength": 300,
      "minLength": 1,
      "title": "Question"
     },
     "answer": {
      "type": "string",
      "maxLength": 2000,
      "title": "Answer",
      "default": ""
     },
     "category": {
      "type": "string",
      "maxLength": 40,
      "title": "Category",
      "default": "other"
     },
     "fact_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Fact Id"
     },
     "key": {
      "type": "string",
      "maxLength": 120,
      "title": "Key",
      "default": ""
     }
    },
    "type": "object",
    "required": [
     "source",
     "question"
    ],
    "title": "TeachAnswer"
   },
   "TeachAnswersRequest": {
    "properties": {
     "answers": {
      "items": {
       "$ref": "#/components/schemas/TeachAnswer"
      },
      "type": "array",
      "maxItems": 10,
      "minItems": 1,
      "title": "Answers"
     }
    },
    "type": "object",
    "required": [
     "answers"
    ],
    "title": "TeachAnswersRequest"
   },
   "TeachAnswersResponse": {
    "properties": {
     "saved": {
      "type": "integer",
      "title": "Saved"
     },
     "follow_ups": {
      "items": {
       "$ref": "#/components/schemas/TeachCard"
      },
      "type": "array",
      "title": "Follow Ups"
     },
     "conflicts": {
      "items": {
       "$ref": "#/components/schemas/FactConflict"
      },
      "type": "array",
      "title": "Conflicts"
     }
    },
    "type": "object",
    "required": [
     "saved",
     "follow_ups"
    ],
    "title": "TeachAnswersResponse"
   },
   "TeachCard": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "kind": {
      "type": "string",
      "enum": [
       "gap",
       "confirm"
      ],
      "title": "Kind"
     },
     "question": {
      "type": "string",
      "title": "Question"
     },
     "options": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Options"
     },
     "category": {
      "type": "string",
      "title": "Category"
     },
     "category_label": {
      "type": "string",
      "title": "Category Label"
     },
     "articles": {
      "type": "integer",
      "title": "Articles",
      "default": 0
     },
     "reason": {
      "type": "string",
      "title": "Reason",
      "default": ""
     },
     "source": {
      "type": "string",
      "title": "Source"
     },
     "fact_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Fact Id"
     },
     "current": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Current"
     },
     "value": {
      "type": "string",
      "title": "Value",
      "default": ""
     },
     "example": {
      "type": "string",
      "title": "Example",
      "default": ""
     },
     "key": {
      "type": "string",
      "title": "Key",
      "default": ""
     },
     "dimension": {
      "type": "string",
      "title": "Dimension",
      "default": ""
     }
    },
    "type": "object",
    "required": [
     "id",
     "kind",
     "question",
     "category",
     "category_label",
     "source"
    ],
    "title": "TeachCard"
   },
   "TeachCardsResponse": {
    "properties": {
     "questions": {
      "items": {
       "$ref": "#/components/schemas/TeachCard"
      },
      "type": "array",
      "title": "Questions"
     }
    },
    "type": "object",
    "required": [
     "questions"
    ],
    "title": "TeachCardsResponse"
   },
   "TeachCategory": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "label": {
      "type": "string",
      "title": "Label"
     },
     "known": {
      "type": "integer",
      "title": "Known"
     },
     "open": {
      "type": "integer",
      "title": "Open"
     }
    },
    "type": "object",
    "required": [
     "key",
     "label",
     "known",
     "open"
    ],
    "title": "TeachCategory"
   },
   "TeachSummary": {
    "properties": {
     "known": {
      "type": "integer",
      "title": "Known"
     },
     "open": {
      "type": "integer",
      "title": "Open"
     },
     "categories": {
      "items": {
       "$ref": "#/components/schemas/TeachCategory"
      },
      "type": "array",
      "title": "Categories"
     }
    },
    "type": "object",
    "required": [
     "known",
     "open",
     "categories"
    ],
    "title": "TeachSummary"
   },
   "UpdateArticleDraftRequest": {
    "properties": {
     "headline": {
      "type": "string",
      "maxLength": 240,
      "minLength": 1,
      "title": "Headline"
     },
     "body_markdown": {
      "type": "string",
      "maxLength": 40000,
      "minLength": 1,
      "title": "Body Markdown"
     }
    },
    "type": "object",
    "required": [
     "headline",
     "body_markdown"
    ],
    "title": "UpdateArticleDraftRequest"
   },
   "UpdatePostRequest": {
    "properties": {
     "caption": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Caption"
     },
     "platform_captions": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Platform Captions"
     },
     "first_comment": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "First Comment"
     },
     "platforms": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Platforms"
     },
     "hashtags": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Hashtags"
     },
     "scheduled_date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Scheduled Date"
     },
     "scheduled_time": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Scheduled Time"
     },
     "clear_schedule": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Clear Schedule"
     },
     "status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status"
     },
     "format": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Format"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "topic": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Topic"
     },
     "pillar": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Pillar"
     },
     "preview_image": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Preview Image"
     },
     "preview_images": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Preview Images"
     },
     "archetype_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Archetype Id"
     },
     "style_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Style Id"
     },
     "user_direction": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Direction"
     },
     "plan_brief": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Plan Brief"
     },
     "allow_content_removal": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Allow Content Removal"
     }
    },
    "type": "object",
    "title": "UpdatePostRequest",
    "description": "Partial update for a social post."
   },
   "UseImageVersionRequest": {
    "properties": {
     "version_id": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Version Id"
     },
     "target": {
      "type": "string",
      "maxLength": 20,
      "minLength": 1,
      "title": "Target"
     },
     "expected_updated_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expected Updated At"
     }
    },
    "type": "object",
    "required": [
     "version_id",
     "target"
    ],
    "title": "UseImageVersionRequest",
    "description": "Put one of the post's earlier pictures into a slot (the version picker)."
   },
   "ValidationError": {
    "properties": {
     "loc": {
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        }
       ]
      },
      "type": "array",
      "title": "Location"
     },
     "msg": {
      "type": "string",
      "title": "Message"
     },
     "type": {
      "type": "string",
      "title": "Error Type"
     },
     "input": {
      "title": "Input"
     },
     "ctx": {
      "type": "object",
      "title": "Context"
     }
    },
    "type": "object",
    "required": [
     "loc",
     "msg",
     "type"
    ],
    "title": "ValidationError"
   },
   "local_seo_UpdatePostRequest": {
    "properties": {
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "content": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content"
     },
     "cta_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Cta Type"
     },
     "cta_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Cta Url"
     },
     "offer_code": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Offer Code"
     },
     "offer_terms": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Offer Terms"
     },
     "offer_valid_until": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Offer Valid Until"
     },
     "event_start_date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Event Start Date"
     },
     "event_end_date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Event End Date"
     },
     "scheduled_date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Scheduled Date"
     },
     "scheduled_time": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Scheduled Time"
     },
     "status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status"
     },
     "user_direction": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Direction"
     },
     "plan_brief": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Plan Brief"
     },
     "allow_content_removal": {
      "type": "boolean",
      "title": "Allow Content Removal",
      "default": false
     }
    },
    "type": "object",
    "title": "UpdatePostRequest",
    "description": "Request to update a post."
   },
   "social_RegenerateImageRequest": {
    "properties": {
     "in_image_copy": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/InImageCopyOverride"
       },
       {
        "type": "null"
       }
      ]
     },
     "slide_content": {
      "anyOf": [
       {
        "items": {
         "additionalProperties": true,
         "type": "object"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Slide Content"
     }
    },
    "type": "object",
    "title": "RegenerateImageRequest"
   }
  }
 }
}
