chore: generate
This commit is contained in:
parent
dac81cdb68
commit
3bd304796b
@ -197,17 +197,23 @@ import type {
|
|||||||
TuiSelectSessionResponses,
|
TuiSelectSessionResponses,
|
||||||
TuiShowToastResponses,
|
TuiShowToastResponses,
|
||||||
TuiSubmitPromptResponses,
|
TuiSubmitPromptResponses,
|
||||||
|
V2ModelListErrors,
|
||||||
V2ModelListResponses,
|
V2ModelListResponses,
|
||||||
V2ProviderGetErrors,
|
V2ProviderGetErrors,
|
||||||
V2ProviderGetResponses,
|
V2ProviderGetResponses,
|
||||||
|
V2ProviderListErrors,
|
||||||
V2ProviderListResponses,
|
V2ProviderListResponses,
|
||||||
|
V2SessionCompactErrors,
|
||||||
V2SessionCompactResponses,
|
V2SessionCompactResponses,
|
||||||
|
V2SessionContextErrors,
|
||||||
V2SessionContextResponses,
|
V2SessionContextResponses,
|
||||||
V2SessionListErrors,
|
V2SessionListErrors,
|
||||||
V2SessionListResponses,
|
V2SessionListResponses,
|
||||||
V2SessionMessagesErrors,
|
V2SessionMessagesErrors,
|
||||||
V2SessionMessagesResponses,
|
V2SessionMessagesResponses,
|
||||||
|
V2SessionPromptErrors,
|
||||||
V2SessionPromptResponses,
|
V2SessionPromptResponses,
|
||||||
|
V2SessionWaitErrors,
|
||||||
V2SessionWaitResponses,
|
V2SessionWaitResponses,
|
||||||
VcsApplyErrors,
|
VcsApplyErrors,
|
||||||
VcsApplyResponses,
|
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",
|
url: "/api/session/{sessionID}/prompt",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/api/session/{sessionID}/compact",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/api/session/{sessionID}/wait",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/api/session/{sessionID}/context",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...params,
|
||||||
@ -4395,7 +4401,7 @@ export class Model extends HeyApiClient {
|
|||||||
options?: Options<never, ThrowOnError>,
|
options?: Options<never, ThrowOnError>,
|
||||||
) {
|
) {
|
||||||
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }])
|
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",
|
url: "/api/model",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...params,
|
||||||
@ -4419,7 +4425,7 @@ export class Provider2 extends HeyApiClient {
|
|||||||
options?: Options<never, ThrowOnError>,
|
options?: Options<never, ThrowOnError>,
|
||||||
) {
|
) {
|
||||||
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }])
|
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",
|
url: "/api/provider",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...params,
|
||||||
|
|||||||
@ -104,6 +104,10 @@ export type WellKnownAuth = {
|
|||||||
|
|
||||||
export type Auth = OAuth | ApiAuth | WellKnownAuth
|
export type Auth = OAuth | ApiAuth | WellKnownAuth
|
||||||
|
|
||||||
|
export type EffectHttpApiErrorBadRequest = {
|
||||||
|
_tag: "BadRequest"
|
||||||
|
}
|
||||||
|
|
||||||
export type EventTuiPromptAppend = {
|
export type EventTuiPromptAppend = {
|
||||||
id: string
|
id: string
|
||||||
type: "tui.prompt.append"
|
type: "tui.prompt.append"
|
||||||
@ -6639,9 +6643,13 @@ export type V2SessionListData = {
|
|||||||
|
|
||||||
export type V2SessionListErrors = {
|
export type V2SessionListErrors = {
|
||||||
/**
|
/**
|
||||||
* Bad request
|
* BadRequest
|
||||||
*/
|
*/
|
||||||
400: BadRequestError
|
400: EffectHttpApiErrorBadRequest
|
||||||
|
/**
|
||||||
|
* Unauthorized
|
||||||
|
*/
|
||||||
|
401: unknown
|
||||||
}
|
}
|
||||||
|
|
||||||
export type V2SessionListError = V2SessionListErrors[keyof V2SessionListErrors]
|
export type V2SessionListError = V2SessionListErrors[keyof V2SessionListErrors]
|
||||||
@ -6670,6 +6678,13 @@ export type V2SessionPromptData = {
|
|||||||
url: "/api/session/{sessionID}/prompt"
|
url: "/api/session/{sessionID}/prompt"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type V2SessionPromptErrors = {
|
||||||
|
/**
|
||||||
|
* Unauthorized
|
||||||
|
*/
|
||||||
|
401: unknown
|
||||||
|
}
|
||||||
|
|
||||||
export type V2SessionPromptResponses = {
|
export type V2SessionPromptResponses = {
|
||||||
/**
|
/**
|
||||||
* Session.Message
|
* Session.Message
|
||||||
@ -6691,6 +6706,13 @@ export type V2SessionCompactData = {
|
|||||||
url: "/api/session/{sessionID}/compact"
|
url: "/api/session/{sessionID}/compact"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type V2SessionCompactErrors = {
|
||||||
|
/**
|
||||||
|
* Unauthorized
|
||||||
|
*/
|
||||||
|
401: unknown
|
||||||
|
}
|
||||||
|
|
||||||
export type V2SessionCompactResponses = {
|
export type V2SessionCompactResponses = {
|
||||||
/**
|
/**
|
||||||
* <No Content>
|
* <No Content>
|
||||||
@ -6712,6 +6734,13 @@ export type V2SessionWaitData = {
|
|||||||
url: "/api/session/{sessionID}/wait"
|
url: "/api/session/{sessionID}/wait"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type V2SessionWaitErrors = {
|
||||||
|
/**
|
||||||
|
* Unauthorized
|
||||||
|
*/
|
||||||
|
401: unknown
|
||||||
|
}
|
||||||
|
|
||||||
export type V2SessionWaitResponses = {
|
export type V2SessionWaitResponses = {
|
||||||
/**
|
/**
|
||||||
* <No Content>
|
* <No Content>
|
||||||
@ -6733,6 +6762,13 @@ export type V2SessionContextData = {
|
|||||||
url: "/api/session/{sessionID}/context"
|
url: "/api/session/{sessionID}/context"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type V2SessionContextErrors = {
|
||||||
|
/**
|
||||||
|
* Unauthorized
|
||||||
|
*/
|
||||||
|
401: unknown
|
||||||
|
}
|
||||||
|
|
||||||
export type V2SessionContextResponses = {
|
export type V2SessionContextResponses = {
|
||||||
/**
|
/**
|
||||||
* Success
|
* Success
|
||||||
@ -6762,9 +6798,13 @@ export type V2SessionMessagesData = {
|
|||||||
|
|
||||||
export type V2SessionMessagesErrors = {
|
export type V2SessionMessagesErrors = {
|
||||||
/**
|
/**
|
||||||
* Bad request
|
* BadRequest
|
||||||
*/
|
*/
|
||||||
400: BadRequestError
|
400: EffectHttpApiErrorBadRequest
|
||||||
|
/**
|
||||||
|
* Unauthorized
|
||||||
|
*/
|
||||||
|
401: unknown
|
||||||
}
|
}
|
||||||
|
|
||||||
export type V2SessionMessagesError = V2SessionMessagesErrors[keyof V2SessionMessagesErrors]
|
export type V2SessionMessagesError = V2SessionMessagesErrors[keyof V2SessionMessagesErrors]
|
||||||
@ -6790,6 +6830,13 @@ export type V2ModelListData = {
|
|||||||
url: "/api/model"
|
url: "/api/model"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type V2ModelListErrors = {
|
||||||
|
/**
|
||||||
|
* Unauthorized
|
||||||
|
*/
|
||||||
|
401: unknown
|
||||||
|
}
|
||||||
|
|
||||||
export type V2ModelListResponses = {
|
export type V2ModelListResponses = {
|
||||||
/**
|
/**
|
||||||
* Success
|
* Success
|
||||||
@ -6811,6 +6858,13 @@ export type V2ProviderListData = {
|
|||||||
url: "/api/provider"
|
url: "/api/provider"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type V2ProviderListErrors = {
|
||||||
|
/**
|
||||||
|
* Unauthorized
|
||||||
|
*/
|
||||||
|
401: unknown
|
||||||
|
}
|
||||||
|
|
||||||
export type V2ProviderListResponses = {
|
export type V2ProviderListResponses = {
|
||||||
/**
|
/**
|
||||||
* Success
|
* Success
|
||||||
@ -6835,6 +6889,10 @@ export type V2ProviderGetData = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type V2ProviderGetErrors = {
|
export type V2ProviderGetErrors = {
|
||||||
|
/**
|
||||||
|
* Unauthorized
|
||||||
|
*/
|
||||||
|
401: unknown
|
||||||
/**
|
/**
|
||||||
* NotFoundError
|
* NotFoundError
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -7265,6 +7265,7 @@
|
|||||||
"required": false
|
"required": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"security": [],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "V2SessionsResponse",
|
"description": "V2SessionsResponse",
|
||||||
@ -7277,14 +7278,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Bad request",
|
"description": "BadRequest",
|
||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/components/schemas/BadRequestError"
|
"$ref": "#/components/schemas/effect_HttpApiError_BadRequest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Unauthorized"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": "Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.",
|
"description": "Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.",
|
||||||
@ -7328,6 +7332,7 @@
|
|||||||
"required": false
|
"required": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"security": [],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "Session.Message",
|
"description": "Session.Message",
|
||||||
@ -7338,6 +7343,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Unauthorized"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": "Create a v2 session message and queue it for the agent loop.",
|
"description": "Create a v2 session message and queue it for the agent loop.",
|
||||||
@ -7400,9 +7408,13 @@
|
|||||||
"required": false
|
"required": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"security": [],
|
||||||
"responses": {
|
"responses": {
|
||||||
"204": {
|
"204": {
|
||||||
"description": "<No Content>"
|
"description": "<No Content>"
|
||||||
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Unauthorized"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": "Compact a v2 session conversation.",
|
"description": "Compact a v2 session conversation.",
|
||||||
@ -7446,9 +7458,13 @@
|
|||||||
"required": false
|
"required": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"security": [],
|
||||||
"responses": {
|
"responses": {
|
||||||
"204": {
|
"204": {
|
||||||
"description": "<No Content>"
|
"description": "<No Content>"
|
||||||
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Unauthorized"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": "Wait for a v2 session agent loop to become idle.",
|
"description": "Wait for a v2 session agent loop to become idle.",
|
||||||
@ -7492,6 +7508,7 @@
|
|||||||
"required": false
|
"required": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"security": [],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "Success",
|
"description": "Success",
|
||||||
@ -7505,6 +7522,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Unauthorized"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": "Retrieve the active context messages for a v2 session (all messages after the last compaction).",
|
"description": "Retrieve the active context messages for a v2 session (all messages after the last compaction).",
|
||||||
@ -7574,6 +7594,7 @@
|
|||||||
"required": false
|
"required": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"security": [],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "V2SessionMessagesResponse",
|
"description": "V2SessionMessagesResponse",
|
||||||
@ -7586,14 +7607,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Bad request",
|
"description": "BadRequest",
|
||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/components/schemas/BadRequestError"
|
"$ref": "#/components/schemas/effect_HttpApiError_BadRequest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Unauthorized"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": "Retrieve projected v2 messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline.",
|
"description": "Retrieve projected v2 messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline.",
|
||||||
@ -7631,6 +7655,7 @@
|
|||||||
"explode": true
|
"explode": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"security": [],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "Success",
|
"description": "Success",
|
||||||
@ -7644,6 +7669,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Unauthorized"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": "Retrieve available v2 models ordered by release date.",
|
"description": "Retrieve available v2 models ordered by release date.",
|
||||||
@ -7681,6 +7709,7 @@
|
|||||||
"explode": true
|
"explode": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"security": [],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "Success",
|
"description": "Success",
|
||||||
@ -7694,6 +7723,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Unauthorized"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": "Retrieve active v2 AI providers so clients can show provider availability and configuration.",
|
"description": "Retrieve active v2 AI providers so clients can show provider availability and configuration.",
|
||||||
@ -7739,6 +7771,7 @@
|
|||||||
"explode": true
|
"explode": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"security": [],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "ProviderV2.Info",
|
"description": "ProviderV2.Info",
|
||||||
@ -7750,6 +7783,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Unauthorized"
|
||||||
|
},
|
||||||
"404": {
|
"404": {
|
||||||
"description": "NotFoundError",
|
"description": "NotFoundError",
|
||||||
"content": {
|
"content": {
|
||||||
@ -9419,6 +9455,17 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"effect_HttpApiError_BadRequest": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"_tag": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["BadRequest"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["_tag"],
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
"Event.tui.prompt.append": {
|
"Event.tui.prompt.append": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user