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
234 changes: 64 additions & 170 deletions fern/apis/fai/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
},
Expand All @@ -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": {}
}
}
},
Expand All @@ -3305,12 +3315,7 @@
}
},
"x-fern-audiences": [
"customers"
],
"security": [
{
"bearerAuth": []
}
"internal"
]
}
},
Expand Down Expand Up @@ -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",
Expand All @@ -3513,38 +3507,28 @@
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
},
"x-fern-audiences": [
"internal"
]
}
},
"/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"
}
}
],
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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": {
Expand Down