Skip to content

Commit cff4419

Browse files
chore: generate
1 parent 3615d5a commit cff4419

4 files changed

Lines changed: 67 additions & 4 deletions

File tree

packages/opencode/test/server/httpapi-account-error-mapping.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ const failingAccountLayer = Layer.succeed(
2323
active: () => Effect.succeed(Option.none()),
2424
activeOrg: () => Effect.succeed(Option.none()),
2525
list: () => Effect.succeed([]),
26-
orgsByAccount: () =>
27-
Effect.fail(new ORIG.AccountServiceError({ message: "simulated upstream failure" })),
26+
orgsByAccount: () => Effect.fail(new ORIG.AccountServiceError({ message: "simulated upstream failure" })),
2827
remove: () => Effect.void,
2928
use: () => Effect.void,
3029
orgs: () => Effect.succeed([]),

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ import type {
2424
EventTuiPromptAppend2,
2525
EventTuiSessionSelect2,
2626
EventTuiToastShow2,
27+
ExperimentalConsoleGetErrors,
2728
ExperimentalConsoleGetResponses,
29+
ExperimentalConsoleListOrgsErrors,
2830
ExperimentalConsoleListOrgsResponses,
2931
ExperimentalConsoleSwitchOrgResponses,
3032
ExperimentalResourceListResponses,
@@ -687,7 +689,11 @@ export class Console extends HeyApiClient {
687689
},
688690
],
689691
)
690-
return (options?.client ?? this.client).get<ExperimentalConsoleGetResponses, unknown, ThrowOnError>({
692+
return (options?.client ?? this.client).get<
693+
ExperimentalConsoleGetResponses,
694+
ExperimentalConsoleGetErrors,
695+
ThrowOnError
696+
>({
691697
url: "/experimental/console",
692698
...options,
693699
...params,
@@ -717,7 +723,11 @@ export class Console extends HeyApiClient {
717723
},
718724
],
719725
)
720-
return (options?.client ?? this.client).get<ExperimentalConsoleListOrgsResponses, unknown, ThrowOnError>({
726+
return (options?.client ?? this.client).get<
727+
ExperimentalConsoleListOrgsResponses,
728+
ExperimentalConsoleListOrgsErrors,
729+
ThrowOnError
730+
>({
721731
url: "/experimental/console/orgs",
722732
...options,
723733
...params,

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,10 @@ export type ConsoleState = {
13611361
switchableOrgCount: number
13621362
}
13631363

1364+
export type EffectHttpApiErrorInternalServerError = {
1365+
_tag: "InternalServerError"
1366+
}
1367+
13641368
export type ToolListItem = {
13651369
id: string
13661370
description: string
@@ -3612,6 +3616,15 @@ export type ExperimentalConsoleGetData = {
36123616
url: "/experimental/console"
36133617
}
36143618

3619+
export type ExperimentalConsoleGetErrors = {
3620+
/**
3621+
* InternalServerError
3622+
*/
3623+
500: EffectHttpApiErrorInternalServerError
3624+
}
3625+
3626+
export type ExperimentalConsoleGetError = ExperimentalConsoleGetErrors[keyof ExperimentalConsoleGetErrors]
3627+
36153628
export type ExperimentalConsoleGetResponses = {
36163629
/**
36173630
* Active Console provider metadata
@@ -3631,6 +3644,16 @@ export type ExperimentalConsoleListOrgsData = {
36313644
url: "/experimental/console/orgs"
36323645
}
36333646

3647+
export type ExperimentalConsoleListOrgsErrors = {
3648+
/**
3649+
* InternalServerError
3650+
*/
3651+
500: EffectHttpApiErrorInternalServerError
3652+
}
3653+
3654+
export type ExperimentalConsoleListOrgsError =
3655+
ExperimentalConsoleListOrgsErrors[keyof ExperimentalConsoleListOrgsErrors]
3656+
36343657
export type ExperimentalConsoleListOrgsResponses = {
36353658
/**
36363659
* Switchable Console orgs

packages/sdk/openapi.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,16 @@
680680
}
681681
}
682682
}
683+
},
684+
"500": {
685+
"description": "InternalServerError",
686+
"content": {
687+
"application/json": {
688+
"schema": {
689+
"$ref": "#/components/schemas/effect_HttpApiError_InternalServerError"
690+
}
691+
}
692+
}
683693
}
684694
},
685695
"description": "Get the active Console org name and the set of provider IDs managed by that Console org.",
@@ -757,6 +767,16 @@
757767
}
758768
}
759769
}
770+
},
771+
"500": {
772+
"description": "InternalServerError",
773+
"content": {
774+
"application/json": {
775+
"schema": {
776+
"$ref": "#/components/schemas/effect_HttpApiError_InternalServerError"
777+
}
778+
}
779+
}
760780
}
761781
},
762782
"description": "Get the available Console orgs across logged-in accounts, including the current active org.",
@@ -12521,6 +12541,17 @@
1252112541
"required": ["consoleManagedProviders", "switchableOrgCount"],
1252212542
"additionalProperties": false
1252312543
},
12544+
"effect_HttpApiError_InternalServerError": {
12545+
"type": "object",
12546+
"properties": {
12547+
"_tag": {
12548+
"type": "string",
12549+
"enum": ["InternalServerError"]
12550+
}
12551+
},
12552+
"required": ["_tag"],
12553+
"additionalProperties": false
12554+
},
1252412555
"ToolListItem": {
1252512556
"type": "object",
1252612557
"properties": {

0 commit comments

Comments
 (0)