|
3221 | 3221 | ] |
3222 | 3222 | } |
3223 | 3223 | }, |
3224 | | - "/settings/ask-ai/reindex-callback": { |
| 3224 | + "/settings/ask-ai/set-job-id": { |
3225 | 3225 | "post": { |
3226 | 3226 | "tags": [ |
3227 | 3227 | "Settings" |
3228 | 3228 | ], |
3229 | | - "summary": "Reindex Callback", |
3230 | | - "description": "Handle callback from SQS reindexing worker when reindex completes.", |
3231 | | - "operationId": "reindex_callback", |
3232 | | - "requestBody": { |
3233 | | - "content": { |
3234 | | - "application/json": { |
3235 | | - "schema": { |
3236 | | - "$ref": "#/components/schemas/ReindexCallbackRequest" |
3237 | | - } |
| 3229 | + "summary": "Set Job Id", |
| 3230 | + "description": "Set the job_id for a domain when reindex starts processing.", |
| 3231 | + "operationId": "set_job_id", |
| 3232 | + "parameters": [ |
| 3233 | + { |
| 3234 | + "name": "domain", |
| 3235 | + "in": "query", |
| 3236 | + "required": true, |
| 3237 | + "schema": { |
| 3238 | + "type": "string", |
| 3239 | + "title": "Domain" |
3238 | 3240 | } |
3239 | 3241 | }, |
3240 | | - "required": true |
3241 | | - }, |
| 3242 | + { |
| 3243 | + "name": "job_id", |
| 3244 | + "in": "query", |
| 3245 | + "required": true, |
| 3246 | + "schema": { |
| 3247 | + "type": "string", |
| 3248 | + "title": "Job Id" |
| 3249 | + } |
| 3250 | + } |
| 3251 | + ], |
3242 | 3252 | "responses": { |
3243 | 3253 | "200": { |
3244 | 3254 | "description": "Successful Response", |
3245 | 3255 | "content": { |
3246 | 3256 | "application/json": { |
3247 | | - "schema": {} |
| 3257 | + "schema": { |
| 3258 | + "$ref": "#/components/schemas/SetJobIdResponse" |
| 3259 | + } |
3248 | 3260 | } |
3249 | 3261 | } |
3250 | 3262 | }, |
|
3264 | 3276 | ] |
3265 | 3277 | } |
3266 | 3278 | }, |
3267 | | - "/slack/install": { |
| 3279 | + "/settings/ask-ai/reindex-callback": { |
3268 | 3280 | "post": { |
3269 | 3281 | "tags": [ |
3270 | | - "Slack_Ask_Fern" |
| 3282 | + "Settings" |
3271 | 3283 | ], |
3272 | | - "summary": "Create Slack Integration", |
3273 | | - "operationId": "create_slack_integration", |
3274 | | - "parameters": [ |
3275 | | - { |
3276 | | - "name": "domain", |
3277 | | - "in": "query", |
3278 | | - "required": true, |
3279 | | - "schema": { |
3280 | | - "type": "string", |
3281 | | - "title": "Domain" |
| 3284 | + "summary": "Reindex Callback", |
| 3285 | + "description": "Handle callback from SQS reindexing worker when reindex completes.", |
| 3286 | + "operationId": "reindex_callback", |
| 3287 | + "requestBody": { |
| 3288 | + "content": { |
| 3289 | + "application/json": { |
| 3290 | + "schema": { |
| 3291 | + "$ref": "#/components/schemas/ReindexCallbackRequest" |
| 3292 | + } |
3282 | 3293 | } |
3283 | | - } |
3284 | | - ], |
| 3294 | + }, |
| 3295 | + "required": true |
| 3296 | + }, |
3285 | 3297 | "responses": { |
3286 | 3298 | "200": { |
3287 | 3299 | "description": "Successful Response", |
3288 | 3300 | "content": { |
3289 | 3301 | "application/json": { |
3290 | | - "schema": { |
3291 | | - "$ref": "#/components/schemas/SlackIntegrationResponse" |
3292 | | - } |
| 3302 | + "schema": {} |
3293 | 3303 | } |
3294 | 3304 | } |
3295 | 3305 | }, |
|
3305 | 3315 | } |
3306 | 3316 | }, |
3307 | 3317 | "x-fern-audiences": [ |
3308 | | - "customers" |
3309 | | - ], |
3310 | | - "security": [ |
3311 | | - { |
3312 | | - "bearerAuth": [] |
3313 | | - } |
| 3318 | + "internal" |
3314 | 3319 | ] |
3315 | 3320 | } |
3316 | 3321 | }, |
|
3487 | 3492 | ] |
3488 | 3493 | } |
3489 | 3494 | }, |
3490 | | - "/slack/integrations/{domain}": { |
3491 | | - "get": { |
| 3495 | + "/scribe/slack/events": { |
| 3496 | + "post": { |
3492 | 3497 | "tags": [ |
3493 | | - "Slack_Ask_Fern" |
3494 | | - ], |
3495 | | - "summary": "List Slack Integrations", |
3496 | | - "operationId": "list_slack_integrations", |
3497 | | - "parameters": [ |
3498 | | - { |
3499 | | - "name": "domain", |
3500 | | - "in": "path", |
3501 | | - "required": true, |
3502 | | - "schema": { |
3503 | | - "type": "string", |
3504 | | - "title": "Domain" |
3505 | | - } |
3506 | | - } |
| 3498 | + "Slack_Scribe" |
3507 | 3499 | ], |
| 3500 | + "summary": "Handle Scribe Slack Events", |
| 3501 | + "operationId": "handle_scribe_slack_events", |
3508 | 3502 | "responses": { |
3509 | 3503 | "200": { |
3510 | 3504 | "description": "Successful Response", |
|
3513 | 3507 | "schema": {} |
3514 | 3508 | } |
3515 | 3509 | } |
3516 | | - }, |
3517 | | - "422": { |
3518 | | - "description": "Validation Error", |
3519 | | - "content": { |
3520 | | - "application/json": { |
3521 | | - "schema": { |
3522 | | - "$ref": "#/components/schemas/HTTPValidationError" |
3523 | | - } |
3524 | | - } |
3525 | | - } |
3526 | 3510 | } |
3527 | 3511 | }, |
3528 | 3512 | "x-fern-audiences": [ |
3529 | 3513 | "internal" |
3530 | 3514 | ] |
3531 | 3515 | } |
3532 | 3516 | }, |
3533 | | - "/scribe/slack/install": { |
3534 | | - "post": { |
| 3517 | + "/scribe/slack/get-install": { |
| 3518 | + "get": { |
3535 | 3519 | "tags": [ |
3536 | 3520 | "Slack_Scribe" |
3537 | 3521 | ], |
3538 | | - "summary": "Create Scribe Slack Integration", |
3539 | | - "operationId": "create_scribe_slack_integration", |
| 3522 | + "summary": "Get Scribe Slack Install Link", |
| 3523 | + "operationId": "get_scribe_slack_install_link", |
3540 | 3524 | "parameters": [ |
3541 | 3525 | { |
3542 | | - "name": "domain", |
| 3526 | + "name": "github_repo", |
3543 | 3527 | "in": "query", |
3544 | 3528 | "required": true, |
3545 | 3529 | "schema": { |
3546 | 3530 | "type": "string", |
3547 | | - "title": "Domain" |
| 3531 | + "title": "Github Repo" |
3548 | 3532 | } |
3549 | 3533 | } |
3550 | 3534 | ], |
|
3578 | 3562 | ] |
3579 | 3563 | } |
3580 | 3564 | }, |
3581 | | - "/scribe/slack/events": { |
3582 | | - "post": { |
3583 | | - "tags": [ |
3584 | | - "Slack_Scribe" |
3585 | | - ], |
3586 | | - "summary": "Handle Scribe Slack Events", |
3587 | | - "operationId": "handle_scribe_slack_events", |
3588 | | - "responses": { |
3589 | | - "200": { |
3590 | | - "description": "Successful Response", |
3591 | | - "content": { |
3592 | | - "application/json": { |
3593 | | - "schema": {} |
3594 | | - } |
3595 | | - } |
3596 | | - } |
3597 | | - }, |
3598 | | - "x-fern-audiences": [ |
3599 | | - "internal" |
3600 | | - ] |
3601 | | - } |
3602 | | - }, |
3603 | 3565 | "/scribe/slack/oauth/callback": { |
3604 | 3566 | "get": { |
3605 | 3567 | "tags": [ |
|
3659 | 3621 | ] |
3660 | 3622 | } |
3661 | 3623 | }, |
3662 | | - "/scribe/slack/integrations/{domain}": { |
3663 | | - "get": { |
3664 | | - "tags": [ |
3665 | | - "Slack_Scribe" |
3666 | | - ], |
3667 | | - "summary": "List Scribe Slack Integrations", |
3668 | | - "operationId": "list_scribe_slack_integrations", |
3669 | | - "parameters": [ |
3670 | | - { |
3671 | | - "name": "domain", |
3672 | | - "in": "path", |
3673 | | - "required": true, |
3674 | | - "schema": { |
3675 | | - "type": "string", |
3676 | | - "title": "Domain" |
3677 | | - } |
3678 | | - } |
3679 | | - ], |
3680 | | - "responses": { |
3681 | | - "200": { |
3682 | | - "description": "Successful Response", |
3683 | | - "content": { |
3684 | | - "application/json": { |
3685 | | - "schema": {} |
3686 | | - } |
3687 | | - } |
3688 | | - }, |
3689 | | - "422": { |
3690 | | - "description": "Validation Error", |
3691 | | - "content": { |
3692 | | - "application/json": { |
3693 | | - "schema": { |
3694 | | - "$ref": "#/components/schemas/HTTPValidationError" |
3695 | | - } |
3696 | | - } |
3697 | | - } |
3698 | | - } |
3699 | | - }, |
3700 | | - "x-fern-audiences": [ |
3701 | | - "internal" |
3702 | | - ] |
3703 | | - } |
3704 | | - }, |
3705 | 3624 | "/sources/github/{domain}/index-with-agent": { |
3706 | 3625 | "post": { |
3707 | 3626 | "tags": [ |
|
6805 | 6724 | "title": "ReindexingJobRecord", |
6806 | 6725 | "description": "Reindexing job record model" |
6807 | 6726 | }, |
6808 | | - "SlackIntegrationResponse": { |
| 6727 | + "SetJobIdResponse": { |
6809 | 6728 | "properties": { |
6810 | | - "integration_id": { |
6811 | | - "type": "string", |
6812 | | - "title": "Integration Id" |
| 6729 | + "success": { |
| 6730 | + "type": "boolean", |
| 6731 | + "title": "Success", |
| 6732 | + "description": "Whether the job_id was set successfully" |
6813 | 6733 | }, |
6814 | 6734 | "domain": { |
6815 | | - "type": "string", |
6816 | | - "title": "Domain" |
6817 | | - }, |
6818 | | - "slack_team_id": { |
6819 | 6735 | "anyOf": [ |
6820 | 6736 | { |
6821 | 6737 | "type": "string" |
|
6824 | 6740 | "type": "null" |
6825 | 6741 | } |
6826 | 6742 | ], |
6827 | | - "title": "Slack Team Id" |
| 6743 | + "title": "Domain", |
| 6744 | + "description": "Domain for which job_id was set" |
6828 | 6745 | }, |
6829 | | - "slack_team_name": { |
| 6746 | + "job_id": { |
6830 | 6747 | "anyOf": [ |
6831 | 6748 | { |
6832 | 6749 | "type": "string" |
|
6835 | 6752 | "type": "null" |
6836 | 6753 | } |
6837 | 6754 | ], |
6838 | | - "title": "Slack Team Name" |
6839 | | - }, |
6840 | | - "created_at": { |
6841 | | - "type": "string", |
6842 | | - "format": "date-time", |
6843 | | - "title": "Created At" |
6844 | | - }, |
6845 | | - "installed_at": { |
6846 | | - "anyOf": [ |
6847 | | - { |
6848 | | - "type": "string", |
6849 | | - "format": "date-time" |
6850 | | - }, |
6851 | | - { |
6852 | | - "type": "null" |
6853 | | - } |
6854 | | - ], |
6855 | | - "title": "Installed At" |
6856 | | - }, |
6857 | | - "integration_url": { |
6858 | | - "type": "string", |
6859 | | - "title": "Integration Url" |
| 6755 | + "title": "Job Id", |
| 6756 | + "description": "The job_id that was set" |
6860 | 6757 | } |
6861 | 6758 | }, |
6862 | 6759 | "type": "object", |
6863 | 6760 | "required": [ |
6864 | | - "integration_id", |
6865 | | - "domain", |
6866 | | - "created_at", |
6867 | | - "integration_url" |
| 6761 | + "success" |
6868 | 6762 | ], |
6869 | | - "title": "SlackIntegrationResponse" |
| 6763 | + "title": "SetJobIdResponse" |
6870 | 6764 | }, |
6871 | 6765 | "SyncIndexRequest": { |
6872 | 6766 | "properties": { |
|
0 commit comments