From b18d284bae1a7406d0e4ff11decd8d3763f4cd15 Mon Sep 17 00:00:00 2001 From: sahil485 <46851548+sahil485@users.noreply.github.com> Date: Tue, 2 Dec 2025 21:10:10 +0000 Subject: [PATCH] update fern definition --- fern/apis/fai/openapi.json | 234 ++++++++++--------------------------- 1 file changed, 64 insertions(+), 170 deletions(-) diff --git a/fern/apis/fai/openapi.json b/fern/apis/fai/openapi.json index f9caf08f0..3fa950164 100644 --- a/fern/apis/fai/openapi.json +++ b/fern/apis/fai/openapi.json @@ -3221,30 +3221,42 @@ ] } }, - "/settings/ask-ai/reindex-callback": { + "/settings/ask-ai/set-job-id": { "post": { "tags": [ "Settings" ], - "summary": "Reindex Callback", - "description": "Handle callback from SQS reindexing worker when reindex completes.", - "operationId": "reindex_callback", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReindexCallbackRequest" - } + "summary": "Set Job Id", + "description": "Set the job_id for a domain when reindex starts processing.", + "operationId": "set_job_id", + "parameters": [ + { + "name": "domain", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Domain" } }, - "required": true - }, + { + "name": "job_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Job Id" + } + } + ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { + "$ref": "#/components/schemas/SetJobIdResponse" + } } } }, @@ -3264,32 +3276,30 @@ ] } }, - "/slack/install": { + "/settings/ask-ai/reindex-callback": { "post": { "tags": [ - "Slack_Ask_Fern" + "Settings" ], - "summary": "Create Slack Integration", - "operationId": "create_slack_integration", - "parameters": [ - { - "name": "domain", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Domain" + "summary": "Reindex Callback", + "description": "Handle callback from SQS reindexing worker when reindex completes.", + "operationId": "reindex_callback", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReindexCallbackRequest" + } } - } - ], + }, + "required": true + }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/SlackIntegrationResponse" - } + "schema": {} } } }, @@ -3305,12 +3315,7 @@ } }, "x-fern-audiences": [ - "customers" - ], - "security": [ - { - "bearerAuth": [] - } + "internal" ] } }, @@ -3487,24 +3492,13 @@ ] } }, - "/slack/integrations/{domain}": { - "get": { + "/scribe/slack/events": { + "post": { "tags": [ - "Slack_Ask_Fern" - ], - "summary": "List Slack Integrations", - "operationId": "list_slack_integrations", - "parameters": [ - { - "name": "domain", - "in": "path", - "required": true, - "schema": { - "type": "string", - "title": "Domain" - } - } + "Slack_Scribe" ], + "summary": "Handle Scribe Slack Events", + "operationId": "handle_scribe_slack_events", "responses": { "200": { "description": "Successful Response", @@ -3513,16 +3507,6 @@ "schema": {} } } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } } }, "x-fern-audiences": [ @@ -3530,21 +3514,21 @@ ] } }, - "/scribe/slack/install": { - "post": { + "/scribe/slack/get-install": { + "get": { "tags": [ "Slack_Scribe" ], - "summary": "Create Scribe Slack Integration", - "operationId": "create_scribe_slack_integration", + "summary": "Get Scribe Slack Install Link", + "operationId": "get_scribe_slack_install_link", "parameters": [ { - "name": "domain", + "name": "github_repo", "in": "query", "required": true, "schema": { "type": "string", - "title": "Domain" + "title": "Github Repo" } } ], @@ -3578,28 +3562,6 @@ ] } }, - "/scribe/slack/events": { - "post": { - "tags": [ - "Slack_Scribe" - ], - "summary": "Handle Scribe Slack Events", - "operationId": "handle_scribe_slack_events", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - } - }, - "x-fern-audiences": [ - "internal" - ] - } - }, "/scribe/slack/oauth/callback": { "get": { "tags": [ @@ -3659,49 +3621,6 @@ ] } }, - "/scribe/slack/integrations/{domain}": { - "get": { - "tags": [ - "Slack_Scribe" - ], - "summary": "List Scribe Slack Integrations", - "operationId": "list_scribe_slack_integrations", - "parameters": [ - { - "name": "domain", - "in": "path", - "required": true, - "schema": { - "type": "string", - "title": "Domain" - } - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "x-fern-audiences": [ - "internal" - ] - } - }, "/sources/github/{domain}/index-with-agent": { "post": { "tags": [ @@ -6805,17 +6724,14 @@ "title": "ReindexingJobRecord", "description": "Reindexing job record model" }, - "SlackIntegrationResponse": { + "SetJobIdResponse": { "properties": { - "integration_id": { - "type": "string", - "title": "Integration Id" + "success": { + "type": "boolean", + "title": "Success", + "description": "Whether the job_id was set successfully" }, "domain": { - "type": "string", - "title": "Domain" - }, - "slack_team_id": { "anyOf": [ { "type": "string" @@ -6824,9 +6740,10 @@ "type": "null" } ], - "title": "Slack Team Id" + "title": "Domain", + "description": "Domain for which job_id was set" }, - "slack_team_name": { + "job_id": { "anyOf": [ { "type": "string" @@ -6835,38 +6752,15 @@ "type": "null" } ], - "title": "Slack Team Name" - }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At" - }, - "installed_at": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ], - "title": "Installed At" - }, - "integration_url": { - "type": "string", - "title": "Integration Url" + "title": "Job Id", + "description": "The job_id that was set" } }, "type": "object", "required": [ - "integration_id", - "domain", - "created_at", - "integration_url" + "success" ], - "title": "SlackIntegrationResponse" + "title": "SetJobIdResponse" }, "SyncIndexRequest": { "properties": {