|
1224 | 1224 | "Editing_Sessions" |
1225 | 1225 | ], |
1226 | 1226 | "summary": "Interrupt Editing Session", |
1227 | | - "description": "Interrupt a running editing session.", |
| 1227 | + "description": "Interrupt a running editing session by sending INTERRUPT message to SQS.", |
1228 | 1228 | "operationId": "interrupt_editing_session", |
1229 | 1229 | "parameters": [ |
1230 | 1230 | { |
|
1264 | 1264 | ] |
1265 | 1265 | } |
1266 | 1266 | }, |
| 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 | + }, |
1267 | 1311 | "/feedback/{domain}": { |
1268 | 1312 | "post": { |
1269 | 1313 | "tags": [ |
|
3276 | 3320 | "internal" |
3277 | 3321 | ] |
3278 | 3322 | } |
| 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 | + } |
3279 | 3368 | } |
3280 | 3369 | }, |
3281 | 3370 | "components": { |
|
3894 | 3983 | ], |
3895 | 3984 | "title": "Pr Url" |
3896 | 3985 | }, |
| 3986 | + "queue_url": { |
| 3987 | + "anyOf": [ |
| 3988 | + { |
| 3989 | + "type": "string" |
| 3990 | + }, |
| 3991 | + { |
| 3992 | + "type": "null" |
| 3993 | + } |
| 3994 | + ], |
| 3995 | + "title": "Queue Url" |
| 3996 | + }, |
3897 | 3997 | "status": { |
3898 | 3998 | "$ref": "#/components/schemas/EditingSessionStatus" |
3899 | 3999 | }, |
|
3916 | 4016 | "base_branch", |
3917 | 4017 | "working_branch", |
3918 | 4018 | "pr_url", |
| 4019 | + "queue_url", |
3919 | 4020 | "status", |
3920 | 4021 | "created_at", |
3921 | 4022 | "updated_at" |
|
3925 | 4026 | "EditingSessionStatus": { |
3926 | 4027 | "type": "string", |
3927 | 4028 | "enum": [ |
| 4029 | + "startup", |
3928 | 4030 | "waiting", |
3929 | 4031 | "active", |
3930 | 4032 | "interrupted", |
|
4735 | 4837 | ], |
4736 | 4838 | "title": "PostChatCompletionResponse" |
4737 | 4839 | }, |
| 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 | + }, |
4738 | 4893 | "Query": { |
4739 | 4894 | "properties": { |
4740 | 4895 | "query_id": { |
|
0 commit comments