From a84d54f039e6ef72e90def8b8b45af92da7a0209 Mon Sep 17 00:00:00 2001 From: sahil485 <46851548+sahil485@users.noreply.github.com> Date: Mon, 3 Nov 2025 15:34:40 +0000 Subject: [PATCH] update fern definition --- fern/apis/fai/openapi.json | 191 +++++++++++++++++++++++++++++++++++++ 1 file changed, 191 insertions(+) diff --git a/fern/apis/fai/openapi.json b/fern/apis/fai/openapi.json index c5af30810..5c411ca5b 100644 --- a/fern/apis/fai/openapi.json +++ b/fern/apis/fai/openapi.json @@ -3165,6 +3165,117 @@ "internal" ] } + }, + "/sources/github/{domain}/index": { + "post": { + "tags": [ + "Sources" + ], + "summary": "Index Github Source Repos", + "description": "Start indexing a GitHub repository for a domain.", + "operationId": "index_github_source_repos", + "parameters": [ + { + "name": "domain", + "in": "path", + "required": true, + "schema": { + "type": "string", + "title": "Domain" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IndexGithubRequest" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IndexGithubResponse" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-fern-audiences": [ + "internal" + ] + } + }, + "/sources/github/{domain}/lambda/callback": { + "post": { + "tags": [ + "Sources" + ], + "summary": "Indexing Callback", + "operationId": "indexing_callback", + "parameters": [ + { + "name": "domain", + "in": "path", + "required": true, + "schema": { + "type": "string", + "title": "Domain" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IndexingCallbackRequest" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IndexingCallbackResponse" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-fern-audiences": [ + "internal" + ] + } } }, "components": { @@ -4313,6 +4424,86 @@ ], "title": "HistogramAnalyticsBar" }, + "IndexGithubRequest": { + "properties": { + "repo_urls": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Repo Urls", + "description": "GitHub repository URLs to index" + } + }, + "type": "object", + "required": [ + "repo_urls" + ], + "title": "IndexGithubRequest" + }, + "IndexGithubResponse": { + "properties": { + "job_id": { + "type": "string", + "title": "Job Id", + "description": "Job ID for tracking indexing progress" + }, + "repo_urls": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Repo Urls", + "description": "GitHub repository URLs being indexed" + } + }, + "type": "object", + "required": [ + "job_id", + "repo_urls" + ], + "title": "IndexGithubResponse" + }, + "IndexingCallbackRequest": { + "properties": { + "session_id": { + "type": "string", + "title": "Session Id", + "description": "Session ID from the code indexing operation" + }, + "status": { + "type": "string", + "title": "Status", + "description": "Status of indexing operation: 'success' or 'failed'" + } + }, + "type": "object", + "required": [ + "session_id", + "status" + ], + "title": "IndexingCallbackRequest" + }, + "IndexingCallbackResponse": { + "properties": { + "status": { + "type": "string", + "title": "Status", + "description": "Callback processing status" + }, + "status_code": { + "type": "integer", + "title": "Status Code", + "description": "HTTP status code" + } + }, + "type": "object", + "required": [ + "status", + "status_code" + ], + "title": "IndexingCallbackResponse" + }, "InsightExample": { "properties": { "query": {