Skip to content

Commit b2baddc

Browse files
chore: generate
1 parent dbd48d4 commit b2baddc

3 files changed

Lines changed: 23 additions & 21 deletions

File tree

packages/opencode/src/server/routes/instance/httpapi/handlers/session.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ export const sessionHandlers = HttpApiBuilder.group(InstanceHttpApi, "session",
224224
})
225225

226226
const unshare = Effect.fn("SessionHttpApi.unshare")(function* (ctx: { params: { sessionID: SessionID } }) {
227-
yield* shareSvc.unshare(ctx.params.sessionID).pipe(Effect.mapError(() => new HttpApiError.InternalServerError({})))
227+
yield* shareSvc
228+
.unshare(ctx.params.sessionID)
229+
.pipe(Effect.mapError(() => new HttpApiError.InternalServerError({})))
228230
return yield* SessionError.mapStorageNotFound(session.get(ctx.params.sessionID))
229231
})
230232

packages/sdk/js/src/v2/gen/types.gen.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5680,14 +5680,14 @@ export type SessionUnshareData = {
56805680
}
56815681

56825682
export type SessionUnshareErrors = {
5683-
/**
5684-
* Bad request
5685-
*/
5686-
400: BadRequestError
56875683
/**
56885684
* NotFoundError
56895685
*/
56905686
404: NotFoundError
5687+
/**
5688+
* InternalServerError
5689+
*/
5690+
500: EffectHttpApiErrorInternalServerError
56915691
}
56925692

56935693
export type SessionUnshareError = SessionUnshareErrors[keyof SessionUnshareErrors]
@@ -5714,14 +5714,14 @@ export type SessionShareData = {
57145714
}
57155715

57165716
export type SessionShareErrors = {
5717-
/**
5718-
* Bad request
5719-
*/
5720-
400: BadRequestError
57215717
/**
57225718
* NotFoundError
57235719
*/
57245720
404: NotFoundError
5721+
/**
5722+
* InternalServerError
5723+
*/
5724+
500: EffectHttpApiErrorInternalServerError
57255725
}
57265726

57275727
export type SessionShareError = SessionShareErrors[keyof SessionShareErrors]

packages/sdk/openapi.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5781,22 +5781,22 @@
57815781
}
57825782
}
57835783
},
5784-
"400": {
5785-
"description": "Bad request",
5784+
"404": {
5785+
"description": "NotFoundError",
57865786
"content": {
57875787
"application/json": {
57885788
"schema": {
5789-
"$ref": "#/components/schemas/BadRequestError"
5789+
"$ref": "#/components/schemas/NotFoundError"
57905790
}
57915791
}
57925792
}
57935793
},
5794-
"404": {
5795-
"description": "NotFoundError",
5794+
"500": {
5795+
"description": "InternalServerError",
57965796
"content": {
57975797
"application/json": {
57985798
"schema": {
5799-
"$ref": "#/components/schemas/NotFoundError"
5799+
"$ref": "#/components/schemas/effect_HttpApiError_InternalServerError"
58005800
}
58015801
}
58025802
}
@@ -5852,22 +5852,22 @@
58525852
}
58535853
}
58545854
},
5855-
"400": {
5856-
"description": "Bad request",
5855+
"404": {
5856+
"description": "NotFoundError",
58575857
"content": {
58585858
"application/json": {
58595859
"schema": {
5860-
"$ref": "#/components/schemas/BadRequestError"
5860+
"$ref": "#/components/schemas/NotFoundError"
58615861
}
58625862
}
58635863
}
58645864
},
5865-
"404": {
5866-
"description": "NotFoundError",
5865+
"500": {
5866+
"description": "InternalServerError",
58675867
"content": {
58685868
"application/json": {
58695869
"schema": {
5870-
"$ref": "#/components/schemas/NotFoundError"
5870+
"$ref": "#/components/schemas/effect_HttpApiError_InternalServerError"
58715871
}
58725872
}
58735873
}

0 commit comments

Comments
 (0)