feat(sdk): restore session runtime operations (#33777)
This commit is contained in:
parent
44806777ca
commit
f44423609b
20 changed files with 1099 additions and 92 deletions
|
|
@ -1066,6 +1066,31 @@ const scenarios: Scenario[] = [
|
|||
headers: ctx.headers(),
|
||||
}))
|
||||
.status(400, undefined, "none"),
|
||||
http.protected
|
||||
.get("/api/session/{sessionID}/event", "v2.session.events.missing")
|
||||
.at((ctx) => ({
|
||||
path: `${route("/api/session/{sessionID}/event", { sessionID: "ses_httpapi_missing" })}?after=0`,
|
||||
headers: ctx.headers(),
|
||||
}))
|
||||
.status(404, undefined, "status"),
|
||||
http.protected
|
||||
.post("/api/session/{sessionID}/interrupt", "v2.session.interrupt")
|
||||
.seeded((ctx) => ctx.session({ title: "Interrupt session" }))
|
||||
.at((ctx) => ({
|
||||
path: route("/api/session/{sessionID}/interrupt", { sessionID: ctx.state.id }),
|
||||
headers: ctx.headers(),
|
||||
}))
|
||||
.status(204, undefined, "none"),
|
||||
http.protected
|
||||
.get("/api/session/{sessionID}/message/{messageID}", "v2.session.message.missing")
|
||||
.at((ctx) => ({
|
||||
path: route("/api/session/{sessionID}/message/{messageID}", {
|
||||
sessionID: "ses_httpapi_missing",
|
||||
messageID: "msg_httpapi_missing",
|
||||
}),
|
||||
headers: ctx.headers(),
|
||||
}))
|
||||
.json(404, object, "status"),
|
||||
http.protected
|
||||
.post("/api/session/{sessionID}/prompt", "v2.session.prompt.invalid")
|
||||
.seeded((ctx) => ctx.session({ title: "Invalid prompt owner" }))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue