fix(session): tighten http error contracts (#27308)

This commit is contained in:
Shoubhit Dash 2026-05-13 16:48:18 +05:30 committed by GitHub
commit 5b2b300602
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 104 additions and 42 deletions

View file

@ -5442,7 +5442,7 @@ export type SessionChildrenErrors = {
*/
400: BadRequestError
/**
* Not found
* NotFoundError
*/
404: NotFoundError
}
@ -5476,7 +5476,7 @@ export type SessionTodoErrors = {
*/
400: BadRequestError
/**
* Not found
* NotFoundError
*/
404: NotFoundError
}
@ -5586,7 +5586,7 @@ export type SessionPromptErrors = {
*/
400: BadRequestError
/**
* Not found
* NotFoundError
*/
404: NotFoundError
}
@ -5624,7 +5624,7 @@ export type SessionDeleteMessageErrors = {
*/
400: BadRequestError
/**
* Not found
* NotFoundError
*/
404: NotFoundError
}
@ -5731,10 +5731,6 @@ export type SessionAbortErrors = {
* Bad request
*/
400: BadRequestError
/**
* Not found
*/
404: NotFoundError
}
export type SessionAbortError = SessionAbortErrors[keyof SessionAbortErrors]
@ -5770,7 +5766,7 @@ export type SessionInitErrors = {
*/
400: BadRequestError
/**
* Not found
* NotFoundError
*/
404: NotFoundError
}
@ -5925,7 +5921,7 @@ export type SessionPromptAsyncErrors = {
*/
400: BadRequestError
/**
* Not found
* NotFoundError
*/
404: NotFoundError
}
@ -5974,7 +5970,7 @@ export type SessionCommandErrors = {
*/
400: BadRequestError
/**
* Not found
* NotFoundError
*/
404: NotFoundError
}
@ -6019,7 +6015,7 @@ export type SessionShellErrors = {
*/
400: BadRequestError
/**
* Not found
* NotFoundError
*/
404: NotFoundError
}
@ -6059,7 +6055,7 @@ export type SessionRevertErrors = {
*/
400: BadRequestError
/**
* Not found
* NotFoundError
*/
404: NotFoundError
}
@ -6093,7 +6089,7 @@ export type SessionUnrevertErrors = {
*/
400: BadRequestError
/**
* Not found
* NotFoundError
*/
404: NotFoundError
}
@ -6130,7 +6126,7 @@ export type PermissionRespondErrors = {
*/
400: BadRequestError
/**
* Not found
* NotFoundError
*/
404: NotFoundError
}
@ -6166,7 +6162,7 @@ export type PartDeleteErrors = {
*/
400: BadRequestError
/**
* Not found
* NotFoundError
*/
404: NotFoundError
}
@ -6202,7 +6198,7 @@ export type PartUpdateErrors = {
*/
400: BadRequestError
/**
* Not found
* NotFoundError
*/
404: NotFoundError
}