chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-09 04:31:07 +00:00
parent dbd48d423d
commit b2baddcd37
3 changed files with 31 additions and 29 deletions

View File

@@ -224,7 +224,9 @@ export const sessionHandlers = HttpApiBuilder.group(InstanceHttpApi, "session",
})
const unshare = Effect.fn("SessionHttpApi.unshare")(function* (ctx: { params: { sessionID: SessionID } }) {
yield* shareSvc.unshare(ctx.params.sessionID).pipe(Effect.mapError(() => new HttpApiError.InternalServerError({})))
yield* shareSvc
.unshare(ctx.params.sessionID)
.pipe(Effect.mapError(() => new HttpApiError.InternalServerError({})))
return yield* SessionError.mapStorageNotFound(session.get(ctx.params.sessionID))
})

View File

@@ -5680,14 +5680,14 @@ export type SessionUnshareData = {
}
export type SessionUnshareErrors = {
/**
* Bad request
*/
400: BadRequestError
/**
* NotFoundError
*/
404: NotFoundError
/**
* InternalServerError
*/
500: EffectHttpApiErrorInternalServerError
}
export type SessionUnshareError = SessionUnshareErrors[keyof SessionUnshareErrors]
@@ -5714,14 +5714,14 @@ export type SessionShareData = {
}
export type SessionShareErrors = {
/**
* Bad request
*/
400: BadRequestError
/**
* NotFoundError
*/
404: NotFoundError
/**
* InternalServerError
*/
500: EffectHttpApiErrorInternalServerError
}
export type SessionShareError = SessionShareErrors[keyof SessionShareErrors]

View File

@@ -5781,16 +5781,6 @@
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BadRequestError"
}
}
}
},
"404": {
"description": "NotFoundError",
"content": {
@@ -5800,6 +5790,16 @@
}
}
}
},
"500": {
"description": "InternalServerError",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/effect_HttpApiError_InternalServerError"
}
}
}
}
},
"description": "Create a shareable link for a session, allowing others to view the conversation.",
@@ -5852,16 +5852,6 @@
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BadRequestError"
}
}
}
},
"404": {
"description": "NotFoundError",
"content": {
@@ -5871,6 +5861,16 @@
}
}
}
},
"500": {
"description": "InternalServerError",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/effect_HttpApiError_InternalServerError"
}
}
}
}
},
"description": "Remove the shareable link for a session, making it private again.",