./generate-ts-types.sh
This commit is contained in:
parent
dc2e8e7e94
commit
fb5942f9c6
@ -182,10 +182,7 @@ export class ApiClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async createRegisterBotProvider(data: any): Promise<any> {
|
async createRegisterBotProvider(data: any): Promise<any> {
|
||||||
return this.request<any>(this.getApiPath(`/ai-voicebot/api/bots/providers/register`), {
|
return this.request<any>(this.getApiPath(`/ai-voicebot/api/bots/providers/register`), { method: "POST", body: data });
|
||||||
method: "POST",
|
|
||||||
body: data,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async getListBotProviders(): Promise<any> {
|
async getListBotProviders(): Promise<any> {
|
||||||
@ -201,9 +198,7 @@ export class ApiClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async createRequestBotLeaveLobby(bot_instance_id: string): Promise<any> {
|
async createRequestBotLeaveLobby(bot_instance_id: string): Promise<any> {
|
||||||
return this.request<any>(this.getApiPath(`/ai-voicebot/api/bots/instances/${bot_instance_id}/leave`), {
|
return this.request<any>(this.getApiPath(`/ai-voicebot/api/bots/instances/${bot_instance_id}/leave`), { method: "POST" });
|
||||||
method: "POST",
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async getBotInstance(bot_instance_id: string): Promise<any> {
|
async getBotInstance(bot_instance_id: string): Promise<any> {
|
||||||
@ -223,23 +218,15 @@ export class ApiClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getLobbyBotConfig(lobby_id: string, bot_instance_id: string): Promise<any> {
|
async getLobbyBotConfig(lobby_id: string, bot_instance_id: string): Promise<any> {
|
||||||
return this.request<any>(this.getApiPath(`/ai-voicebot/api/bots/config/lobby/${lobby_id}/bot/${bot_instance_id}`), {
|
return this.request<any>(this.getApiPath(`/ai-voicebot/api/bots/config/lobby/${lobby_id}/bot/${bot_instance_id}`), { method: "GET" });
|
||||||
method: "GET",
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async deleteBotConfig(lobby_id: string, bot_instance_id: string): Promise<any> {
|
async deleteBotConfig(lobby_id: string, bot_instance_id: string): Promise<any> {
|
||||||
return this.request<any>(this.getApiPath(`/ai-voicebot/api/bots/config/lobby/${lobby_id}/bot/${bot_instance_id}`), {
|
return this.request<any>(this.getApiPath(`/ai-voicebot/api/bots/config/lobby/${lobby_id}/bot/${bot_instance_id}`), { method: "DELETE" });
|
||||||
method: "DELETE",
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async createUpdateBotConfig(data: any, params?: Record<string, string>): Promise<any> {
|
async createUpdateBotConfig(data: any, params?: Record<string, string>): Promise<any> {
|
||||||
return this.request<any>(this.getApiPath(`/ai-voicebot/api/bots/config/update`), {
|
return this.request<any>(this.getApiPath(`/ai-voicebot/api/bots/config/update`), { method: "POST", body: data, params });
|
||||||
method: "POST",
|
|
||||||
body: data,
|
|
||||||
params,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async getConfigStatistics(): Promise<any> {
|
async getConfigStatistics(): Promise<any> {
|
||||||
@ -251,15 +238,11 @@ export class ApiClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async createRefreshBotSchema(bot_name: string): Promise<any> {
|
async createRefreshBotSchema(bot_name: string): Promise<any> {
|
||||||
return this.request<any>(this.getApiPath(`/ai-voicebot/api/bots/config/schema/${bot_name}/refresh`), {
|
return this.request<any>(this.getApiPath(`/ai-voicebot/api/bots/config/schema/${bot_name}/refresh`), { method: "POST" });
|
||||||
method: "POST",
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async deleteClearBotSchemaCache(bot_name: string): Promise<any> {
|
async deleteClearBotSchemaCache(bot_name: string): Promise<any> {
|
||||||
return this.request<any>(this.getApiPath(`/ai-voicebot/api/bots/config/schema/${bot_name}/cache`), {
|
return this.request<any>(this.getApiPath(`/ai-voicebot/api/bots/config/schema/${bot_name}/cache`), { method: "DELETE" });
|
||||||
method: "DELETE",
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async getReadinessProbe(): Promise<any> {
|
async getReadinessProbe(): Promise<any> {
|
||||||
@ -346,7 +329,7 @@ export const botsApi = {
|
|||||||
getConfigStatistics: () => apiClient.getConfigStatistics(),
|
getConfigStatistics: () => apiClient.getConfigStatistics(),
|
||||||
refreshAllSchemas: () => apiClient.createRefreshBotSchemas(),
|
refreshAllSchemas: () => apiClient.createRefreshBotSchemas(),
|
||||||
refreshSchema: (bot_name: string) => apiClient.createRefreshBotSchema(bot_name),
|
refreshSchema: (bot_name: string) => apiClient.createRefreshBotSchema(bot_name),
|
||||||
clearSchemaCache: (bot_name: string) => apiClient.deleteClearBotSchemaCache(bot_name),
|
clearSchemaCache: (bot_name: string) => apiClient.deleteClearBotSchemaCache(bot_name)
|
||||||
};
|
};
|
||||||
|
|
||||||
export const metricsApi = {
|
export const metricsApi = {
|
||||||
|
@ -402,11 +402,9 @@ export interface components {
|
|||||||
*/
|
*/
|
||||||
required?: boolean;
|
required?: boolean;
|
||||||
/** Options */
|
/** Options */
|
||||||
options?:
|
options?: {
|
||||||
| {
|
[key: string]: string;
|
||||||
[key: string]: string;
|
}[] | null;
|
||||||
}[]
|
|
||||||
| null;
|
|
||||||
/** Min Value */
|
/** Min Value */
|
||||||
min_value?: number | null;
|
min_value?: number | null;
|
||||||
/** Max Value */
|
/** Max Value */
|
||||||
@ -433,11 +431,9 @@ export interface components {
|
|||||||
/** Parameters */
|
/** Parameters */
|
||||||
parameters: components["schemas"]["BotConfigParameter"][];
|
parameters: components["schemas"]["BotConfigParameter"][];
|
||||||
/** Categories */
|
/** Categories */
|
||||||
categories?:
|
categories?: {
|
||||||
| {
|
[key: string]: string[];
|
||||||
[key: string]: string[];
|
}[] | null;
|
||||||
}[]
|
|
||||||
| null;
|
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* BotConfigUpdateRequest
|
* BotConfigUpdateRequest
|
||||||
@ -797,6 +793,7 @@ export type $defs = Record<string, never>;
|
|||||||
export type external = Record<string, never>;
|
export type external = Record<string, never>;
|
||||||
|
|
||||||
export interface operations {
|
export interface operations {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* System Health
|
* System Health
|
||||||
* @description System health check showing manager status and enhanced monitoring
|
* @description System health check showing manager status and enhanced monitoring
|
||||||
|
Loading…
x
Reference in New Issue
Block a user