Skip to content

Commit e24bbba

Browse files
dsinghvisahil485
andauthored
Update fern definition (#1767)
Co-authored-by: sahil485 <[email protected]>
1 parent 4bfb607 commit e24bbba

File tree

1 file changed

+156
-1
lines changed

1 file changed

+156
-1
lines changed

fern/apis/fai/openapi.json

Lines changed: 156 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@
12241224
"Editing_Sessions"
12251225
],
12261226
"summary": "Interrupt Editing Session",
1227-
"description": "Interrupt a running editing session.",
1227+
"description": "Interrupt a running editing session by sending INTERRUPT message to SQS.",
12281228
"operationId": "interrupt_editing_session",
12291229
"parameters": [
12301230
{
@@ -1264,6 +1264,50 @@
12641264
]
12651265
}
12661266
},
1267+
"/editing-sessions/{editing_id}/queue": {
1268+
"delete": {
1269+
"tags": [
1270+
"Editing_Sessions"
1271+
],
1272+
"summary": "Cleanup Session Queue",
1273+
"description": "Delete the SQS queue for an editing session.",
1274+
"operationId": "cleanup_session_queue",
1275+
"parameters": [
1276+
{
1277+
"name": "editing_id",
1278+
"in": "path",
1279+
"required": true,
1280+
"schema": {
1281+
"type": "string",
1282+
"title": "Editing Id"
1283+
}
1284+
}
1285+
],
1286+
"responses": {
1287+
"200": {
1288+
"description": "Successful Response",
1289+
"content": {
1290+
"application/json": {
1291+
"schema": {}
1292+
}
1293+
}
1294+
},
1295+
"422": {
1296+
"description": "Validation Error",
1297+
"content": {
1298+
"application/json": {
1299+
"schema": {
1300+
"$ref": "#/components/schemas/HTTPValidationError"
1301+
}
1302+
}
1303+
}
1304+
}
1305+
},
1306+
"x-fern-audiences": [
1307+
"internal"
1308+
]
1309+
}
1310+
},
12671311
"/feedback/{domain}": {
12681312
"post": {
12691313
"tags": [
@@ -3276,6 +3320,51 @@
32763320
"internal"
32773321
]
32783322
}
3323+
},
3324+
"/upstash/qstash/failure-callback": {
3325+
"post": {
3326+
"tags": [
3327+
"Upstash"
3328+
],
3329+
"summary": "Qstash Failure Callback",
3330+
"description": "Callback endpoint for Upstash QStash to notify about failed requests.\nLogs the failure details and posts to Slack #search-notifs channel.",
3331+
"operationId": "qstash_failure_callback",
3332+
"requestBody": {
3333+
"content": {
3334+
"application/json": {
3335+
"schema": {
3336+
"$ref": "#/components/schemas/QStashFailureCallback"
3337+
}
3338+
}
3339+
},
3340+
"required": true
3341+
},
3342+
"responses": {
3343+
"200": {
3344+
"description": "Successful Response",
3345+
"content": {
3346+
"application/json": {
3347+
"schema": {
3348+
"$ref": "#/components/schemas/QStashFailureCallbackResponse"
3349+
}
3350+
}
3351+
}
3352+
},
3353+
"422": {
3354+
"description": "Validation Error",
3355+
"content": {
3356+
"application/json": {
3357+
"schema": {
3358+
"$ref": "#/components/schemas/HTTPValidationError"
3359+
}
3360+
}
3361+
}
3362+
}
3363+
},
3364+
"x-fern-audiences": [
3365+
"internal"
3366+
]
3367+
}
32793368
}
32803369
},
32813370
"components": {
@@ -3894,6 +3983,17 @@
38943983
],
38953984
"title": "Pr Url"
38963985
},
3986+
"queue_url": {
3987+
"anyOf": [
3988+
{
3989+
"type": "string"
3990+
},
3991+
{
3992+
"type": "null"
3993+
}
3994+
],
3995+
"title": "Queue Url"
3996+
},
38973997
"status": {
38983998
"$ref": "#/components/schemas/EditingSessionStatus"
38993999
},
@@ -3916,6 +4016,7 @@
39164016
"base_branch",
39174017
"working_branch",
39184018
"pr_url",
4019+
"queue_url",
39194020
"status",
39204021
"created_at",
39214022
"updated_at"
@@ -3925,6 +4026,7 @@
39254026
"EditingSessionStatus": {
39264027
"type": "string",
39274028
"enum": [
4029+
"startup",
39284030
"waiting",
39294031
"active",
39304032
"interrupted",
@@ -4735,6 +4837,59 @@
47354837
],
47364838
"title": "PostChatCompletionResponse"
47374839
},
4840+
"QStashFailureCallback": {
4841+
"properties": {
4842+
"dlqId": {
4843+
"type": "string",
4844+
"title": "Dlqid"
4845+
},
4846+
"url": {
4847+
"type": "string",
4848+
"title": "Url"
4849+
},
4850+
"status": {
4851+
"type": "integer",
4852+
"title": "Status"
4853+
},
4854+
"sourceHeader": {
4855+
"additionalProperties": {
4856+
"anyOf": [
4857+
{
4858+
"type": "string"
4859+
},
4860+
{
4861+
"items": {
4862+
"type": "string"
4863+
},
4864+
"type": "array"
4865+
}
4866+
]
4867+
},
4868+
"type": "object",
4869+
"title": "Sourceheader"
4870+
}
4871+
},
4872+
"type": "object",
4873+
"required": [
4874+
"dlqId",
4875+
"url",
4876+
"status"
4877+
],
4878+
"title": "QStashFailureCallback"
4879+
},
4880+
"QStashFailureCallbackResponse": {
4881+
"properties": {
4882+
"success": {
4883+
"type": "boolean",
4884+
"title": "Success"
4885+
}
4886+
},
4887+
"type": "object",
4888+
"required": [
4889+
"success"
4890+
],
4891+
"title": "QStashFailureCallbackResponse"
4892+
},
47384893
"Query": {
47394894
"properties": {
47404895
"query_id": {

0 commit comments

Comments
 (0)