chore: generate
This commit is contained in:
@@ -197,17 +197,23 @@ import type {
|
||||
TuiSelectSessionResponses,
|
||||
TuiShowToastResponses,
|
||||
TuiSubmitPromptResponses,
|
||||
V2ModelListErrors,
|
||||
V2ModelListResponses,
|
||||
V2ProviderGetErrors,
|
||||
V2ProviderGetResponses,
|
||||
V2ProviderListErrors,
|
||||
V2ProviderListResponses,
|
||||
V2SessionCompactErrors,
|
||||
V2SessionCompactResponses,
|
||||
V2SessionContextErrors,
|
||||
V2SessionContextResponses,
|
||||
V2SessionListErrors,
|
||||
V2SessionListResponses,
|
||||
V2SessionMessagesErrors,
|
||||
V2SessionMessagesResponses,
|
||||
V2SessionPromptErrors,
|
||||
V2SessionPromptResponses,
|
||||
V2SessionWaitErrors,
|
||||
V2SessionWaitResponses,
|
||||
VcsApplyErrors,
|
||||
VcsApplyResponses,
|
||||
@@ -4232,7 +4238,7 @@ export class Session3 extends HeyApiClient {
|
||||
},
|
||||
],
|
||||
)
|
||||
return (options?.client ?? this.client).post<V2SessionPromptResponses, unknown, ThrowOnError>({
|
||||
return (options?.client ?? this.client).post<V2SessionPromptResponses, V2SessionPromptErrors, ThrowOnError>({
|
||||
url: "/api/session/{sessionID}/prompt",
|
||||
...options,
|
||||
...params,
|
||||
@@ -4269,7 +4275,7 @@ export class Session3 extends HeyApiClient {
|
||||
},
|
||||
],
|
||||
)
|
||||
return (options?.client ?? this.client).post<V2SessionCompactResponses, unknown, ThrowOnError>({
|
||||
return (options?.client ?? this.client).post<V2SessionCompactResponses, V2SessionCompactErrors, ThrowOnError>({
|
||||
url: "/api/session/{sessionID}/compact",
|
||||
...options,
|
||||
...params,
|
||||
@@ -4301,7 +4307,7 @@ export class Session3 extends HeyApiClient {
|
||||
},
|
||||
],
|
||||
)
|
||||
return (options?.client ?? this.client).post<V2SessionWaitResponses, unknown, ThrowOnError>({
|
||||
return (options?.client ?? this.client).post<V2SessionWaitResponses, V2SessionWaitErrors, ThrowOnError>({
|
||||
url: "/api/session/{sessionID}/wait",
|
||||
...options,
|
||||
...params,
|
||||
@@ -4333,7 +4339,7 @@ export class Session3 extends HeyApiClient {
|
||||
},
|
||||
],
|
||||
)
|
||||
return (options?.client ?? this.client).get<V2SessionContextResponses, unknown, ThrowOnError>({
|
||||
return (options?.client ?? this.client).get<V2SessionContextResponses, V2SessionContextErrors, ThrowOnError>({
|
||||
url: "/api/session/{sessionID}/context",
|
||||
...options,
|
||||
...params,
|
||||
@@ -4395,7 +4401,7 @@ export class Model extends HeyApiClient {
|
||||
options?: Options<never, ThrowOnError>,
|
||||
) {
|
||||
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }])
|
||||
return (options?.client ?? this.client).get<V2ModelListResponses, unknown, ThrowOnError>({
|
||||
return (options?.client ?? this.client).get<V2ModelListResponses, V2ModelListErrors, ThrowOnError>({
|
||||
url: "/api/model",
|
||||
...options,
|
||||
...params,
|
||||
@@ -4419,7 +4425,7 @@ export class Provider2 extends HeyApiClient {
|
||||
options?: Options<never, ThrowOnError>,
|
||||
) {
|
||||
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }])
|
||||
return (options?.client ?? this.client).get<V2ProviderListResponses, unknown, ThrowOnError>({
|
||||
return (options?.client ?? this.client).get<V2ProviderListResponses, V2ProviderListErrors, ThrowOnError>({
|
||||
url: "/api/provider",
|
||||
...options,
|
||||
...params,
|
||||
|
||||
@@ -104,6 +104,10 @@ export type WellKnownAuth = {
|
||||
|
||||
export type Auth = OAuth | ApiAuth | WellKnownAuth
|
||||
|
||||
export type EffectHttpApiErrorBadRequest = {
|
||||
_tag: "BadRequest"
|
||||
}
|
||||
|
||||
export type EventTuiPromptAppend = {
|
||||
id: string
|
||||
type: "tui.prompt.append"
|
||||
@@ -6639,9 +6643,13 @@ export type V2SessionListData = {
|
||||
|
||||
export type V2SessionListErrors = {
|
||||
/**
|
||||
* Bad request
|
||||
* BadRequest
|
||||
*/
|
||||
400: BadRequestError
|
||||
400: EffectHttpApiErrorBadRequest
|
||||
/**
|
||||
* Unauthorized
|
||||
*/
|
||||
401: unknown
|
||||
}
|
||||
|
||||
export type V2SessionListError = V2SessionListErrors[keyof V2SessionListErrors]
|
||||
@@ -6670,6 +6678,13 @@ export type V2SessionPromptData = {
|
||||
url: "/api/session/{sessionID}/prompt"
|
||||
}
|
||||
|
||||
export type V2SessionPromptErrors = {
|
||||
/**
|
||||
* Unauthorized
|
||||
*/
|
||||
401: unknown
|
||||
}
|
||||
|
||||
export type V2SessionPromptResponses = {
|
||||
/**
|
||||
* Session.Message
|
||||
@@ -6691,6 +6706,13 @@ export type V2SessionCompactData = {
|
||||
url: "/api/session/{sessionID}/compact"
|
||||
}
|
||||
|
||||
export type V2SessionCompactErrors = {
|
||||
/**
|
||||
* Unauthorized
|
||||
*/
|
||||
401: unknown
|
||||
}
|
||||
|
||||
export type V2SessionCompactResponses = {
|
||||
/**
|
||||
* <No Content>
|
||||
@@ -6712,6 +6734,13 @@ export type V2SessionWaitData = {
|
||||
url: "/api/session/{sessionID}/wait"
|
||||
}
|
||||
|
||||
export type V2SessionWaitErrors = {
|
||||
/**
|
||||
* Unauthorized
|
||||
*/
|
||||
401: unknown
|
||||
}
|
||||
|
||||
export type V2SessionWaitResponses = {
|
||||
/**
|
||||
* <No Content>
|
||||
@@ -6733,6 +6762,13 @@ export type V2SessionContextData = {
|
||||
url: "/api/session/{sessionID}/context"
|
||||
}
|
||||
|
||||
export type V2SessionContextErrors = {
|
||||
/**
|
||||
* Unauthorized
|
||||
*/
|
||||
401: unknown
|
||||
}
|
||||
|
||||
export type V2SessionContextResponses = {
|
||||
/**
|
||||
* Success
|
||||
@@ -6762,9 +6798,13 @@ export type V2SessionMessagesData = {
|
||||
|
||||
export type V2SessionMessagesErrors = {
|
||||
/**
|
||||
* Bad request
|
||||
* BadRequest
|
||||
*/
|
||||
400: BadRequestError
|
||||
400: EffectHttpApiErrorBadRequest
|
||||
/**
|
||||
* Unauthorized
|
||||
*/
|
||||
401: unknown
|
||||
}
|
||||
|
||||
export type V2SessionMessagesError = V2SessionMessagesErrors[keyof V2SessionMessagesErrors]
|
||||
@@ -6790,6 +6830,13 @@ export type V2ModelListData = {
|
||||
url: "/api/model"
|
||||
}
|
||||
|
||||
export type V2ModelListErrors = {
|
||||
/**
|
||||
* Unauthorized
|
||||
*/
|
||||
401: unknown
|
||||
}
|
||||
|
||||
export type V2ModelListResponses = {
|
||||
/**
|
||||
* Success
|
||||
@@ -6811,6 +6858,13 @@ export type V2ProviderListData = {
|
||||
url: "/api/provider"
|
||||
}
|
||||
|
||||
export type V2ProviderListErrors = {
|
||||
/**
|
||||
* Unauthorized
|
||||
*/
|
||||
401: unknown
|
||||
}
|
||||
|
||||
export type V2ProviderListResponses = {
|
||||
/**
|
||||
* Success
|
||||
@@ -6835,6 +6889,10 @@ export type V2ProviderGetData = {
|
||||
}
|
||||
|
||||
export type V2ProviderGetErrors = {
|
||||
/**
|
||||
* Unauthorized
|
||||
*/
|
||||
401: unknown
|
||||
/**
|
||||
* NotFoundError
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user