|
3165 | 3165 | "internal" |
3166 | 3166 | ] |
3167 | 3167 | } |
| 3168 | + }, |
| 3169 | + "/sources/github/{domain}/index": { |
| 3170 | + "post": { |
| 3171 | + "tags": [ |
| 3172 | + "Sources" |
| 3173 | + ], |
| 3174 | + "summary": "Index Github Source Repos", |
| 3175 | + "description": "Start indexing a GitHub repository for a domain.", |
| 3176 | + "operationId": "index_github_source_repos", |
| 3177 | + "parameters": [ |
| 3178 | + { |
| 3179 | + "name": "domain", |
| 3180 | + "in": "path", |
| 3181 | + "required": true, |
| 3182 | + "schema": { |
| 3183 | + "type": "string", |
| 3184 | + "title": "Domain" |
| 3185 | + } |
| 3186 | + } |
| 3187 | + ], |
| 3188 | + "requestBody": { |
| 3189 | + "required": true, |
| 3190 | + "content": { |
| 3191 | + "application/json": { |
| 3192 | + "schema": { |
| 3193 | + "$ref": "#/components/schemas/IndexGithubRequest" |
| 3194 | + } |
| 3195 | + } |
| 3196 | + } |
| 3197 | + }, |
| 3198 | + "responses": { |
| 3199 | + "200": { |
| 3200 | + "description": "Successful Response", |
| 3201 | + "content": { |
| 3202 | + "application/json": { |
| 3203 | + "schema": { |
| 3204 | + "$ref": "#/components/schemas/IndexGithubResponse" |
| 3205 | + } |
| 3206 | + } |
| 3207 | + } |
| 3208 | + }, |
| 3209 | + "422": { |
| 3210 | + "description": "Validation Error", |
| 3211 | + "content": { |
| 3212 | + "application/json": { |
| 3213 | + "schema": { |
| 3214 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 3215 | + } |
| 3216 | + } |
| 3217 | + } |
| 3218 | + } |
| 3219 | + }, |
| 3220 | + "x-fern-audiences": [ |
| 3221 | + "internal" |
| 3222 | + ] |
| 3223 | + } |
| 3224 | + }, |
| 3225 | + "/sources/github/{domain}/lambda/callback": { |
| 3226 | + "post": { |
| 3227 | + "tags": [ |
| 3228 | + "Sources" |
| 3229 | + ], |
| 3230 | + "summary": "Indexing Callback", |
| 3231 | + "operationId": "indexing_callback", |
| 3232 | + "parameters": [ |
| 3233 | + { |
| 3234 | + "name": "domain", |
| 3235 | + "in": "path", |
| 3236 | + "required": true, |
| 3237 | + "schema": { |
| 3238 | + "type": "string", |
| 3239 | + "title": "Domain" |
| 3240 | + } |
| 3241 | + } |
| 3242 | + ], |
| 3243 | + "requestBody": { |
| 3244 | + "required": true, |
| 3245 | + "content": { |
| 3246 | + "application/json": { |
| 3247 | + "schema": { |
| 3248 | + "$ref": "#/components/schemas/IndexingCallbackRequest" |
| 3249 | + } |
| 3250 | + } |
| 3251 | + } |
| 3252 | + }, |
| 3253 | + "responses": { |
| 3254 | + "200": { |
| 3255 | + "description": "Successful Response", |
| 3256 | + "content": { |
| 3257 | + "application/json": { |
| 3258 | + "schema": { |
| 3259 | + "$ref": "#/components/schemas/IndexingCallbackResponse" |
| 3260 | + } |
| 3261 | + } |
| 3262 | + } |
| 3263 | + }, |
| 3264 | + "422": { |
| 3265 | + "description": "Validation Error", |
| 3266 | + "content": { |
| 3267 | + "application/json": { |
| 3268 | + "schema": { |
| 3269 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 3270 | + } |
| 3271 | + } |
| 3272 | + } |
| 3273 | + } |
| 3274 | + }, |
| 3275 | + "x-fern-audiences": [ |
| 3276 | + "internal" |
| 3277 | + ] |
| 3278 | + } |
3168 | 3279 | } |
3169 | 3280 | }, |
3170 | 3281 | "components": { |
|
4313 | 4424 | ], |
4314 | 4425 | "title": "HistogramAnalyticsBar" |
4315 | 4426 | }, |
| 4427 | + "IndexGithubRequest": { |
| 4428 | + "properties": { |
| 4429 | + "repo_urls": { |
| 4430 | + "items": { |
| 4431 | + "type": "string" |
| 4432 | + }, |
| 4433 | + "type": "array", |
| 4434 | + "title": "Repo Urls", |
| 4435 | + "description": "GitHub repository URLs to index" |
| 4436 | + } |
| 4437 | + }, |
| 4438 | + "type": "object", |
| 4439 | + "required": [ |
| 4440 | + "repo_urls" |
| 4441 | + ], |
| 4442 | + "title": "IndexGithubRequest" |
| 4443 | + }, |
| 4444 | + "IndexGithubResponse": { |
| 4445 | + "properties": { |
| 4446 | + "job_id": { |
| 4447 | + "type": "string", |
| 4448 | + "title": "Job Id", |
| 4449 | + "description": "Job ID for tracking indexing progress" |
| 4450 | + }, |
| 4451 | + "repo_urls": { |
| 4452 | + "items": { |
| 4453 | + "type": "string" |
| 4454 | + }, |
| 4455 | + "type": "array", |
| 4456 | + "title": "Repo Urls", |
| 4457 | + "description": "GitHub repository URLs being indexed" |
| 4458 | + } |
| 4459 | + }, |
| 4460 | + "type": "object", |
| 4461 | + "required": [ |
| 4462 | + "job_id", |
| 4463 | + "repo_urls" |
| 4464 | + ], |
| 4465 | + "title": "IndexGithubResponse" |
| 4466 | + }, |
| 4467 | + "IndexingCallbackRequest": { |
| 4468 | + "properties": { |
| 4469 | + "session_id": { |
| 4470 | + "type": "string", |
| 4471 | + "title": "Session Id", |
| 4472 | + "description": "Session ID from the code indexing operation" |
| 4473 | + }, |
| 4474 | + "status": { |
| 4475 | + "type": "string", |
| 4476 | + "title": "Status", |
| 4477 | + "description": "Status of indexing operation: 'success' or 'failed'" |
| 4478 | + } |
| 4479 | + }, |
| 4480 | + "type": "object", |
| 4481 | + "required": [ |
| 4482 | + "session_id", |
| 4483 | + "status" |
| 4484 | + ], |
| 4485 | + "title": "IndexingCallbackRequest" |
| 4486 | + }, |
| 4487 | + "IndexingCallbackResponse": { |
| 4488 | + "properties": { |
| 4489 | + "status": { |
| 4490 | + "type": "string", |
| 4491 | + "title": "Status", |
| 4492 | + "description": "Callback processing status" |
| 4493 | + }, |
| 4494 | + "status_code": { |
| 4495 | + "type": "integer", |
| 4496 | + "title": "Status Code", |
| 4497 | + "description": "HTTP status code" |
| 4498 | + } |
| 4499 | + }, |
| 4500 | + "type": "object", |
| 4501 | + "required": [ |
| 4502 | + "status", |
| 4503 | + "status_code" |
| 4504 | + ], |
| 4505 | + "title": "IndexingCallbackResponse" |
| 4506 | + }, |
4316 | 4507 | "InsightExample": { |
4317 | 4508 | "properties": { |
4318 | 4509 | "query": { |
|
0 commit comments