From b6040bbbaba3b587b61836623920e920fdf5535b Mon Sep 17 00:00:00 2001 From: Neeraj Kanoi Date: Tue, 28 Apr 2026 11:06:23 +0530 Subject: [PATCH] Align Redoc docs and interactive OpenAPI delivery --- .gitignore | 1 + README.md | 27 +- dist/favicon.ico | 1 + dist/index.html | 773 ++---------------- dist/swagger.html | 77 ++ dist/wokelo-openapi.yaml | 207 +++-- favicon.ico | 1 + openapi.yaml | 661 +++++---------- package-lock.json | 219 +++-- package.json | 9 +- redoc.html | 68 ++ scripts/polish_specs.py | 215 +++++ sources/wokelo_authentication_openapi.yaml | 28 +- sources/wokelo_buyer_screening_openapi.yaml | 54 +- ...elo_company_deep_intelligence_openapi.yaml | 70 +- sources/wokelo_company_filings_openapi.yaml | 46 +- ...lo_company_instant_enrichment_openapi.yaml | 67 +- ...okelo_company_news_monitoring_openapi.yaml | 63 +- sources/wokelo_company_research_openapi.yaml | 47 +- sources/wokelo_company_search_openapi.yaml | 46 +- sources/wokelo_custom_workflows_openapi.yaml | 62 +- sources/wokelo_download_report_openapi.yaml | 39 +- .../wokelo_earnings_transcripts_openapi.yaml | 114 +-- sources/wokelo_employee_reviews_openapi.yaml | 40 +- sources/wokelo_get_report_status_openapi.yaml | 34 +- ...lo_industry_deep_intelligence_openapi.yaml | 59 +- sources/wokelo_industry_research_openapi.yaml | 44 +- ...kelo_legacy_fetch_news_report_openapi.yaml | 46 +- ...o_legacy_initiate_news_report_openapi.yaml | 39 +- sources/wokelo_market_map_openapi.yaml | 86 +- ...wokelo_notebook_configuration_openapi.yaml | 44 +- sources/wokelo_peer_comparison_openapi.yaml | 48 +- sources/wokelo_product_reviews_openapi.yaml | 40 +- sources/wokelo_request_cancel_openapi.yaml | 48 +- sources/wokelo_request_result_openapi.yaml | 33 +- sources/wokelo_request_status_openapi.yaml | 36 +- sources/wokelo_target_screening_openapi.yaml | 83 +- sources/wokelo_upload_file_openapi.yaml | 58 +- swagger.html | 77 ++ 39 files changed, 1780 insertions(+), 1930 deletions(-) create mode 100644 dist/favicon.ico create mode 100644 dist/swagger.html create mode 100644 favicon.ico create mode 100644 redoc.html create mode 100644 scripts/polish_specs.py create mode 100644 swagger.html diff --git a/.gitignore b/.gitignore index 4ec925f..40c4f1f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ node_modules/ npm-debug.log* .env .env.local +.playwright-cli/ diff --git a/README.md b/README.md index e39abd2..e664a1b 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,11 @@ The canonical spec is **`openapi.yaml`** at the repo root. A pre-bundled single- | `openapi.yaml` | Canonical merged spec for the full Wokelo API | | `sources/` | 26 standalone capability specs, one per official docs page | | `dist/wokelo-openapi.yaml` | Bundled spec for import into external tools and directories | -| `dist/index.html` | Static Redoc HTML docs | +| `dist/index.html` | Public Redoc reference docs (client-rendered to avoid hydration issues) | +| `dist/swagger.html` | Interactive Swagger UI playground backed by the bundled spec | | `redocly.yaml` | Linter configuration | | `.github/workflows/validate.yml` | CI validation + GitHub Pages deploy | +| `scripts/polish_specs.py` | Normalizes public-facing descriptions, auth error coverage, and known docs inconsistencies across the master and sources | ## Coverage @@ -36,10 +38,13 @@ The 26 capability files map to the official Wokelo docs set: ```bash npm install +npm run polish-specs # normalize master + standalone files after spec refreshes npm run lint # validate openapi.yaml npm run preview # live-reload doc preview at http://localhost:8080 npm run bundle # produce dist/wokelo-openapi.yaml -npm run build-docs # produce dist/index.html +npm run build-docs # produce dist/index.html from the Redoc template +npm run build-docs-ssr # optional: generate Redocly's prerendered HTML for comparison/debugging +npm run build-playground # produce dist/swagger.html npm run build # lint + bundle + docs ``` @@ -48,6 +53,7 @@ npm run build # lint + bundle + docs - Canonical spec: `https://docs.wokelo.ai/openapi.yaml` - Bundled spec: `https://raw.githubusercontent.com/Wokelo-AI/openapi/main/dist/wokelo-openapi.yaml` - Hosted docs: `https://wokelo-ai.github.io/openapi/` +- Interactive playground: `https://wokelo-ai.github.io/openapi/swagger.html` ## Directory submissions @@ -66,6 +72,23 @@ When submitting to external API directories, use the **bundled** URL so every `$ 2. **The master spec is docs-authoritative.** This repo now follows the current official Wokelo docs and Postman collection. As part of the `2.0.0` refresh, the older direct primer endpoints (`/api/company_primer/v3/start/` and `/api/industry_primer/v3/start/`) were removed from the canonical spec because they are not part of the current official capability set. +3. **Redoc and interactive testing are split intentionally.** The published `dist/index.html` uses Redoc CE for the reference experience, while `dist/swagger.html` provides Swagger UI-based request execution against the same bundled OpenAPI file. Redocly's full hosted/API-docs products support a Try It console, but plain Redoc CE does not. + +4. **The published Redoc page is client-rendered on purpose.** Redocly CLI's prerendered `build-docs` output currently produces browser-side hydration errors for this large spec even though the spec is valid. To keep the public docs clean, this repo publishes a client-rendered Redoc template at `dist/index.html` and keeps `npm run build-docs-ssr` only as an optional debugging path. + +## Normalized doc inconsistencies + +These are current inconsistencies in the upstream markdown docs or Postman material that the published OpenAPI intentionally normalizes: + +- `POST /api/enterprise/request/cancel` + The markdown page declares `request_id` as a query parameter, but the official code samples and Postman collection send it in the JSON body. The spec models it as a request-body field. +- `POST /api/assets/upload/` + The markdown header parameter table says `Content-Type: application/json`, but the executable examples and Postman collection use `multipart/form-data`. The spec models the real multipart upload contract. +- `POST /api/wkl/notebook/configuration/` + The markdown endpoint line omits the leading slash, but the code samples and Postman collection include the canonical `/api/...` path. The spec keeps the canonical path. +- `POST /api/workflow_manager/start/` for Peer Comparison + The peer-comparison markdown endpoint omits the trailing slash while sibling workflow docs and Postman use `/api/workflow_manager/start/`. The spec keeps the trailing slash to match the live server path used elsewhere. + ## Versioning - OpenAPI version: `3.0.3` diff --git a/dist/favicon.ico b/dist/favicon.ico new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/dist/favicon.ico @@ -0,0 +1 @@ + diff --git a/dist/index.html b/dist/index.html index 0830c42..8ae3c18 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,717 +1,68 @@ - - + + + + + + Wokelo API Reference + + + - - - + .app-bar { + display: flex; + flex-wrap: wrap; + gap: 10px 16px; + align-items: center; + justify-content: space-between; + padding: 14px 20px; + background: linear-gradient(135deg, #0f172a, #1e293b); + color: #fff; + } - - -

Wokelo API (2.0.0)

Download OpenAPI specification:

Wokelo's API suite is purpose-built for developers building dealmaking AI infrastructure. -It delivers structured, processed intelligence at the quality standard investment and -advisory workflows demand.

-

This 2.0.0 release aligns the canonical OpenAPI with the current official Wokelo docs, -Postman collection, and the 26 standalone capability specifications stored under sources/.

-
    -
  • Entities resolved across a proprietary database of 20M+ public and private companies.
  • -
  • News signals deduplicated across 1,000+ curated sources.
  • -
  • Every output is agent-native, source-traced, and ready to plug directly into your models, -agents, and workflows without additional processing.
  • -
-

Authentication

Token issuance and authentication entry points.

-

Login

Source docs: authentication.md

-
Request Body schema: multipart/form-data
required
client_id
required
string

Client identifier

-
client_secret
required
string

Client secret

-
username
required
string

Username

-
password
required
string

Password

-
grant_type
required
string

Grant type

-

Responses

Response samples

Content type
application/json
{
  • "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  • "expires_in": 2628288,
  • "token_type": "Bearer",
  • "scope": "read write",
  • "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

Enrichment

Company and industry enrichment capabilities.

-

Company Earnings Transcripts

Source docs: earnings-transcripts.md

-
Authorizations:
bearerAuth
query Parameters
company
required
string

Permalink or URL of the company. E.g. "salesforce"

-
from_year
integer

Start year of the date range.

-
to_year
integer

End year of the date range.

-

Responses

Response samples

Content type
application/json
{
  • "status": "success",
  • "data": [
    ],
  • "count": 12,
  • "from_year": 2021,
  • "to_year": 2023
}

Employee Reviews

Source docs: employee-reviews.md

-
Authorizations:
bearerAuth
query Parameters
company
required
string

Permalink of the company whose employee reviews need to be fetched E.g. "salesforce"

-
limit
integer

Maximum number of employee reviews to return

-
offset
integer

Number of records to skip before starting to return results

-

Responses

Response samples

Content type
application/json
{
  • "status": "success",
  • "data": {
    }
}

Company Filings

Source docs: company-filings.md

-
Authorizations:
bearerAuth
query Parameters
company
required
string

Permalink/ URL of the company whose filings need to be fetched E.g. "salesforce"

-
form
string

SEC form type to filter by. Supported values: 10-K, 10-Q, 8-K

-
from_year
integer

Start year for the date range

-
to_year
integer

End year for the date range

-

Responses

Response samples

Content type
application/json
{
  • "status": "success",
  • "data": [],
  • "count": 1,
  • "from_year": 2023,
  • "to_year": 2023,
  • "form": "10-K"
}

Product Reviews

Source docs: product-reviews.md

-
Authorizations:
bearerAuth
query Parameters
company
required
string

Permalink of the company whose product reviews need to be fetched E.g. "salesforce"

-
limit
integer

Maximum number of product reviews to return

-
offset
integer

Number of records to skip before starting to return results

-

Responses

Response samples

Content type
application/json
{
  • "status": "success",
  • "data": {
    }
}

Enrich a company profile (instant or deep).

Merged operation for the two documented company enrichment variants. Use the documented sections vocabulary to select the variant family. Source docs: company-deep-intelligence.md, company-instant-enrichment.md

-
Authorizations:
bearerAuth
Request Body schema: application/json
required
companies
required
Array of strings

List of permalinks/ URLs of the companies to enrich E.g. "tesla-motors", "stripe" OR "https://tesla.com"

-
sections
required
Array of strings non-empty

Sections of data to include in the enrichment. Supported values: firmographics, products, headcount, funding, public_company_financials, uk_private_company_financials, acquisitions, investments, website_traffic Default: all

-
object

Responses

Request samples

Content type
application/json
Example
{
  • "companies": [
    ],
  • "sections": "firmographics"
}

Response samples

Content type
application/json
{
  • "request_id": "3c945250-a3e8-4673-b342-2ceb03af5b02",
  • "status": "PENDING"
}

Industry Deep Intelilgence

Source docs: industry-deep-intelligence.md

-
Authorizations:
bearerAuth
Request Body schema: application/json
required
topic
required
string

The industry topic to generate insights for (e.g. "Enterprise SaaS security")

-
sections
Array of strings

Sections to include in the report. Supported values: market_size, quant_insights, trends_and_innovations, transactions_mna, transactions_fundraising, transactions_ipo, partnerships, tier1_intelligence, case_studies, industry_regulations

-
object

Responses

Request samples

Content type
application/json
{
  • "topic": "string",
  • "sections": [
    ],
  • "parameters": {
    }
}

Response samples

Content type
application/json
{
  • "request_id": "c574254f-137d-40d5-84f1-ac8fa38b8aa7"
}

Discovery

Discovery workflows such as market maps and screening.

-

Buyer Screening

Source docs: buyer-screening.md

-
Authorizations:
bearerAuth
Request Body schema: application/json
required
company
required
string

Permalink of the target company or its complete URL Example: "acme-solar" OR https://www.acmesolar.in/

-
object

Responses

Request samples

Content type
application/json
{
  • "company": "string",
  • "parameters": {
    }
}

Response samples

Content type
application/json
{
  • "request_id": "278412f8-87ca-47a9-9d1c-4a62a687eaf6"
}

Market Map

Source docs: market-map.md

-
Authorizations:
bearerAuth
Request Body schema: application/json
required
topic
required
string

The market or product category to map (e.g. "AI-powered CRM software")

-
object

Responses

Request samples

Content type
application/json
{
  • "topic": "string",
  • "parameters": {
    }
}

Response samples

Content type
application/json
{
  • "request_id": "ed2ce223-3bd2-4a08-855f-79751bf1bd92"
}

Target Screening

Source docs: target-screening.md

-
Authorizations:
bearerAuth
Request Body schema: application/json
required
topic
string

Industry/ product domain. Default will be the product category of the acquiring company.

-
company
required
string

Permalink of the acquiring company or complete URL (e.g. "microsoft" OR "https://www.microsoft.com/")

-
object

Responses

Request samples

Content type
application/json
{
  • "topic": "string",
  • "company": "string",
  • "parameters": {
    }
}

Response samples

Content type
application/json
{
  • "request_id": "8583f59e-0412-4f1e-81e5-13cc70349cb6"
}

Monitoring

Monitoring and legacy news-report workflows.

-

Company News Monitoring

Source docs: company-news-monitoring.md

-
Authorizations:
bearerAuth
query Parameters
blacklisted
string

Comma-separated list of publisher domains to exclude from results.

-
category
string

Comma-separated list of news categories to filter by. View complete list of all the supported news categories.

-
company
required
string

Company permalink or a valid company URL for which news articles need to be fetched (e.g., tesla or https://www.tesla.com/)

-
end_date
string

End date for the timeframe to consider when fetching news (e.g., 2024-12-31)

-
limit
integer

Maximum number of news articles to return Default = 100 Max value= 1000

-
offset
integer

Number of news to skip before starting to return results

-
publishers
string

Comma-separated list of publisher domains whose articles will be included.

-
start_date
string

Start date for the timeframe to consider when fetching news (e.g., 2024-01-01)

-

Responses

Response samples

Content type
application/json
{
  • "status": "success",
  • "data": [
    ],
  • "count": 4
}

[Legacy] Fetch News Report

Source docs: legacy-fetch-news-report.md

-
Authorizations:
bearerAuth
Request Body schema: application/json
required
report_id
required
integer

Report ID of the news report from which the news is to be retrieved

-
page
integer

Page number from which the news is to be returned in the response. Default: 1

-
page_size
integer

Number of news items per page. Default: 500

-

Responses

Request samples

Content type
application/json
{
  • "report_id": 0,
  • "page": 0,
  • "page_size": 0
}

Response samples

Content type
application/json
{
  • "report_id": 72053,
  • "data": []
}

[Legacy] Initiate News Report

Source docs: legacy-initiate-news-report.md

-
Authorizations:
bearerAuth
Request Body schema: application/json
required
whitelisted_domains
Array of any

Domains of news sources from which to fetch news

-
blacklisted_domains
Array of any

News source domains to exclude from search

-
news_limit
integer

Number of news items to retrieve (Default: 1000)

-
start_date
string

Date from which news will be retrieved. * Default: 2 years * Format: YYYY-MM-DD

-
end_date
string

Date till which news will be retrieved. * Default: current date * Format: YYYY-MM-DD

-
website
required
string

Website of the target company

-
permalink
required
string

Crunchbase permalink of the target company

-

Responses

Request samples

Content type
application/json
{
  • "whitelisted_domains": [
    ],
  • "blacklisted_domains": [
    ],
  • "news_limit": 0,
  • "start_date": "string",
  • "end_date": "string",
  • "website": "string",
  • "permalink": "string"
}

Response samples

Content type
application/json
{
  • "report_id": 2000156
}

Workflow Automation

Workflow-driven report generation endpoints.

-

Start a workflow (Company Research, Industry Research, Peer Comparison, or Custom).

Merged operation for the four documented workflow-start variants. Use the workflow field to select the variant. Source docs: company-research.md, custom-workflows.md, industry-research.md, peer-comparison.md

-
Authorizations:
bearerAuth
Request Body schema: application/json
required
industry
string

Company's industry. If not provided, Wokelo will auto-detect the industry

-
permalink
string

Crunchbase permalink of the company. Provide either this or website.

-
website
string

Website of the company. Provide either this or permalink.

-
workflow
required
string

company_primer

-
workbook_name
string

Name with which the workbook will be saved

-
custom_files
Array of objects

Files to include in the report. Use fileName values from the file upload response

-

Responses

Request samples

Content type
application/json
Example
{
  • "workflow": "company_primer",
  • "permalink": "wokelo-ai",
  • "workbook_name": "wokelo-ai"
}

Response samples

Content type
application/json
{
  • "report_id": 123345
}

Supporting APIs

Supporting endpoints for uploads, status, downloads, and configuration.

-

Get Report Status

Source docs: get-report-status.md

-
Authorizations:
bearerAuth
query Parameters
report_id
required
integer

The id returned in response to the start report request

-

Responses

Response samples

Content type
application/json
{
  • "report_id": 98564,
  • "status": "Delayed",
  • "title": "One Signal"
}

Request Result

Source docs: request-result.md

-
Authorizations:
bearerAuth
query Parameters
request_id
required
string

The unique identifier of the async request whose status is being checked. Example: 11db67b6-8345-4837-950f-87bbd8d7dcbe

-

Responses

Response samples

Content type
application/json
{
  • "request_id": "d7a78d10-663a-493f-9b79-be1e6094f3bb",
  • "status": "COMPLETED",
  • "result": [
    ]
}

Request Status

Source docs: request-status.md

-
Authorizations:
bearerAuth
query Parameters
request_id
required
string

The unique identifier of the request whose status is being checked. Example: 11db67b6-8345-4837-950f-87bbd8d7dcbe

-

Responses

Response samples

Content type
application/json
{
  • "request_id": "b1f10ebf-a251-4e2d-b867-8482ac701987",
  • "status": "COMPLETED",
  • "request_type": "target_screening",
  • "created_at": "2026-03-25T07:24:40.333168Z",
  • "updated_at": "2026-03-25T07:30:41.503082Z"
}

Download Report

Source docs: download-report.md

-
Authorizations:
bearerAuth
Request Body schema: application/json
required
file_type
required
string

Export format. Permitted values: "pdf", "docx", "json"

-
report_id
required
integer

Id of the report to be exported

-

Responses

Request samples

Content type
application/json
{
  • "file_type": "string",
  • "report_id": 0
}

Response samples

Content type
application/json
{}

Upload file

Source docs: upload-file.md

-
Authorizations:
bearerAuth
Request Body schema: multipart/form-data
required
files
required
Array of strings <binary> [ items <binary > ]

Array of files to be uploaded

-
fileUUID
Array of strings <uuid> [ items <uuid > ]

Your own UUIDs to track files. Must match the length and order of the files array. These UUIDs will be returned in the response alongside Wokelo's fileName identifiers.

-

Responses

Response samples

Content type
application/json
{
  • "status": "success",
  • "success": [
    ],
  • "fails": [ ]
}

Request Cancel

Source docs: request-cancel.md

-
Authorizations:
bearerAuth
query Parameters
request_id
required
string

The unique identifier of request which needs to be cancelled

-
Request Body schema: application/json
required
request_id
required
string

Responses

Request samples

Content type
application/json
{
  • "request_id": "string"
}

Notebook Configuration

Source docs: notebook-configuration.md

-
Authorizations:
bearerAuth
Request Body schema: application/json
required
notebook_id
required
integer

Report ID of the notebook for which the configuration is to be retrieved

-

Responses

Request samples

Content type
application/json
{
  • "notebook_id": 0
}
- - + .app-bar__links a { + color: #bfdbfe; + text-decoration: none; + } + .app-bar__links a:hover { + text-decoration: underline; + } + + redoc { + display: block; + } + + + +
+
Wokelo API Reference
+ +
+ + + + diff --git a/dist/swagger.html b/dist/swagger.html new file mode 100644 index 0000000..08f58c8 --- /dev/null +++ b/dist/swagger.html @@ -0,0 +1,77 @@ + + + + + + Wokelo API Playground + + + + +
+

Wokelo API Playground

+

+ This page provides interactive browser-based testing for the bundled Wokelo OpenAPI spec. + Use the Authorize button with a bearer token from + POST /auth/token/, or return to the + Redoc reference docs for the narrative view. +

+

+ Live requests are sent directly from the browser to https://api.wokelo.ai. + Wokelo currently exposes the CORS headers needed for this flow. +

+
+
+ + + + + + diff --git a/dist/wokelo-openapi.yaml b/dist/wokelo-openapi.yaml index e36d2db..40a493f 100644 --- a/dist/wokelo-openapi.yaml +++ b/dist/wokelo-openapi.yaml @@ -44,7 +44,7 @@ paths: tags: - Supporting APIs summary: Get Report Status - description: 'Source docs: get-report-status.md' + description: Retrieves the current status of a previously triggered report using its unique ID operationId: get_api_assets_get_notebook_status responses: '200': @@ -108,9 +108,6 @@ paths: - message example: message: You are not authorized to access this report. - x-source-variants: - - group_path: Supporting APIs - request_name: Get Report Status parameters: - name: report_id in: query @@ -125,7 +122,7 @@ paths: tags: - Enrichment summary: Company Earnings Transcripts - description: 'Source docs: earnings-transcripts.md' + description: Fetch earnings call transcripts for a public company. Supports year-range filtering. operationId: get_api_enterprise_company_earnings-calls responses: '200': @@ -411,9 +408,8 @@ paths: count: 12 from_year: 2021 to_year: 2023 - x-source-variants: - - group_path: Enrichment - request_name: Company Earnings Transcripts + '401': + $ref: '#/components/responses/UnauthorizedError' parameters: - name: company in: query @@ -440,7 +436,7 @@ paths: tags: - Enrichment summary: Employee Reviews - description: 'Source docs: employee-reviews.md' + description: Retrieves paginated employee reviews for a specified company, supporting configurable result limits and offsets for efficient data navigation. Returns a structured list of product reviews. operationId: get_api_enterprise_company_employee-reviews responses: '200': @@ -509,9 +505,8 @@ paths: diversity_and_inclusion_rating: 4.2 senior_management_rating: 3.6 work_life_balance_rating: 3.9 - x-source-variants: - - group_path: Enrichment - request_name: Employee Reviews + '401': + $ref: '#/components/responses/UnauthorizedError' parameters: - name: company in: query @@ -538,7 +533,7 @@ paths: tags: - Enrichment summary: Company Filings - description: 'Source docs: company-filings.md' + description: Fetch SEC filings for a public company. Supports filtering by form type (10-K, 10-Q, 8-K, etc.) and year range. operationId: get_api_enterprise_company_filings responses: '200': @@ -611,9 +606,8 @@ paths: from_year: 2023 to_year: 2023 form: 10-K - x-source-variants: - - group_path: Enrichment - request_name: Company Filings + '401': + $ref: '#/components/responses/UnauthorizedError' parameters: - name: company in: query @@ -646,7 +640,7 @@ paths: tags: - Monitoring summary: Company News Monitoring - description: 'Source docs: company-news-monitoring.md' + description: The Monitoring API fetches the latest news articles for a given company, enriched with AI-generated summaries, categories and publisher details. Optionally, you can refine the output by specifying date range, publisher list, blacklisted publishers, article limit, and news categories. Results are returned in the API response. operationId: get_api_enterprise_company_news responses: '200': @@ -713,9 +707,8 @@ paths: - Guidance & Forecast Revisions newsworthiness_impact: Medium count: 4 - x-source-variants: - - group_path: Monitoring - request_name: Company News Monitoring + '401': + $ref: '#/components/responses/UnauthorizedError' parameters: - name: blacklisted in: query @@ -772,7 +765,7 @@ paths: tags: - Enrichment summary: Product Reviews - description: 'Source docs: product-reviews.md' + description: Retrieves paginated product reviews for a specified company, supporting configurable result limits and offsets for efficient data navigation. Returns a structured list of product reviews. operationId: get_api_enterprise_company_product-reviews responses: '200': @@ -849,9 +842,8 @@ paths: reviews: - review_id: 10674077 review_title: Easy to use enterprise communication platform - x-source-variants: - - group_path: Enrichment - request_name: Product Reviews + '401': + $ref: '#/components/responses/UnauthorizedError' parameters: - name: company in: query @@ -878,7 +870,7 @@ paths: tags: - Supporting APIs summary: Company Search - description: 'Source docs: company-search.md' + description: Search for companies using name, website or ticker. It returns a list of companies with their permalink and other attributes. operationId: get_api_enterprise_company_search responses: '200': @@ -974,9 +966,8 @@ paths: domain: wokelo.ai last_funding_round: Seed count: 10 - x-source-variants: - - group_path: Supporting APIs - request_name: Company Search + '401': + $ref: '#/components/responses/UnauthorizedError' parameters: - name: query in: query @@ -1003,7 +994,7 @@ paths: tags: - Supporting APIs summary: Request Result - description: 'Source docs: request-result.md' + description: Retrieves the result of a previously submitted API request. operationId: get_api_enterprise_request_result responses: '200': @@ -1050,9 +1041,8 @@ paths: type: public operating_status: IPO ticker: NASDAQ:TSLA - x-source-variants: - - group_path: Supporting APIs - request_name: Request Result + '401': + $ref: '#/components/responses/UnauthorizedError' parameters: - name: request_id in: query @@ -1067,7 +1057,7 @@ paths: tags: - Supporting APIs summary: Request Status - description: 'Source docs: request-status.md' + description: Retrieves the current status of a previously submitted API request. operationId: get_api_enterprise_request_status responses: '200': @@ -1100,9 +1090,8 @@ paths: request_type: target_screening created_at: '2026-03-25T07:24:40.333168Z' updated_at: '2026-03-25T07:30:41.503082Z' - x-source-variants: - - group_path: Supporting APIs - request_name: Request Status + '401': + $ref: '#/components/responses/UnauthorizedError' parameters: - name: request_id in: query @@ -1117,7 +1106,7 @@ paths: tags: - Supporting APIs summary: Download Report - description: 'Source docs: download-report.md' + description: Downloads the generated report in the required format such as docx, pdf, and json. The format is passed in the request body. operationId: post_api_assets_download_report responses: '200': @@ -1176,9 +1165,8 @@ paths: url: https://www.openpr.com/news/4132700/l4-self-driving-vehicle-market-current-status-and-future publisher: '' date: '' - x-source-variants: - - group_path: Supporting APIs - request_name: Download Report + '401': + $ref: '#/components/responses/UnauthorizedError' requestBody: required: true content: @@ -1203,7 +1191,7 @@ paths: tags: - Supporting APIs summary: Upload file - description: 'Source docs: upload-file.md' + description: Upload your files to Wokelo to supplement research reports with proprietary data. Each uploaded file receives a unique identifier that you can reference in the `custom_files` parameter when creating reports. operationId: post_api_assets_upload responses: '200': @@ -1268,9 +1256,8 @@ paths: mimeType: pdf uuid: k3m8n5p1q6 fails: [] - x-source-variants: - - group_path: Supporting APIs - request_name: Upload file + '401': + $ref: '#/components/responses/UnauthorizedError' requestBody: required: true content: @@ -1307,7 +1294,7 @@ paths: tags: - Discovery summary: Buyer Screening - description: 'Source docs: buyer-screening.md' + description: The Buyer Screening API generates a long list of potential buyers for a given target company, enriched with structured data. Optionally, you can refine the output by specifying buyer type, company type, geography, and a detailed query to narrow the strategic criteria. Returns a request\_id as a response. operationId: post_api_enterprise_buyer-screening_enrich responses: '200': @@ -1342,9 +1329,8 @@ paths: example: request_id: 278412f8-87ca-47a9-9d1c-4a62a687eaf6 status: PENDING - x-source-variants: - - group_path: Discovery - request_name: Buyer Screening + '401': + $ref: '#/components/responses/UnauthorizedError' requestBody: required: true content: @@ -1383,7 +1369,7 @@ paths: tags: - Enrichment summary: Enrich a company profile (instant or deep). - description: 'Merged operation for the two documented company enrichment variants. Use the documented `sections` vocabulary to select the variant family. Source docs: company-deep-intelligence.md, company-instant-enrichment.md' + description: Enrich one or more companies through Wokelo's shared company enrichment endpoint. This operation supports the Company Instant Enrichment and Company Deep Intelligence request variants using a discriminator-based request body. operationId: post_api_enterprise_company_enrich responses: '200': @@ -1443,11 +1429,8 @@ paths: error: Invalid companies not found in database invalid: - Tesla - x-source-variants: - - group_path: Enrichment - request_name: Company Instant Enrichment - - group_path: Enrichment - request_name: Company Deep Intelligence + '401': + $ref: '#/components/responses/UnauthorizedError' requestBody: required: true content: @@ -1468,8 +1451,8 @@ paths: post: tags: - Enrichment - summary: Industry Deep Intelilgence - description: 'Source docs: industry-deep-intelligence.md' + summary: Industry Deep Intelligence + description: The Industry Insights API generates structured insights for a given industry topic (e.g., *"Warehouse automation"*). Optionally, you can refine the output by specifying sections, keywords, geography, a custom industry definition, and sample companies. Returns a `request_id` as a response. operationId: post_api_enterprise_industry_enrich responses: '200': @@ -1504,9 +1487,8 @@ paths: example: request_id: c574254f-137d-40d5-84f1-ac8fa38b8aa7 status: PENDING - x-source-variants: - - group_path: Enrichment - request_name: Industry Deep Intelilgence + '401': + $ref: '#/components/responses/UnauthorizedError' requestBody: required: true content: @@ -1553,7 +1535,7 @@ paths: tags: - Discovery summary: Market Map - description: 'Source docs: market-map.md' + description: The Market Map API generates a long list of companies operating in a given market (e.g., *"AI-powered CRM software"*), enriched with structured data. Optionally, you can refine the output by specifying keywords, sample companies, geography, company type, employee count, funding stage, and more. Returns request\_id as a response. operationId: post_api_enterprise_market-map_enrich responses: '200': @@ -1588,9 +1570,8 @@ paths: example: request_id: ed2ce223-3bd2-4a08-855f-79751bf1bd92 status: PENDING - x-source-variants: - - group_path: Discovery - request_name: Market Map + '401': + $ref: '#/components/responses/UnauthorizedError' requestBody: required: true content: @@ -1673,21 +1654,19 @@ paths: tags: - Supporting APIs summary: Request Cancel - description: 'Source docs: request-cancel.md' + description: Cancels a request already submitted. operationId: post_api_enterprise_request_cancel responses: '200': - description: Successful response - x-source-variants: - - group_path: Supporting APIs - request_name: Request Cancel - parameters: - - name: request_id - in: query - required: true - schema: - type: string - description: The unique identifier of request which needs to be cancelled + description: Successful cancellation acknowledgement + content: + application/json: + schema: + type: object + additionalProperties: true + description: Cancellation acknowledgement payload. The exact success body is not formally documented. + '401': + $ref: '#/components/responses/UnauthorizedError' requestBody: required: true content: @@ -1707,7 +1686,7 @@ paths: tags: - Discovery summary: Target Screening - description: 'Source docs: target-screening.md' + description: The Target Screening API generates a long list of potential acquisition targets for a given acquirer, enriched with structured data. Optionally, you can refine the output by specifying keywords, sample companies, geography, company type, employee count, funding stage, and a detailed query to narrow the search scope. Returns a request\_id as a reponse. operationId: post_api_enterprise_target-screening_enrich responses: '200': @@ -1742,9 +1721,8 @@ paths: example: request_id: 8583f59e-0412-4f1e-81e5-13cc70349cb6 status: PENDING - x-source-variants: - - group_path: Discovery - request_name: Target Screening + '401': + $ref: '#/components/responses/UnauthorizedError' requestBody: required: true content: @@ -1814,7 +1792,7 @@ paths: tags: - Monitoring summary: '[Legacy] Fetch News Report' - description: 'Source docs: legacy-fetch-news-report.md' + description: This endpoint retrieves the news items from an existing news report run via the Get News Report endpoint `/api/news/start/` news. It returns the news items as a JSON operationId: post_api_news_fetch responses: '200': @@ -1868,9 +1846,8 @@ paths: - error example: error: Report not found. - x-source-variants: - - group_path: Monitoring - request_name: '[Legacy] Fetch News Report' + '401': + $ref: '#/components/responses/UnauthorizedError' requestBody: required: true content: @@ -1897,7 +1874,7 @@ paths: tags: - Monitoring summary: '[Legacy] Initiate News Report' - description: 'Source docs: legacy-initiate-news-report.md' + description: This endpoint initiates news report on a company operationId: post_api_news_start responses: '200': @@ -1914,6 +1891,8 @@ paths: description: '[FROM OFFICIAL DOCS] Response schema derived from example in legacy-initiate-news-report.md.' example: report_id: 2000156 + '401': + $ref: '#/components/responses/UnauthorizedError' '404': description: Get news report content: @@ -1927,9 +1906,6 @@ paths: - message example: message: Invalid payload. permalink or website required. - x-source-variants: - - group_path: Monitoring - request_name: '[Legacy] Initiate News Report' requestBody: required: true content: @@ -1971,14 +1947,19 @@ paths: tags: - Supporting APIs summary: Notebook Configuration - description: 'Source docs: notebook-configuration.md' + description: Retrieves and returns the settings you originally configured while initiating the report. operationId: post_api_wkl_notebook_configuration responses: '200': - description: Successful response - x-source-variants: - - group_path: Supporting APIs - request_name: Notebook Configuration + description: Notebook configuration returned successfully + content: + application/json: + schema: + type: object + additionalProperties: true + description: Notebook configuration object. The docs describe this as the original workflow configuration and do not formalize the shape. + '401': + $ref: '#/components/responses/UnauthorizedError' requestBody: required: true content: @@ -1999,7 +1980,7 @@ paths: tags: - Workflow Automation summary: Start a workflow (Company Research, Industry Research, Peer Comparison, or Custom). - description: 'Merged operation for the four documented workflow-start variants. Use the `workflow` field to select the variant. Source docs: company-research.md, custom-workflows.md, industry-research.md, peer-comparison.md' + description: Start a workflow-driven report through Wokelo's workflow manager. This shared endpoint supports Company Research (`company_primer`), Industry Research (`industry_primer`), Peer Comparison (`player_comparison`), and Custom Workflows (dashboard-configured workflow IDs). The request body is modeled as a discriminator-based union across those variants. operationId: post_api_workflow_manager_start responses: '200': @@ -2018,7 +1999,7 @@ paths: example: report_id: 123345 '400': - description: Company primer + description: Bad request content: application/json: schema: @@ -2030,15 +2011,8 @@ paths: - message example: message: Invalid payload. search query is required. - x-source-variants: - - group_path: Workflow Automation - request_name: Company Research - - group_path: Workflow Automation - request_name: Industry Research - - group_path: Workflow Automation - request_name: Peer comparison - - group_path: Workflow Automation - request_name: Custom Workflows + '401': + $ref: '#/components/responses/UnauthorizedError' requestBody: required: true content: @@ -2064,7 +2038,7 @@ paths: tags: - Authentication summary: Login - description: 'Source docs: authentication.md' + description: Obtain a JSON Web Token (JWT) for subsequent API authentication operationId: post_auth_token responses: '200': @@ -2115,9 +2089,6 @@ paths: - error example: error: invalid_client - x-source-variants: - - group_path: Authentication - request_name: Login requestBody: required: true content: @@ -2385,3 +2356,25 @@ components: example: workflow: industry_custom_fc44748 industry_research_topic: Electric vehicles + CommonUnauthorizedError: + type: object + description: Generic authentication error returned when the request is missing a valid bearer token. + properties: + detail: + type: string + message: + type: string + error: + type: string + additionalProperties: true + example: + detail: Authentication credentials were not provided. + responses: + UnauthorizedError: + description: Unauthorized. Include a valid bearer token from `/auth/token/`. + content: + application/json: + schema: + $ref: '#/components/schemas/CommonUnauthorizedError' + example: + detail: Authentication credentials were not provided. diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/favicon.ico @@ -0,0 +1 @@ + diff --git a/openapi.yaml b/openapi.yaml index b50ded6..cb02703 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,18 +1,7 @@ openapi: 3.0.3 info: title: Wokelo API - description: |- - Wokelo's API suite is purpose-built for developers building dealmaking AI infrastructure. - It delivers structured, processed intelligence at the quality standard investment and - advisory workflows demand. - - This 2.0.0 release aligns the canonical OpenAPI with the current official Wokelo docs, - Postman collection, and the 26 standalone capability specifications stored under `sources/`. - - - Entities resolved across a proprietary database of 20M+ public and private companies. - - News signals deduplicated across 1,000+ curated sources. - - Every output is agent-native, source-traced, and ready to plug directly into your models, - agents, and workflows without additional processing. + description: "Wokelo's API suite is purpose-built for developers building dealmaking AI infrastructure.\nIt delivers structured, processed intelligence at the quality standard investment and\nadvisory workflows demand.\n\nThis 2.0.0 release aligns the canonical OpenAPI with the current official Wokelo docs,\nPostman collection, and the 26 standalone capability specifications stored under `sources/`.\n\n- Entities resolved across a proprietary database of 20M+ public and private companies.\n- News signals deduplicated across 1,000+ curated sources.\n- Every output is agent-native, source-traced, and ready to plug directly into your models,\n agents, and workflows without additional processing." version: 2.0.0 contact: name: Wokelo @@ -42,7 +31,7 @@ paths: tags: - Supporting APIs summary: Get Report Status - description: 'Source docs: get-report-status.md' + description: Retrieves the current status of a previously triggered report using its unique ID operationId: get_api_assets_get_notebook_status responses: '200': @@ -62,8 +51,7 @@ paths: - report_id - status - title - description: '[FROM OFFICIAL DOCS] Response schema derived from example - in get-report-status.md.' + description: '[FROM OFFICIAL DOCS] Response schema derived from example in get-report-status.md.' example: report_id: 98564 status: Delayed @@ -107,9 +95,6 @@ paths: - message example: message: You are not authorized to access this report. - x-source-variants: - - group_path: Supporting APIs - request_name: Get Report Status parameters: - name: report_id in: query @@ -124,7 +109,7 @@ paths: tags: - Enrichment summary: Company Earnings Transcripts - description: 'Source docs: earnings-transcripts.md' + description: Fetch earnings call transcripts for a public company. Supports year-range filtering. operationId: get_api_enterprise_company_earnings-calls responses: '200': @@ -244,8 +229,7 @@ paths: - count - from_year - to_year - description: '[FROM OFFICIAL DOCS] Response schema derived from example - in earnings-transcripts.md.' + description: '[FROM OFFICIAL DOCS] Response schema derived from example in earnings-transcripts.md.' example: status: success data: @@ -282,36 +266,19 @@ paths: transcript_person_id: 253177 transcript: - name: Martin Viecha - speech: "Good afternoon, everyone, and welcome to Tesla's Fourth\ - \ Quarter 2023 Q&A Webcast. My name is Martin Viecha, VP of\ - \ Investor Relations, and I'm joined today by Elon Musk, Vaibhav\ - \ Taneja, and a number of other executives. Our Q4 results\ - \ were announced at about 3:00 p.m. Central Time in the update\ - \ deck we published at the same link as this webcast.\r\n\ - During this call, we will discuss our business outlook and\ - \ make forward-looking statements. These comments are based\ - \ on our predictions and expectations... [truncated]" + speech: "Good afternoon, everyone, and welcome to Tesla's Fourth Quarter 2023 Q&A Webcast. My name is Martin Viecha, VP of Investor Relations, and I'm joined today by Elon Musk, Vaibhav Taneja, and a number of other executives. Our Q4 results were announced at about 3:00 p.m. Central Time in the update deck we published at the same link as this webcast.\r\nDuring this call, we will discuss our business outlook and make forward-looking statements. These comments are based on our predictions and expectations... [truncated]" session: Presenter Speech person_id: 370659 person_company: null component_order: 0 - name: Elon Musk - speech: Thank you. So the Tesla team did an incredible job in - 2023. We achieved record production and deliveries of [ about - ] 1.8 million vehicles, in line with our official guidance. - And in Q4, we're producing vehicles at an annualized run rate - of almost 2 million cars a year. This is really a phenomenal - achievement. Looking at just the Fremont factory alone, we - made 560,000 cars. This is a record. In fact, it's the highest - output of automotive plant in North America. And people are - often surprised tha... [truncated] + speech: Thank you. So the Tesla team did an incredible job in 2023. We achieved record production and deliveries of [ about ] 1.8 million vehicles, in line with our official guidance. And in Q4, we're producing vehicles at an annualized run rate of almost 2 million cars a year. This is really a phenomenal achievement. Looking at just the Fremont factory alone, we made 560,000 cars. This is a record. In fact, it's the highest output of automotive plant in North America. And people are often surprised tha... [truncated] session: Presenter Speech person_id: 175883 person_company: null component_order: 1 - name: Martin Viecha - speech: Thank you. And our CFO, Vaibhav, has opening remarks - as well. + speech: Thank you. And our CFO, Vaibhav, has opening remarks as well. session: Presenter Speech person_id: 370659 person_company: null @@ -339,8 +306,7 @@ paths: - name: Drew Baglino role: Executives pro_id: 621069668 - job_title: Former Senior Vice President of Powertrain & Energy - Engineering + job_title: Former Senior Vice President of Powertrain & Energy Engineering description: Executives company_name: Tesla, Inc. transcript_person_id: 393478 @@ -353,36 +319,19 @@ paths: transcript_person_id: 175883 transcript: - name: Martin Viecha - speech: Good afternoon, everyone and welcome to Tesla's Third - Quarter 2023 Q&A Webcast. My name is Martin Viecha, VP of - Investor Relations, and I'm joined today by Elon Musk, Vaibhav - Taneja and a number of other executives. Our Q3 results were - announced at about 3:00 p.m. Central Time in the update that - we published at the same link as this webcast. During this - call, we will discuss our business outlook and make forward-looking - statements. These comments are based on our predictions and - expectations as ... [truncated] + speech: Good afternoon, everyone and welcome to Tesla's Third Quarter 2023 Q&A Webcast. My name is Martin Viecha, VP of Investor Relations, and I'm joined today by Elon Musk, Vaibhav Taneja and a number of other executives. Our Q3 results were announced at about 3:00 p.m. Central Time in the update that we published at the same link as this webcast. During this call, we will discuss our business outlook and make forward-looking statements. These comments are based on our predictions and expectations as ... [truncated] session: Presenter Speech person_id: 370659 person_company: null component_order: 0 - name: Elon Musk - speech: Thanks, Martin. So just a Q3 recap. Our last quarter - was impacted by down time for global factory upgrades that - will help us reduce cost per vehicle as well as increase production. - We remain focused on 3 main objectives which is the cost reduction - of our products, investments in artificial intelligence, and - other growth projects like Optimus. And continued free cash - flow generation. Regarding vehicle cost, our team was able - to reduce the cost per vehicle further in Q3 despite headwinds - from fact... [truncated] + speech: Thanks, Martin. So just a Q3 recap. Our last quarter was impacted by down time for global factory upgrades that will help us reduce cost per vehicle as well as increase production. We remain focused on 3 main objectives which is the cost reduction of our products, investments in artificial intelligence, and other growth projects like Optimus. And continued free cash flow generation. Regarding vehicle cost, our team was able to reduce the cost per vehicle further in Q3 despite headwinds from fact... [truncated] session: Presenter Speech person_id: 175883 person_company: null component_order: 1 - name: Martin Viecha - speech: Thank you very much, Elon. And our CFO, Vaibhav, had - some opening remarks as well. + speech: Thank you very much, Elon. And our CFO, Vaibhav, had some opening remarks as well. session: Presenter Speech person_id: 370659 person_company: null @@ -403,8 +352,7 @@ paths: - name: Colin Rusch role: Analysts pro_id: 311020585 - job_title: MD & Senior Analyst and Head of Sustainable Growth - & Resource Optimization + job_title: MD & Senior Analyst and Head of Sustainable Growth & Resource Optimization description: Analysts company_name: Oppenheimer & Co. Inc., Research Division transcript_person_id: 310676 @@ -418,43 +366,25 @@ paths: - name: Drew Baglino role: Executives pro_id: 621069668 - job_title: Former Senior Vice President of Powertrain & Energy - Engineering + job_title: Former Senior Vice President of Powertrain & Energy Engineering description: Executives company_name: Tesla, Inc. transcript_person_id: 393478 transcript: - name: Martin Viecha - speech: "Good afternoon, everyone, and welcome to Tesla's Second\ - \ Quarter 2023 Q&A Webcast. My name is Martin Viecha, I'm\ - \ VP of Investor Relations, and I'm joined today by Elon Musk,\ - \ Zachary Kirkhorn and a number of other executives. \r\n\ - Our Q2 results were announced at about 3 p.m. Central Time\ - \ in the update deck we published at the same link as this\ - \ webcast. During this call, we will discuss our business\ - \ outlook and make forward-looking statements. These comments\ - \ are based on our predictions and expectati... [truncated]" + speech: "Good afternoon, everyone, and welcome to Tesla's Second Quarter 2023 Q&A Webcast. My name is Martin Viecha, I'm VP of Investor Relations, and I'm joined today by Elon Musk, Zachary Kirkhorn and a number of other executives. \r\nOur Q2 results were announced at about 3 p.m. Central Time in the update deck we published at the same link as this webcast. During this call, we will discuss our business outlook and make forward-looking statements. These comments are based on our predictions and expectati... [truncated]" session: Presenter Speech person_id: 370659 person_company: null component_order: 0 - name: Elon Musk - speech: "Thank you, Martin. So just a Q2 recap. In Q2, we achieved\ - \ record vehicle production and deliveries and record revenue\ - \ of about $25 billion in a single quarter. And Model Y became\ - \ the best-selling vehicle of any kind globally in Q1, surpassing\ - \ the likes of Corolla and Gulf. So it was the #1 vehicle\ - \ of any kind, including vehicles that are sold at a far lower\ - \ price. This is, I think, an incredible achievement by the\ - \ Tesla team, and just a huge thank you to our customers for\ - \ their support. \r\nSo thi... [truncated]" + speech: "Thank you, Martin. So just a Q2 recap. In Q2, we achieved record vehicle production and deliveries and record revenue of about $25 billion in a single quarter. And Model Y became the best-selling vehicle of any kind globally in Q1, surpassing the likes of Corolla and Gulf. So it was the #1 vehicle of any kind, including vehicles that are sold at a far lower price. This is, I think, an incredible achievement by the Tesla team, and just a huge thank you to our customers for their support. \r\nSo thi... [truncated]" session: Presenter Speech person_id: 175883 person_company: null component_order: 1 - name: Martin Viecha - speech: Thank you very much, Elon. And I think Zach has some - opening remarks as well. + speech: Thank you very much, Elon. And I think Zach has some opening remarks as well. session: Presenter Speech person_id: 370659 person_company: null @@ -465,9 +395,8 @@ paths: count: 12 from_year: 2021 to_year: 2023 - x-source-variants: - - group_path: Enrichment - request_name: Company Earnings Transcripts + '401': + $ref: '#/components/responses/UnauthorizedError' parameters: - name: company in: query @@ -494,7 +423,7 @@ paths: tags: - Enrichment summary: Employee Reviews - description: 'Source docs: employee-reviews.md' + description: Retrieves paginated employee reviews for a specified company, supporting configurable result limits and offsets for efficient data navigation. Returns a structured list of product reviews. operationId: get_api_enterprise_company_employee-reviews responses: '200': @@ -548,8 +477,7 @@ paths: required: - status - data - description: '[FROM OFFICIAL DOCS] Response schema derived from example - in employee-reviews.md.' + description: '[FROM OFFICIAL DOCS] Response schema derived from example in employee-reviews.md.' example: status: success data: @@ -564,17 +492,15 @@ paths: diversity_and_inclusion_rating: 4.2 senior_management_rating: 3.6 work_life_balance_rating: 3.9 - x-source-variants: - - group_path: Enrichment - request_name: Employee Reviews + '401': + $ref: '#/components/responses/UnauthorizedError' parameters: - name: company in: query required: true schema: type: string - description: Permalink of the company whose employee reviews need to be fetched - E.g. `"salesforce"` + description: Permalink of the company whose employee reviews need to be fetched E.g. `"salesforce"` - name: limit in: query required: false @@ -594,7 +520,7 @@ paths: tags: - Enrichment summary: Company Filings - description: 'Source docs: company-filings.md' + description: Fetch SEC filings for a public company. Supports filtering by form type (10-K, 10-Q, 8-K, etc.) and year range. operationId: get_api_enterprise_company_filings responses: '200': @@ -651,8 +577,7 @@ paths: - from_year - to_year - form - description: '[FROM OFFICIAL DOCS] Response schema derived from example - in company-filings.md.' + description: '[FROM OFFICIAL DOCS] Response schema derived from example in company-filings.md.' example: status: success data: @@ -663,27 +588,20 @@ paths: acceptedDate: '2023-01-31 02:29:15' reportUrl: https://www.sec.gov/Archives/edgar/data/1318605/000095017023001409/tsla-20221231.htm filingUrl: https://www.sec.gov/Archives/edgar/data/1318605/000095017023001409/0000950170-23-001409-index.html - filingData: =8.0.0" } }, "node_modules/@opentelemetry/api-logs": { - "version": "0.202.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.202.0.tgz", - "integrity": "sha512-fTBjMqKCfotFWfLzaKyhjLvyEyq5vDKTTFfBmx21btv3gvy8Lq6N5Dh2OzqeuN4DjtpSvNT1uNVfg08eD2Rfxw==", + "version": "0.214.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.214.0.tgz", + "integrity": "sha512-40lSJeqYO8Uz2Yj7u94/SJWE/wONa7rmMKjI1ZcIjgf3MHNHv1OZUCrCETGuaRF62d5pQD1wKIW+L4lmSMTzZA==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -149,9 +150,9 @@ } }, "node_modules/@opentelemetry/context-async-hooks": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-2.0.1.tgz", - "integrity": "sha512-XuY23lSI3d4PEqKA+7SLtAgwqIfc6E/E9eAQWLN1vlpC53ybO3o6jW4BsXo1xvz9lYyyWItfQDDLzezER01mCw==", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-2.6.1.tgz", + "integrity": "sha512-XHzhwRNkBpeP8Fs/qjGrAf9r9PRv67wkJQ/7ZPaBQQ68DYlTBBx5MF9LvPx7mhuXcDessKK2b+DcxqwpgkcivQ==", "dev": true, "license": "Apache-2.0", "engines": { @@ -162,9 +163,9 @@ } }, "node_modules/@opentelemetry/core": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-2.0.1.tgz", - "integrity": "sha512-MaZk9SJIDgo1peKevlbhP6+IwIiNPNmswNL4AF0WaQJLbHXjr9SrZMgS12+iqr9ToV4ZVosCcc0f8Rg67LXjxw==", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-2.6.1.tgz", + "integrity": "sha512-8xHSGWpJP9wBxgBpnqGL0R3PbdWQndL1Qp50qrg71+B28zK5OQmUgcDKLJgzyAAV38t4tOyLMGDD60LneR5W8g==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -178,17 +179,17 @@ } }, "node_modules/@opentelemetry/exporter-trace-otlp-http": { - "version": "0.202.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-http/-/exporter-trace-otlp-http-0.202.0.tgz", - "integrity": "sha512-/hKE8DaFCJuaQqE1IxpgkcjOolUIwgi3TgHElPVKGdGRBSmJMTmN/cr6vWa55pCJIXPyhKvcMrbrya7DZ3VmzA==", + "version": "0.214.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-http/-/exporter-trace-otlp-http-0.214.0.tgz", + "integrity": "sha512-kIN8nTBMgV2hXzV/a20BCFilPZdAIMYYJGSgfMMRm/Xa+07y5hRDS2Vm12A/z8Cdu3Sq++ZvJfElokX2rkgGgw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "2.0.1", - "@opentelemetry/otlp-exporter-base": "0.202.0", - "@opentelemetry/otlp-transformer": "0.202.0", - "@opentelemetry/resources": "2.0.1", - "@opentelemetry/sdk-trace-base": "2.0.1" + "@opentelemetry/core": "2.6.1", + "@opentelemetry/otlp-exporter-base": "0.214.0", + "@opentelemetry/otlp-transformer": "0.214.0", + "@opentelemetry/resources": "2.6.1", + "@opentelemetry/sdk-trace-base": "2.6.1" }, "engines": { "node": "^18.19.0 || >=20.6.0" @@ -198,14 +199,14 @@ } }, "node_modules/@opentelemetry/otlp-exporter-base": { - "version": "0.202.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-exporter-base/-/otlp-exporter-base-0.202.0.tgz", - "integrity": "sha512-nMEOzel+pUFYuBJg2znGmHJWbmvMbdX5/RhoKNKowguMbURhz0fwik5tUKplLcUtl8wKPL1y9zPnPxeBn65N0Q==", + "version": "0.214.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-exporter-base/-/otlp-exporter-base-0.214.0.tgz", + "integrity": "sha512-u1Gdv0/E9wP+apqWf7Wv2npXmgJtxsW2XL0TEv9FZloTZRuMBKmu8cYVXwS4Hm3q/f/3FuCnPTgiwYvIqRSpRg==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "2.0.1", - "@opentelemetry/otlp-transformer": "0.202.0" + "@opentelemetry/core": "2.6.1", + "@opentelemetry/otlp-transformer": "0.214.0" }, "engines": { "node": "^18.19.0 || >=20.6.0" @@ -215,19 +216,19 @@ } }, "node_modules/@opentelemetry/otlp-transformer": { - "version": "0.202.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.202.0.tgz", - "integrity": "sha512-5XO77QFzs9WkexvJQL9ksxL8oVFb/dfi9NWQSq7Sv0Efr9x3N+nb1iklP1TeVgxqJ7m1xWiC/Uv3wupiQGevMw==", + "version": "0.214.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.214.0.tgz", + "integrity": "sha512-DSaYcuBRh6uozfsWN3R8HsN0yDhCuWP7tOFdkUOVaWD1KVJg8m4qiLUsg/tNhTLS9HUYUcwNpwL2eroLtsZZ/w==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@opentelemetry/api-logs": "0.202.0", - "@opentelemetry/core": "2.0.1", - "@opentelemetry/resources": "2.0.1", - "@opentelemetry/sdk-logs": "0.202.0", - "@opentelemetry/sdk-metrics": "2.0.1", - "@opentelemetry/sdk-trace-base": "2.0.1", - "protobufjs": "^7.3.0" + "@opentelemetry/api-logs": "0.214.0", + "@opentelemetry/core": "2.6.1", + "@opentelemetry/resources": "2.6.1", + "@opentelemetry/sdk-logs": "0.214.0", + "@opentelemetry/sdk-metrics": "2.6.1", + "@opentelemetry/sdk-trace-base": "2.6.1", + "protobufjs": "^7.0.0" }, "engines": { "node": "^18.19.0 || >=20.6.0" @@ -237,13 +238,13 @@ } }, "node_modules/@opentelemetry/resources": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-2.0.1.tgz", - "integrity": "sha512-dZOB3R6zvBwDKnHDTB4X1xtMArB/d324VsbiPkX/Yu0Q8T2xceRthoIVFhJdvgVM2QhGVUyX9tzwiNxGtoBJUw==", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-2.6.1.tgz", + "integrity": "sha512-lID/vxSuKWXM55XhAKNoYXu9Cutoq5hFdkbTdI/zDKQktXzcWBVhNsOkiZFTMU9UtEWuGRNe0HUgmsFldIdxVA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "2.0.1", + "@opentelemetry/core": "2.6.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "engines": { @@ -254,15 +255,16 @@ } }, "node_modules/@opentelemetry/sdk-logs": { - "version": "0.202.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.202.0.tgz", - "integrity": "sha512-pv8QiQLQzk4X909YKm0lnW4hpuQg4zHwJ4XBd5bZiXcd9urvrJNoNVKnxGHPiDVX/GiLFvr5DMYsDBQbZCypRQ==", + "version": "0.214.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.214.0.tgz", + "integrity": "sha512-zf6acnScjhsaBUU22zXZ/sLWim1dfhUAbGXdMmHmNG3LfBnQ3DKsOCITb2IZwoUsNNMTogqFKBnlIPPftUgGwA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@opentelemetry/api-logs": "0.202.0", - "@opentelemetry/core": "2.0.1", - "@opentelemetry/resources": "2.0.1" + "@opentelemetry/api-logs": "0.214.0", + "@opentelemetry/core": "2.6.1", + "@opentelemetry/resources": "2.6.1", + "@opentelemetry/semantic-conventions": "^1.29.0" }, "engines": { "node": "^18.19.0 || >=20.6.0" @@ -272,14 +274,14 @@ } }, "node_modules/@opentelemetry/sdk-metrics": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-2.0.1.tgz", - "integrity": "sha512-wf8OaJoSnujMAHWR3g+/hGvNcsC16rf9s1So4JlMiFaFHiE4HpIA3oUh+uWZQ7CNuK8gVW/pQSkgoa5HkkOl0g==", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-2.6.1.tgz", + "integrity": "sha512-9t9hJHX15meBy2NmTJxL+NJfXmnausR2xUDvE19XQce0Qi/GBtDGamU8nS1RMbdgDmhgpm3VaOu2+fiS/SfTpQ==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "2.0.1", - "@opentelemetry/resources": "2.0.1" + "@opentelemetry/core": "2.6.1", + "@opentelemetry/resources": "2.6.1" }, "engines": { "node": "^18.19.0 || >=20.6.0" @@ -289,14 +291,14 @@ } }, "node_modules/@opentelemetry/sdk-trace-base": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-2.0.1.tgz", - "integrity": "sha512-xYLlvk/xdScGx1aEqvxLwf6sXQLXCjk3/1SQT9X9AoN5rXRhkdvIFShuNNmtTEPRBqcsMbS4p/gJLNI2wXaDuQ==", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-2.6.1.tgz", + "integrity": "sha512-r86ut4T1e8vNwB35CqCcKd45yzqH6/6Wzvpk2/cZB8PsPLlZFTvrh8yfOS3CYZYcUmAx4hHTZJ8AO8Dj8nrdhw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "2.0.1", - "@opentelemetry/resources": "2.0.1", + "@opentelemetry/core": "2.6.1", + "@opentelemetry/resources": "2.6.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "engines": { @@ -307,15 +309,15 @@ } }, "node_modules/@opentelemetry/sdk-trace-node": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-node/-/sdk-trace-node-2.0.1.tgz", - "integrity": "sha512-UhdbPF19pMpBtCWYP5lHbTogLWx9N0EBxtdagvkn5YtsAnCBZzL7SjktG+ZmupRgifsHMjwUaCCaVmqGfSADmA==", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-node/-/sdk-trace-node-2.6.1.tgz", + "integrity": "sha512-Hh2i4FwHWRFhnO2Q/p6svMxy8MPsNCG0uuzUY3glqm0rwM0nQvbTO1dXSp9OqQoTKXcQzaz9q1f65fsurmOhNw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@opentelemetry/context-async-hooks": "2.0.1", - "@opentelemetry/core": "2.0.1", - "@opentelemetry/sdk-trace-base": "2.0.1" + "@opentelemetry/context-async-hooks": "2.6.1", + "@opentelemetry/core": "2.6.1", + "@opentelemetry/sdk-trace-base": "2.6.1" }, "engines": { "node": "^18.19.0 || >=20.6.0" @@ -325,9 +327,9 @@ } }, "node_modules/@opentelemetry/semantic-conventions": { - "version": "1.34.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.34.0.tgz", - "integrity": "sha512-aKcOkyrorBGlajjRdVoJWHTxfxO1vCNHLJVlSDaRHDIdjU+pX8IYQPvPDkYiujKLbRnWU+1TBwEt0QRgSm4SGA==", + "version": "1.40.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.40.0.tgz", + "integrity": "sha512-cifvXDhcqMwwTlTK04GBNeIe7yyo28Mfby85QXFe1Yk8nmi36Ab/5UQwptOx84SsoGNRg+EVSjwzfSZMy6pmlw==", "dev": true, "license": "Apache-2.0", "engines": { @@ -349,9 +351,9 @@ "license": "BSD-3-Clause" }, "node_modules/@protobufjs/codegen": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.5.tgz", + "integrity": "sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==", "dev": true, "license": "BSD-3-Clause" }, @@ -381,9 +383,9 @@ "license": "BSD-3-Clause" }, "node_modules/@protobufjs/inquire": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.1.tgz", + "integrity": "sha512-mnzgDV26ueAvk7rsbt9L7bE0SuAoqyuys/sMMrmVcN5x9VsxpcG3rqAUSgDyLp0UZlmNfIbQ4fHfCtreVBk8Ew==", "dev": true, "license": "BSD-3-Clause" }, @@ -402,9 +404,9 @@ "license": "BSD-3-Clause" }, "node_modules/@protobufjs/utf8": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.1.tgz", + "integrity": "sha512-oOAWABowe8EAbMyWKM0tYDKi8Yaox52D+HWZhAIJqQXbqe0xI/GV7FhLWqlEKreMkfDjshR5FKgi3mnle0h6Eg==", "dev": true, "license": "BSD-3-Clause" }, @@ -426,20 +428,19 @@ } }, "node_modules/@redocly/cli": { - "version": "2.29.1", - "resolved": "https://registry.npmjs.org/@redocly/cli/-/cli-2.29.1.tgz", - "integrity": "sha512-n85tU21emkYc1k7IZhOFqIrEQizvQuHzHMOwcMZ503XNhzf9OYLLQ8AEcQl1hjpUGtJWsMeSJbpuEwewgb4T0Q==", + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/@redocly/cli/-/cli-2.30.1.tgz", + "integrity": "sha512-n5lRNAuA5Sz+pFn6VKhngUlj3E6bR0NtUF3eWzsuVWc3ffu5TyLhD12xRcASyi+aW7Z1z33/leGwIvKRKeG3xg==", "dev": true, "license": "MIT", "dependencies": { - "@opentelemetry/exporter-trace-otlp-http": "0.202.0", - "@opentelemetry/resources": "2.0.1", - "@opentelemetry/sdk-trace-node": "2.0.1", - "@opentelemetry/semantic-conventions": "1.34.0", + "@opentelemetry/exporter-trace-otlp-http": "0.214.0", + "@opentelemetry/resources": "2.6.1", + "@opentelemetry/sdk-trace-node": "2.6.1", + "@opentelemetry/semantic-conventions": "1.40.0", "@redocly/cli-otel": "0.1.2", - "@redocly/openapi-core": "2.29.1", - "@redocly/respect-core": "2.29.1", - "abort-controller": "^3.0.0", + "@redocly/openapi-core": "2.30.1", + "@redocly/respect-core": "2.30.1", "ajv": "npm:@redocly/ajv@8.18.0", "ajv-formats": "^3.0.1", "colorette": "^1.2.0", @@ -502,14 +503,14 @@ } }, "node_modules/@redocly/openapi-core": { - "version": "2.29.1", - "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-2.29.1.tgz", - "integrity": "sha512-T9FeS2+lpXR9V/XHqiJ53uGjoF1Hs80nRA9ACEXpTLF9a4jzzSANO92/f9HKuQvl0bHgyaIbP5OsBgVU3EP1KQ==", + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-2.30.1.tgz", + "integrity": "sha512-ggv0nRy9Y7D1PxsmXE8MWU/x6EOVC/njZw1s7Z5TVt7OzHzLUiB2AroZzsU1dIMl2KRm4n3ygdo2VlNAAovyGQ==", "dev": true, "license": "MIT", "dependencies": { "@redocly/ajv": "^8.18.0", - "@redocly/config": "^0.48.0", + "@redocly/config": "^0.48.1", "ajv": "npm:@redocly/ajv@8.18.0", "ajv-formats": "^3.0.1", "colorette": "^1.2.0", @@ -525,16 +526,16 @@ } }, "node_modules/@redocly/respect-core": { - "version": "2.29.1", - "resolved": "https://registry.npmjs.org/@redocly/respect-core/-/respect-core-2.29.1.tgz", - "integrity": "sha512-TklpmSho4nSp2ySXWRUJlFQaHoN4BtSTTWabzQPetblAJ6KRVZtgFk6x8eD8KwWUaJj8c7ed4/KAIHOqTdNVxg==", + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/@redocly/respect-core/-/respect-core-2.30.1.tgz", + "integrity": "sha512-b3IiUa+oFcUppfUNcNubyKJ1/Gnt8brlU2+MrF0E+tpFJANMLXejQ0DcNN7t6lq2ZgCyp9DDK76tlJMmOIIcAQ==", "dev": true, "license": "MIT", "dependencies": { "@faker-js/faker": "^7.6.0", "@noble/hashes": "^1.8.0", "@redocly/ajv": "^8.18.0", - "@redocly/openapi-core": "2.29.1", + "@redocly/openapi-core": "2.30.1", "ajv": "npm:@redocly/ajv@8.18.0", "better-ajv-errors": "^1.2.0", "colorette": "^2.0.20", @@ -588,19 +589,6 @@ "license": "MIT", "optional": true }, - "node_modules/abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "dev": true, - "license": "MIT", - "dependencies": { - "event-target-shim": "^5.0.0" - }, - "engines": { - "node": ">=6.5" - } - }, "node_modules/agent-base": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", @@ -618,6 +606,7 @@ "integrity": "sha512-F+LMD2IDIXuHxgpLJh3nkLj9+tSaEzoUWd+7fONGq5pe2169FUDjpEkOfEpoGLz1sbZni/69p07OsecNfAOpqA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", @@ -936,16 +925,6 @@ "node": ">=6" } }, - "node_modules/event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/eventemitter3": { "version": "5.0.4", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz", @@ -1318,6 +1297,7 @@ "integrity": "sha512-UczzB+0nnwGotYSgllfARAqWCJ5e/skuV2K/l+Zyck/H6pJIhLXuBnz+6vn2i211o7DtbE78HQtsYEKICHGI+g==", "dev": true, "license": "MIT", + "peer": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/mobx" @@ -1705,23 +1685,23 @@ } }, "node_modules/protobufjs": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.5.tgz", - "integrity": "sha512-3wY1AxV+VBNW8Yypfd1yQY9pXnqTAN+KwQxL8iYm3/BjKYMNg4i0owhEe26PWDOMaIrzeeF98Lqd5NGz4omiIg==", + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.6.tgz", + "integrity": "sha512-M71sTMB146U3u0di3yup8iM+zv8yPRNQVr1KK4tyBitl3qFvEGucq/rGDRShD2rsJhtN02RJaJ7j5X5hmy8SJg==", "dev": true, "hasInstallScript": true, "license": "BSD-3-Clause", "dependencies": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", + "@protobufjs/codegen": "^2.0.5", "@protobufjs/eventemitter": "^1.1.0", "@protobufjs/fetch": "^1.1.0", "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", + "@protobufjs/inquire": "^1.1.1", "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", + "@protobufjs/utf8": "^1.1.1", "@types/node": ">=13.7.0", "long": "^5.0.0" }, @@ -1766,6 +1746,7 @@ "integrity": "sha512-llUJLzz1zTUBrskt2pwZgLq59AemifIftw4aB7JxOqf1HY2FDaGDxgwpAPVzHU1kdWabH7FauP4i1oEeer2WCA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -1776,6 +1757,7 @@ "integrity": "sha512-J5bAZz+DXMMwW/wV3xzKke59Af6CHY7G4uYLN1OvBcKEsWOs4pQExj86BBKamxl/Ik5bx9whOrvBlSDfWzgSag==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "scheduler": "^0.27.0" }, @@ -2202,6 +2184,7 @@ "integrity": "sha512-J72R4ltw0UBVUlEjTzI0gg2STOqlI9JBhQOL4Dxt7aJOnnSesy0qJDn4PYfMCafk9cWOaVg129Pesl5o+DIh0Q==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@emotion/is-prop-valid": "1.4.0", "@emotion/unitless": "0.10.0", diff --git a/package.json b/package.json index 6364e7c..80b1dd1 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,14 @@ "lint": "redocly lint openapi.yaml", "bundle": "redocly bundle openapi.yaml -o dist/wokelo-openapi.yaml", "preview": "redocly preview openapi.yaml", - "build-docs": "redocly build-docs openapi.yaml -o dist/index.html", - "build": "npm run lint && npm run bundle && npm run build-docs" + "build-docs": "mkdir -p dist && cp redoc.html dist/index.html && cp favicon.ico dist/favicon.ico", + "build-docs-ssr": "redocly build-docs openapi.yaml -o dist/index.ssr.html", + "build-playground": "mkdir -p dist && cp swagger.html dist/swagger.html && cp favicon.ico dist/favicon.ico", + "polish-specs": "python3 scripts/polish_specs.py", + "build": "npm run lint && npm run bundle && npm run build-docs && npm run build-playground" }, "devDependencies": { - "@redocly/cli": "^2.3.1" + "@redocly/cli": "^2.30.1" }, "repository": { "type": "git", diff --git a/redoc.html b/redoc.html new file mode 100644 index 0000000..8ae3c18 --- /dev/null +++ b/redoc.html @@ -0,0 +1,68 @@ + + + + + + Wokelo API Reference + + + + + +
+
Wokelo API Reference
+ +
+ + + + + diff --git a/scripts/polish_specs.py b/scripts/polish_specs.py new file mode 100644 index 0000000..ea80374 --- /dev/null +++ b/scripts/polish_specs.py @@ -0,0 +1,215 @@ +#!/usr/bin/env python3 +from __future__ import annotations + +from collections import Counter +from pathlib import Path + +import yaml + + +ROOT = Path(__file__).resolve().parent.parent +MASTER_PATH = ROOT / "openapi.yaml" +SOURCES_DIR = ROOT / "sources" + +OPERATIONS = {"get", "post", "put", "patch", "delete"} +LOGIN_OPERATION_ID = "post_auth_token" + +UNAUTHORIZED_SCHEMA_NAME = "CommonUnauthorizedError" +UNAUTHORIZED_RESPONSE_NAME = "UnauthorizedError" +UNAUTHORIZED_RESPONSE_REF = f"#/components/responses/{UNAUTHORIZED_RESPONSE_NAME}" +UNAUTHORIZED_SCHEMA_REF = f"#/components/schemas/{UNAUTHORIZED_SCHEMA_NAME}" + +MERGED_DESCRIPTIONS = { + ("post", "/api/workflow_manager/start/"): ( + "Start a workflow-driven report through Wokelo's workflow manager. " + "This shared endpoint supports Company Research (`company_primer`), " + "Industry Research (`industry_primer`), Peer Comparison (`player_comparison`), " + "and Custom Workflows (dashboard-configured workflow IDs). " + "The request body is modeled as a discriminator-based union across those variants." + ), + ("post", "/api/enterprise/company/enrich/"): ( + "Enrich one or more companies through Wokelo's shared company enrichment endpoint. " + "This operation supports the Company Instant Enrichment and Company Deep Intelligence " + "request variants using a discriminator-based request body." + ), +} + + +def load_yaml(path: Path) -> dict: + return yaml.safe_load(path.read_text()) + + +def dump_yaml(path: Path, data: dict) -> None: + path.write_text( + yaml.safe_dump(data, sort_keys=False, allow_unicode=True, width=1000) + ) + + +def iter_operations(spec: dict): + for path, item in spec.get("paths", {}).items(): + for method, op in item.items(): + if method in OPERATIONS: + yield path, method, op + + +def ensure_components(spec: dict) -> dict: + return spec.setdefault("components", {}) + + +def ensure_common_unauthorized(spec: dict) -> None: + components = ensure_components(spec) + schemas = components.setdefault("schemas", {}) + responses = components.setdefault("responses", {}) + schemas[UNAUTHORIZED_SCHEMA_NAME] = { + "type": "object", + "description": ( + "Generic authentication error returned when the request is missing a valid bearer token." + ), + "properties": { + "detail": {"type": "string"}, + "message": {"type": "string"}, + "error": {"type": "string"}, + }, + "additionalProperties": True, + "example": {"detail": "Authentication credentials were not provided."}, + } + responses[UNAUTHORIZED_RESPONSE_NAME] = { + "description": "Unauthorized. Include a valid bearer token from `/auth/token/`.", + "content": { + "application/json": { + "schema": {"$ref": UNAUTHORIZED_SCHEMA_REF}, + "example": {"detail": "Authentication credentials were not provided."}, + } + }, + } + + +def normalize_request_cancel(op: dict) -> None: + params = op.get("parameters", []) + filtered = [ + p for p in params if not (p.get("in") == "query" and p.get("name") == "request_id") + ] + if filtered: + op["parameters"] = filtered + elif "parameters" in op: + del op["parameters"] + + responses = op.setdefault("responses", {}) + if "200" in responses and "content" not in responses["200"]: + responses["200"]["description"] = "Successful cancellation acknowledgement" + responses["200"]["content"] = { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": True, + "description": ( + "Cancellation acknowledgement payload. The exact success body " + "is not formally documented." + ), + } + } + } + + +def normalize_notebook_configuration(op: dict) -> None: + responses = op.setdefault("responses", {}) + if "200" in responses and "content" not in responses["200"]: + responses["200"]["description"] = "Notebook configuration returned successfully" + responses["200"]["content"] = { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": True, + "description": ( + "Notebook configuration object. The docs describe this as " + "the original workflow configuration and do not formalize the shape." + ), + } + } + } + + +def cleanup_operation( + op: dict, + description: str, + *, + add_401: bool, + normalize_cancel: bool, + normalize_notebook: bool, +) -> None: + op["description"] = description.strip() + op.pop("x-source-variants", None) + + responses = op.setdefault("responses", {}) + if add_401 and "401" not in responses: + responses["401"] = {"$ref": UNAUTHORIZED_RESPONSE_REF} + + if "400" in responses and responses["400"].get("description") == "Company primer": + responses["400"]["description"] = "Bad request" + + if normalize_cancel: + normalize_request_cancel(op) + if normalize_notebook: + normalize_notebook_configuration(op) + + +def build_source_description_map() -> dict[tuple[str, str], list[str]]: + mapping: dict[tuple[str, str], list[str]] = {} + for path in sorted(SOURCES_DIR.glob("*.yaml")): + spec = load_yaml(path) + for op_path, method, _op in iter_operations(spec): + mapping.setdefault((method, op_path), []).append(spec["info"]["description"].strip()) + return mapping + + +def polish_source(path: Path) -> None: + spec = load_yaml(path) + ensure_common_unauthorized(spec) + + info_description = spec["info"]["description"].strip() + for op_path, method, op in iter_operations(spec): + cleanup_operation( + op, + info_description, + add_401=op.get("operationId") != LOGIN_OPERATION_ID, + normalize_cancel=op.get("operationId") == "post_api_enterprise_request_cancel", + normalize_notebook=op.get("operationId") == "post_api_wkl_notebook_configuration", + ) + + dump_yaml(path, spec) + + +def polish_master() -> None: + spec = load_yaml(MASTER_PATH) + ensure_common_unauthorized(spec) + + description_map = build_source_description_map() + description_counter = Counter(description_map) + + for op_path, method, op in iter_operations(spec): + key = (method, op_path) + if key in MERGED_DESCRIPTIONS: + description = MERGED_DESCRIPTIONS[key] + else: + descriptions = description_map.get(key, []) + description = descriptions[0] if descriptions else op.get("description", "") + + cleanup_operation( + op, + description, + add_401=op.get("operationId") != LOGIN_OPERATION_ID, + normalize_cancel=op.get("operationId") == "post_api_enterprise_request_cancel", + normalize_notebook=op.get("operationId") == "post_api_wkl_notebook_configuration", + ) + + dump_yaml(MASTER_PATH, spec) + + +def main() -> None: + for source_file in sorted(SOURCES_DIR.glob("*.yaml")): + polish_source(source_file) + polish_master() + + +if __name__ == "__main__": + main() diff --git a/sources/wokelo_authentication_openapi.yaml b/sources/wokelo_authentication_openapi.yaml index 115f0ed..92257c4 100644 --- a/sources/wokelo_authentication_openapi.yaml +++ b/sources/wokelo_authentication_openapi.yaml @@ -13,7 +13,7 @@ paths: tags: - Authentication summary: Login - description: 'Source docs: authentication.md' + description: Obtain a JSON Web Token (JWT) for subsequent API authentication operationId: post_auth_token responses: '200': @@ -59,9 +59,6 @@ paths: - error example: error: invalid_client - x-source-variants: - - group_path: Authentication - request_name: Login requestBody: required: true content: @@ -101,3 +98,26 @@ components: type: http scheme: bearer bearerFormat: JWT + schemas: + CommonUnauthorizedError: + type: object + description: Generic authentication error returned when the request is missing a valid bearer token. + properties: + detail: + type: string + message: + type: string + error: + type: string + additionalProperties: true + example: + detail: Authentication credentials were not provided. + responses: + UnauthorizedError: + description: Unauthorized. Include a valid bearer token from `/auth/token/`. + content: + application/json: + schema: + $ref: '#/components/schemas/CommonUnauthorizedError' + example: + detail: Authentication credentials were not provided. diff --git a/sources/wokelo_buyer_screening_openapi.yaml b/sources/wokelo_buyer_screening_openapi.yaml index 44aa4d9..412b18c 100644 --- a/sources/wokelo_buyer_screening_openapi.yaml +++ b/sources/wokelo_buyer_screening_openapi.yaml @@ -1,10 +1,7 @@ openapi: 3.0.3 info: title: Buyer Screening - description: The Buyer Screening API generates a long list of potential buyers for - a given target company, enriched with structured data. Optionally, you can refine - the output by specifying buyer type, company type, geography, and a detailed query - to narrow the strategic criteria. Returns a request\_id as a response. + description: The Buyer Screening API generates a long list of potential buyers for a given target company, enriched with structured data. Optionally, you can refine the output by specifying buyer type, company type, geography, and a detailed query to narrow the strategic criteria. Returns a request\_id as a response. version: 2.0.0 license: name: Proprietary @@ -16,7 +13,7 @@ paths: tags: - Discovery summary: Buyer Screening - description: 'Source docs: buyer-screening.md' + description: The Buyer Screening API generates a long list of potential buyers for a given target company, enriched with structured data. Optionally, you can refine the output by specifying buyer type, company type, geography, and a detailed query to narrow the strategic criteria. Returns a request\_id as a response. operationId: post_api_enterprise_buyer-screening_enrich responses: '200': @@ -28,9 +25,7 @@ paths: properties: request_id: type: string - description: Unique identifier for the request posted. Use this - with the `/api/enterprise/request/status/` endpoint to check - the status + description: Unique identifier for the request posted. Use this with the `/api/enterprise/request/status/` endpoint to check the status description: '[FROM OFFICIAL DOCS] Response schema from buyer-screening.md.' example: &id001 request_id: 278412f8-87ca-47a9-9d1c-4a62a687eaf6 @@ -52,9 +47,8 @@ paths: example: request_id: 278412f8-87ca-47a9-9d1c-4a62a687eaf6 status: PENDING - x-source-variants: - - group_path: Discovery - request_name: Buyer Screening + '401': + $ref: '#/components/responses/UnauthorizedError' requestBody: required: true content: @@ -64,30 +58,25 @@ paths: properties: company: type: string - description: 'Permalink of the target company or its complete URL - Example: `"acme-solar"` OR `https://www.acmesolar.in/`' + description: 'Permalink of the target company or its complete URL Example: `"acme-solar"` OR `https://www.acmesolar.in/`' parameters: type: object properties: detailed_query: type: string - description: A descriptive query to refine the buyer search - scope and strategic criteria + description: A descriptive query to refine the buyer search scope and strategic criteria buyer_type: type: array items: {} - description: 'Type of buyer to target. Accepted values: `"strategic"`, - `"financial"`' + description: 'Type of buyer to target. Accepted values: `"strategic"`, `"financial"`' company_type: type: string - description: 'Type of company to include. Accepted values: `"private"`, - `"public"`, `"all"`' + description: 'Type of company to include. Accepted values: `"private"`, `"public"`, `"all"`' geography: type: array items: type: string - description: Geographic scope. It should be a comma separated - list of ISO country codes. (Eg.. `["USA", "GBR"]`) + description: Geographic scope. It should be a comma separated list of ISO country codes. (Eg.. `["USA", "GBR"]`) description: '[FROM OFFICIAL DOCS] Request schema from buyer-screening.md.' required: - company @@ -102,3 +91,26 @@ components: type: http scheme: bearer bearerFormat: JWT + schemas: + CommonUnauthorizedError: + type: object + description: Generic authentication error returned when the request is missing a valid bearer token. + properties: + detail: + type: string + message: + type: string + error: + type: string + additionalProperties: true + example: + detail: Authentication credentials were not provided. + responses: + UnauthorizedError: + description: Unauthorized. Include a valid bearer token from `/auth/token/`. + content: + application/json: + schema: + $ref: '#/components/schemas/CommonUnauthorizedError' + example: + detail: Authentication credentials were not provided. diff --git a/sources/wokelo_company_deep_intelligence_openapi.yaml b/sources/wokelo_company_deep_intelligence_openapi.yaml index b2e633b..f732a22 100644 --- a/sources/wokelo_company_deep_intelligence_openapi.yaml +++ b/sources/wokelo_company_deep_intelligence_openapi.yaml @@ -1,11 +1,7 @@ openapi: 3.0.3 info: title: Company Deep Intelligence - description: The Company Insights API delivers structured insights for one or more - companies across sections such as products & services, product launches, strategic - initiatives, partnerships, and more. Optionally, you can customize the output - by specifying which sections to include and defining custom fields with your own - prompts. . Returns a request\_id in response. + description: The Company Insights API delivers structured insights for one or more companies across sections such as products & services, product launches, strategic initiatives, partnerships, and more. Optionally, you can customize the output by specifying which sections to include and defining custom fields with your own prompts. . Returns a request\_id in response. version: 2.0.0 license: name: Proprietary @@ -17,11 +13,7 @@ paths: tags: - Enrichment summary: Company Deep Intelligence - description: The Company Insights API delivers structured insights for one or - more companies across sections such as products & services, product launches, - strategic initiatives, partnerships, and more. Optionally, you can customize - the output by specifying which sections to include and defining custom fields - with your own prompts. . Returns a request\_id in response. + description: The Company Insights API delivers structured insights for one or more companies across sections such as products & services, product launches, strategic initiatives, partnerships, and more. Optionally, you can customize the output by specifying which sections to include and defining custom fields with your own prompts. . Returns a request\_id in response. operationId: post_company_deep_intelligence responses: '200': @@ -33,12 +25,10 @@ paths: properties: request_id: type: string - description: "[FROM EXAMPLE \u2014 not in formal docs schema]\ - \ Request identifier returned when the enrichment job is accepted." + description: '[FROM EXAMPLE — not in formal docs schema] Request identifier returned when the enrichment job is accepted.' status: type: string - description: "[FROM EXAMPLE \u2014 not in formal docs schema]\ - \ Async processing status returned with the request identifier." + description: '[FROM EXAMPLE — not in formal docs schema] Async processing status returned with the request identifier.' description: '[FROM OFFICIAL DOCS] Response schema from company-deep-intelligence.md.' example: &id001 request_id: 3c945250-a3e8-4673-b342-2ceb03af5b02 @@ -81,11 +71,8 @@ paths: error: Invalid companies not found in database invalid: - Tesla - x-source-variants: - - group_path: Enrichment - request_name: Company Instant Enrichment - - group_path: Enrichment - request_name: Company Deep Intelligence + '401': + $ref: '#/components/responses/UnauthorizedError' requestBody: required: true content: @@ -103,8 +90,7 @@ paths: custom_fields: - field_name: AI Readiness type: text - prompt: Rate this company's AI readiness on a scale of 1-10 with - reasoning + prompt: Rate this company's AI readiness on a scale of 1-10 with reasoning security: - bearerAuth: [] tags: @@ -119,8 +105,7 @@ components: type: array items: type: string - description: List of permalinks/ URLs of the companies (e.g. `"tesla-motors"`, - `"stripe"` OR `"https://tesla.com"`) + description: List of permalinks/ URLs of the companies (e.g. `"tesla-motors"`, `"stripe"` OR `"https://tesla.com"`) sections: type: array items: @@ -135,10 +120,7 @@ components: - management_profiles - employee_sentiment - product_sentiment - description: 'Sections of data to include in the output. Supported values: - `products_and_services`, `product_launches`, `strategic_initiatives`, - `partnerships`, `business_model`, `key_customers`, `management_profiles`, - `employee_sentiment`, `product_sentiment`' + description: 'Sections of data to include in the output. Supported values: `products_and_services`, `product_launches`, `strategic_initiatives`, `partnerships`, `business_model`, `key_customers`, `management_profiles`, `employee_sentiment`, `product_sentiment`' minItems: 1 parameters: type: object @@ -150,19 +132,15 @@ components: properties: field_name: type: string - description: Name of the custom field. Required if `custom_fields` - is used. + description: Name of the custom field. Required if `custom_fields` is used. type: type: string - description: 'Data type of the field (e.g. `text`). Supported - Value: `text`. Required if `custom_fields` is used.' + description: 'Data type of the field (e.g. `text`). Supported Value: `text`. Required if `custom_fields` is used.' prompt: type: string - description: Prompt used to generate the custom field value. Required - if `custom_fields` is used. + description: Prompt used to generate the custom field value. Required if `custom_fields` is used. description: List of custom fields to compute for each company - description: '[FROM OFFICIAL DOCS] Deep Intelligence variant using the deep-intelligence - `sections` vocabulary.' + description: '[FROM OFFICIAL DOCS] Deep Intelligence variant using the deep-intelligence `sections` vocabulary.' required: - companies - sections @@ -178,8 +156,30 @@ components: - field_name: AI Readiness type: text prompt: Rate this company's AI readiness on a scale of 1-10 with reasoning + CommonUnauthorizedError: + type: object + description: Generic authentication error returned when the request is missing a valid bearer token. + properties: + detail: + type: string + message: + type: string + error: + type: string + additionalProperties: true + example: + detail: Authentication credentials were not provided. securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: JWT + responses: + UnauthorizedError: + description: Unauthorized. Include a valid bearer token from `/auth/token/`. + content: + application/json: + schema: + $ref: '#/components/schemas/CommonUnauthorizedError' + example: + detail: Authentication credentials were not provided. diff --git a/sources/wokelo_company_filings_openapi.yaml b/sources/wokelo_company_filings_openapi.yaml index 998d5b0..f410a07 100644 --- a/sources/wokelo_company_filings_openapi.yaml +++ b/sources/wokelo_company_filings_openapi.yaml @@ -1,8 +1,7 @@ openapi: 3.0.3 info: title: Fetch Filings Data - description: Fetch SEC filings for a public company. Supports filtering by form - type (10-K, 10-Q, 8-K, etc.) and year range. + description: Fetch SEC filings for a public company. Supports filtering by form type (10-K, 10-Q, 8-K, etc.) and year range. version: 2.0.0 license: name: Proprietary @@ -14,7 +13,7 @@ paths: tags: - Enrichment summary: Company Filings - description: 'Source docs: company-filings.md' + description: Fetch SEC filings for a public company. Supports filtering by form type (10-K, 10-Q, 8-K, etc.) and year range. operationId: get_api_enterprise_company_filings responses: '200': @@ -71,8 +70,7 @@ paths: - from_year - to_year - form - description: '[FROM OFFICIAL DOCS] Response schema derived from example - in company-filings.md.' + description: '[FROM OFFICIAL DOCS] Response schema derived from example in company-filings.md.' example: status: success data: @@ -83,27 +81,20 @@ paths: acceptedDate: '2023-01-31 02:29:15' reportUrl: https://www.sec.gov/Archives/edgar/data/1318605/000095017023001409/tsla-20221231.htm filingUrl: https://www.sec.gov/Archives/edgar/data/1318605/000095017023001409/0000950170-23-001409-index.html - filingData: + + + + + Wokelo API Playground + + + + +
+

Wokelo API Playground

+

+ This page provides interactive browser-based testing for the bundled Wokelo OpenAPI spec. + Use the Authorize button with a bearer token from + POST /auth/token/, or return to the + Redoc reference docs for the narrative view. +

+

+ Live requests are sent directly from the browser to https://api.wokelo.ai. + Wokelo currently exposes the CORS headers needed for this flow. +

+
+
+ + + + + +