Skip to content

Commit 3bd3047

Browse files
chore: generate
1 parent dac81cd commit 3bd3047

3 files changed

Lines changed: 125 additions & 14 deletions

File tree

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,17 +197,23 @@ import type {
197197
TuiSelectSessionResponses,
198198
TuiShowToastResponses,
199199
TuiSubmitPromptResponses,
200+
V2ModelListErrors,
200201
V2ModelListResponses,
201202
V2ProviderGetErrors,
202203
V2ProviderGetResponses,
204+
V2ProviderListErrors,
203205
V2ProviderListResponses,
206+
V2SessionCompactErrors,
204207
V2SessionCompactResponses,
208+
V2SessionContextErrors,
205209
V2SessionContextResponses,
206210
V2SessionListErrors,
207211
V2SessionListResponses,
208212
V2SessionMessagesErrors,
209213
V2SessionMessagesResponses,
214+
V2SessionPromptErrors,
210215
V2SessionPromptResponses,
216+
V2SessionWaitErrors,
211217
V2SessionWaitResponses,
212218
VcsApplyErrors,
213219
VcsApplyResponses,
@@ -4232,7 +4238,7 @@ export class Session3 extends HeyApiClient {
42324238
},
42334239
],
42344240
)
4235-
return (options?.client ?? this.client).post<V2SessionPromptResponses, unknown, ThrowOnError>({
4241+
return (options?.client ?? this.client).post<V2SessionPromptResponses, V2SessionPromptErrors, ThrowOnError>({
42364242
url: "/api/session/{sessionID}/prompt",
42374243
...options,
42384244
...params,
@@ -4269,7 +4275,7 @@ export class Session3 extends HeyApiClient {
42694275
},
42704276
],
42714277
)
4272-
return (options?.client ?? this.client).post<V2SessionCompactResponses, unknown, ThrowOnError>({
4278+
return (options?.client ?? this.client).post<V2SessionCompactResponses, V2SessionCompactErrors, ThrowOnError>({
42734279
url: "/api/session/{sessionID}/compact",
42744280
...options,
42754281
...params,
@@ -4301,7 +4307,7 @@ export class Session3 extends HeyApiClient {
43014307
},
43024308
],
43034309
)
4304-
return (options?.client ?? this.client).post<V2SessionWaitResponses, unknown, ThrowOnError>({
4310+
return (options?.client ?? this.client).post<V2SessionWaitResponses, V2SessionWaitErrors, ThrowOnError>({
43054311
url: "/api/session/{sessionID}/wait",
43064312
...options,
43074313
...params,
@@ -4333,7 +4339,7 @@ export class Session3 extends HeyApiClient {
43334339
},
43344340
],
43354341
)
4336-
return (options?.client ?? this.client).get<V2SessionContextResponses, unknown, ThrowOnError>({
4342+
return (options?.client ?? this.client).get<V2SessionContextResponses, V2SessionContextErrors, ThrowOnError>({
43374343
url: "/api/session/{sessionID}/context",
43384344
...options,
43394345
...params,
@@ -4395,7 +4401,7 @@ export class Model extends HeyApiClient {
43954401
options?: Options<never, ThrowOnError>,
43964402
) {
43974403
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }])
4398-
return (options?.client ?? this.client).get<V2ModelListResponses, unknown, ThrowOnError>({
4404+
return (options?.client ?? this.client).get<V2ModelListResponses, V2ModelListErrors, ThrowOnError>({
43994405
url: "/api/model",
44004406
...options,
44014407
...params,
@@ -4419,7 +4425,7 @@ export class Provider2 extends HeyApiClient {
44194425
options?: Options<never, ThrowOnError>,
44204426
) {
44214427
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }])
4422-
return (options?.client ?? this.client).get<V2ProviderListResponses, unknown, ThrowOnError>({
4428+
return (options?.client ?? this.client).get<V2ProviderListResponses, V2ProviderListErrors, ThrowOnError>({
44234429
url: "/api/provider",
44244430
...options,
44254431
...params,

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

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ export type WellKnownAuth = {
104104

105105
export type Auth = OAuth | ApiAuth | WellKnownAuth
106106

107+
export type EffectHttpApiErrorBadRequest = {
108+
_tag: "BadRequest"
109+
}
110+
107111
export type EventTuiPromptAppend = {
108112
id: string
109113
type: "tui.prompt.append"
@@ -6639,9 +6643,13 @@ export type V2SessionListData = {
66396643

66406644
export type V2SessionListErrors = {
66416645
/**
6642-
* Bad request
6646+
* BadRequest
66436647
*/
6644-
400: BadRequestError
6648+
400: EffectHttpApiErrorBadRequest
6649+
/**
6650+
* Unauthorized
6651+
*/
6652+
401: unknown
66456653
}
66466654

66476655
export type V2SessionListError = V2SessionListErrors[keyof V2SessionListErrors]
@@ -6670,6 +6678,13 @@ export type V2SessionPromptData = {
66706678
url: "/api/session/{sessionID}/prompt"
66716679
}
66726680

6681+
export type V2SessionPromptErrors = {
6682+
/**
6683+
* Unauthorized
6684+
*/
6685+
401: unknown
6686+
}
6687+
66736688
export type V2SessionPromptResponses = {
66746689
/**
66756690
* Session.Message
@@ -6691,6 +6706,13 @@ export type V2SessionCompactData = {
66916706
url: "/api/session/{sessionID}/compact"
66926707
}
66936708

6709+
export type V2SessionCompactErrors = {
6710+
/**
6711+
* Unauthorized
6712+
*/
6713+
401: unknown
6714+
}
6715+
66946716
export type V2SessionCompactResponses = {
66956717
/**
66966718
* <No Content>
@@ -6712,6 +6734,13 @@ export type V2SessionWaitData = {
67126734
url: "/api/session/{sessionID}/wait"
67136735
}
67146736

6737+
export type V2SessionWaitErrors = {
6738+
/**
6739+
* Unauthorized
6740+
*/
6741+
401: unknown
6742+
}
6743+
67156744
export type V2SessionWaitResponses = {
67166745
/**
67176746
* <No Content>
@@ -6733,6 +6762,13 @@ export type V2SessionContextData = {
67336762
url: "/api/session/{sessionID}/context"
67346763
}
67356764

6765+
export type V2SessionContextErrors = {
6766+
/**
6767+
* Unauthorized
6768+
*/
6769+
401: unknown
6770+
}
6771+
67366772
export type V2SessionContextResponses = {
67376773
/**
67386774
* Success
@@ -6762,9 +6798,13 @@ export type V2SessionMessagesData = {
67626798

67636799
export type V2SessionMessagesErrors = {
67646800
/**
6765-
* Bad request
6801+
* BadRequest
67666802
*/
6767-
400: BadRequestError
6803+
400: EffectHttpApiErrorBadRequest
6804+
/**
6805+
* Unauthorized
6806+
*/
6807+
401: unknown
67686808
}
67696809

67706810
export type V2SessionMessagesError = V2SessionMessagesErrors[keyof V2SessionMessagesErrors]
@@ -6790,6 +6830,13 @@ export type V2ModelListData = {
67906830
url: "/api/model"
67916831
}
67926832

6833+
export type V2ModelListErrors = {
6834+
/**
6835+
* Unauthorized
6836+
*/
6837+
401: unknown
6838+
}
6839+
67936840
export type V2ModelListResponses = {
67946841
/**
67956842
* Success
@@ -6811,6 +6858,13 @@ export type V2ProviderListData = {
68116858
url: "/api/provider"
68126859
}
68136860

6861+
export type V2ProviderListErrors = {
6862+
/**
6863+
* Unauthorized
6864+
*/
6865+
401: unknown
6866+
}
6867+
68146868
export type V2ProviderListResponses = {
68156869
/**
68166870
* Success
@@ -6835,6 +6889,10 @@ export type V2ProviderGetData = {
68356889
}
68366890

68376891
export type V2ProviderGetErrors = {
6892+
/**
6893+
* Unauthorized
6894+
*/
6895+
401: unknown
68386896
/**
68396897
* NotFoundError
68406898
*/

0 commit comments

Comments
 (0)