Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
191 changes: 191 additions & 0 deletions fern/apis/fai/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down