diff --git a/fern/apis/fai/openapi.json b/fern/apis/fai/openapi.json index 7c512a324..831e3bb42 100644 --- a/fern/apis/fai/openapi.json +++ b/fern/apis/fai/openapi.json @@ -1073,6 +1073,151 @@ ] } }, + "/editing-sessions": { + "post": { + "tags": [ + "Editing_Sessions" + ], + "summary": "Create Editing Session", + "description": "Create a new editing session.", + "operationId": "create_editing_session", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateEditingSessionRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateEditingSessionResponse" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-fern-audiences": [ + "internal" + ] + } + }, + "/editing-sessions/{editing_id}": { + "get": { + "tags": [ + "Editing_Sessions" + ], + "summary": "Get Editing Session", + "description": "Retrieve an editing session by ID.", + "operationId": "get_editing_session", + "parameters": [ + { + "name": "editing_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "title": "Editing Id" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetEditingSessionResponse" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-fern-audiences": [ + "internal" + ] + }, + "put": { + "tags": [ + "Editing_Sessions" + ], + "summary": "Update Editing Session", + "description": "Update an editing session with session_id and/or pr_url.", + "operationId": "update_editing_session", + "parameters": [ + { + "name": "editing_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "title": "Editing Id" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateEditingSessionRequest" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateEditingSessionResponse" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-fern-audiences": [ + "internal" + ] + } + }, "/feedback/{domain}": { "post": { "tags": [ @@ -2338,6 +2483,51 @@ ] } }, + "/settings/ask-ai/enable": { + "post": { + "tags": [ + "Settings" + ], + "summary": "Enable Ask Ai", + "description": "Enable Ask AI for multiple domains with specified locations and trigger reindex.\n\nArgs:\n request: Request containing domains, org_name, and locations to enable", + "operationId": "enable_ask_ai", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnableAskAiRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnableAskAiResponse" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-fern-audiences": [ + "internal" + ] + } + }, "/settings/ask-ai/toggle": { "post": { "tags": [ @@ -3077,6 +3267,38 @@ ], "title": "CreateDocumentResponse" }, + "CreateEditingSessionRequest": { + "properties": { + "repository": { + "type": "string", + "title": "Repository" + }, + "base_branch": { + "type": "string", + "title": "Base Branch" + } + }, + "type": "object", + "required": [ + "repository", + "base_branch" + ], + "title": "CreateEditingSessionRequest", + "description": "Request to create a new editing session." + }, + "CreateEditingSessionResponse": { + "properties": { + "editing_session": { + "$ref": "#/components/schemas/EditingSession" + } + }, + "type": "object", + "required": [ + "editing_session" + ], + "title": "CreateEditingSessionResponse", + "description": "Response when creating a new editing session." + }, "CreateFeedbackRequest": { "properties": { "conversation_id": { @@ -3389,6 +3611,116 @@ ], "title": "DomainRepoResponse" }, + "EditingSession": { + "properties": { + "id": { + "type": "string", + "title": "Id" + }, + "session_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Session Id" + }, + "repository": { + "type": "string", + "title": "Repository" + }, + "base_branch": { + "type": "string", + "title": "Base Branch" + }, + "working_branch": { + "type": "string", + "title": "Working Branch" + }, + "pr_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Pr Url" + }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "title": "Updated At" + } + }, + "type": "object", + "required": [ + "id", + "session_id", + "repository", + "base_branch", + "working_branch", + "pr_url", + "created_at", + "updated_at" + ], + "title": "EditingSession" + }, + "EnableAskAiRequest": { + "properties": { + "domains": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Domains", + "description": "List of domains to enable Ask AI for" + }, + "org_name": { + "type": "string", + "title": "Org Name", + "description": "Organization name" + }, + "locations": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Locations", + "description": "List of locations to enable (docs, slack, discord)" + } + }, + "type": "object", + "required": [ + "domains", + "org_name", + "locations" + ], + "title": "EnableAskAiRequest" + }, + "EnableAskAiResponse": { + "properties": { + "success": { + "type": "boolean", + "title": "Success", + "description": "Whether the enable operation was successful" + } + }, + "type": "object", + "required": [ + "success" + ], + "title": "EnableAskAiResponse" + }, "Feedback": { "properties": { "query_id": { @@ -3525,6 +3857,19 @@ ], "title": "GetDocumentsResponse" }, + "GetEditingSessionResponse": { + "properties": { + "editing_session": { + "$ref": "#/components/schemas/EditingSession" + } + }, + "type": "object", + "required": [ + "editing_session" + ], + "title": "GetEditingSessionResponse", + "description": "Response when retrieving an editing session." + }, "GetFeedbackResponse": { "properties": { "feedback": { @@ -4406,6 +4751,48 @@ ], "title": "UpdateDocumentResponse" }, + "UpdateEditingSessionRequest": { + "properties": { + "session_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Session Id" + }, + "pr_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Pr Url" + } + }, + "type": "object", + "title": "UpdateEditingSessionRequest", + "description": "Request to update an editing session." + }, + "UpdateEditingSessionResponse": { + "properties": { + "editing_session": { + "$ref": "#/components/schemas/EditingSession" + } + }, + "type": "object", + "required": [ + "editing_session" + ], + "title": "UpdateEditingSessionResponse", + "description": "Response when updating an editing session." + }, "UpdateGuidanceRequest": { "properties": { "context": {