chore(web): re-generate sdk and use it

This commit is contained in:
Acbox
2026-03-11 22:19:50 +08:00
parent 82c8d65a7d
commit 92aa7ee104
11 changed files with 1154 additions and 99 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+224
View File
@@ -678,6 +678,15 @@ export type HandlersTokenUsageResponse = {
heartbeat?: Array<HandlersDailyTokenUsage>;
};
export type HandlersEmailOAuthStatusResponse = {
configured?: boolean;
email_address?: string;
expired?: boolean;
expires_at?: string;
has_token?: boolean;
provider?: string;
};
export type HandlersFsOpResponse = {
ok?: boolean;
};
@@ -746,6 +755,11 @@ export type HandlersSkillsOpResponse = {
ok?: boolean;
};
export type HandlersTerminalInfoResponse = {
available?: boolean;
shell?: string;
};
export type HeartbeatListLogsResponse = {
items?: Array<HeartbeatLog>;
};
@@ -2504,6 +2518,74 @@ export type PostBotsByBotIdContainerStopResponses = {
export type PostBotsByBotIdContainerStopResponse = PostBotsByBotIdContainerStopResponses[keyof PostBotsByBotIdContainerStopResponses];
export type GetBotsByBotIdContainerTerminalData = {
body?: never;
path: {
/**
* Bot ID
*/
bot_id: string;
};
query?: never;
url: '/bots/{bot_id}/container/terminal';
};
export type GetBotsByBotIdContainerTerminalErrors = {
/**
* Not Found
*/
404: HandlersErrorResponse;
};
export type GetBotsByBotIdContainerTerminalError = GetBotsByBotIdContainerTerminalErrors[keyof GetBotsByBotIdContainerTerminalErrors];
export type GetBotsByBotIdContainerTerminalResponses = {
/**
* OK
*/
200: HandlersTerminalInfoResponse;
};
export type GetBotsByBotIdContainerTerminalResponse = GetBotsByBotIdContainerTerminalResponses[keyof GetBotsByBotIdContainerTerminalResponses];
export type GetBotsByBotIdContainerTerminalWsData = {
body?: never;
path: {
/**
* Bot ID
*/
bot_id: string;
};
query?: {
/**
* Initial terminal columns
*/
cols?: number;
/**
* Initial terminal rows
*/
rows?: number;
/**
* Auth token
*/
token?: string;
};
url: '/bots/{bot_id}/container/terminal/ws';
};
export type GetBotsByBotIdContainerTerminalWsErrors = {
/**
* Bad Request
*/
400: HandlersErrorResponse;
/**
* Internal Server Error
*/
500: HandlersErrorResponse;
};
export type GetBotsByBotIdContainerTerminalWsError = GetBotsByBotIdContainerTerminalWsErrors[keyof GetBotsByBotIdContainerTerminalWsErrors];
export type GetBotsByBotIdEmailBindingsData = {
body?: never;
path: {
@@ -5976,6 +6058,108 @@ export type PutEmailProvidersByIdResponses = {
export type PutEmailProvidersByIdResponse = PutEmailProvidersByIdResponses[keyof PutEmailProvidersByIdResponses];
export type GetEmailProvidersByIdOauthAuthorizeData = {
body?: never;
path: {
/**
* Email provider ID
*/
id: string;
};
query?: never;
url: '/email-providers/{id}/oauth/authorize';
};
export type GetEmailProvidersByIdOauthAuthorizeErrors = {
/**
* Bad Request
*/
400: HandlersErrorResponse;
/**
* Not Found
*/
404: HandlersErrorResponse;
};
export type GetEmailProvidersByIdOauthAuthorizeError = GetEmailProvidersByIdOauthAuthorizeErrors[keyof GetEmailProvidersByIdOauthAuthorizeErrors];
export type GetEmailProvidersByIdOauthAuthorizeResponses = {
/**
* OK
*/
200: {
[key: string]: string;
};
};
export type GetEmailProvidersByIdOauthAuthorizeResponse = GetEmailProvidersByIdOauthAuthorizeResponses[keyof GetEmailProvidersByIdOauthAuthorizeResponses];
export type GetEmailProvidersByIdOauthStatusData = {
body?: never;
path: {
/**
* Email provider ID
*/
id: string;
};
query?: never;
url: '/email-providers/{id}/oauth/status';
};
export type GetEmailProvidersByIdOauthStatusErrors = {
/**
* Bad Request
*/
400: HandlersErrorResponse;
/**
* Not Found
*/
404: HandlersErrorResponse;
};
export type GetEmailProvidersByIdOauthStatusError = GetEmailProvidersByIdOauthStatusErrors[keyof GetEmailProvidersByIdOauthStatusErrors];
export type GetEmailProvidersByIdOauthStatusResponses = {
/**
* OK
*/
200: HandlersEmailOAuthStatusResponse;
};
export type GetEmailProvidersByIdOauthStatusResponse = GetEmailProvidersByIdOauthStatusResponses[keyof GetEmailProvidersByIdOauthStatusResponses];
export type DeleteEmailProvidersByIdOauthTokenData = {
body?: never;
path: {
/**
* Email provider ID
*/
id: string;
};
query?: never;
url: '/email-providers/{id}/oauth/token';
};
export type DeleteEmailProvidersByIdOauthTokenErrors = {
/**
* Bad Request
*/
400: HandlersErrorResponse;
/**
* Not Found
*/
404: HandlersErrorResponse;
};
export type DeleteEmailProvidersByIdOauthTokenError = DeleteEmailProvidersByIdOauthTokenErrors[keyof DeleteEmailProvidersByIdOauthTokenErrors];
export type DeleteEmailProvidersByIdOauthTokenResponses = {
/**
* No Content
*/
204: unknown;
};
export type PostEmailMailgunWebhookByConfigIdData = {
body?: never;
path: {
@@ -6016,6 +6200,46 @@ export type PostEmailMailgunWebhookByConfigIdResponses = {
export type PostEmailMailgunWebhookByConfigIdResponse = PostEmailMailgunWebhookByConfigIdResponses[keyof PostEmailMailgunWebhookByConfigIdResponses];
export type GetEmailOauthCallbackData = {
body?: never;
path?: never;
query: {
/**
* Authorization code
*/
code: string;
/**
* State parameter
*/
state: string;
};
url: '/email/oauth/callback';
};
export type GetEmailOauthCallbackErrors = {
/**
* Bad Request
*/
400: HandlersErrorResponse;
/**
* Internal Server Error
*/
500: HandlersErrorResponse;
};
export type GetEmailOauthCallbackError = GetEmailOauthCallbackErrors[keyof GetEmailOauthCallbackErrors];
export type GetEmailOauthCallbackResponses = {
/**
* OK
*/
200: {
[key: string]: string;
};
};
export type GetEmailOauthCallbackResponse = GetEmailOauthCallbackResponses[keyof GetEmailOauthCallbackResponses];
export type GetMemoryProvidersData = {
body?: never;
path?: never;