From fb5942f9c640ce126bb6ee42cf78ebff756d32b2 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Mon, 15 Sep 2025 12:29:21 -0700 Subject: [PATCH] ./generate-ts-types.sh --- client/src/api-client.ts | 33 ++++++++------------------------- client/src/api-types.ts | 17 +++++++---------- 2 files changed, 15 insertions(+), 35 deletions(-) diff --git a/client/src/api-client.ts b/client/src/api-client.ts index d5a57be..5420a1b 100644 --- a/client/src/api-client.ts +++ b/client/src/api-client.ts @@ -182,10 +182,7 @@ export class ApiClient { } async createRegisterBotProvider(data: any): Promise { - return this.request(this.getApiPath(`/ai-voicebot/api/bots/providers/register`), { - method: "POST", - body: data, - }); + return this.request(this.getApiPath(`/ai-voicebot/api/bots/providers/register`), { method: "POST", body: data }); } async getListBotProviders(): Promise { @@ -201,9 +198,7 @@ export class ApiClient { } async createRequestBotLeaveLobby(bot_instance_id: string): Promise { - return this.request(this.getApiPath(`/ai-voicebot/api/bots/instances/${bot_instance_id}/leave`), { - method: "POST", - }); + return this.request(this.getApiPath(`/ai-voicebot/api/bots/instances/${bot_instance_id}/leave`), { method: "POST" }); } async getBotInstance(bot_instance_id: string): Promise { @@ -223,23 +218,15 @@ export class ApiClient { } async getLobbyBotConfig(lobby_id: string, bot_instance_id: string): Promise { - return this.request(this.getApiPath(`/ai-voicebot/api/bots/config/lobby/${lobby_id}/bot/${bot_instance_id}`), { - method: "GET", - }); + return this.request(this.getApiPath(`/ai-voicebot/api/bots/config/lobby/${lobby_id}/bot/${bot_instance_id}`), { method: "GET" }); } async deleteBotConfig(lobby_id: string, bot_instance_id: string): Promise { - return this.request(this.getApiPath(`/ai-voicebot/api/bots/config/lobby/${lobby_id}/bot/${bot_instance_id}`), { - method: "DELETE", - }); + return this.request(this.getApiPath(`/ai-voicebot/api/bots/config/lobby/${lobby_id}/bot/${bot_instance_id}`), { method: "DELETE" }); } async createUpdateBotConfig(data: any, params?: Record): Promise { - return this.request(this.getApiPath(`/ai-voicebot/api/bots/config/update`), { - method: "POST", - body: data, - params, - }); + return this.request(this.getApiPath(`/ai-voicebot/api/bots/config/update`), { method: "POST", body: data, params }); } async getConfigStatistics(): Promise { @@ -251,15 +238,11 @@ export class ApiClient { } async createRefreshBotSchema(bot_name: string): Promise { - return this.request(this.getApiPath(`/ai-voicebot/api/bots/config/schema/${bot_name}/refresh`), { - method: "POST", - }); + return this.request(this.getApiPath(`/ai-voicebot/api/bots/config/schema/${bot_name}/refresh`), { method: "POST" }); } async deleteClearBotSchemaCache(bot_name: string): Promise { - return this.request(this.getApiPath(`/ai-voicebot/api/bots/config/schema/${bot_name}/cache`), { - method: "DELETE", - }); + return this.request(this.getApiPath(`/ai-voicebot/api/bots/config/schema/${bot_name}/cache`), { method: "DELETE" }); } async getReadinessProbe(): Promise { @@ -346,7 +329,7 @@ export const botsApi = { getConfigStatistics: () => apiClient.getConfigStatistics(), refreshAllSchemas: () => apiClient.createRefreshBotSchemas(), 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 = { diff --git a/client/src/api-types.ts b/client/src/api-types.ts index bbd928b..5d935cf 100644 --- a/client/src/api-types.ts +++ b/client/src/api-types.ts @@ -402,11 +402,9 @@ export interface components { */ required?: boolean; /** Options */ - options?: - | { - [key: string]: string; - }[] - | null; + options?: { + [key: string]: string; + }[] | null; /** Min Value */ min_value?: number | null; /** Max Value */ @@ -433,11 +431,9 @@ export interface components { /** Parameters */ parameters: components["schemas"]["BotConfigParameter"][]; /** Categories */ - categories?: - | { - [key: string]: string[]; - }[] - | null; + categories?: { + [key: string]: string[]; + }[] | null; }; /** * BotConfigUpdateRequest @@ -797,6 +793,7 @@ export type $defs = Record; export type external = Record; export interface operations { + /** * System Health * @description System health check showing manager status and enhanced monitoring