mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-13 23:52:06 +00:00
chore: generate
This commit is contained in:
@@ -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))
|
||||
})
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user