{
  "openapi": "3.1.0",
  "info": {
    "title": "TrendingTech Daily Intelligence API",
    "version": "1.0.0",
    "summary": "Keyless & OAuth-capable REST API for bilingual AI, semiconductor, developer, and tech market intelligence.",
    "description": "Programmatic REST interface for TrendingTech Daily (`https://www.trendingtechdaily.com`).\n\n### Versioning Policy\nBreaking changes increment the URL major path (`/api/v1/*`). Non-breaking date revisions are advertised in the `API-Version: 2026-11-30` response header with a minimum 12-month deprecation window.\n\n### Zero-Friction Onboarding & Sandbox\nAll public read endpoints and the `/api/sandbox/v1` dry-run environment work immediately without an API key or signup. Optional OAuth 2.0 Bearer tokens with granular scopes (`articles:read`, `ai_tools:read`, `watchlist:read`, `newsletter:write`) are supported for delegated agent workflows.",
    "contact": {
      "name": "TrendingTech Daily Editorial & Engineering",
      "url": "https://www.trendingtechdaily.com/contact",
      "email": "info@trendingtechdaily.com"
    },
    "license": {
      "name": "TrendingTech Daily Terms of Service",
      "url": "https://www.trendingtechdaily.com/terms"
    }
  },
  "servers": [
    {
      "url": "https://www.trendingtechdaily.com/api/v1",
      "description": "Production API v1 (keyless read access + live newsletter subscriptions)"
    },
    {
      "url": "https://www.trendingtechdaily.com/api/sandbox/v1",
      "description": "Sandbox API v1 (safe dry-run environment — write endpoints never mutate live records)"
    }
  ],
  "tags": [
    {
      "name": "System",
      "description": "Service health, API version, and environment checks."
    },
    {
      "name": "Articles",
      "description": "Published English and Hebrew technology news and engineering dispatches."
    },
    {
      "name": "AI Tools",
      "description": "Curated 100+ developer AI tools, MCP connectors, skills, and open-source repos."
    },
    {
      "name": "Markets",
      "description": "Semiconductor, hyperscaler, AI, and digital asset watchlist tickers."
    },
    {
      "name": "Newsletter",
      "description": "Idempotent weekly intelligence newsletter subscription endpoint."
    },
    {
      "name": "Briefings",
      "description": "Asynchronous custom topic briefing compilation jobs."
    }
  ],
  "security": [
    {},
    {
      "oauth2": [
        "articles:read",
        "ai_tools:read",
        "watchlist:read"
      ]
    }
  ],
  "paths": {
    "/status": {
      "get": {
        "operationId": "getApiStatus",
        "tags": [
          "System"
        ],
        "summary": "Check API operational health and version",
        "description": "Returns service status, active API version date, environment mode (production or sandbox), and links to MCP and OpenAPI resources.",
        "responses": {
          "200": {
            "description": "API status payload.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Maximum requests permitted in the current 60-second window.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "RateLimit-Remaining": {
                "description": "Remaining requests available in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusResponse"
                }
              }
            }
          }
        }
      }
    },
    "/articles": {
      "get": {
        "operationId": "listArticles",
        "tags": [
          "Articles"
        ],
        "summary": "List or search published technology dispatches",
        "description": "Returns published dispatches ordered newest-first with cursor-based pagination, optional category filtering, keyword search, and English/Hebrew language selection.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Keyword filter matched against headlines, summaries, and tags.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Editorial vertical slug (e.g. ai, chips, computing, dev, cybersecurity, markets).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "description": "Edition language code ('en' or 'he').",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "he"
              ],
              "default": "en"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size (1-25, default 10).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 10
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque pagination cursor from pagination.nextCursor.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated list of published dispatches.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Maximum requests permitted in the current 60-second window.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "RateLimit-Remaining": {
                "description": "Remaining requests available in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedArticlesResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/articles/{slug}": {
      "get": {
        "operationId": "getArticleBySlug",
        "tags": [
          "Articles"
        ],
        "summary": "Read full article plain-text body and primary sources by slug",
        "description": "Fetches the complete article body stripped of HTML, summary, author metadata, tags, primary source citations, and Markdown twin URL.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Canonical article URL slug.",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 180
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Full article detail payload.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Maximum requests permitted in the current 60-second window.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "RateLimit-Remaining": {
                "description": "Remaining requests available in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleDetailResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/ai-tools": {
      "get": {
        "operationId": "listAiTools",
        "tags": [
          "AI Tools"
        ],
        "summary": "Search and paginate the curated AI Tools Directory",
        "description": "Lists evaluated developer AI tools, Claude skills, MCP connectors, and open-source AI repositories with cursor pagination.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Keyword search across tool names, tags, and summaries.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Filter by tool classification.",
            "schema": {
              "type": "string",
              "enum": [
                "claude-skill",
                "mcp-connector",
                "github-repo",
                "llm-product",
                "agent-framework"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size (1-50, default 12).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 12
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque pagination cursor from pagination.nextCursor.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated AI tools list.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Maximum requests permitted in the current 60-second window.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "RateLimit-Remaining": {
                "description": "Remaining requests available in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedAiToolsResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    },
    "/watchlist": {
      "get": {
        "operationId": "getMarketWatchlist",
        "tags": [
          "Markets"
        ],
        "summary": "Retrieve tracked semiconductor, cloud, and AI equity tickers",
        "description": "Returns the public market tickers tracked on the TrendingTech Daily stock watchlist, optionally filtered by sector.",
        "parameters": [
          {
            "name": "sector",
            "in": "query",
            "required": false,
            "description": "Optional sector filter.",
            "schema": {
              "type": "string",
              "enum": [
                "semiconductors",
                "cloud",
                "ai",
                "computing",
                "crypto"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Market watchlist tickers.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Maximum requests permitted in the current 60-second window.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "RateLimit-Remaining": {
                "description": "Remaining requests available in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WatchlistResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    },
    "/newsletter/subscribe": {
      "post": {
        "operationId": "subscribeNewsletter",
        "tags": [
          "Newsletter"
        ],
        "summary": "Subscribe an email address to the weekly intelligence newsletter",
        "description": "Registers a subscriber for the Friday English or Hebrew briefing. Supports safe retries via the Idempotency-Key header and dry-run testing on the /api/sandbox/v1 server.",
        "security": [
          {},
          {
            "oauth2": [
              "newsletter:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Unique client-generated key (UUID) ensuring safe, side-effect-free request retries.",
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "Subscriber email address."
                  },
                  "language": {
                    "type": "string",
                    "enum": [
                      "en",
                      "he"
                    ],
                    "default": "en",
                    "description": "Edition language ('en' or 'he')."
                  }
                },
                "required": [
                  "email"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Subscription confirmation.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Maximum requests permitted in the current 60-second window.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "RateLimit-Remaining": {
                "description": "Remaining requests available in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NewsletterSubscribeResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/briefings": {
      "post": {
        "operationId": "createBriefingJob",
        "tags": [
          "Briefings"
        ],
        "summary": "Start an asynchronous custom topic briefing job",
        "description": "Initiates an asynchronous topic digest job and returns HTTP 202 Accepted with a Location header and statusUrl for polling GET /briefings/{jobId}.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Optional idempotency key for deduplicating job creation.",
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "topic": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 100,
                    "description": "Technical topic or keyword to compile into a briefing."
                  }
                },
                "required": [
                  "topic"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Briefing job accepted for asynchronous processing.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Maximum requests permitted in the current 60-second window.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "RateLimit-Remaining": {
                "description": "Remaining requests available in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "Location": {
                "description": "Polling URL for the created briefing job.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "Retry-After": {
                "description": "Recommended seconds before polling statusUrl.",
                "schema": {
                  "type": "integer",
                  "example": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BriefingJobAccepted"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    },
    "/briefings/{jobId}": {
      "get": {
        "operationId": "getBriefingJob",
        "tags": [
          "Briefings"
        ],
        "summary": "Poll asynchronous briefing job status and result",
        "description": "Returns current status ('processing' or 'completed') and compiled briefing dispatches once finished.",
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "description": "Job identifier returned by POST /briefings.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Briefing job status and compiled payload.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Maximum requests permitted in the current 60-second window.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "RateLimit-Remaining": {
                "description": "Remaining requests available in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BriefingJobStatus"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "description": "Optional OAuth 2.0 Authorization Code + PKCE (S256) with granular read/write scopes. Public read endpoints also permit anonymous keyless requests.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://www.trendingtechdaily.com/api/oauth/authorize",
            "tokenUrl": "https://www.trendingtechdaily.com/api/oauth/token",
            "scopes": {
              "articles:read": "Read published English and Hebrew technology dispatches.",
              "ai_tools:read": "Read curated AI Tools Directory profiles and comparisons.",
              "watchlist:read": "Read semiconductor, cloud, and AI equity watchlists.",
              "newsletter:write": "Subscribe or manage newsletter preferences on a user's behalf."
            }
          }
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Invalid query or body parameter.",
        "headers": {
          "RateLimit-Limit": {
            "description": "Maximum requests permitted in the current 60-second window.",
            "schema": {
              "type": "integer",
              "example": 120
            }
          },
          "RateLimit-Remaining": {
            "description": "Remaining requests available in the current window.",
            "schema": {
              "type": "integer",
              "example": 119
            }
          },
          "RateLimit-Reset": {
            "description": "Seconds until the current rate-limit window resets.",
            "schema": {
              "type": "integer",
              "example": 60
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorEnvelope"
            }
          }
        }
      },
      "NotFound": {
        "description": "Requested resource was not found.",
        "headers": {
          "RateLimit-Limit": {
            "description": "Maximum requests permitted in the current 60-second window.",
            "schema": {
              "type": "integer",
              "example": 120
            }
          },
          "RateLimit-Remaining": {
            "description": "Remaining requests available in the current window.",
            "schema": {
              "type": "integer",
              "example": 119
            }
          },
          "RateLimit-Reset": {
            "description": "Seconds until the current rate-limit window resets.",
            "schema": {
              "type": "integer",
              "example": 60
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorEnvelope"
            }
          }
        }
      },
      "RateLimited": {
        "description": "Rate limit exceeded; inspect RateLimit-Reset before retrying.",
        "headers": {
          "RateLimit-Limit": {
            "description": "Maximum requests permitted in the current 60-second window.",
            "schema": {
              "type": "integer",
              "example": 120
            }
          },
          "RateLimit-Remaining": {
            "description": "Remaining requests available in the current window.",
            "schema": {
              "type": "integer",
              "example": 119
            }
          },
          "RateLimit-Reset": {
            "description": "Seconds until the current rate-limit window resets.",
            "schema": {
              "type": "integer",
              "example": 60
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorEnvelope"
            }
          }
        }
      }
    },
    "schemas": {
      "ErrorEnvelope": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable uppercase error code."
              },
              "message": {
                "type": "string",
                "description": "Human- and agent-readable explanation of what went wrong."
              },
              "status": {
                "type": "integer",
                "description": "HTTP status code."
              },
              "hint": {
                "type": "string",
                "description": "Actionable remediation guidance."
              },
              "requestId": {
                "type": "string",
                "description": "Unique request correlation UUID."
              }
            },
            "required": [
              "code",
              "message",
              "status",
              "requestId"
            ]
          }
        },
        "required": [
          "error"
        ]
      },
      "PaginationMeta": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "description": "Maximum items per page."
          },
          "hasMore": {
            "type": "boolean",
            "description": "True when additional items follow this page."
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Opaque cursor to pass as ?cursor= for the next page, or null at end."
          }
        },
        "required": [
          "limit",
          "hasMore",
          "nextCursor"
        ]
      },
      "ArticleSummary": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "description": "Unique article URL slug."
          },
          "title": {
            "type": "string",
            "description": "Headline of the dispatch."
          },
          "category": {
            "type": "string",
            "description": "Editorial category slug."
          },
          "language": {
            "type": "string",
            "description": "ISO language code ('en' or 'he')."
          },
          "excerpt": {
            "type": "string",
            "description": "Concise summary of the dispatch."
          },
          "author": {
            "type": "string",
            "description": "Author or editorial desk."
          },
          "readingTimeMinutes": {
            "type": "integer",
            "description": "Estimated reading time in minutes."
          },
          "publishedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO-8601 publication timestamp."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Canonical HTML URL."
          },
          "markdownUrl": {
            "type": "string",
            "format": "uri",
            "description": "Direct CommonMark .md URL."
          }
        },
        "required": [
          "slug",
          "title",
          "category",
          "excerpt",
          "url",
          "markdownUrl"
        ]
      },
      "PaginatedArticlesResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArticleSummary"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationMeta"
          }
        },
        "required": [
          "data",
          "pagination"
        ]
      },
      "ArticleDetailResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "category": {
                "type": "string"
              },
              "author": {
                "type": "string"
              },
              "publishedAt": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "readingTimeMinutes": {
                "type": "integer"
              },
              "excerpt": {
                "type": "string"
              },
              "bodyText": {
                "type": "string",
                "description": "Full plain-text article content."
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "markdownUrl": {
                "type": "string",
                "format": "uri"
              }
            },
            "required": [
              "slug",
              "title",
              "category",
              "bodyText",
              "url",
              "markdownUrl"
            ]
          }
        },
        "required": [
          "data"
        ]
      },
      "AiToolItem": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "pricingModel": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "bestFor": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "installCommand": {
            "type": [
              "string",
              "null"
            ]
          },
          "homepageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "repoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "directoryUrl": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "slug",
          "name",
          "type",
          "category",
          "pricingModel",
          "summary",
          "directoryUrl"
        ]
      },
      "PaginatedAiToolsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiToolItem"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationMeta"
          }
        },
        "required": [
          "data",
          "pagination"
        ]
      },
      "WatchlistResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "symbol": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "sector": {
                  "type": "string"
                },
                "exchange": {
                  "type": "string"
                },
                "pageUrl": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "required": [
                "symbol",
                "name",
                "sector",
                "exchange",
                "pageUrl"
              ]
            }
          },
          "count": {
            "type": "integer"
          },
          "boardUrl": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "data",
          "count",
          "boardUrl"
        ]
      },
      "NewsletterSubscribeResponse": {
        "type": "object",
        "properties": {
          "subscribed": {
            "type": "boolean"
          },
          "sandboxDryRun": {
            "type": "boolean"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "language": {
            "type": "string",
            "enum": [
              "en",
              "he"
            ]
          },
          "frequency": {
            "type": "string"
          },
          "unsubscribeUrl": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "subscribed",
          "sandboxDryRun",
          "email",
          "language",
          "frequency",
          "unsubscribeUrl"
        ]
      },
      "BriefingJobAccepted": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "processing",
              "completed"
            ]
          },
          "statusUrl": {
            "type": "string",
            "format": "uri"
          },
          "pollAfterSeconds": {
            "type": "integer"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "jobId",
          "status",
          "statusUrl",
          "pollAfterSeconds"
        ]
      },
      "BriefingJobStatus": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "processing",
              "completed",
              "failed"
            ]
          },
          "statusUrl": {
            "type": "string",
            "format": "uri"
          },
          "result": {
            "type": "object"
          }
        },
        "required": [
          "jobId",
          "status",
          "statusUrl"
        ]
      },
      "StatusResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "apiVersion": {
            "type": "string"
          },
          "environment": {
            "type": "string",
            "enum": [
              "production",
              "sandbox"
            ]
          },
          "documentationUrl": {
            "type": "string",
            "format": "uri"
          },
          "openApiUrl": {
            "type": "string",
            "format": "uri"
          },
          "mcpUrl": {
            "type": "string",
            "format": "uri"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "status",
          "apiVersion",
          "environment",
          "openApiUrl",
          "mcpUrl"
        ]
      }
    }
  }
}
