Skip to content

Commit 195c012

Browse files
dsinghvisahil485
andauthored
Update fern definition (#2461)
Co-authored-by: sahil485 <46851548+sahil485@users.noreply.github.com>
1 parent 952c8ee commit 195c012

File tree

1 file changed

+64
-170
lines changed

1 file changed

+64
-170
lines changed

fern/apis/fai/openapi.json

Lines changed: 64 additions & 170 deletions
Original file line numberDiff line numberDiff line change
@@ -3221,30 +3221,42 @@
32213221
]
32223222
}
32233223
},
3224-
"/settings/ask-ai/reindex-callback": {
3224+
"/settings/ask-ai/set-job-id": {
32253225
"post": {
32263226
"tags": [
32273227
"Settings"
32283228
],
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"
32383240
}
32393241
},
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+
],
32423252
"responses": {
32433253
"200": {
32443254
"description": "Successful Response",
32453255
"content": {
32463256
"application/json": {
3247-
"schema": {}
3257+
"schema": {
3258+
"$ref": "#/components/schemas/SetJobIdResponse"
3259+
}
32483260
}
32493261
}
32503262
},
@@ -3264,32 +3276,30 @@
32643276
]
32653277
}
32663278
},
3267-
"/slack/install": {
3279+
"/settings/ask-ai/reindex-callback": {
32683280
"post": {
32693281
"tags": [
3270-
"Slack_Ask_Fern"
3282+
"Settings"
32713283
],
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+
}
32823293
}
3283-
}
3284-
],
3294+
},
3295+
"required": true
3296+
},
32853297
"responses": {
32863298
"200": {
32873299
"description": "Successful Response",
32883300
"content": {
32893301
"application/json": {
3290-
"schema": {
3291-
"$ref": "#/components/schemas/SlackIntegrationResponse"
3292-
}
3302+
"schema": {}
32933303
}
32943304
}
32953305
},
@@ -3305,12 +3315,7 @@
33053315
}
33063316
},
33073317
"x-fern-audiences": [
3308-
"customers"
3309-
],
3310-
"security": [
3311-
{
3312-
"bearerAuth": []
3313-
}
3318+
"internal"
33143319
]
33153320
}
33163321
},
@@ -3487,24 +3492,13 @@
34873492
]
34883493
}
34893494
},
3490-
"/slack/integrations/{domain}": {
3491-
"get": {
3495+
"/scribe/slack/events": {
3496+
"post": {
34923497
"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"
35073499
],
3500+
"summary": "Handle Scribe Slack Events",
3501+
"operationId": "handle_scribe_slack_events",
35083502
"responses": {
35093503
"200": {
35103504
"description": "Successful Response",
@@ -3513,38 +3507,28 @@
35133507
"schema": {}
35143508
}
35153509
}
3516-
},
3517-
"422": {
3518-
"description": "Validation Error",
3519-
"content": {
3520-
"application/json": {
3521-
"schema": {
3522-
"$ref": "#/components/schemas/HTTPValidationError"
3523-
}
3524-
}
3525-
}
35263510
}
35273511
},
35283512
"x-fern-audiences": [
35293513
"internal"
35303514
]
35313515
}
35323516
},
3533-
"/scribe/slack/install": {
3534-
"post": {
3517+
"/scribe/slack/get-install": {
3518+
"get": {
35353519
"tags": [
35363520
"Slack_Scribe"
35373521
],
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",
35403524
"parameters": [
35413525
{
3542-
"name": "domain",
3526+
"name": "github_repo",
35433527
"in": "query",
35443528
"required": true,
35453529
"schema": {
35463530
"type": "string",
3547-
"title": "Domain"
3531+
"title": "Github Repo"
35483532
}
35493533
}
35503534
],
@@ -3578,28 +3562,6 @@
35783562
]
35793563
}
35803564
},
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-
},
36033565
"/scribe/slack/oauth/callback": {
36043566
"get": {
36053567
"tags": [
@@ -3659,49 +3621,6 @@
36593621
]
36603622
}
36613623
},
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-
},
37053624
"/sources/github/{domain}/index-with-agent": {
37063625
"post": {
37073626
"tags": [
@@ -6805,17 +6724,14 @@
68056724
"title": "ReindexingJobRecord",
68066725
"description": "Reindexing job record model"
68076726
},
6808-
"SlackIntegrationResponse": {
6727+
"SetJobIdResponse": {
68096728
"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"
68136733
},
68146734
"domain": {
6815-
"type": "string",
6816-
"title": "Domain"
6817-
},
6818-
"slack_team_id": {
68196735
"anyOf": [
68206736
{
68216737
"type": "string"
@@ -6824,9 +6740,10 @@
68246740
"type": "null"
68256741
}
68266742
],
6827-
"title": "Slack Team Id"
6743+
"title": "Domain",
6744+
"description": "Domain for which job_id was set"
68286745
},
6829-
"slack_team_name": {
6746+
"job_id": {
68306747
"anyOf": [
68316748
{
68326749
"type": "string"
@@ -6835,38 +6752,15 @@
68356752
"type": "null"
68366753
}
68376754
],
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"
68606757
}
68616758
},
68626759
"type": "object",
68636760
"required": [
6864-
"integration_id",
6865-
"domain",
6866-
"created_at",
6867-
"integration_url"
6761+
"success"
68686762
],
6869-
"title": "SlackIntegrationResponse"
6763+
"title": "SetJobIdResponse"
68706764
},
68716765
"SyncIndexRequest": {
68726766
"properties": {

0 commit comments

Comments
 (0)