{
  "openapi": "3.1.0",
  "info": {
    "title": "SimplePost Scheduler API",
    "version": "1.0.0",
    "description": "OpenAPI reference for the Scheduler app API, OAuth/MCP support endpoints, and internal scheduler operations."
  },
  "servers": [
    {
      "url": "https://app.simplepost.social",
      "description": "Scheduler app"
    }
  ],
  "tags": [
    {
      "name": "OpenAPI",
      "description": "Generated API reference metadata."
    },
    {
      "name": "Auth",
      "description": "Better Auth session endpoints."
    },
    {
      "name": "CLI",
      "description": "CLI authorization helpers."
    },
    {
      "name": "Connect",
      "description": "Social account connection and OAuth callback endpoints."
    },
    {
      "name": "OAuth",
      "description": "OAuth endpoints for MCP clients."
    },
    {
      "name": "Accounts",
      "description": "Connected social account management."
    },
    {
      "name": "API Keys",
      "description": "User-managed API keys for direct Scheduler API access."
    },
    {
      "name": "Posts",
      "description": "Post listing, creation, publishing, scheduling, and mutation."
    },
    {
      "name": "Upload",
      "description": "Media upload and presigned upload URL endpoints."
    },
    {
      "name": "Validation",
      "description": "Platform validation for draft posts."
    },
    {
      "name": "Internal",
      "description": "Trusted infrastructure endpoints."
    },
    {
      "name": "MCP",
      "description": "Model Context Protocol Streamable HTTP endpoint."
    }
  ],
  "paths": {
    "/api/v1/features": {
      "get": {
        "operationId": "listUserFeatures",
        "tags": [
          "Features"
        ],
        "summary": "List features enabled for the authenticated user",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Enabled features.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "features": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "IMAGE_FITTING",
                          "PLUGIN_EXTENSIONS"
                        ]
                      }
                    }
                  },
                  "required": [
                    "features"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/openapi.json": {
      "get": {
        "operationId": "getSchedulerOpenApiDocument",
        "tags": [
          "OpenAPI"
        ],
        "summary": "Get the generated Scheduler OpenAPI document",
        "responses": {
          "200": {
            "description": "Generated OpenAPI 3.1 document.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenApiDocument"
                }
              }
            }
          }
        }
      }
    },
    "/api/auth/{path}": {
      "get": {
        "operationId": "getAuthRoute",
        "tags": [
          "Auth"
        ],
        "summary": "Handle Better Auth GET routes",
        "description": "Catch-all Better Auth endpoint for session, callback, and provider routes.",
        "parameters": [
          {
            "in": "path",
            "name": "path",
            "schema": {
              "$ref": "#/components/schemas/__schema0"
            },
            "required": true,
            "description": "Better Auth route segment."
          }
        ],
        "responses": {
          "200": {
            "description": "Better Auth response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BetterAuthResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "postAuthRoute",
        "tags": [
          "Auth"
        ],
        "summary": "Handle Better Auth POST routes",
        "description": "Catch-all Better Auth endpoint for sign-in, sign-out, and callback mutations.",
        "parameters": [
          {
            "in": "path",
            "name": "path",
            "schema": {
              "$ref": "#/components/schemas/__schema0"
            },
            "required": true,
            "description": "Better Auth route segment."
          }
        ],
        "responses": {
          "200": {
            "description": "Better Auth response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BetterAuthResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/cli/authorize": {
      "post": {
        "operationId": "authorizeCli",
        "tags": [
          "CLI"
        ],
        "summary": "Authorize a local CLI session",
        "description": "Creates a short-lived one-time code for an authenticated browser user and returns a loopback redirect URL. The CLI exchanges the code for a bearer token outside the browser.",
        "security": [
          {
            "cookieAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CliAuthorizeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Redirect URL containing the one-time CLI authorization code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RedirectUrlResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/cli/token": {
      "post": {
        "operationId": "exchangeCliAuthorizationCode",
        "tags": [
          "CLI"
        ],
        "summary": "Exchange a one-time CLI authorization code",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CliTokenExchangeRequest"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/CliTokenExchangeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "CLI bearer token and authenticated user.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CliTokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "CLI token request was invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "revokeCliToken",
        "tags": [
          "CLI"
        ],
        "summary": "Revoke the current CLI bearer token",
        "security": [
          {
            "cliBearerAuth": []
          }
        ],
        "responses": {
          "204": {
            "description": "CLI token revoked."
          },
          "401": {
            "description": "CLI token was missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/connect/{platform}": {
      "get": {
        "operationId": "startPlatformConnection",
        "tags": [
          "Connect"
        ],
        "summary": "Start a social platform OAuth connection",
        "description": "Builds a provider authorization URL, stores PKCE state when needed, and redirects the user.",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "platform",
            "schema": {
              "type": "string",
              "description": "Social platform slug.",
              "example": "youtube"
            },
            "required": true,
            "description": "Social platform slug."
          }
        ],
        "responses": {
          "302": {
            "description": "Redirect to the social platform authorization URL.",
            "headers": {
              "Location": {
                "description": "Redirect target URL.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/connect/callback/{platform}": {
      "get": {
        "operationId": "handlePlatformConnectionCallback",
        "tags": [
          "Connect"
        ],
        "summary": "Handle a social platform OAuth callback",
        "description": "Validates OAuth state, exchanges the authorization code, stores connected accounts, and redirects to the app.",
        "parameters": [
          {
            "in": "path",
            "name": "platform",
            "schema": {
              "type": "string",
              "description": "Social platform slug.",
              "example": "youtube"
            },
            "required": true,
            "description": "Social platform slug."
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "state",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "error",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "error_reason",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "error_description",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "302": {
            "description": "Redirect back to the Scheduler app with success or error state.",
            "headers": {
              "Location": {
                "description": "Redirect target URL.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          }
        }
      }
    },
    "/api/connect/pending/{id}": {
      "get": {
        "operationId": "getPendingConnection",
        "tags": [
          "Connect"
        ],
        "summary": "Get pending OAuth connection accounts",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "$ref": "#/components/schemas/__schema5"
            },
            "required": true,
            "description": "Pending OAuth connection ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Pending accounts available for selection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PendingConnectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "410": {
            "description": "Pending connection has expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "selectPendingConnectionAccounts",
        "tags": [
          "Connect"
        ],
        "summary": "Select accounts from a pending OAuth connection",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "$ref": "#/components/schemas/__schema5"
            },
            "required": true,
            "description": "Pending OAuth connection ID."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SelectPendingConnectionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Selected accounts were connected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SelectPendingConnectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "410": {
            "description": "Pending connection has expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/connect/forem": {
      "post": {
        "operationId": "connectForem",
        "tags": [
          "Connect"
        ],
        "summary": "Connect a DEV/Forem API key",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForemConnectRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Forem connected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForemConnectResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/connect/telegram": {
      "post": {
        "operationId": "connectTelegram",
        "tags": [
          "Connect"
        ],
        "summary": "Connect a Telegram bot and chat",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TelegramConnectRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Telegram account connected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelegramConnectResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/internal/scheduled-posts/dispatch": {
      "post": {
        "operationId": "dispatchDueScheduledPosts",
        "tags": [
          "Internal"
        ],
        "summary": "Dispatch due scheduled posts",
        "description": "Trusted infrastructure endpoint for cron or worker processes.",
        "security": [
          {
            "scheduledDispatchBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Dispatch result summary.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DispatchScheduledPostsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Invalid dispatch bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/oauth/authorize": {
      "post": {
        "operationId": "authorizeMcpOAuthClient",
        "tags": [
          "OAuth"
        ],
        "summary": "Authorize an MCP OAuth client",
        "description": "Processes the consent form and returns the client redirect URL with an authorization code.",
        "security": [
          {
            "cookieAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthAuthorizeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Redirect URL containing the OAuth authorization code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RedirectUrlResponse"
                }
              }
            }
          },
          "400": {
            "description": "OAuth authorization request was invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/oauth/register": {
      "post": {
        "operationId": "registerMcpOAuthClient",
        "tags": [
          "OAuth"
        ],
        "summary": "Register an MCP OAuth client",
        "description": "Dynamic Client Registration endpoint used by MCP clients before starting authorization.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthRegisterRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Registered OAuth client metadata.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthRegisterResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid client metadata.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/oauth/revoke": {
      "post": {
        "operationId": "revokeMcpOAuthToken",
        "tags": [
          "OAuth"
        ],
        "summary": "Revoke an MCP OAuth access token",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthRevokeRequest"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/OAuthRevokeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Token revoked or already inactive."
          },
          "400": {
            "description": "OAuth revocation request was invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            }
          },
          "401": {
            "description": "OAuth client authentication failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/oauth/token": {
      "post": {
        "operationId": "exchangeMcpOAuthCode",
        "tags": [
          "OAuth"
        ],
        "summary": "Exchange an MCP OAuth authorization code for a token",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthTokenRequest"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/OAuthTokenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OAuth access token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthTokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "OAuth token request was invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            }
          },
          "401": {
            "description": "OAuth client authentication failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/oauth/userinfo": {
      "get": {
        "operationId": "getMcpOidcUserInfo",
        "tags": [
          "OAuth"
        ],
        "summary": "Return OpenID Connect user claims",
        "security": [
          {
            "mcpBearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OpenID Connect user claims.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcUserInfo"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts": {
      "get": {
        "operationId": "listConnectedAccounts",
        "tags": [
          "Accounts"
        ],
        "summary": "List connected accounts",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Connected social accounts for the authenticated user.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountsEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{id}": {
      "delete": {
        "operationId": "disconnectAccount",
        "tags": [
          "Accounts"
        ],
        "summary": "Disconnect an account",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "description": "Connected account ID."
            },
            "required": true,
            "description": "Connected account ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Account disconnected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DisconnectAccountResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{id}/avatar": {
      "get": {
        "operationId": "getAccountAvatar",
        "tags": [
          "Accounts"
        ],
        "summary": "Fetch a connected account avatar",
        "description": "Proxies an allowlisted X, Threads, or LinkedIn profile image for the authenticated account owner and refreshes expired provider URLs when supported.",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "description": "Connected account ID."
            },
            "required": true,
            "description": "Connected account ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Account avatar image bytes.",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "204": {
            "description": "No usable profile photo is available; display the platform fallback icon."
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Account or profile picture not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{id}/boards": {
      "get": {
        "operationId": "listPinterestBoards",
        "tags": [
          "Accounts"
        ],
        "summary": "List Pinterest boards for an account",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "description": "Pinterest connected account ID."
            },
            "required": true,
            "description": "Pinterest connected account ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Pinterest boards for the connected account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PinterestBoardsEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{id}/tiktok/creator-info": {
      "get": {
        "operationId": "getTikTokCreatorInfo",
        "tags": [
          "Accounts"
        ],
        "summary": "Get TikTok creator posting capabilities",
        "description": "Refreshes the connected TikTok credential when needed and returns the creator's current privacy and interaction options.",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "description": "TikTok connected account ID."
            },
            "required": true,
            "description": "TikTok connected account ID."
          }
        ],
        "responses": {
          "200": {
            "description": "TikTok creator posting capabilities.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TikTokCreatorInfoEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Connected account not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{id}/youtube/library": {
      "get": {
        "operationId": "getYouTubeLibrary",
        "tags": [
          "Accounts"
        ],
        "summary": "Read connected YouTube channels and playlists",
        "description": "Fetches current owner-authorized data from YouTube using the connected account. Does not return tokens or infer metadata from saved posting options.",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "pageToken",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Live YouTube provider data.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Account or channel resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{id}/youtube/videos/{videoId}": {
      "get": {
        "operationId": "getYouTubeVideo",
        "tags": [
          "Accounts"
        ],
        "summary": "Read a connected channel video from YouTube",
        "description": "Fetches current owner-authorized data from YouTube using the connected account, including upload file details and processing status when available. Does not return tokens or infer metadata from saved posting options.",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "videoId",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "playlistId",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Live YouTube provider data.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Account or channel resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/api-keys": {
      "get": {
        "operationId": "listApiKeys",
        "tags": [
          "API Keys"
        ],
        "summary": "List API keys",
        "description": "Lists API key records for the signed-in user. Raw API key values are never returned.",
        "security": [
          {
            "cookieAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "API keys for the signed-in user.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeysEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createApiKey",
        "tags": [
          "API Keys"
        ],
        "summary": "Create an API key",
        "description": "Creates a new API key and returns the raw key once. Store it immediately.",
        "security": [
          {
            "cookieAuth": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApiKeyRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created API key. The apiKey field is only returned once.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateApiKeyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/api-keys/{id}": {
      "delete": {
        "operationId": "deactivateApiKey",
        "tags": [
          "API Keys"
        ],
        "summary": "Deactivate an API key",
        "description": "Revokes an API key so it can no longer be used as a bearer token.",
        "security": [
          {
            "cookieAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "API key deactivated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeactivateApiKeyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/api-keys/{id}/rotate": {
      "post": {
        "operationId": "rotateApiKey",
        "tags": [
          "API Keys"
        ],
        "summary": "Rotate an API key",
        "description": "Revokes the selected API key and creates a replacement with the same name. The new raw API key is returned once.",
        "security": [
          {
            "cookieAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "201": {
            "description": "Rotated API key. The apiKey field is only returned once.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RotateApiKeyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/posts": {
      "get": {
        "operationId": "listPosts",
        "tags": [
          "Posts"
        ],
        "summary": "List posts",
        "description": "Lists drafts, scheduled, past, failed, or all posts for the authenticated user.",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "type",
            "schema": {
              "default": "all",
              "type": "string",
              "enum": [
                "all",
                "drafts",
                "scheduled",
                "past",
                "failed",
                "counts"
              ]
            }
          },
          {
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 25,
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Posts matching the requested filter, or counts when type=counts.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/PostsEnvelope"
                    },
                    {
                      "$ref": "#/components/schemas/PostCountsEnvelope"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createPost",
        "tags": [
          "Posts"
        ],
        "summary": "Create, publish, or schedule a post",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePostRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created post and optional immediate publishing results.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatePostResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/posts/{id}": {
      "get": {
        "operationId": "getPost",
        "tags": [
          "Posts"
        ],
        "summary": "Get a post",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "$ref": "#/components/schemas/__schema67"
            },
            "required": true,
            "description": "Post ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Post details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updatePost",
        "tags": [
          "Posts"
        ],
        "summary": "Update a scheduled post, draft, or retry a failed post",
        "description": "Retry a failed post using its existing ID to resume durable progress. Successful segments are reused; uncertain outcomes require explicit reconciliation. A retry cannot add accounts.",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "$ref": "#/components/schemas/__schema67"
            },
            "required": true,
            "description": "Post ID."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePostRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated post details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deletePost",
        "tags": [
          "Posts"
        ],
        "summary": "Delete a post",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "$ref": "#/components/schemas/__schema67"
            },
            "required": true,
            "description": "Post ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Post deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/posts/calendar": {
      "get": {
        "operationId": "listCalendarPosts",
        "tags": [
          "Posts"
        ],
        "summary": "List posts for a calendar range",
        "description": "Returns non-draft posts scheduled between from (inclusive) and to (exclusive) without pagination. The range must be at most 62 days.",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "from",
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Posts scheduled inside the requested range.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostsEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/posts/{id}/repost": {
      "post": {
        "operationId": "repostPost",
        "tags": [
          "Posts"
        ],
        "summary": "Repost a published post",
        "description": "Reposts the authenticated user's previously published SimplePost post on platforms that support native reposts.",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "description": "Post ID."
            },
            "required": true,
            "description": "Post ID."
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManualRepostPostRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Repost attempt results.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepostPostResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/posts/{id}/reconcile": {
      "get": {
        "operationId": "getPostPublishingProgress",
        "tags": [
          "Posts"
        ],
        "summary": "Inspect durable publishing progress",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "$ref": "#/components/schemas/__schema81"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Per-account and per-segment publishing records.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "checkpoints": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "accountId": {
                            "type": "string"
                          },
                          "operation": {
                            "type": "string"
                          },
                          "segment": {
                            "type": "number"
                          },
                          "state": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                          },
                          "result": {}
                        },
                        "required": [
                          "accountId",
                          "operation",
                          "segment",
                          "state",
                          "updatedAt",
                          "result"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "checkpoints"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "reconcilePostPublishingProgress",
        "tags": [
          "Posts"
        ],
        "summary": "Confirm an uncertain publishing outcome",
        "description": "After checking the platform and ensuring the old worker has stopped, explicitly confirm whether this operation published. Use updatedAt from GET. A published Bluesky result requires its URI and CID. This records the result; retry the existing post afterward to resume remaining segments.",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "$ref": "#/components/schemas/__schema81"
            },
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "accountId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "operation": {
                    "type": "string",
                    "enum": [
                      "post",
                      "repost"
                    ]
                  },
                  "segment": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "updatedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  "confirmed": {
                    "type": "boolean",
                    "const": true
                  },
                  "outcome": {
                    "type": "string",
                    "enum": [
                      "published",
                      "not_published"
                    ]
                  },
                  "platformPostId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "postUrl": {
                    "type": "string",
                    "maxLength": 4096,
                    "format": "uri"
                  },
                  "bluesky": {
                    "type": "object",
                    "properties": {
                      "uri": {
                        "type": "string",
                        "maxLength": 2048,
                        "pattern": "^at:\\/\\/.*"
                      },
                      "cid": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      }
                    },
                    "required": [
                      "uri",
                      "cid"
                    ]
                  }
                },
                "required": [
                  "accountId",
                  "operation",
                  "segment",
                  "updatedAt",
                  "confirmed",
                  "outcome"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Outcome recorded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/repost-settings": {
      "get": {
        "operationId": "getRepostSettings",
        "tags": [
          "Posts"
        ],
        "summary": "Get default repost settings",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Current default repost settings.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepostSettingsEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "updateRepostSettings",
        "tags": [
          "Posts"
        ],
        "summary": "Update default repost settings",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepostSettingsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated default repost settings.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepostSettingsEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/posting-slots": {
      "get": {
        "operationId": "getPostingSlots",
        "tags": [
          "Posts"
        ],
        "summary": "Get posting time slots",
        "description": "Lists the user's recurring weekly posting time slots (local wall-clock times).",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Current posting time slots.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingSlotsEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "updatePostingSlots",
        "tags": [
          "Posts"
        ],
        "summary": "Replace posting time slots",
        "description": "Replaces the full list of recurring weekly posting time slots.",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostingSlotsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated posting time slots.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingSlotsEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/upload": {
      "post": {
        "operationId": "uploadMedia",
        "tags": [
          "Upload"
        ],
        "summary": "Upload media through the Scheduler app",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Uploaded media metadata.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchedulerUploadResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/upload/presign": {
      "post": {
        "operationId": "createPresignedUploadUrl",
        "tags": [
          "Upload"
        ],
        "summary": "Create a presigned upload URL",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PresignUploadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Presigned upload URL and public media URL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PresignUploadResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/validation": {
      "post": {
        "operationId": "validatePost",
        "tags": [
          "Validation"
        ],
        "summary": "Validate a draft post against selected accounts",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Validation result grouped by account/platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user does not have access to this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webhooks": {
      "get": {
        "operationId": "listWebhooks",
        "tags": [
          "Webhooks"
        ],
        "summary": "List webhook endpoints",
        "description": "Lists webhook endpoints for the signed-in user. Signing secrets are never returned.",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Webhook endpoints for the signed-in user.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhooksEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createWebhook",
        "tags": [
          "Webhooks"
        ],
        "summary": "Create a webhook endpoint",
        "description": "Registers an endpoint notified on post lifecycle events (post.published, post.failed). Deliveries are signed with HMAC-SHA256: X-SimplePost-Signature is sha256=hex(hmac(secret, `${timestamp}.${body}`)) with the timestamp from X-SimplePost-Timestamp. The secret is returned only once.",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created webhook endpoint including its one-time secret.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateWebhookResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webhooks/{id}": {
      "patch": {
        "operationId": "updateWebhook",
        "tags": [
          "Webhooks"
        ],
        "summary": "Update a webhook endpoint",
        "description": "Updates the URL, subscribed events, or active state of a webhook endpoint.",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebhookRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook endpoint updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSuccessResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteWebhook",
        "tags": [
          "Webhooks"
        ],
        "summary": "Delete a webhook endpoint",
        "security": [
          {
            "cookieAuth": []
          },
          {
            "cliBearerAuth": []
          },
          {
            "mcpBearerAuth": []
          },
          {
            "apiBearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Webhook endpoint deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSuccessResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/mcp": {
      "get": {
        "operationId": "getMcpEndpoint",
        "tags": [
          "MCP"
        ],
        "summary": "Reject SSE MCP transport",
        "description": "The Scheduler MCP server is stateless and only supports Streamable HTTP POST requests.",
        "security": [
          {
            "mcpBearerAuth": []
          }
        ],
        "responses": {
          "401": {
            "description": "Missing or invalid MCP bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "405": {
            "description": "SSE transport is not supported.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "postMcpJsonRpc",
        "tags": [
          "MCP"
        ],
        "summary": "Handle MCP Streamable HTTP JSON-RPC",
        "security": [
          {
            "mcpBearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/McpJsonRpcRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP JSON-RPC response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpJsonRpcResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid MCP bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "MCP JSON-RPC error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpJsonRpcResponse"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteMcpSession",
        "tags": [
          "MCP"
        ],
        "summary": "Terminate MCP session",
        "description": "No-op in stateless mode.",
        "responses": {
          "204": {
            "description": "No content."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CliAuthorizeRequest": {
        "type": "object",
        "properties": {
          "state": {
            "$ref": "#/components/schemas/__schema1"
          },
          "redirectUri": {
            "$ref": "#/components/schemas/__schema2"
          }
        },
        "required": [
          "state",
          "redirectUri"
        ]
      },
      "CliTokenExchangeRequest": {
        "type": "object",
        "properties": {
          "code": {
            "$ref": "#/components/schemas/__schema3"
          },
          "redirect_uri": {
            "$ref": "#/components/schemas/__schema4"
          }
        },
        "required": [
          "code",
          "redirect_uri"
        ]
      },
      "SelectPendingConnectionRequest": {
        "type": "object",
        "properties": {
          "selectedAccountIds": {
            "$ref": "#/components/schemas/__schema6"
          }
        },
        "required": [
          "selectedAccountIds"
        ]
      },
      "ForemConnectRequest": {
        "type": "object",
        "properties": {
          "instanceUrl": {
            "$ref": "#/components/schemas/__schema8"
          },
          "apiKey": {
            "$ref": "#/components/schemas/__schema9"
          }
        },
        "required": [
          "instanceUrl",
          "apiKey"
        ]
      },
      "TelegramConnectRequest": {
        "type": "object",
        "properties": {
          "botToken": {
            "$ref": "#/components/schemas/__schema10"
          },
          "chatId": {
            "$ref": "#/components/schemas/__schema11"
          },
          "channelName": {
            "$ref": "#/components/schemas/__schema12"
          }
        },
        "required": [
          "botToken",
          "chatId"
        ]
      },
      "OAuthAuthorizeRequest": {
        "type": "object",
        "properties": {
          "client_id": {
            "$ref": "#/components/schemas/__schema13"
          },
          "redirect_uri": {
            "$ref": "#/components/schemas/__schema14"
          },
          "state": {
            "$ref": "#/components/schemas/__schema15"
          },
          "code_challenge": {
            "$ref": "#/components/schemas/__schema16"
          },
          "code_challenge_method": {
            "$ref": "#/components/schemas/__schema17"
          },
          "scope": {
            "$ref": "#/components/schemas/__schema18"
          },
          "resource": {
            "$ref": "#/components/schemas/__schema19"
          },
          "nonce": {
            "$ref": "#/components/schemas/__schema20"
          }
        },
        "required": [
          "client_id",
          "redirect_uri",
          "state",
          "code_challenge"
        ]
      },
      "OAuthRegisterRequest": {
        "type": "object",
        "properties": {
          "client_name": {
            "$ref": "#/components/schemas/__schema21"
          },
          "software_id": {
            "$ref": "#/components/schemas/__schema22"
          },
          "redirect_uris": {
            "$ref": "#/components/schemas/__schema23"
          },
          "token_endpoint_auth_method": {
            "$ref": "#/components/schemas/__schema25"
          },
          "scope": {
            "$ref": "#/components/schemas/__schema26"
          }
        },
        "required": [
          "redirect_uris"
        ]
      },
      "OAuthRevokeRequest": {
        "type": "object",
        "properties": {
          "token": {
            "$ref": "#/components/schemas/__schema27"
          },
          "token_type_hint": {
            "$ref": "#/components/schemas/__schema28"
          },
          "client_id": {
            "$ref": "#/components/schemas/__schema29"
          },
          "client_secret": {
            "$ref": "#/components/schemas/__schema30"
          }
        },
        "required": [
          "token"
        ]
      },
      "OAuthTokenRequest": {
        "type": "object",
        "properties": {
          "grant_type": {
            "$ref": "#/components/schemas/__schema31"
          },
          "code": {
            "$ref": "#/components/schemas/__schema32"
          },
          "client_id": {
            "$ref": "#/components/schemas/__schema33"
          },
          "client_secret": {
            "$ref": "#/components/schemas/__schema34"
          },
          "redirect_uri": {
            "$ref": "#/components/schemas/__schema35"
          },
          "code_verifier": {
            "$ref": "#/components/schemas/__schema36"
          },
          "resource": {
            "$ref": "#/components/schemas/__schema37"
          }
        },
        "required": [
          "grant_type",
          "code",
          "redirect_uri",
          "code_verifier"
        ]
      },
      "CreateApiKeyRequest": {
        "type": "object",
        "properties": {
          "name": {
            "$ref": "#/components/schemas/__schema38"
          }
        }
      },
      "CreatePostRequest": {
        "type": "object",
        "properties": {
          "imageFit": {
            "$ref": "#/components/schemas/__schema39"
          },
          "message": {
            "$ref": "#/components/schemas/__schema41"
          },
          "accountIds": {
            "$ref": "#/components/schemas/__schema42"
          },
          "postingMode": {
            "$ref": "#/components/schemas/__schema44"
          },
          "scheduledFor": {
            "$ref": "#/components/schemas/__schema46"
          },
          "accountOptions": {
            "$ref": "#/components/schemas/__schema47"
          },
          "accountOverrides": {
            "$ref": "#/components/schemas/__schema53"
          },
          "repost": {
            "$ref": "#/components/schemas/__schema58"
          },
          "media": {
            "$ref": "#/components/schemas/__schema62"
          },
          "thread": {
            "$ref": "#/components/schemas/__schema63"
          },
          "idempotencyKey": {
            "$ref": "#/components/schemas/__schema64"
          },
          "quotePostId": {
            "$ref": "#/components/schemas/__schema66"
          }
        },
        "required": [
          "accountIds"
        ]
      },
      "UpdatePostRequest": {
        "type": "object",
        "properties": {
          "expectedUpdatedAt": {
            "$ref": "#/components/schemas/__schema68"
          },
          "imageFit": {
            "$ref": "#/components/schemas/__schema69"
          },
          "message": {
            "$ref": "#/components/schemas/__schema70"
          },
          "accountIds": {
            "$ref": "#/components/schemas/__schema42"
          },
          "postingMode": {
            "$ref": "#/components/schemas/__schema71"
          },
          "scheduledFor": {
            "$ref": "#/components/schemas/__schema72"
          },
          "accountOptions": {
            "$ref": "#/components/schemas/__schema73"
          },
          "accountOverrides": {
            "$ref": "#/components/schemas/__schema74"
          },
          "repost": {
            "$ref": "#/components/schemas/__schema75"
          },
          "media": {
            "$ref": "#/components/schemas/__schema76"
          },
          "thread": {
            "$ref": "#/components/schemas/__schema77"
          },
          "quotePostId": {
            "$ref": "#/components/schemas/__schema78"
          }
        },
        "required": [
          "accountIds"
        ]
      },
      "ManualRepostPostRequest": {
        "type": "object",
        "properties": {
          "accountIds": {
            "$ref": "#/components/schemas/__schema79"
          }
        }
      },
      "RepostSettingsRequest": {
        "$ref": "#/components/schemas/__schema59"
      },
      "PostingSlotsRequest": {
        "type": "object",
        "properties": {
          "slots": {
            "$ref": "#/components/schemas/__schema82"
          }
        },
        "required": [
          "slots"
        ]
      },
      "PresignUploadRequest": {
        "type": "object",
        "properties": {
          "filename": {
            "$ref": "#/components/schemas/__schema85"
          },
          "contentType": {
            "$ref": "#/components/schemas/__schema86"
          },
          "size": {
            "$ref": "#/components/schemas/__schema87"
          },
          "isThumbnail": {
            "$ref": "#/components/schemas/__schema88"
          }
        },
        "required": [
          "filename",
          "contentType",
          "size"
        ]
      },
      "ValidationRequest": {
        "type": "object",
        "properties": {
          "imageFit": {
            "$ref": "#/components/schemas/__schema89"
          },
          "message": {
            "$ref": "#/components/schemas/__schema90"
          },
          "media": {
            "$ref": "#/components/schemas/__schema91"
          },
          "accountIds": {
            "$ref": "#/components/schemas/__schema42"
          },
          "accountOptions": {
            "$ref": "#/components/schemas/__schema92"
          },
          "accountOverrides": {
            "$ref": "#/components/schemas/__schema93"
          },
          "thread": {
            "$ref": "#/components/schemas/__schema94"
          }
        },
        "required": [
          "accountIds"
        ]
      },
      "CreateWebhookRequest": {
        "type": "object",
        "properties": {
          "url": {
            "$ref": "#/components/schemas/__schema95"
          },
          "events": {
            "$ref": "#/components/schemas/__schema96"
          }
        },
        "required": [
          "url"
        ]
      },
      "WebhookEvent": {
        "type": "string",
        "enum": [
          "post.published",
          "post.failed"
        ]
      },
      "UpdateWebhookRequest": {
        "type": "object",
        "properties": {
          "url": {
            "$ref": "#/components/schemas/__schema97"
          },
          "events": {
            "$ref": "#/components/schemas/__schema98"
          },
          "active": {
            "$ref": "#/components/schemas/__schema99"
          }
        }
      },
      "McpJsonRpcRequest": {
        "type": "object",
        "propertyNames": {
          "$ref": "#/components/schemas/__schema100"
        },
        "additionalProperties": {
          "$ref": "#/components/schemas/__schema101"
        },
        "description": "MCP Streamable HTTP JSON-RPC request."
      },
      "__schema0": {
        "type": "string",
        "description": "Better Auth route segment.",
        "example": "session"
      },
      "__schema1": {
        "type": "string"
      },
      "__schema2": {
        "type": "string",
        "format": "uri"
      },
      "__schema3": {
        "type": "string",
        "minLength": 1
      },
      "__schema4": {
        "type": "string",
        "format": "uri"
      },
      "__schema5": {
        "type": "string",
        "description": "Pending OAuth connection ID."
      },
      "__schema6": {
        "minItems": 1,
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/__schema7"
        }
      },
      "__schema7": {
        "type": "string"
      },
      "__schema8": {
        "type": "string",
        "format": "uri"
      },
      "__schema9": {
        "type": "string"
      },
      "__schema10": {
        "type": "string"
      },
      "__schema11": {
        "type": "string"
      },
      "__schema12": {
        "type": "string"
      },
      "__schema13": {
        "type": "string"
      },
      "__schema14": {
        "type": "string",
        "format": "uri"
      },
      "__schema15": {
        "type": "string"
      },
      "__schema16": {
        "type": "string"
      },
      "__schema17": {
        "type": "string",
        "const": "S256"
      },
      "__schema18": {
        "type": "string"
      },
      "__schema19": {
        "type": "string"
      },
      "__schema20": {
        "type": "string",
        "maxLength": 512
      },
      "__schema21": {
        "type": "string"
      },
      "__schema22": {
        "type": "string"
      },
      "__schema23": {
        "minItems": 1,
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/__schema24"
        }
      },
      "__schema24": {
        "type": "string",
        "format": "uri"
      },
      "__schema25": {
        "type": "string",
        "enum": [
          "client_secret_post",
          "none"
        ]
      },
      "__schema26": {
        "type": "string"
      },
      "__schema27": {
        "type": "string"
      },
      "__schema28": {
        "type": "string",
        "const": "access_token"
      },
      "__schema29": {
        "type": "string"
      },
      "__schema30": {
        "type": "string"
      },
      "__schema31": {
        "type": "string",
        "const": "authorization_code"
      },
      "__schema32": {
        "type": "string"
      },
      "__schema33": {
        "type": "string"
      },
      "__schema34": {
        "type": "string"
      },
      "__schema35": {
        "type": "string",
        "format": "uri"
      },
      "__schema36": {
        "type": "string"
      },
      "__schema37": {
        "type": "string"
      },
      "__schema38": {
        "type": "string",
        "minLength": 1,
        "maxLength": 80
      },
      "__schema39": {
        "$ref": "#/components/schemas/__schema40"
      },
      "__schema40": {
        "type": "string",
        "enum": [
          "crop",
          "blur"
        ],
        "description": "Opt in to fitting incompatible images to all selected platforms. crop trims edges; blur preserves the full image over a blurred background. Converts to JPEG and compresses only when needed. Animated images that need fitting become still images. Omit to keep originals. If the user already asked to fit images, apply their chosen method without asking again; default to blur when no method was specified."
      },
      "__schema41": {
        "default": "",
        "type": "string"
      },
      "__schema42": {
        "minItems": 1,
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/__schema43"
        }
      },
      "__schema43": {
        "type": "string"
      },
      "__schema44": {
        "default": "schedule",
        "$ref": "#/components/schemas/__schema45"
      },
      "__schema45": {
        "type": "string",
        "enum": [
          "now",
          "schedule",
          "draft"
        ]
      },
      "__schema46": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      },
      "__schema47": {
        "$ref": "#/components/schemas/__schema48"
      },
      "__schema48": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {
          "type": "object",
          "properties": {
            "replyToId": {
              "type": "string"
            },
            "tags": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "categoryId": {
              "type": "string"
            },
            "playlistId": {
              "description": "Temporarily unavailable for YouTube. Omit this field; add videos to playlists manually in YouTube Studio after publishing.",
              "$ref": "#/components/schemas/__schema49"
            },
            "thumbnailUrl": {
              "type": "string",
              "format": "uri"
            },
            "selfDeclaredMadeForKids": {
              "type": "boolean"
            },
            "publishAt": {
              "type": "string"
            },
            "privacyStatus": {
              "type": "string",
              "enum": [
                "public",
                "private",
                "unlisted"
              ]
            },
            "publishMode": {
              "description": "TikTok: public directly posts; draft uploads to the TikTok inbox for manual editing and publishing. Separate from SimplePost postingMode=draft.",
              "$ref": "#/components/schemas/__schema50"
            },
            "autoAddMusic": {
              "description": "TikTok photo Direct Post only: add TikTok-recommended music. MCP defaults to true for photos; false disables it.",
              "$ref": "#/components/schemas/__schema51"
            },
            "photoCoverIndex": {
              "description": "TikTok photo cover index, starting at 0.",
              "$ref": "#/components/schemas/__schema52"
            },
            "privacyLevel": {
              "type": "string",
              "enum": [
                "PUBLIC_TO_EVERYONE",
                "MUTUAL_FOLLOW_FRIENDS",
                "FOLLOWER_OF_CREATOR",
                "SELF_ONLY"
              ]
            },
            "visibility": {
              "type": "string",
              "enum": [
                "public",
                "friends",
                "private",
                "PUBLIC",
                "CONNECTIONS"
              ]
            },
            "allowComment": {
              "type": "boolean"
            },
            "allowDuet": {
              "type": "boolean"
            },
            "allowStitch": {
              "type": "boolean"
            },
            "commercialContentDisclosure": {
              "type": "boolean"
            },
            "discloseYourBrand": {
              "type": "boolean"
            },
            "discloseBrandedContent": {
              "type": "boolean"
            },
            "parseMode": {
              "type": "string",
              "enum": [
                "HTML",
                "Markdown",
                "MarkdownV2"
              ]
            },
            "boardId": {
              "type": "string"
            },
            "title": {
              "type": "string"
            },
            "description": {
              "type": "string"
            },
            "link": {
              "type": "string",
              "format": "uri"
            },
            "altText": {
              "type": "string"
            },
            "published": {
              "type": "boolean"
            },
            "series": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "canonicalUrl": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "organizationId": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "additionalProperties": {}
        }
      },
      "__schema49": {
        "type": "string"
      },
      "__schema50": {
        "type": "string",
        "enum": [
          "draft",
          "public"
        ]
      },
      "__schema51": {
        "type": "boolean"
      },
      "__schema52": {
        "type": "integer",
        "minimum": 0,
        "maximum": 34
      },
      "__schema53": {
        "$ref": "#/components/schemas/__schema54"
      },
      "__schema54": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {
          "type": "object",
          "properties": {
            "message": {
              "type": "string"
            },
            "media": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/__schema55"
              }
            },
            "thread": {
              "$ref": "#/components/schemas/__schema56"
            }
          }
        }
      },
      "__schema55": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "thumbnailUrl": {
            "type": "string",
            "format": "uri"
          },
          "type": {
            "type": "string",
            "enum": [
              "image",
              "video"
            ]
          },
          "contentType": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "size": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "durationSec": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "id",
          "url",
          "type",
          "filename",
          "size"
        ]
      },
      "__schema56": {
        "maxItems": 24,
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/__schema57"
        }
      },
      "__schema57": {
        "type": "object",
        "properties": {
          "message": {
            "default": "",
            "type": "string"
          },
          "media": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__schema55"
            }
          }
        }
      },
      "__schema58": {
        "$ref": "#/components/schemas/__schema59"
      },
      "__schema59": {
        "type": "object",
        "properties": {
          "enabled": {
            "$ref": "#/components/schemas/__schema60"
          },
          "delayHours": {
            "$ref": "#/components/schemas/__schema61"
          }
        }
      },
      "__schema60": {
        "default": false,
        "type": "boolean"
      },
      "__schema61": {
        "default": 12,
        "type": "integer",
        "exclusiveMinimum": 0,
        "maximum": 720
      },
      "__schema62": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/__schema55"
        }
      },
      "__schema63": {
        "$ref": "#/components/schemas/__schema56"
      },
      "__schema64": {
        "description": "Optional client-supplied key making creation idempotent: retrying a request with the same key returns the originally created post instead of creating (and publishing) a duplicate.",
        "$ref": "#/components/schemas/__schema65"
      },
      "__schema65": {
        "type": "string",
        "minLength": 1,
        "maxLength": 255
      },
      "__schema66": {
        "type": "string",
        "minLength": 1
      },
      "__schema67": {
        "type": "string",
        "description": "Post ID."
      },
      "__schema68": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      },
      "__schema69": {
        "$ref": "#/components/schemas/__schema40"
      },
      "__schema70": {
        "default": "",
        "type": "string"
      },
      "__schema71": {
        "$ref": "#/components/schemas/__schema45"
      },
      "__schema72": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      },
      "__schema73": {
        "$ref": "#/components/schemas/__schema48"
      },
      "__schema74": {
        "$ref": "#/components/schemas/__schema54"
      },
      "__schema75": {
        "$ref": "#/components/schemas/__schema59"
      },
      "__schema76": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/__schema55"
        }
      },
      "__schema77": {
        "$ref": "#/components/schemas/__schema56"
      },
      "__schema78": {
        "anyOf": [
          {
            "type": "string",
            "minLength": 1
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema79": {
        "minItems": 1,
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/__schema80"
        }
      },
      "__schema80": {
        "type": "string"
      },
      "__schema81": {
        "type": "string"
      },
      "__schema82": {
        "maxItems": 24,
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/__schema83"
        }
      },
      "__schema83": {
        "type": "object",
        "properties": {
          "time": {
            "type": "string",
            "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
          },
          "weekdays": {
            "maxItems": 7,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__schema84"
            }
          }
        },
        "required": [
          "time",
          "weekdays"
        ]
      },
      "__schema84": {
        "type": "integer",
        "minimum": 0,
        "maximum": 6
      },
      "__schema85": {
        "type": "string",
        "minLength": 1
      },
      "__schema86": {
        "type": "string",
        "minLength": 1
      },
      "__schema87": {
        "type": "integer",
        "exclusiveMinimum": 0,
        "maximum": 524288000
      },
      "__schema88": {
        "type": "boolean"
      },
      "__schema89": {
        "$ref": "#/components/schemas/__schema40"
      },
      "__schema90": {
        "default": "",
        "type": "string"
      },
      "__schema91": {
        "default": [],
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/__schema55"
        }
      },
      "__schema92": {
        "$ref": "#/components/schemas/__schema48"
      },
      "__schema93": {
        "$ref": "#/components/schemas/__schema54"
      },
      "__schema94": {
        "$ref": "#/components/schemas/__schema56"
      },
      "__schema95": {
        "type": "string",
        "minLength": 1
      },
      "__schema96": {
        "minItems": 1,
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/WebhookEvent"
        }
      },
      "__schema97": {
        "type": "string",
        "minLength": 1
      },
      "__schema98": {
        "minItems": 1,
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/WebhookEvent"
        }
      },
      "__schema99": {
        "type": "boolean"
      },
      "__schema100": {
        "type": "string"
      },
      "__schema101": {},
      "ApiError": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/__schema102"
          },
          "code": {
            "$ref": "#/components/schemas/__schema103"
          },
          "details": {
            "$ref": "#/components/schemas/__schema104"
          },
          "message": {
            "$ref": "#/components/schemas/__schema106"
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "OpenApiDocument": {
        "type": "object",
        "propertyNames": {
          "$ref": "#/components/schemas/__schema107"
        },
        "additionalProperties": {
          "$ref": "#/components/schemas/__schema105"
        },
        "description": "Generated OpenAPI 3.1 document."
      },
      "BetterAuthResponse": {
        "type": "object",
        "propertyNames": {
          "$ref": "#/components/schemas/__schema108"
        },
        "additionalProperties": {
          "$ref": "#/components/schemas/__schema105"
        },
        "description": "Response generated by Better Auth for the requested auth sub-route."
      },
      "RedirectUrlResponse": {
        "type": "object",
        "properties": {
          "redirectUrl": {
            "$ref": "#/components/schemas/__schema109"
          }
        },
        "required": [
          "redirectUrl"
        ],
        "additionalProperties": false
      },
      "CliTokenResponse": {
        "type": "object",
        "properties": {
          "access_token": {
            "$ref": "#/components/schemas/__schema110"
          },
          "token_type": {
            "$ref": "#/components/schemas/__schema111"
          },
          "expires_in": {
            "$ref": "#/components/schemas/__schema112"
          },
          "user": {
            "$ref": "#/components/schemas/__schema113"
          }
        },
        "required": [
          "access_token",
          "token_type",
          "expires_in",
          "user"
        ],
        "additionalProperties": false
      },
      "OAuthError": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/__schema114"
          },
          "error_description": {
            "$ref": "#/components/schemas/__schema115"
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "PendingConnectionResponse": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/__schema116"
          },
          "platform": {
            "$ref": "#/components/schemas/__schema117"
          },
          "accounts": {
            "$ref": "#/components/schemas/__schema118"
          }
        },
        "required": [
          "id",
          "platform",
          "accounts"
        ],
        "additionalProperties": false
      },
      "PendingConnectionAccount": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/__schema119"
          },
          "name": {
            "$ref": "#/components/schemas/__schema120"
          },
          "username": {
            "$ref": "#/components/schemas/__schema121"
          },
          "profilePicture": {
            "$ref": "#/components/schemas/__schema122"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "SelectPendingConnectionResponse": {
        "type": "object",
        "properties": {
          "success": {
            "$ref": "#/components/schemas/__schema123"
          },
          "count": {
            "$ref": "#/components/schemas/__schema124"
          }
        },
        "required": [
          "success",
          "count"
        ],
        "additionalProperties": false
      },
      "ForemConnectResponse": {
        "type": "object",
        "properties": {
          "success": {
            "$ref": "#/components/schemas/__schema125"
          }
        },
        "required": [
          "success"
        ],
        "additionalProperties": false
      },
      "TelegramConnectResponse": {
        "type": "object",
        "properties": {
          "success": {
            "$ref": "#/components/schemas/__schema126"
          },
          "account": {
            "$ref": "#/components/schemas/__schema127"
          }
        },
        "required": [
          "success",
          "account"
        ],
        "additionalProperties": false
      },
      "DispatchScheduledPostsResponse": {
        "type": "object",
        "properties": {
          "startedAt": {
            "$ref": "#/components/schemas/__schema128"
          },
          "finishedAt": {
            "$ref": "#/components/schemas/__schema129"
          },
          "processedPosts": {
            "$ref": "#/components/schemas/__schema130"
          },
          "publishedPosts": {
            "$ref": "#/components/schemas/__schema131"
          },
          "failedPosts": {
            "$ref": "#/components/schemas/__schema132"
          },
          "blockedPosts": {
            "$ref": "#/components/schemas/__schema133"
          },
          "skippedPosts": {
            "$ref": "#/components/schemas/__schema134"
          },
          "staleRecoveredPosts": {
            "$ref": "#/components/schemas/__schema135"
          },
          "credentialRefresh": {
            "$ref": "#/components/schemas/__schema136"
          },
          "processedReposts": {
            "$ref": "#/components/schemas/__schema137"
          },
          "completedReposts": {
            "$ref": "#/components/schemas/__schema138"
          },
          "failedReposts": {
            "$ref": "#/components/schemas/__schema139"
          },
          "blockedReposts": {
            "$ref": "#/components/schemas/__schema140"
          },
          "skippedReposts": {
            "$ref": "#/components/schemas/__schema141"
          },
          "staleRecoveredReposts": {
            "$ref": "#/components/schemas/__schema142"
          },
          "platformSummary": {
            "$ref": "#/components/schemas/__schema143"
          },
          "postResults": {
            "$ref": "#/components/schemas/__schema144"
          },
          "repostResults": {
            "$ref": "#/components/schemas/__schema145"
          }
        },
        "required": [
          "startedAt",
          "finishedAt",
          "processedPosts",
          "publishedPosts",
          "failedPosts",
          "blockedPosts",
          "skippedPosts",
          "staleRecoveredPosts",
          "credentialRefresh",
          "processedReposts",
          "completedReposts",
          "failedReposts",
          "blockedReposts",
          "skippedReposts",
          "staleRecoveredReposts",
          "platformSummary",
          "postResults",
          "repostResults"
        ],
        "additionalProperties": false
      },
      "OAuthRegisterResponse": {
        "type": "object",
        "properties": {
          "client_id": {
            "$ref": "#/components/schemas/__schema146"
          },
          "client_secret": {
            "$ref": "#/components/schemas/__schema147"
          },
          "client_name": {
            "$ref": "#/components/schemas/__schema148"
          },
          "redirect_uris": {
            "$ref": "#/components/schemas/__schema149"
          },
          "grant_types": {
            "$ref": "#/components/schemas/__schema150"
          },
          "response_types": {
            "$ref": "#/components/schemas/__schema151"
          },
          "token_endpoint_auth_method": {
            "$ref": "#/components/schemas/__schema152"
          },
          "scope": {
            "$ref": "#/components/schemas/__schema153"
          }
        },
        "required": [
          "client_id",
          "client_name",
          "redirect_uris",
          "grant_types",
          "response_types",
          "token_endpoint_auth_method",
          "scope"
        ],
        "additionalProperties": false
      },
      "OAuthTokenResponse": {
        "type": "object",
        "properties": {
          "access_token": {
            "$ref": "#/components/schemas/__schema154"
          },
          "token_type": {
            "$ref": "#/components/schemas/__schema155"
          },
          "expires_in": {
            "$ref": "#/components/schemas/__schema156"
          },
          "scope": {
            "$ref": "#/components/schemas/__schema157"
          },
          "id_token": {
            "$ref": "#/components/schemas/__schema158"
          }
        },
        "required": [
          "access_token",
          "token_type",
          "expires_in",
          "scope"
        ],
        "additionalProperties": false
      },
      "OidcUserInfo": {
        "type": "object",
        "properties": {
          "sub": {
            "$ref": "#/components/schemas/__schema159"
          },
          "email": {
            "$ref": "#/components/schemas/__schema160"
          },
          "email_verified": {
            "$ref": "#/components/schemas/__schema161"
          },
          "name": {
            "$ref": "#/components/schemas/__schema162"
          }
        },
        "required": [
          "sub",
          "email",
          "email_verified"
        ],
        "additionalProperties": false
      },
      "AccountsEnvelope": {
        "type": "object",
        "properties": {
          "accounts": {
            "$ref": "#/components/schemas/__schema163"
          }
        },
        "required": [
          "accounts"
        ],
        "additionalProperties": false
      },
      "ConnectedAccount": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/__schema164"
          },
          "userId": {
            "$ref": "#/components/schemas/__schema165"
          },
          "platform": {
            "$ref": "#/components/schemas/__schema166"
          },
          "platformAccountId": {
            "$ref": "#/components/schemas/__schema167"
          },
          "tokenType": {
            "$ref": "#/components/schemas/__schema168"
          },
          "expiresAt": {
            "$ref": "#/components/schemas/__schema169"
          },
          "scope": {
            "$ref": "#/components/schemas/__schema170"
          },
          "username": {
            "$ref": "#/components/schemas/__schema171"
          },
          "displayName": {
            "$ref": "#/components/schemas/__schema172"
          },
          "email": {
            "$ref": "#/components/schemas/__schema173"
          },
          "profilePicture": {
            "$ref": "#/components/schemas/__schema174"
          },
          "createdAt": {
            "$ref": "#/components/schemas/__schema175"
          },
          "updatedAt": {
            "$ref": "#/components/schemas/__schema176"
          },
          "credentialStatus": {
            "$ref": "#/components/schemas/__schema177"
          }
        },
        "required": [
          "id",
          "userId",
          "platform",
          "platformAccountId",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "DisconnectAccountResponse": {
        "type": "object",
        "properties": {
          "success": {
            "$ref": "#/components/schemas/__schema178"
          },
          "message": {
            "$ref": "#/components/schemas/__schema179"
          }
        },
        "required": [
          "success",
          "message"
        ],
        "additionalProperties": false
      },
      "PinterestBoardsEnvelope": {
        "type": "object",
        "properties": {
          "boards": {
            "$ref": "#/components/schemas/__schema180"
          }
        },
        "required": [
          "boards"
        ],
        "additionalProperties": false
      },
      "PinterestBoard": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/__schema181"
          },
          "name": {
            "$ref": "#/components/schemas/__schema182"
          },
          "description": {
            "$ref": "#/components/schemas/__schema183"
          },
          "pinCount": {
            "$ref": "#/components/schemas/__schema184"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "pinCount"
        ],
        "additionalProperties": false
      },
      "TikTokCreatorInfoEnvelope": {
        "type": "object",
        "properties": {
          "creatorInfo": {
            "$ref": "#/components/schemas/TikTokCreatorInfo"
          }
        },
        "required": [
          "creatorInfo"
        ],
        "additionalProperties": false
      },
      "TikTokCreatorInfo": {
        "type": "object",
        "properties": {
          "creatorAvatarUrl": {
            "$ref": "#/components/schemas/__schema185"
          },
          "creatorUsername": {
            "$ref": "#/components/schemas/__schema186"
          },
          "creatorNickname": {
            "$ref": "#/components/schemas/__schema187"
          },
          "privacyLevelOptions": {
            "$ref": "#/components/schemas/__schema188"
          },
          "commentDisabled": {
            "$ref": "#/components/schemas/__schema189"
          },
          "duetDisabled": {
            "$ref": "#/components/schemas/__schema190"
          },
          "stitchDisabled": {
            "$ref": "#/components/schemas/__schema191"
          },
          "maxVideoPostDurationSec": {
            "$ref": "#/components/schemas/__schema192"
          },
          "canPost": {
            "$ref": "#/components/schemas/__schema193"
          },
          "blockReason": {
            "$ref": "#/components/schemas/__schema194"
          },
          "errorCode": {
            "$ref": "#/components/schemas/__schema195"
          },
          "fetchedAt": {
            "$ref": "#/components/schemas/__schema196"
          }
        },
        "required": [
          "creatorAvatarUrl",
          "creatorUsername",
          "creatorNickname",
          "privacyLevelOptions",
          "commentDisabled",
          "duetDisabled",
          "stitchDisabled",
          "maxVideoPostDurationSec",
          "canPost",
          "blockReason",
          "errorCode",
          "fetchedAt"
        ],
        "additionalProperties": false
      },
      "ApiKeysEnvelope": {
        "type": "object",
        "properties": {
          "keys": {
            "$ref": "#/components/schemas/__schema197"
          }
        },
        "required": [
          "keys"
        ],
        "additionalProperties": false
      },
      "ApiKey": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/__schema198"
          },
          "name": {
            "$ref": "#/components/schemas/__schema199"
          },
          "keyPrefix": {
            "$ref": "#/components/schemas/__schema200"
          },
          "active": {
            "$ref": "#/components/schemas/__schema201"
          },
          "lastUsedAt": {
            "$ref": "#/components/schemas/__schema202"
          },
          "revokedAt": {
            "$ref": "#/components/schemas/__schema203"
          },
          "createdAt": {
            "$ref": "#/components/schemas/__schema204"
          },
          "updatedAt": {
            "$ref": "#/components/schemas/__schema205"
          }
        },
        "required": [
          "id",
          "name",
          "keyPrefix",
          "active",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "CreateApiKeyResponse": {
        "type": "object",
        "properties": {
          "apiKey": {
            "$ref": "#/components/schemas/__schema206"
          },
          "key": {
            "$ref": "#/components/schemas/ApiKey"
          }
        },
        "required": [
          "apiKey",
          "key"
        ],
        "additionalProperties": false
      },
      "DeactivateApiKeyResponse": {
        "type": "object",
        "properties": {
          "success": {
            "$ref": "#/components/schemas/__schema207"
          },
          "key": {
            "$ref": "#/components/schemas/ApiKey"
          }
        },
        "required": [
          "success",
          "key"
        ],
        "additionalProperties": false
      },
      "RotateApiKeyResponse": {
        "type": "object",
        "properties": {
          "apiKey": {
            "$ref": "#/components/schemas/__schema208"
          },
          "key": {
            "$ref": "#/components/schemas/ApiKey"
          },
          "rotatedFromId": {
            "$ref": "#/components/schemas/__schema209"
          }
        },
        "required": [
          "apiKey",
          "key",
          "rotatedFromId"
        ],
        "additionalProperties": false
      },
      "PostsEnvelope": {
        "type": "object",
        "properties": {
          "posts": {
            "$ref": "#/components/schemas/__schema210"
          },
          "pagination": {
            "$ref": "#/components/schemas/__schema259"
          }
        },
        "required": [
          "posts"
        ],
        "additionalProperties": false
      },
      "Post": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/__schema211"
          },
          "message": {
            "$ref": "#/components/schemas/__schema212"
          },
          "accountIds": {
            "$ref": "#/components/schemas/__schema213"
          },
          "media": {
            "$ref": "#/components/schemas/__schema214"
          },
          "scheduledFor": {
            "$ref": "#/components/schemas/__schema224"
          },
          "status": {
            "$ref": "#/components/schemas/__schema225"
          },
          "errorMessage": {
            "$ref": "#/components/schemas/__schema226"
          },
          "errorDetails": {
            "$ref": "#/components/schemas/__schema227"
          },
          "createdAt": {
            "$ref": "#/components/schemas/__schema228"
          },
          "publishedAt": {
            "$ref": "#/components/schemas/__schema229"
          },
          "accountOptions": {
            "$ref": "#/components/schemas/__schema230"
          },
          "accountOverrides": {
            "$ref": "#/components/schemas/__schema236"
          },
          "repostEnabled": {
            "$ref": "#/components/schemas/__schema240"
          },
          "repostDelayHours": {
            "$ref": "#/components/schemas/__schema241"
          },
          "repostDueAt": {
            "$ref": "#/components/schemas/__schema242"
          },
          "repostStatus": {
            "$ref": "#/components/schemas/__schema243"
          },
          "repostedAt": {
            "$ref": "#/components/schemas/__schema244"
          },
          "repostResults": {
            "$ref": "#/components/schemas/__schema245"
          },
          "repostErrorMessage": {
            "$ref": "#/components/schemas/__schema246"
          },
          "repostErrorDetails": {
            "$ref": "#/components/schemas/__schema247"
          },
          "thread": {
            "$ref": "#/components/schemas/__schema248"
          },
          "threadResults": {
            "$ref": "#/components/schemas/__schema249"
          },
          "accountResults": {
            "$ref": "#/components/schemas/__schema257"
          },
          "quotePostId": {
            "$ref": "#/components/schemas/__schema258"
          }
        },
        "required": [
          "id",
          "message",
          "accountIds",
          "media",
          "scheduledFor",
          "status",
          "createdAt"
        ],
        "additionalProperties": false
      },
      "MediaFile": {
        "$ref": "#/components/schemas/__schema223"
      },
      "ThreadSegmentResult": {
        "type": "object",
        "properties": {
          "index": {
            "$ref": "#/components/schemas/__schema250"
          },
          "success": {
            "$ref": "#/components/schemas/__schema251"
          },
          "postId": {
            "$ref": "#/components/schemas/__schema252"
          },
          "postUrl": {
            "$ref": "#/components/schemas/__schema253"
          },
          "error": {
            "$ref": "#/components/schemas/__schema254"
          },
          "message": {
            "$ref": "#/components/schemas/__schema255"
          },
          "details": {
            "$ref": "#/components/schemas/__schema256"
          }
        },
        "required": [
          "index",
          "success"
        ],
        "additionalProperties": false
      },
      "Pagination": {
        "type": "object",
        "properties": {
          "page": {
            "$ref": "#/components/schemas/__schema260"
          },
          "limit": {
            "$ref": "#/components/schemas/__schema261"
          },
          "total": {
            "$ref": "#/components/schemas/__schema262"
          },
          "totalPages": {
            "$ref": "#/components/schemas/__schema263"
          },
          "hasNextPage": {
            "$ref": "#/components/schemas/__schema264"
          },
          "hasPreviousPage": {
            "$ref": "#/components/schemas/__schema265"
          }
        },
        "required": [
          "page",
          "limit",
          "total",
          "totalPages",
          "hasNextPage",
          "hasPreviousPage"
        ],
        "additionalProperties": false
      },
      "PostCountsEnvelope": {
        "type": "object",
        "properties": {
          "counts": {
            "$ref": "#/components/schemas/__schema266"
          },
          "latestFailedAt": {
            "$ref": "#/components/schemas/__schema267"
          }
        },
        "required": [
          "counts",
          "latestFailedAt"
        ],
        "additionalProperties": false
      },
      "CreatePostResponse": {
        "type": "object",
        "properties": {
          "post": {
            "$ref": "#/components/schemas/Post"
          },
          "postingResults": {
            "$ref": "#/components/schemas/__schema268"
          },
          "summary": {
            "$ref": "#/components/schemas/__schema279"
          },
          "warnings": {
            "$ref": "#/components/schemas/__schema283"
          }
        },
        "required": [
          "post"
        ],
        "additionalProperties": false
      },
      "PostingResult": {
        "type": "object",
        "properties": {
          "accountId": {
            "$ref": "#/components/schemas/__schema269"
          },
          "platform": {
            "$ref": "#/components/schemas/__schema270"
          },
          "success": {
            "$ref": "#/components/schemas/__schema271"
          },
          "error": {
            "$ref": "#/components/schemas/__schema272"
          },
          "message": {
            "$ref": "#/components/schemas/__schema273"
          },
          "postId": {
            "$ref": "#/components/schemas/__schema274"
          },
          "postUrl": {
            "$ref": "#/components/schemas/__schema275"
          },
          "details": {
            "$ref": "#/components/schemas/__schema276"
          },
          "platformData": {
            "$ref": "#/components/schemas/__schema277"
          },
          "threadResults": {
            "$ref": "#/components/schemas/__schema278"
          }
        },
        "required": [
          "accountId",
          "platform",
          "success"
        ],
        "additionalProperties": false
      },
      "PostingSummary": {
        "type": "object",
        "properties": {
          "successCount": {
            "$ref": "#/components/schemas/__schema280"
          },
          "failureCount": {
            "$ref": "#/components/schemas/__schema281"
          },
          "overallSuccess": {
            "$ref": "#/components/schemas/__schema282"
          }
        },
        "required": [
          "successCount",
          "failureCount",
          "overallSuccess"
        ],
        "additionalProperties": false
      },
      "ScheduleWarning": {
        "type": "object",
        "properties": {
          "code": {
            "$ref": "#/components/schemas/__schema284"
          },
          "message": {
            "$ref": "#/components/schemas/__schema285"
          },
          "trialExpiresAt": {
            "$ref": "#/components/schemas/__schema286"
          }
        },
        "required": [
          "code",
          "message",
          "trialExpiresAt"
        ],
        "additionalProperties": false
      },
      "PostEnvelope": {
        "type": "object",
        "properties": {
          "post": {
            "$ref": "#/components/schemas/Post"
          },
          "warnings": {
            "$ref": "#/components/schemas/__schema287"
          }
        },
        "required": [
          "post"
        ],
        "additionalProperties": false
      },
      "Success": {
        "type": "object",
        "properties": {
          "success": {
            "$ref": "#/components/schemas/__schema288"
          }
        },
        "required": [
          "success"
        ],
        "additionalProperties": false
      },
      "RepostPostResponse": {
        "type": "object",
        "properties": {
          "post": {
            "$ref": "#/components/schemas/__schema289"
          },
          "repostingResults": {
            "$ref": "#/components/schemas/__schema290"
          },
          "summary": {
            "$ref": "#/components/schemas/PostingSummary"
          }
        },
        "required": [
          "post",
          "repostingResults",
          "summary"
        ],
        "additionalProperties": false
      },
      "RepostSettingsEnvelope": {
        "type": "object",
        "properties": {
          "settings": {
            "$ref": "#/components/schemas/__schema291"
          }
        },
        "required": [
          "settings"
        ],
        "additionalProperties": false
      },
      "PostingSlotsEnvelope": {
        "type": "object",
        "properties": {
          "slots": {
            "$ref": "#/components/schemas/__schema292"
          }
        },
        "required": [
          "slots"
        ],
        "additionalProperties": false
      },
      "PostingSlot": {
        "type": "object",
        "properties": {
          "time": {
            "$ref": "#/components/schemas/__schema293"
          },
          "weekdays": {
            "$ref": "#/components/schemas/__schema294"
          }
        },
        "required": [
          "time",
          "weekdays"
        ],
        "additionalProperties": false
      },
      "SchedulerUploadResponse": {
        "type": "object",
        "properties": {
          "url": {
            "$ref": "#/components/schemas/__schema296"
          },
          "key": {
            "$ref": "#/components/schemas/__schema297"
          },
          "filename": {
            "$ref": "#/components/schemas/__schema298"
          },
          "size": {
            "$ref": "#/components/schemas/__schema299"
          },
          "type": {
            "$ref": "#/components/schemas/__schema300"
          }
        },
        "required": [
          "url",
          "key",
          "filename",
          "size",
          "type"
        ],
        "additionalProperties": false
      },
      "PresignUploadResponse": {
        "type": "object",
        "properties": {
          "uploadUrl": {
            "$ref": "#/components/schemas/__schema301"
          },
          "publicUrl": {
            "$ref": "#/components/schemas/__schema302"
          },
          "key": {
            "$ref": "#/components/schemas/__schema303"
          },
          "expiresIn": {
            "$ref": "#/components/schemas/__schema304"
          }
        },
        "required": [
          "uploadUrl",
          "publicUrl",
          "key",
          "expiresIn"
        ],
        "additionalProperties": false
      },
      "ValidationResponse": {
        "type": "object",
        "properties": {
          "fittedContent": {
            "$ref": "#/components/schemas/__schema305"
          },
          "platforms": {
            "$ref": "#/components/schemas/__schema307"
          },
          "results": {
            "$ref": "#/components/schemas/__schema309"
          },
          "summary": {
            "$ref": "#/components/schemas/__schema328"
          },
          "accounts": {
            "$ref": "#/components/schemas/__schema329"
          }
        },
        "required": [
          "platforms",
          "results",
          "summary",
          "accounts"
        ],
        "additionalProperties": false
      },
      "PlatformValidationResponse": {
        "type": "object",
        "properties": {
          "accountId": {
            "$ref": "#/components/schemas/__schema310"
          },
          "platform": {
            "$ref": "#/components/schemas/__schema308"
          },
          "rules": {
            "$ref": "#/components/schemas/PlatformValidationRules"
          },
          "errors": {
            "$ref": "#/components/schemas/__schema316"
          },
          "warnings": {
            "$ref": "#/components/schemas/__schema325"
          },
          "isValid": {
            "$ref": "#/components/schemas/__schema326"
          },
          "usesCommonContent": {
            "$ref": "#/components/schemas/__schema327"
          }
        },
        "required": [
          "accountId",
          "platform",
          "rules",
          "errors",
          "warnings",
          "isValid",
          "usesCommonContent"
        ],
        "additionalProperties": false
      },
      "PlatformValidationRules": {
        "type": "object",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/__schema311"
          },
          "media": {
            "$ref": "#/components/schemas/__schema312"
          },
          "video": {
            "$ref": "#/components/schemas/__schema313"
          },
          "image": {
            "$ref": "#/components/schemas/__schema314"
          },
          "notes": {
            "$ref": "#/components/schemas/__schema315"
          }
        },
        "additionalProperties": false
      },
      "ValidationIssue": {
        "type": "object",
        "properties": {
          "platform": {
            "$ref": "#/components/schemas/__schema317"
          },
          "severity": {
            "$ref": "#/components/schemas/__schema318"
          },
          "code": {
            "$ref": "#/components/schemas/__schema319"
          },
          "message": {
            "$ref": "#/components/schemas/__schema320"
          },
          "field": {
            "$ref": "#/components/schemas/__schema321"
          },
          "limit": {
            "$ref": "#/components/schemas/__schema322"
          },
          "actual": {
            "$ref": "#/components/schemas/__schema323"
          },
          "meta": {
            "$ref": "#/components/schemas/__schema324"
          }
        },
        "required": [
          "platform",
          "severity",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "WebhooksEnvelope": {
        "type": "object",
        "properties": {
          "webhooks": {
            "$ref": "#/components/schemas/__schema330"
          }
        },
        "required": [
          "webhooks"
        ],
        "additionalProperties": false
      },
      "WebhookEndpoint": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/__schema331"
          },
          "url": {
            "$ref": "#/components/schemas/__schema332"
          },
          "events": {
            "$ref": "#/components/schemas/__schema333"
          },
          "active": {
            "$ref": "#/components/schemas/__schema334"
          },
          "lastSuccessAt": {
            "$ref": "#/components/schemas/__schema335"
          },
          "lastFailureAt": {
            "$ref": "#/components/schemas/__schema336"
          },
          "lastError": {
            "$ref": "#/components/schemas/__schema337"
          },
          "createdAt": {
            "$ref": "#/components/schemas/__schema338"
          }
        },
        "required": [
          "id",
          "url",
          "events",
          "active",
          "lastSuccessAt",
          "lastFailureAt",
          "lastError",
          "createdAt"
        ],
        "additionalProperties": false
      },
      "CreateWebhookResponse": {
        "type": "object",
        "properties": {
          "webhook": {
            "$ref": "#/components/schemas/__schema339"
          }
        },
        "required": [
          "webhook"
        ],
        "additionalProperties": false
      },
      "WebhookSuccessResponse": {
        "type": "object",
        "properties": {
          "success": {
            "$ref": "#/components/schemas/__schema340"
          }
        },
        "required": [
          "success"
        ],
        "additionalProperties": false
      },
      "McpJsonRpcResponse": {
        "type": "object",
        "propertyNames": {
          "$ref": "#/components/schemas/__schema341"
        },
        "additionalProperties": {
          "$ref": "#/components/schemas/__schema105"
        },
        "description": "MCP Streamable HTTP JSON-RPC response."
      },
      "__schema102": {
        "type": "string"
      },
      "__schema103": {
        "type": "string"
      },
      "__schema104": {
        "$ref": "#/components/schemas/__schema105"
      },
      "__schema105": {},
      "__schema106": {
        "type": "string"
      },
      "__schema107": {
        "type": "string"
      },
      "__schema108": {
        "type": "string"
      },
      "__schema109": {
        "type": "string",
        "format": "uri"
      },
      "__schema110": {
        "type": "string"
      },
      "__schema111": {
        "type": "string",
        "const": "Bearer"
      },
      "__schema112": {
        "type": "integer",
        "exclusiveMinimum": 0,
        "maximum": 9007199254740991
      },
      "__schema113": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email",
            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "email",
          "name"
        ],
        "additionalProperties": false
      },
      "__schema114": {
        "type": "string"
      },
      "__schema115": {
        "type": "string"
      },
      "__schema116": {
        "type": "string"
      },
      "__schema117": {
        "type": "string"
      },
      "__schema118": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/PendingConnectionAccount"
        }
      },
      "__schema119": {
        "type": "string"
      },
      "__schema120": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema121": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema122": {
        "anyOf": [
          {
            "type": "string",
            "format": "uri"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema123": {
        "type": "boolean"
      },
      "__schema124": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema125": {
        "type": "boolean"
      },
      "__schema126": {
        "type": "boolean"
      },
      "__schema127": {
        "type": "object",
        "properties": {
          "platform": {
            "type": "string",
            "const": "telegram"
          },
          "chatId": {
            "type": "string"
          },
          "botUsername": {
            "type": "string"
          },
          "chatTitle": {
            "type": "string"
          }
        },
        "required": [
          "platform",
          "chatId",
          "botUsername",
          "chatTitle"
        ],
        "additionalProperties": false
      },
      "__schema128": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      },
      "__schema129": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      },
      "__schema130": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema131": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema132": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema133": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema134": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema135": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema136": {
        "type": "object",
        "properties": {
          "checked": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "refreshed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "failed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "skipped": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "checked",
          "refreshed",
          "failed",
          "skipped"
        ],
        "additionalProperties": false
      },
      "__schema137": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema138": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema139": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema140": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema141": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema142": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema143": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "platform": {
              "type": "string"
            },
            "sent": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "availableSlots": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "queued": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "rateLimit": {
              "type": "object",
              "properties": {
                "maxPosts": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "intervalMinutes": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "maxPosts",
                "intervalMinutes"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "platform",
            "sent",
            "availableSlots",
            "queued",
            "rateLimit"
          ],
          "additionalProperties": false
        }
      },
      "__schema144": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "postId": {
              "type": "string"
            },
            "success": {
              "type": "boolean"
            },
            "status": {
              "type": "string",
              "enum": [
                "published",
                "failed",
                "scheduled",
                "blocked"
              ]
            },
            "errorMessage": {
              "type": "string"
            }
          },
          "required": [
            "postId",
            "success",
            "status"
          ],
          "additionalProperties": false
        }
      },
      "__schema145": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "postId": {
              "type": "string"
            },
            "success": {
              "type": "boolean"
            },
            "status": {
              "type": "string",
              "enum": [
                "published",
                "failed",
                "scheduled",
                "blocked"
              ]
            },
            "errorMessage": {
              "type": "string"
            }
          },
          "required": [
            "postId",
            "success",
            "status"
          ],
          "additionalProperties": false
        }
      },
      "__schema146": {
        "type": "string"
      },
      "__schema147": {
        "type": "string"
      },
      "__schema148": {
        "type": "string"
      },
      "__schema149": {
        "type": "array",
        "items": {
          "type": "string",
          "format": "uri"
        }
      },
      "__schema150": {
        "type": "array",
        "items": {
          "type": "string",
          "const": "authorization_code"
        }
      },
      "__schema151": {
        "type": "array",
        "items": {
          "type": "string",
          "const": "code"
        }
      },
      "__schema152": {
        "type": "string",
        "enum": [
          "client_secret_post",
          "none"
        ]
      },
      "__schema153": {
        "type": "string"
      },
      "__schema154": {
        "type": "string"
      },
      "__schema155": {
        "type": "string",
        "const": "Bearer"
      },
      "__schema156": {
        "type": "integer",
        "exclusiveMinimum": 0,
        "maximum": 9007199254740991
      },
      "__schema157": {
        "type": "string"
      },
      "__schema158": {
        "type": "string"
      },
      "__schema159": {
        "type": "string"
      },
      "__schema160": {
        "type": "string",
        "format": "email",
        "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
      },
      "__schema161": {
        "type": "boolean"
      },
      "__schema162": {
        "type": "string"
      },
      "__schema163": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ConnectedAccount"
        }
      },
      "__schema164": {
        "type": "string"
      },
      "__schema165": {
        "type": "string"
      },
      "__schema166": {
        "type": "string"
      },
      "__schema167": {
        "type": "string"
      },
      "__schema168": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema169": {
        "anyOf": [
          {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema170": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema171": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema172": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema173": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema174": {
        "anyOf": [
          {
            "type": "string",
            "format": "uri"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema175": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      },
      "__schema176": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      },
      "__schema177": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "none",
              "refresh",
              "reconnect"
            ]
          },
          "canRefresh": {
            "type": "boolean"
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "label": {
            "type": "string"
          },
          "lastRefreshAttemptAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastRefreshError": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "affectedQueuedPosts": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "message": {
            "type": "string"
          },
          "refreshTokenExpiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "severity": {
            "type": "string",
            "enum": [
              "ok",
              "warning",
              "error"
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "healthy",
              "non_expiring",
              "refreshing_soon",
              "refresh_unavailable",
              "reauth_required",
              "unknown"
            ]
          }
        },
        "required": [
          "action",
          "canRefresh",
          "expiresAt",
          "label",
          "lastRefreshAttemptAt",
          "lastRefreshError",
          "message",
          "refreshTokenExpiresAt",
          "severity",
          "state"
        ],
        "additionalProperties": false
      },
      "__schema178": {
        "type": "boolean"
      },
      "__schema179": {
        "type": "string"
      },
      "__schema180": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/PinterestBoard"
        }
      },
      "__schema181": {
        "type": "string"
      },
      "__schema182": {
        "type": "string"
      },
      "__schema183": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema184": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema185": {
        "anyOf": [
          {
            "type": "string",
            "format": "uri"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema186": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema187": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema188": {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "PUBLIC_TO_EVERYONE",
            "MUTUAL_FOLLOW_FRIENDS",
            "FOLLOWER_OF_CREATOR",
            "SELF_ONLY"
          ]
        }
      },
      "__schema189": {
        "type": "boolean"
      },
      "__schema190": {
        "type": "boolean"
      },
      "__schema191": {
        "type": "boolean"
      },
      "__schema192": {
        "anyOf": [
          {
            "type": "number",
            "minimum": 0
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema193": {
        "type": "boolean"
      },
      "__schema194": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema195": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema196": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      },
      "__schema197": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ApiKey"
        }
      },
      "__schema198": {
        "type": "string"
      },
      "__schema199": {
        "type": "string"
      },
      "__schema200": {
        "type": "string"
      },
      "__schema201": {
        "type": "boolean"
      },
      "__schema202": {
        "anyOf": [
          {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema203": {
        "anyOf": [
          {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema204": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      },
      "__schema205": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      },
      "__schema206": {
        "type": "string"
      },
      "__schema207": {
        "type": "boolean"
      },
      "__schema208": {
        "type": "string"
      },
      "__schema209": {
        "type": "string"
      },
      "__schema210": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/Post"
        }
      },
      "__schema211": {
        "type": "string"
      },
      "__schema212": {
        "type": "string"
      },
      "__schema213": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "__schema214": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/MediaFile"
        }
      },
      "__schema215": {
        "type": "string"
      },
      "__schema216": {
        "type": "string",
        "format": "uri"
      },
      "__schema217": {
        "type": "string",
        "format": "uri"
      },
      "__schema218": {
        "type": "string",
        "enum": [
          "image",
          "video"
        ]
      },
      "__schema219": {
        "type": "string"
      },
      "__schema220": {
        "type": "string"
      },
      "__schema221": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema222": {
        "type": "number",
        "minimum": 0
      },
      "__schema223": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/__schema215"
          },
          "url": {
            "$ref": "#/components/schemas/__schema216"
          },
          "thumbnailUrl": {
            "$ref": "#/components/schemas/__schema217"
          },
          "type": {
            "$ref": "#/components/schemas/__schema218"
          },
          "contentType": {
            "$ref": "#/components/schemas/__schema219"
          },
          "filename": {
            "$ref": "#/components/schemas/__schema220"
          },
          "size": {
            "$ref": "#/components/schemas/__schema221"
          },
          "durationSec": {
            "$ref": "#/components/schemas/__schema222"
          }
        },
        "required": [
          "id",
          "url",
          "type",
          "filename",
          "size"
        ],
        "additionalProperties": false
      },
      "__schema224": {
        "anyOf": [
          {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema225": {
        "type": "string",
        "enum": [
          "draft",
          "scheduled",
          "pending",
          "published",
          "failed"
        ]
      },
      "__schema226": {
        "type": "string"
      },
      "__schema227": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {
          "$ref": "#/components/schemas/__schema105"
        }
      },
      "__schema228": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      },
      "__schema229": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      },
      "__schema230": {
        "$ref": "#/components/schemas/__schema231"
      },
      "__schema231": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {
          "type": "object",
          "properties": {
            "replyToId": {
              "type": "string"
            },
            "tags": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "categoryId": {
              "type": "string"
            },
            "playlistId": {
              "description": "Temporarily unavailable for YouTube. Omit this field; add videos to playlists manually in YouTube Studio after publishing.",
              "$ref": "#/components/schemas/__schema232"
            },
            "thumbnailUrl": {
              "type": "string",
              "format": "uri"
            },
            "selfDeclaredMadeForKids": {
              "type": "boolean"
            },
            "publishAt": {
              "type": "string"
            },
            "privacyStatus": {
              "type": "string",
              "enum": [
                "public",
                "private",
                "unlisted"
              ]
            },
            "publishMode": {
              "description": "TikTok: public directly posts; draft uploads to the TikTok inbox for manual editing and publishing. Separate from SimplePost postingMode=draft.",
              "$ref": "#/components/schemas/__schema233"
            },
            "autoAddMusic": {
              "description": "TikTok photo Direct Post only: add TikTok-recommended music. MCP defaults to true for photos; false disables it.",
              "$ref": "#/components/schemas/__schema234"
            },
            "photoCoverIndex": {
              "description": "TikTok photo cover index, starting at 0.",
              "$ref": "#/components/schemas/__schema235"
            },
            "privacyLevel": {
              "type": "string",
              "enum": [
                "PUBLIC_TO_EVERYONE",
                "MUTUAL_FOLLOW_FRIENDS",
                "FOLLOWER_OF_CREATOR",
                "SELF_ONLY"
              ]
            },
            "visibility": {
              "type": "string",
              "enum": [
                "public",
                "friends",
                "private",
                "PUBLIC",
                "CONNECTIONS"
              ]
            },
            "allowComment": {
              "type": "boolean"
            },
            "allowDuet": {
              "type": "boolean"
            },
            "allowStitch": {
              "type": "boolean"
            },
            "commercialContentDisclosure": {
              "type": "boolean"
            },
            "discloseYourBrand": {
              "type": "boolean"
            },
            "discloseBrandedContent": {
              "type": "boolean"
            },
            "parseMode": {
              "type": "string",
              "enum": [
                "HTML",
                "Markdown",
                "MarkdownV2"
              ]
            },
            "boardId": {
              "type": "string"
            },
            "title": {
              "type": "string"
            },
            "description": {
              "type": "string"
            },
            "link": {
              "type": "string",
              "format": "uri"
            },
            "altText": {
              "type": "string"
            },
            "published": {
              "type": "boolean"
            },
            "series": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "canonicalUrl": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "organizationId": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "additionalProperties": {}
        }
      },
      "__schema232": {
        "type": "string"
      },
      "__schema233": {
        "type": "string",
        "enum": [
          "draft",
          "public"
        ]
      },
      "__schema234": {
        "type": "boolean"
      },
      "__schema235": {
        "type": "integer",
        "minimum": 0,
        "maximum": 34
      },
      "__schema236": {
        "$ref": "#/components/schemas/__schema237"
      },
      "__schema237": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {
          "type": "object",
          "properties": {
            "message": {
              "type": "string"
            },
            "media": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/__schema223"
              }
            },
            "thread": {
              "$ref": "#/components/schemas/__schema238"
            }
          },
          "additionalProperties": false
        }
      },
      "__schema238": {
        "maxItems": 24,
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/__schema239"
        }
      },
      "__schema239": {
        "type": "object",
        "properties": {
          "message": {
            "default": "",
            "type": "string"
          },
          "media": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__schema223"
            }
          }
        },
        "required": [
          "message"
        ],
        "additionalProperties": false
      },
      "__schema240": {
        "type": "boolean"
      },
      "__schema241": {
        "type": "integer",
        "exclusiveMinimum": 0,
        "maximum": 9007199254740991
      },
      "__schema242": {
        "anyOf": [
          {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema243": {
        "type": "string",
        "enum": [
          "not_applicable",
          "scheduled",
          "pending",
          "completed",
          "failed"
        ]
      },
      "__schema244": {
        "anyOf": [
          {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema245": {
        "anyOf": [
          {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "$ref": "#/components/schemas/__schema105"
            }
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema246": {
        "type": "string"
      },
      "__schema247": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {
          "$ref": "#/components/schemas/__schema105"
        }
      },
      "__schema248": {
        "$ref": "#/components/schemas/__schema238"
      },
      "__schema249": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ThreadSegmentResult"
          }
        }
      },
      "__schema250": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema251": {
        "type": "boolean"
      },
      "__schema252": {
        "type": "string"
      },
      "__schema253": {
        "type": "string",
        "format": "uri"
      },
      "__schema254": {
        "type": "string"
      },
      "__schema255": {
        "type": "string"
      },
      "__schema256": {
        "$ref": "#/components/schemas/__schema105"
      },
      "__schema257": {
        "anyOf": [
          {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "$ref": "#/components/schemas/__schema105"
            }
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema258": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema259": {
        "$ref": "#/components/schemas/Pagination"
      },
      "__schema260": {
        "type": "integer",
        "exclusiveMinimum": 0,
        "maximum": 9007199254740991
      },
      "__schema261": {
        "type": "integer",
        "exclusiveMinimum": 0,
        "maximum": 9007199254740991
      },
      "__schema262": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema263": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema264": {
        "type": "boolean"
      },
      "__schema265": {
        "type": "boolean"
      },
      "__schema266": {
        "type": "object",
        "properties": {
          "drafts": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "failed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "past": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "scheduled": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "drafts",
          "failed",
          "past",
          "scheduled"
        ],
        "additionalProperties": false
      },
      "__schema267": {
        "anyOf": [
          {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema268": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/PostingResult"
        }
      },
      "__schema269": {
        "type": "string"
      },
      "__schema270": {
        "type": "string"
      },
      "__schema271": {
        "type": "boolean"
      },
      "__schema272": {
        "type": "string"
      },
      "__schema273": {
        "type": "string"
      },
      "__schema274": {
        "type": "string"
      },
      "__schema275": {
        "type": "string",
        "format": "uri"
      },
      "__schema276": {
        "$ref": "#/components/schemas/__schema105"
      },
      "__schema277": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {
          "$ref": "#/components/schemas/__schema105"
        }
      },
      "__schema278": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ThreadSegmentResult"
        }
      },
      "__schema279": {
        "$ref": "#/components/schemas/PostingSummary"
      },
      "__schema280": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema281": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema282": {
        "type": "boolean"
      },
      "__schema283": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ScheduleWarning"
        }
      },
      "__schema284": {
        "type": "string",
        "const": "TRIAL_EXPIRES_BEFORE_PUBLISH"
      },
      "__schema285": {
        "type": "string"
      },
      "__schema286": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      },
      "__schema287": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ScheduleWarning"
        }
      },
      "__schema288": {
        "type": "boolean"
      },
      "__schema289": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Post"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema290": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/PostingResult"
        }
      },
      "__schema291": {
        "type": "object",
        "properties": {
          "enabled": {
            "default": false,
            "type": "boolean"
          },
          "delayHours": {
            "default": 12,
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 720
          }
        },
        "required": [
          "enabled",
          "delayHours"
        ],
        "additionalProperties": false
      },
      "__schema292": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/PostingSlot"
        }
      },
      "__schema293": {
        "type": "string",
        "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
      },
      "__schema294": {
        "maxItems": 7,
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/__schema295"
        }
      },
      "__schema295": {
        "type": "integer",
        "minimum": 0,
        "maximum": 6
      },
      "__schema296": {
        "type": "string",
        "format": "uri"
      },
      "__schema297": {
        "type": "string"
      },
      "__schema298": {
        "type": "string"
      },
      "__schema299": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "__schema300": {
        "type": "string"
      },
      "__schema301": {
        "type": "string",
        "format": "uri"
      },
      "__schema302": {
        "type": "string",
        "format": "uri"
      },
      "__schema303": {
        "type": "string"
      },
      "__schema304": {
        "type": "integer",
        "exclusiveMinimum": 0,
        "maximum": 9007199254740991
      },
      "__schema305": {
        "description": "Present when imageFit is requested. Use these reviewed media URLs and overrides when creating the post.",
        "$ref": "#/components/schemas/__schema306"
      },
      "__schema306": {
        "type": "object",
        "properties": {
          "media": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__schema223"
            }
          },
          "accountOverrides": {
            "$ref": "#/components/schemas/__schema237"
          },
          "accountOptions": {
            "$ref": "#/components/schemas/__schema231"
          },
          "thread": {
            "$ref": "#/components/schemas/__schema238"
          }
        },
        "required": [
          "media"
        ],
        "additionalProperties": false
      },
      "__schema307": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/__schema308"
        }
      },
      "__schema308": {
        "type": "string",
        "enum": [
          "x",
          "youtube",
          "telegram",
          "facebook",
          "instagram",
          "tiktok",
          "bluesky",
          "threads",
          "linkedin",
          "pinterest",
          "forem"
        ]
      },
      "__schema309": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/PlatformValidationResponse"
        }
      },
      "__schema310": {
        "type": "string"
      },
      "__schema311": {
        "type": "object",
        "properties": {
          "maxLength": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "standardMaxLength": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "maxCaptionLength": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "maxCaptionLengthByMediaType": {
            "type": "object",
            "properties": {
              "image": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "video": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "__schema312": {
        "type": "object",
        "properties": {
          "requiresMedia": {
            "type": "boolean"
          },
          "minCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "maxCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "maxImages": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "maxVideos": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "allowsMixed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "__schema313": {
        "type": "object",
        "properties": {
          "requiresVideo": {
            "type": "boolean"
          },
          "maxSizeBytes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "maxDurationSec": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "maxTitleLength": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "maxDescriptionLength": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "additionalProperties": false
      },
      "__schema314": {
        "type": "object",
        "properties": {
          "maxSizeBytes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "additionalProperties": false
      },
      "__schema315": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "__schema316": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ValidationIssue"
        }
      },
      "__schema317": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/__schema308"
          },
          {
            "type": "string",
            "const": "common"
          }
        ]
      },
      "__schema318": {
        "type": "string",
        "enum": [
          "error",
          "warning"
        ]
      },
      "__schema319": {
        "type": "string"
      },
      "__schema320": {
        "type": "string"
      },
      "__schema321": {
        "type": "string"
      },
      "__schema322": {
        "type": "number"
      },
      "__schema323": {
        "type": "number"
      },
      "__schema324": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {
          "$ref": "#/components/schemas/__schema105"
        }
      },
      "__schema325": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ValidationIssue"
        }
      },
      "__schema326": {
        "type": "boolean"
      },
      "__schema327": {
        "type": "boolean"
      },
      "__schema328": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationIssue"
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationIssue"
            }
          },
          "isValid": {
            "type": "boolean"
          }
        },
        "required": [
          "errors",
          "warnings",
          "isValid"
        ],
        "additionalProperties": false
      },
      "__schema329": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ConnectedAccount"
        }
      },
      "__schema330": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/WebhookEndpoint"
        }
      },
      "__schema331": {
        "type": "string"
      },
      "__schema332": {
        "type": "string"
      },
      "__schema333": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/WebhookEvent"
        }
      },
      "__schema334": {
        "type": "boolean"
      },
      "__schema335": {
        "anyOf": [
          {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema336": {
        "anyOf": [
          {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema337": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "__schema338": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      },
      "__schema339": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/__schema331"
          },
          "url": {
            "$ref": "#/components/schemas/__schema332"
          },
          "events": {
            "$ref": "#/components/schemas/__schema333"
          },
          "active": {
            "$ref": "#/components/schemas/__schema334"
          },
          "lastSuccessAt": {
            "$ref": "#/components/schemas/__schema335"
          },
          "lastFailureAt": {
            "$ref": "#/components/schemas/__schema336"
          },
          "lastError": {
            "$ref": "#/components/schemas/__schema337"
          },
          "createdAt": {
            "$ref": "#/components/schemas/__schema338"
          },
          "secret": {
            "type": "string",
            "description": "HMAC-SHA256 signing secret. Returned only once - store it immediately."
          }
        },
        "required": [
          "id",
          "url",
          "events",
          "active",
          "lastSuccessAt",
          "lastFailureAt",
          "lastError",
          "createdAt",
          "secret"
        ],
        "additionalProperties": false
      },
      "__schema340": {
        "type": "boolean"
      },
      "__schema341": {
        "type": "string"
      }
    },
    "securitySchemes": {
      "cookieAuth": {
        "type": "apiKey",
        "in": "cookie",
        "name": "session",
        "description": "Browser session cookie managed by Better Auth."
      },
      "cliBearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "sp_cli",
        "description": "CLI bearer token issued by the Scheduler app."
      },
      "mcpBearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "sp_mcp",
        "description": "MCP bearer token issued through the Scheduler OAuth flow."
      },
      "apiBearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "sp_api",
        "description": "User-managed API key issued by the Scheduler app."
      },
      "scheduledDispatchBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Shared dispatch secret configured as SCHEDULED_POST_DISPATCH_SECRET."
      }
    }
  }
}
