1564 lines
39 KiB
TypeScript
1564 lines
39 KiB
TypeScript
/**
|
|
* This file was auto-generated by openapi-typescript.
|
|
* Do not make direct changes to the file.
|
|
*/
|
|
|
|
|
|
export interface paths {
|
|
"/ai-voicebot/api/system/health": {
|
|
/**
|
|
* System Health
|
|
* @description System health check showing manager status and enhanced monitoring
|
|
*/
|
|
get: operations["system_health_ai_voicebot_api_system_health_get"];
|
|
};
|
|
"/ai-voicebot/api/admin/names": {
|
|
/** List Names */
|
|
get: operations["list_names_ai_voicebot_api_admin_names_get"];
|
|
};
|
|
"/ai-voicebot/api/admin/set_password": {
|
|
/** Set Password */
|
|
post: operations["set_password_ai_voicebot_api_admin_set_password_post"];
|
|
};
|
|
"/ai-voicebot/api/admin/clear_password": {
|
|
/** Clear Password */
|
|
post: operations["clear_password_ai_voicebot_api_admin_clear_password_post"];
|
|
};
|
|
"/ai-voicebot/api/admin/cleanup_sessions": {
|
|
/** Cleanup Sessions */
|
|
post: operations["cleanup_sessions_ai_voicebot_api_admin_cleanup_sessions_post"];
|
|
};
|
|
"/ai-voicebot/api/admin/session_metrics": {
|
|
/** Session Metrics */
|
|
get: operations["session_metrics_ai_voicebot_api_admin_session_metrics_get"];
|
|
};
|
|
"/ai-voicebot/api/admin/validate_sessions": {
|
|
/** Validate Sessions */
|
|
get: operations["validate_sessions_ai_voicebot_api_admin_validate_sessions_get"];
|
|
};
|
|
"/ai-voicebot/api/admin/cleanup_lobbies": {
|
|
/** Cleanup Lobbies */
|
|
post: operations["cleanup_lobbies_ai_voicebot_api_admin_cleanup_lobbies_post"];
|
|
};
|
|
"/ai-voicebot/api/health": {
|
|
/**
|
|
* Get Health Summary
|
|
* @description Get comprehensive health summary.
|
|
*
|
|
* Returns:
|
|
* Dict containing overall health status and component details
|
|
*/
|
|
get: operations["get_health_summary_ai_voicebot_api_health_get"];
|
|
};
|
|
"/ai-voicebot/api/session": {
|
|
/** Get Session */
|
|
get: operations["get_session_ai_voicebot_api_session_get"];
|
|
};
|
|
"/ai-voicebot/api/lobby": {
|
|
/** List Lobbies */
|
|
get: operations["list_lobbies_ai_voicebot_api_lobby_get"];
|
|
};
|
|
"/ai-voicebot/api/lobby/{session_id}": {
|
|
/** Create Lobby */
|
|
post: operations["create_lobby_ai_voicebot_api_lobby__session_id__post"];
|
|
};
|
|
"/ai-voicebot/api/lobby/{lobby_id}/chat": {
|
|
/** Get Chat Messages */
|
|
get: operations["get_chat_messages_ai_voicebot_api_lobby__lobby_id__chat_get"];
|
|
};
|
|
"/ai-voicebot/api/bots/providers/register": {
|
|
/**
|
|
* Register Bot Provider
|
|
* @description Register a new bot provider with authentication
|
|
*/
|
|
post: operations["register_bot_provider_ai_voicebot_api_bots_providers_register_post"];
|
|
};
|
|
"/ai-voicebot/api/bots/providers": {
|
|
/**
|
|
* List Bot Providers
|
|
* @description List all registered bot providers
|
|
*/
|
|
get: operations["list_bot_providers_ai_voicebot_api_bots_providers_get"];
|
|
};
|
|
"/ai-voicebot/api/bots": {
|
|
/**
|
|
* List Available Bots
|
|
* @description List all available bots from all registered providers
|
|
*/
|
|
get: operations["list_available_bots_ai_voicebot_api_bots_get"];
|
|
};
|
|
"/ai-voicebot/api/bots/{bot_name}/join": {
|
|
/**
|
|
* Request Bot Join Lobby
|
|
* @description Request a bot to join a specific lobby
|
|
*/
|
|
post: operations["request_bot_join_lobby_ai_voicebot_api_bots__bot_name__join_post"];
|
|
};
|
|
"/ai-voicebot/api/bots/instances/{bot_instance_id}/leave": {
|
|
/**
|
|
* Request Bot Leave Lobby
|
|
* @description Request a bot instance to leave from all lobbies and disconnect
|
|
*/
|
|
post: operations["request_bot_leave_lobby_ai_voicebot_api_bots_instances__bot_instance_id__leave_post"];
|
|
};
|
|
"/ai-voicebot/api/bots/instances/{bot_instance_id}": {
|
|
/**
|
|
* Get Bot Instance
|
|
* @description Get information about a specific bot instance
|
|
*/
|
|
get: operations["get_bot_instance_ai_voicebot_api_bots_instances__bot_instance_id__get"];
|
|
};
|
|
"/ai-voicebot/api/bots/config/schema/{bot_name}": {
|
|
/**
|
|
* Get Bot Config Schema
|
|
* @description Get configuration schema for a specific bot
|
|
*/
|
|
get: operations["get_bot_config_schema_ai_voicebot_api_bots_config_schema__bot_name__get"];
|
|
};
|
|
"/ai-voicebot/api/bots/config/lobby/{lobby_id}": {
|
|
/**
|
|
* Get Lobby Bot Configs
|
|
* @description Get all bot configurations for a lobby
|
|
*/
|
|
get: operations["get_lobby_bot_configs_ai_voicebot_api_bots_config_lobby__lobby_id__get"];
|
|
/**
|
|
* Delete Lobby Configs
|
|
* @description Delete all bot configurations for a lobby
|
|
*/
|
|
delete: operations["delete_lobby_configs_ai_voicebot_api_bots_config_lobby__lobby_id__delete"];
|
|
};
|
|
"/ai-voicebot/api/bots/config/lobby/{lobby_id}/bot/{bot_instance_id}": {
|
|
/**
|
|
* Get Lobby Bot Config
|
|
* @description Get specific bot configuration for a lobby
|
|
*/
|
|
get: operations["get_lobby_bot_config_ai_voicebot_api_bots_config_lobby__lobby_id__bot__bot_instance_id__get"];
|
|
/**
|
|
* Delete Bot Config
|
|
* @description Delete bot configuration for a lobby
|
|
*/
|
|
delete: operations["delete_bot_config_ai_voicebot_api_bots_config_lobby__lobby_id__bot__bot_instance_id__delete"];
|
|
};
|
|
"/ai-voicebot/api/bots/config/update": {
|
|
/**
|
|
* Update Bot Config
|
|
* @description Update bot configuration for a lobby
|
|
*/
|
|
post: operations["update_bot_config_ai_voicebot_api_bots_config_update_post"];
|
|
};
|
|
"/ai-voicebot/api/bots/config/statistics": {
|
|
/**
|
|
* Get Config Statistics
|
|
* @description Get configuration manager statistics
|
|
*/
|
|
get: operations["get_config_statistics_ai_voicebot_api_bots_config_statistics_get"];
|
|
};
|
|
"/ai-voicebot/api/bots/config/refresh-schemas": {
|
|
/**
|
|
* Refresh Bot Schemas
|
|
* @description Refresh all bot configuration schemas from providers
|
|
*/
|
|
post: operations["refresh_bot_schemas_ai_voicebot_api_bots_config_refresh_schemas_post"];
|
|
};
|
|
"/ai-voicebot/api/bots/config/schema/{bot_name}/refresh": {
|
|
/**
|
|
* Refresh Bot Schema
|
|
* @description Refresh configuration schema for a specific bot
|
|
*/
|
|
post: operations["refresh_bot_schema_ai_voicebot_api_bots_config_schema__bot_name__refresh_post"];
|
|
};
|
|
"/ai-voicebot/api/bots/config/schema/{bot_name}/cache": {
|
|
/**
|
|
* Clear Bot Schema Cache
|
|
* @description Clear cached schema for a specific bot
|
|
*/
|
|
delete: operations["clear_bot_schema_cache_ai_voicebot_api_bots_config_schema__bot_name__cache_delete"];
|
|
};
|
|
"/ai-voicebot/api/health/ready": {
|
|
/**
|
|
* Readiness Probe
|
|
* @description Kubernetes readiness probe endpoint.
|
|
*
|
|
* Returns:
|
|
* Ready status for load balancer inclusion
|
|
*/
|
|
get: operations["readiness_probe_ai_voicebot_api_health_ready_get"];
|
|
};
|
|
"/ai-voicebot/api/health/live": {
|
|
/**
|
|
* Liveness Probe
|
|
* @description Kubernetes liveness probe endpoint.
|
|
*
|
|
* Returns:
|
|
* Alive status for container restart decisions
|
|
*/
|
|
get: operations["liveness_probe_ai_voicebot_api_health_live_get"];
|
|
};
|
|
"/ai-voicebot/api/metrics": {
|
|
/**
|
|
* Get Current Metrics
|
|
* @description Get current performance metrics.
|
|
*
|
|
* Returns:
|
|
* Current system and application metrics
|
|
*/
|
|
get: operations["get_current_metrics_ai_voicebot_api_metrics_get"];
|
|
};
|
|
"/ai-voicebot/api/metrics/history": {
|
|
/**
|
|
* Get Metrics History
|
|
* @description Get historical data for a specific metric.
|
|
*
|
|
* Args:
|
|
* metric_name: Name of the metric
|
|
* minutes: Number of minutes of history to retrieve (1-60)
|
|
*
|
|
* Returns:
|
|
* Historical metric data points
|
|
*/
|
|
get: operations["get_metrics_history_ai_voicebot_api_metrics_history_get"];
|
|
};
|
|
"/ai-voicebot/api/cache/stats": {
|
|
/**
|
|
* Get Cache Statistics
|
|
* @description Get cache performance statistics.
|
|
*
|
|
* Returns:
|
|
* Cache hit rates, sizes, and performance metrics
|
|
*/
|
|
get: operations["get_cache_statistics_ai_voicebot_api_cache_stats_get"];
|
|
};
|
|
"/ai-voicebot/api/system/info": {
|
|
/**
|
|
* Get System Info
|
|
* @description Get system information and configuration.
|
|
*
|
|
* Returns:
|
|
* System details, configuration, and runtime information
|
|
*/
|
|
get: operations["get_system_info_ai_voicebot_api_system_info_get"];
|
|
};
|
|
"/ai-voicebot/api/cache/clear": {
|
|
/**
|
|
* Clear Cache
|
|
* @description Clear cache entries.
|
|
*
|
|
* Args:
|
|
* cache_type: Optional specific cache to clear (session, lobby, user, message, computed)
|
|
*
|
|
* Returns:
|
|
* Cache clear results
|
|
*/
|
|
post: operations["clear_cache_ai_voicebot_api_cache_clear_post"];
|
|
};
|
|
"/ai-voicebot/api/metrics/export": {
|
|
/**
|
|
* Export Metrics Prometheus
|
|
* @description Export metrics in Prometheus format.
|
|
*
|
|
* Returns:
|
|
* Metrics in Prometheus text format
|
|
*/
|
|
get: operations["export_metrics_prometheus_ai_voicebot_api_metrics_export_get"];
|
|
};
|
|
}
|
|
|
|
export type webhooks = Record<string, never>;
|
|
|
|
export interface components {
|
|
schemas: {
|
|
/**
|
|
* AdminActionResponse
|
|
* @description Response for admin actions
|
|
*/
|
|
AdminActionResponse: {
|
|
/**
|
|
* Status
|
|
* @enum {string}
|
|
*/
|
|
status: "ok" | "not_found" | "error";
|
|
/** Name */
|
|
name: string;
|
|
};
|
|
/**
|
|
* AdminClearPassword
|
|
* @description Request model for clearing admin password
|
|
*/
|
|
AdminClearPassword: {
|
|
/** Name */
|
|
name: string;
|
|
};
|
|
/**
|
|
* AdminMetricsConfig
|
|
* @description Config data for metrics response
|
|
*/
|
|
AdminMetricsConfig: {
|
|
/** Anonymous Timeout */
|
|
anonymous_timeout: number;
|
|
/** Displaced Timeout */
|
|
displaced_timeout: number;
|
|
/** Cleanup Interval */
|
|
cleanup_interval: number;
|
|
/** Max Cleanup Per Cycle */
|
|
max_cleanup_per_cycle: number;
|
|
};
|
|
/**
|
|
* AdminMetricsResponse
|
|
* @description Response for admin session metrics
|
|
*/
|
|
AdminMetricsResponse: {
|
|
/** Total Sessions */
|
|
total_sessions: number;
|
|
/** Active Sessions */
|
|
active_sessions: number;
|
|
/** Named Sessions */
|
|
named_sessions: number;
|
|
/** Displaced Sessions */
|
|
displaced_sessions: number;
|
|
/** Old Anonymous Sessions */
|
|
old_anonymous_sessions: number;
|
|
/** Old Displaced Sessions */
|
|
old_displaced_sessions: number;
|
|
/** Total Lobbies */
|
|
total_lobbies: number;
|
|
/** Cleanup Candidates */
|
|
cleanup_candidates: number;
|
|
config: components["schemas"]["AdminMetricsConfig"];
|
|
};
|
|
/**
|
|
* AdminNamesResponse
|
|
* @description Response for admin names endpoint
|
|
*/
|
|
AdminNamesResponse: {
|
|
/** Name Passwords */
|
|
name_passwords: {
|
|
[key: string]: components["schemas"]["NamePasswordRecord"];
|
|
};
|
|
};
|
|
/**
|
|
* AdminSetPassword
|
|
* @description Request model for setting admin password
|
|
*/
|
|
AdminSetPassword: {
|
|
/** Name */
|
|
name: string;
|
|
/** Password */
|
|
password: string;
|
|
};
|
|
/**
|
|
* AdminValidationResponse
|
|
* @description Response for admin session validation
|
|
*/
|
|
AdminValidationResponse: {
|
|
/**
|
|
* Status
|
|
* @enum {string}
|
|
*/
|
|
status: "ok" | "error";
|
|
/**
|
|
* Issues
|
|
* @default []
|
|
*/
|
|
issues?: string[];
|
|
/**
|
|
* Issue Count
|
|
* @default 0
|
|
*/
|
|
issue_count?: number;
|
|
/** Error */
|
|
error?: string | null;
|
|
};
|
|
/**
|
|
* BotConfigListResponse
|
|
* @description Response listing bot configurations for a lobby
|
|
*/
|
|
BotConfigListResponse: {
|
|
/** Lobby Id */
|
|
lobby_id: string;
|
|
/** Configs */
|
|
configs: components["schemas"]["BotLobbyConfig"][];
|
|
};
|
|
/**
|
|
* BotConfigParameter
|
|
* @description Definition of a bot configuration parameter
|
|
*/
|
|
BotConfigParameter: {
|
|
/** Name */
|
|
name: string;
|
|
/**
|
|
* Type
|
|
* @enum {string}
|
|
*/
|
|
type: "string" | "number" | "boolean" | "select" | "range";
|
|
/** Label */
|
|
label: string;
|
|
/** Description */
|
|
description: string;
|
|
/** Default Value */
|
|
default_value?: unknown;
|
|
/**
|
|
* Required
|
|
* @default false
|
|
*/
|
|
required?: boolean;
|
|
/** Options */
|
|
options?: {
|
|
[key: string]: string;
|
|
}[] | null;
|
|
/** Min Value */
|
|
min_value?: number | null;
|
|
/** Max Value */
|
|
max_value?: number | null;
|
|
/** Step */
|
|
step?: number | null;
|
|
/** Max Length */
|
|
max_length?: number | null;
|
|
/** Pattern */
|
|
pattern?: string | null;
|
|
};
|
|
/**
|
|
* BotConfigSchema
|
|
* @description Schema defining all configurable parameters for a bot
|
|
*/
|
|
BotConfigSchema: {
|
|
/** Bot Name */
|
|
bot_name: string;
|
|
/**
|
|
* Version
|
|
* @default 1.0
|
|
*/
|
|
version?: string;
|
|
/** Parameters */
|
|
parameters: components["schemas"]["BotConfigParameter"][];
|
|
/** Categories */
|
|
categories?: {
|
|
[key: string]: string[];
|
|
}[] | null;
|
|
};
|
|
/**
|
|
* BotConfigUpdateRequest
|
|
* @description Request to update bot configuration
|
|
*/
|
|
BotConfigUpdateRequest: {
|
|
/** Bot Instance Id */
|
|
bot_instance_id: string;
|
|
/** Lobby Id */
|
|
lobby_id: string;
|
|
/** Config Values */
|
|
config_values: {
|
|
[key: string]: unknown;
|
|
};
|
|
};
|
|
/**
|
|
* BotConfigUpdateResponse
|
|
* @description Response to bot configuration update
|
|
*/
|
|
BotConfigUpdateResponse: {
|
|
/** Success */
|
|
success: boolean;
|
|
/** Message */
|
|
message: string;
|
|
updated_config?: components["schemas"]["BotLobbyConfig"] | null;
|
|
};
|
|
/**
|
|
* BotInfoModel
|
|
* @description Information about a specific bot
|
|
*/
|
|
BotInfoModel: {
|
|
/** Name */
|
|
name: string;
|
|
/** Description */
|
|
description: string;
|
|
/**
|
|
* Has Media
|
|
* @default true
|
|
*/
|
|
has_media?: boolean;
|
|
/**
|
|
* Configurable
|
|
* @default false
|
|
*/
|
|
configurable?: boolean;
|
|
/** Config Schema */
|
|
config_schema?: {
|
|
[key: string]: unknown;
|
|
} | null;
|
|
};
|
|
/**
|
|
* BotJoinLobbyRequest
|
|
* @description Request to make a bot join a lobby
|
|
*/
|
|
BotJoinLobbyRequest: {
|
|
/** Lobby Id */
|
|
lobby_id: string;
|
|
/**
|
|
* Nick
|
|
* @default
|
|
*/
|
|
nick?: string;
|
|
/** Provider Id */
|
|
provider_id?: string | null;
|
|
};
|
|
/**
|
|
* BotJoinLobbyResponse
|
|
* @description Response after requesting a bot to join a lobby
|
|
*/
|
|
BotJoinLobbyResponse: {
|
|
/** Status */
|
|
status: string;
|
|
/** Bot Instance Id */
|
|
bot_instance_id: string;
|
|
/** Bot Name */
|
|
bot_name: string;
|
|
/** Run Id */
|
|
run_id: string;
|
|
/** Provider Id */
|
|
provider_id: string;
|
|
/** Session Id */
|
|
session_id: string;
|
|
};
|
|
/**
|
|
* BotLeaveLobbyResponse
|
|
* @description Response after requesting a bot to leave a lobby
|
|
*/
|
|
BotLeaveLobbyResponse: {
|
|
/** Status */
|
|
status: string;
|
|
/** Bot Instance Id */
|
|
bot_instance_id: string;
|
|
/** Session Id */
|
|
session_id: string;
|
|
/** Run Id */
|
|
run_id?: string | null;
|
|
};
|
|
/**
|
|
* BotListResponse
|
|
* @description Response listing all available bots from all providers
|
|
*/
|
|
BotListResponse: {
|
|
/** Bots */
|
|
bots: components["schemas"]["BotInfoModel"][];
|
|
/** Providers */
|
|
providers: {
|
|
[key: string]: string;
|
|
};
|
|
};
|
|
/**
|
|
* BotLobbyConfig
|
|
* @description Bot configuration for a specific lobby
|
|
*/
|
|
BotLobbyConfig: {
|
|
/** Bot Name */
|
|
bot_name: string;
|
|
/** Lobby Id */
|
|
lobby_id: string;
|
|
/** Provider Id */
|
|
provider_id: string;
|
|
/** Config Values */
|
|
config_values: {
|
|
[key: string]: unknown;
|
|
};
|
|
/** Created At */
|
|
created_at: number;
|
|
/** Updated At */
|
|
updated_at: number;
|
|
/** Created By */
|
|
created_by: string;
|
|
};
|
|
/**
|
|
* BotProviderListResponse
|
|
* @description Response listing all registered bot providers
|
|
*/
|
|
BotProviderListResponse: {
|
|
/** Providers */
|
|
providers: components["schemas"]["BotProviderPublicModel"][];
|
|
};
|
|
/**
|
|
* BotProviderPublicModel
|
|
* @description Public bot provider information (safe for frontend)
|
|
*/
|
|
BotProviderPublicModel: {
|
|
/** Provider Id */
|
|
provider_id: string;
|
|
/** Name */
|
|
name: string;
|
|
/**
|
|
* Description
|
|
* @default
|
|
*/
|
|
description?: string;
|
|
/** Registered At */
|
|
registered_at: number;
|
|
/** Last Seen */
|
|
last_seen: number;
|
|
};
|
|
/**
|
|
* BotProviderRegisterRequest
|
|
* @description Request to register a bot provider
|
|
*/
|
|
BotProviderRegisterRequest: {
|
|
/** Base Url */
|
|
base_url: string;
|
|
/** Name */
|
|
name: string;
|
|
/**
|
|
* Description
|
|
* @default
|
|
*/
|
|
description?: string;
|
|
/** Provider Key */
|
|
provider_key: string;
|
|
/** Provider Id */
|
|
provider_id: string;
|
|
};
|
|
/**
|
|
* BotProviderRegisterResponse
|
|
* @description Response after registering a bot provider
|
|
*/
|
|
BotProviderRegisterResponse: {
|
|
/** Provider Id */
|
|
provider_id: string;
|
|
/**
|
|
* Status
|
|
* @default registered
|
|
*/
|
|
status?: string;
|
|
};
|
|
/**
|
|
* ChatMessageModel
|
|
* @description Chat message model
|
|
*/
|
|
ChatMessageModel: {
|
|
/** Id */
|
|
id: string;
|
|
/** Message */
|
|
message: string;
|
|
/** Sender Name */
|
|
sender_name: string;
|
|
/** Sender Session Id */
|
|
sender_session_id: string;
|
|
/** Timestamp */
|
|
timestamp: number;
|
|
/** Lobby Id */
|
|
lobby_id: string;
|
|
};
|
|
/**
|
|
* ChatMessagesResponse
|
|
* @description Response containing chat messages
|
|
*/
|
|
ChatMessagesResponse: {
|
|
/** Messages */
|
|
messages: components["schemas"]["ChatMessageModel"][];
|
|
};
|
|
/** HTTPValidationError */
|
|
HTTPValidationError: {
|
|
/** Detail */
|
|
detail?: components["schemas"]["ValidationError"][];
|
|
};
|
|
/**
|
|
* HealthResponse
|
|
* @description Health check response
|
|
*/
|
|
HealthResponse: {
|
|
/** Status */
|
|
status: string;
|
|
};
|
|
/**
|
|
* LobbiesResponse
|
|
* @description Response containing list of lobbies
|
|
*/
|
|
LobbiesResponse: {
|
|
/** Lobbies */
|
|
lobbies: components["schemas"]["LobbyListItem"][];
|
|
};
|
|
/**
|
|
* LobbyCreateData
|
|
* @description Data for lobby creation
|
|
*/
|
|
LobbyCreateData: {
|
|
/** Name */
|
|
name: string;
|
|
/**
|
|
* Private
|
|
* @default false
|
|
*/
|
|
private?: boolean;
|
|
};
|
|
/**
|
|
* LobbyCreateRequest
|
|
* @description Request for creating a lobby
|
|
*/
|
|
LobbyCreateRequest: {
|
|
/**
|
|
* Type
|
|
* @constant
|
|
*/
|
|
type: "lobby_create";
|
|
data: components["schemas"]["LobbyCreateData"];
|
|
};
|
|
/**
|
|
* LobbyCreateResponse
|
|
* @description Response for lobby creation
|
|
*/
|
|
LobbyCreateResponse: {
|
|
/**
|
|
* Type
|
|
* @constant
|
|
*/
|
|
type: "lobby_created";
|
|
data: components["schemas"]["LobbyModel"];
|
|
};
|
|
/**
|
|
* LobbyListItem
|
|
* @description Lobby item for list responses
|
|
*/
|
|
LobbyListItem: {
|
|
/** Id */
|
|
id: string;
|
|
/** Name */
|
|
name: string;
|
|
};
|
|
/**
|
|
* LobbyModel
|
|
* @description Core lobby model used across components
|
|
*/
|
|
LobbyModel: {
|
|
/** Id */
|
|
id: string;
|
|
/** Name */
|
|
name: string;
|
|
/**
|
|
* Private
|
|
* @default false
|
|
*/
|
|
private?: boolean;
|
|
};
|
|
/**
|
|
* NamePasswordRecord
|
|
* @description Password hash record for reserved names
|
|
*/
|
|
NamePasswordRecord: {
|
|
/** Salt */
|
|
salt: string;
|
|
/** Hash */
|
|
hash: string;
|
|
};
|
|
/**
|
|
* SessionResponse
|
|
* @description Session response model
|
|
*/
|
|
SessionResponse: {
|
|
/** Id */
|
|
id: string;
|
|
/** Name */
|
|
name: string;
|
|
/** Lobbies */
|
|
lobbies: components["schemas"]["LobbyModel"][];
|
|
/**
|
|
* Protected
|
|
* @default false
|
|
*/
|
|
protected?: boolean;
|
|
/**
|
|
* Has Media
|
|
* @default false
|
|
*/
|
|
has_media?: boolean;
|
|
/** Bot Run Id */
|
|
bot_run_id?: string | null;
|
|
/** Bot Provider Id */
|
|
bot_provider_id?: string | null;
|
|
/** Bot Instance Id */
|
|
bot_instance_id?: string | null;
|
|
};
|
|
/** ValidationError */
|
|
ValidationError: {
|
|
/** Location */
|
|
loc: (string | number)[];
|
|
/** Message */
|
|
msg: string;
|
|
/** Error Type */
|
|
type: string;
|
|
};
|
|
};
|
|
responses: never;
|
|
parameters: never;
|
|
requestBodies: never;
|
|
headers: never;
|
|
pathItems: never;
|
|
}
|
|
|
|
export type $defs = Record<string, never>;
|
|
|
|
export type external = Record<string, never>;
|
|
|
|
export interface operations {
|
|
|
|
/**
|
|
* System Health
|
|
* @description System health check showing manager status and enhanced monitoring
|
|
*/
|
|
system_health_ai_voicebot_api_system_health_get: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": unknown;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/** List Names */
|
|
list_names_ai_voicebot_api_admin_names_get: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["AdminNamesResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/** Set Password */
|
|
set_password_ai_voicebot_api_admin_set_password_post: {
|
|
requestBody: {
|
|
content: {
|
|
"application/json": components["schemas"]["AdminSetPassword"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["AdminActionResponse"];
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/** Clear Password */
|
|
clear_password_ai_voicebot_api_admin_clear_password_post: {
|
|
requestBody: {
|
|
content: {
|
|
"application/json": components["schemas"]["AdminClearPassword"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["AdminActionResponse"];
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/** Cleanup Sessions */
|
|
cleanup_sessions_ai_voicebot_api_admin_cleanup_sessions_post: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["AdminActionResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/** Session Metrics */
|
|
session_metrics_ai_voicebot_api_admin_session_metrics_get: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["AdminMetricsResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/** Validate Sessions */
|
|
validate_sessions_ai_voicebot_api_admin_validate_sessions_get: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["AdminValidationResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/** Cleanup Lobbies */
|
|
cleanup_lobbies_ai_voicebot_api_admin_cleanup_lobbies_post: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["AdminActionResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Get Health Summary
|
|
* @description Get comprehensive health summary.
|
|
*
|
|
* Returns:
|
|
* Dict containing overall health status and component details
|
|
*/
|
|
get_health_summary_ai_voicebot_api_health_get: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": unknown;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/** Get Session */
|
|
get_session_ai_voicebot_api_session_get: {
|
|
parameters: {
|
|
cookie?: {
|
|
session_id?: string | null;
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["SessionResponse"];
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/** List Lobbies */
|
|
list_lobbies_ai_voicebot_api_lobby_get: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["LobbiesResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/** Create Lobby */
|
|
create_lobby_ai_voicebot_api_lobby__session_id__post: {
|
|
parameters: {
|
|
path: {
|
|
session_id: string;
|
|
};
|
|
};
|
|
requestBody: {
|
|
content: {
|
|
"application/json": components["schemas"]["LobbyCreateRequest"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["LobbyCreateResponse"];
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/** Get Chat Messages */
|
|
get_chat_messages_ai_voicebot_api_lobby__lobby_id__chat_get: {
|
|
parameters: {
|
|
query?: {
|
|
limit?: number;
|
|
};
|
|
path: {
|
|
lobby_id: string;
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["ChatMessagesResponse"];
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Register Bot Provider
|
|
* @description Register a new bot provider with authentication
|
|
*/
|
|
register_bot_provider_ai_voicebot_api_bots_providers_register_post: {
|
|
requestBody: {
|
|
content: {
|
|
"application/json": components["schemas"]["BotProviderRegisterRequest"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["BotProviderRegisterResponse"];
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* List Bot Providers
|
|
* @description List all registered bot providers
|
|
*/
|
|
list_bot_providers_ai_voicebot_api_bots_providers_get: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["BotProviderListResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* List Available Bots
|
|
* @description List all available bots from all registered providers
|
|
*/
|
|
list_available_bots_ai_voicebot_api_bots_get: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["BotListResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Request Bot Join Lobby
|
|
* @description Request a bot to join a specific lobby
|
|
*/
|
|
request_bot_join_lobby_ai_voicebot_api_bots__bot_name__join_post: {
|
|
parameters: {
|
|
path: {
|
|
bot_name: string;
|
|
};
|
|
};
|
|
requestBody: {
|
|
content: {
|
|
"application/json": components["schemas"]["BotJoinLobbyRequest"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["BotJoinLobbyResponse"];
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Request Bot Leave Lobby
|
|
* @description Request a bot instance to leave from all lobbies and disconnect
|
|
*/
|
|
request_bot_leave_lobby_ai_voicebot_api_bots_instances__bot_instance_id__leave_post: {
|
|
parameters: {
|
|
path: {
|
|
bot_instance_id: string;
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["BotLeaveLobbyResponse"];
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Get Bot Instance
|
|
* @description Get information about a specific bot instance
|
|
*/
|
|
get_bot_instance_ai_voicebot_api_bots_instances__bot_instance_id__get: {
|
|
parameters: {
|
|
path: {
|
|
bot_instance_id: string;
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": {
|
|
[key: string]: unknown;
|
|
};
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Get Bot Config Schema
|
|
* @description Get configuration schema for a specific bot
|
|
*/
|
|
get_bot_config_schema_ai_voicebot_api_bots_config_schema__bot_name__get: {
|
|
parameters: {
|
|
path: {
|
|
bot_name: string;
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["BotConfigSchema"];
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Get Lobby Bot Configs
|
|
* @description Get all bot configurations for a lobby
|
|
*/
|
|
get_lobby_bot_configs_ai_voicebot_api_bots_config_lobby__lobby_id__get: {
|
|
parameters: {
|
|
path: {
|
|
lobby_id: string;
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["BotConfigListResponse"];
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Delete Lobby Configs
|
|
* @description Delete all bot configurations for a lobby
|
|
*/
|
|
delete_lobby_configs_ai_voicebot_api_bots_config_lobby__lobby_id__delete: {
|
|
parameters: {
|
|
path: {
|
|
lobby_id: string;
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": {
|
|
[key: string]: unknown;
|
|
};
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Get Lobby Bot Config
|
|
* @description Get specific bot configuration for a lobby
|
|
*/
|
|
get_lobby_bot_config_ai_voicebot_api_bots_config_lobby__lobby_id__bot__bot_instance_id__get: {
|
|
parameters: {
|
|
path: {
|
|
lobby_id: string;
|
|
bot_instance_id: string;
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["BotLobbyConfig"];
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Delete Bot Config
|
|
* @description Delete bot configuration for a lobby
|
|
*/
|
|
delete_bot_config_ai_voicebot_api_bots_config_lobby__lobby_id__bot__bot_instance_id__delete: {
|
|
parameters: {
|
|
path: {
|
|
lobby_id: string;
|
|
bot_instance_id: string;
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": {
|
|
[key: string]: unknown;
|
|
};
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Update Bot Config
|
|
* @description Update bot configuration for a lobby
|
|
*/
|
|
update_bot_config_ai_voicebot_api_bots_config_update_post: {
|
|
parameters: {
|
|
query?: {
|
|
session_id?: string;
|
|
};
|
|
};
|
|
requestBody: {
|
|
content: {
|
|
"application/json": components["schemas"]["BotConfigUpdateRequest"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": components["schemas"]["BotConfigUpdateResponse"];
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Get Config Statistics
|
|
* @description Get configuration manager statistics
|
|
*/
|
|
get_config_statistics_ai_voicebot_api_bots_config_statistics_get: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": {
|
|
[key: string]: unknown;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Refresh Bot Schemas
|
|
* @description Refresh all bot configuration schemas from providers
|
|
*/
|
|
refresh_bot_schemas_ai_voicebot_api_bots_config_refresh_schemas_post: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": {
|
|
[key: string]: unknown;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Refresh Bot Schema
|
|
* @description Refresh configuration schema for a specific bot
|
|
*/
|
|
refresh_bot_schema_ai_voicebot_api_bots_config_schema__bot_name__refresh_post: {
|
|
parameters: {
|
|
path: {
|
|
bot_name: string;
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": {
|
|
[key: string]: unknown;
|
|
};
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Clear Bot Schema Cache
|
|
* @description Clear cached schema for a specific bot
|
|
*/
|
|
clear_bot_schema_cache_ai_voicebot_api_bots_config_schema__bot_name__cache_delete: {
|
|
parameters: {
|
|
path: {
|
|
bot_name: string;
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": {
|
|
[key: string]: unknown;
|
|
};
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Readiness Probe
|
|
* @description Kubernetes readiness probe endpoint.
|
|
*
|
|
* Returns:
|
|
* Ready status for load balancer inclusion
|
|
*/
|
|
readiness_probe_ai_voicebot_api_health_ready_get: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": unknown;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Liveness Probe
|
|
* @description Kubernetes liveness probe endpoint.
|
|
*
|
|
* Returns:
|
|
* Alive status for container restart decisions
|
|
*/
|
|
liveness_probe_ai_voicebot_api_health_live_get: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": unknown;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Get Current Metrics
|
|
* @description Get current performance metrics.
|
|
*
|
|
* Returns:
|
|
* Current system and application metrics
|
|
*/
|
|
get_current_metrics_ai_voicebot_api_metrics_get: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": unknown;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Get Metrics History
|
|
* @description Get historical data for a specific metric.
|
|
*
|
|
* Args:
|
|
* metric_name: Name of the metric
|
|
* minutes: Number of minutes of history to retrieve (1-60)
|
|
*
|
|
* Returns:
|
|
* Historical metric data points
|
|
*/
|
|
get_metrics_history_ai_voicebot_api_metrics_history_get: {
|
|
parameters: {
|
|
query: {
|
|
/** @description Name of the metric to retrieve */
|
|
metric_name: string;
|
|
/** @description Minutes of history to retrieve */
|
|
minutes?: number;
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": unknown;
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Get Cache Statistics
|
|
* @description Get cache performance statistics.
|
|
*
|
|
* Returns:
|
|
* Cache hit rates, sizes, and performance metrics
|
|
*/
|
|
get_cache_statistics_ai_voicebot_api_cache_stats_get: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": unknown;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Get System Info
|
|
* @description Get system information and configuration.
|
|
*
|
|
* Returns:
|
|
* System details, configuration, and runtime information
|
|
*/
|
|
get_system_info_ai_voicebot_api_system_info_get: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": unknown;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Clear Cache
|
|
* @description Clear cache entries.
|
|
*
|
|
* Args:
|
|
* cache_type: Optional specific cache to clear (session, lobby, user, message, computed)
|
|
*
|
|
* Returns:
|
|
* Cache clear results
|
|
*/
|
|
clear_cache_ai_voicebot_api_cache_clear_post: {
|
|
parameters: {
|
|
query?: {
|
|
/** @description Specific cache to clear */
|
|
cache_type?: string | null;
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": unknown;
|
|
};
|
|
};
|
|
/** @description Validation Error */
|
|
422: {
|
|
content: {
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/**
|
|
* Export Metrics Prometheus
|
|
* @description Export metrics in Prometheus format.
|
|
*
|
|
* Returns:
|
|
* Metrics in Prometheus text format
|
|
*/
|
|
export_metrics_prometheus_ai_voicebot_api_metrics_export_get: {
|
|
responses: {
|
|
/** @description Successful Response */
|
|
200: {
|
|
content: {
|
|
"application/json": unknown;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|