// This file is auto-generated by @hey-api/openapi-ts

export type ClientOptions = {
    baseUrl: 'https://gitea-admin-hm-smart-agri-app.dev.maimaiag.com' | (string & {});
};

/**
 * AdminSettingsCreateRequest
 *
 * 创建管理员设置请求
 */
export type AdminSettingsCreateRequest = {
    /**
     * Key
     *
     * 设置键名
     */
    key: string;
    /**
     * Json Value
     *
     * 设置值JSON数据
     */
    json_value: {
        [key: string]: unknown;
    };
};

/**
 * AdminSettingsResponse
 *
 * 管理员设置响应
 */
export type AdminSettingsResponse = {
    /**
     * Id
     *
     * 设置ID
     */
    id?: string;
    /**
     * Key
     *
     * 设置键名
     */
    key: string;
    /**
     * Json Value
     *
     * 设置值JSON数据
     */
    json_value?: {
        [key: string]: unknown;
    } | null;
};

/**
 * AdminSettingsUpdateRequest
 *
 * 更新管理员设置请求
 */
export type AdminSettingsUpdateRequest = {
    /**
     * Json Value
     *
     * 设置值JSON数据
     */
    json_value: {
        [key: string]: unknown;
    };
};

/**
 * ApplicationMetrics
 *
 * 应用性能指标模型
 */
export type ApplicationMetrics = {
    /**
     * Request Count
     *
     * 请求总数
     */
    request_count: number;
    /**
     * Error Count
     *
     * 错误数量
     */
    error_count: number;
    /**
     * Avg Response Time
     *
     * 平均响应时间(毫秒)
     */
    avg_response_time: number;
    /**
     * Active Connections
     *
     * 活跃连接数
     */
    active_connections: number;
    /**
     * Database Connections
     *
     * 数据库连接池状态
     */
    database_connections?: {
        [key: string]: number;
    };
};

/**
 * AuditStatus
 *
 * 审核状态枚举
 */
export type AuditStatus = '草稿' | '待审核' | '已通过' | '已拒绝';

/**
 * BaseResponse[bool]
 */
export type BaseResponseBool = {
    /**
     * Success
     *
     * 请求是否成功
     */
    success?: boolean;
    /**
     * Code
     *
     * 业务状态码
     */
    code?: string;
    /**
     * Message
     *
     * 响应消息
     */
    message?: string;
    /**
     * Data
     *
     * 响应数据
     */
    data?: boolean | null;
    /**
     * Request Id
     *
     * 请求追踪ID
     */
    request_id?: string | null;
};

/**
 * CPUInfo
 *
 * CPU 信息模型
 */
export type CpuInfo = {
    /**
     * Usage Percent
     *
     * CPU 使用率百分比
     */
    usage_percent: number;
    /**
     * Core Count
     *
     * CPU 核心数量
     */
    core_count: number;
    /**
     * Load Avg 1Min
     *
     * 1分钟负载平均值
     */
    load_avg_1min: number;
    /**
     * Load Avg 5Min
     *
     * 5分钟负载平均值
     */
    load_avg_5min: number;
    /**
     * Load Avg 15Min
     *
     * 15分钟负载平均值
     */
    load_avg_15min: number;
};

/**
 * CaptchaResponse
 *
 * 验证码响应模型
 */
export type CaptchaResponse = {
    /**
     * Captcha Id
     *
     * 验证码ID
     */
    captcha_id: string;
    /**
     * Image
     *
     * 验证码图片(base64)
     */
    image: string;
};

/**
 * CompanyScale
 *
 * 公司规模枚举
 */
export type CompanyScale = '小型(50人以下)' | '中型(50-300人)' | '大型(300人以上)';

/**
 * ConnectionConfig
 */
export type ConnectionConfig = {
    /**
     * Mail Username
     */
    MAIL_USERNAME: string;
    /**
     * Mail Port
     */
    MAIL_PORT: number;
    /**
     * Mail Server
     */
    MAIL_SERVER: string;
    /**
     * Mail Starttls
     */
    MAIL_STARTTLS: boolean;
    /**
     * Mail Ssl Tls
     */
    MAIL_SSL_TLS: boolean;
    /**
     * Mail Debug
     */
    MAIL_DEBUG?: number;
    /**
     * Mail From
     */
    MAIL_FROM: string;
    /**
     * Mail From Name
     */
    MAIL_FROM_NAME?: string | null;
    /**
     * Template Folder
     */
    TEMPLATE_FOLDER?: string | null;
    /**
     * Suppress Send
     */
    SUPPRESS_SEND?: number;
    /**
     * Use Credentials
     */
    USE_CREDENTIALS?: boolean;
    /**
     * Validate Certs
     */
    VALIDATE_CERTS?: boolean;
    /**
     * Timeout
     */
    TIMEOUT?: number;
    /**
     * Local Hostname
     */
    LOCAL_HOSTNAME?: string | null;
    /**
     * Cert Bundle
     */
    CERT_BUNDLE?: string | null;
};

/**
 * DepartmentCreate
 *
 * 创建部门模式
 */
export type DepartmentCreate = {
    /**
     * Code
     *
     * 部门编码
     */
    code: string;
    /**
     * Name
     *
     * 部门名称
     */
    name: string;
    /**
     * Description
     *
     * 部门描述
     */
    description?: string | null;
    /**
     * Manager Name
     *
     * 部门负责人姓名
     */
    manager_name?: string | null;
    /**
     * Manager Phone
     *
     * 部门负责人联系电话
     */
    manager_phone?: string | null;
    /**
     * Manager Email
     *
     * 部门负责人邮箱
     */
    manager_email?: string | null;
    /**
     * Parent Id
     *
     * 父部门ID
     */
    parent_id?: string | null;
    /**
     * Order Index
     *
     * 排序索引
     */
    order_index?: number;
    /**
     * Status
     *
     * 部门状态：active-启用, inactive-停用
     */
    status?: string;
};

/**
 * DepartmentResponse
 *
 * 部门响应模式
 */
export type DepartmentResponse = {
    /**
     * Code
     *
     * 部门编码
     */
    code: string;
    /**
     * Name
     *
     * 部门名称
     */
    name: string;
    /**
     * Description
     *
     * 部门描述
     */
    description?: string | null;
    /**
     * Manager Name
     *
     * 部门负责人姓名
     */
    manager_name?: string | null;
    /**
     * Manager Phone
     *
     * 部门负责人联系电话
     */
    manager_phone?: string | null;
    /**
     * Manager Email
     *
     * 部门负责人邮箱
     */
    manager_email?: string | null;
    /**
     * Id
     *
     * 部门ID
     */
    id: string;
    /**
     * Tenant Id
     *
     * 租户ID
     */
    tenant_id?: string | null;
    /**
     * Parent Id
     *
     * 父部门ID
     */
    parent_id?: string | null;
    /**
     * Order Index
     *
     * 排序索引
     */
    order_index: number;
    /**
     * Status
     *
     * 部门状态
     */
    status: string;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
    /**
     * Updated At
     *
     * 更新时间
     */
    updated_at: string;
    /**
     * Created By
     *
     * 创建人
     */
    created_by?: string | null;
    /**
     * Updated By
     *
     * 更新人
     */
    updated_by?: string | null;
};

/**
 * DepartmentTreeResponse
 *
 * 部门树形响应模式
 */
export type DepartmentTreeResponseInput = {
    /**
     * Code
     *
     * 部门编码
     */
    code: string;
    /**
     * Name
     *
     * 部门名称
     */
    name: string;
    /**
     * Description
     *
     * 部门描述
     */
    description?: string | null;
    /**
     * Manager Name
     *
     * 部门负责人姓名
     */
    manager_name?: string | null;
    /**
     * Manager Phone
     *
     * 部门负责人联系电话
     */
    manager_phone?: string | null;
    /**
     * Manager Email
     *
     * 部门负责人邮箱
     */
    manager_email?: string | null;
    /**
     * Id
     *
     * 部门ID
     */
    id: string;
    /**
     * Tenant Id
     *
     * 租户ID
     */
    tenant_id?: string | null;
    /**
     * Parent Id
     *
     * 父部门ID
     */
    parent_id?: string | null;
    /**
     * Order Index
     *
     * 排序索引
     */
    order_index: number;
    /**
     * Status
     *
     * 部门状态
     */
    status: string;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
    /**
     * Updated At
     *
     * 更新时间
     */
    updated_at: string;
    /**
     * Created By
     *
     * 创建人
     */
    created_by?: string | null;
    /**
     * Updated By
     *
     * 更新人
     */
    updated_by?: string | null;
    /**
     * Children
     *
     * 子部门列表
     */
    children?: Array<DepartmentTreeResponseInput>;
};

/**
 * DepartmentTreeResponse
 *
 * 部门树形响应模式
 */
export type DepartmentTreeResponseOutput = {
    /**
     * Code
     *
     * 部门编码
     */
    code: string;
    /**
     * Name
     *
     * 部门名称
     */
    name: string;
    /**
     * Description
     *
     * 部门描述
     */
    description?: string | null;
    /**
     * Manager Name
     *
     * 部门负责人姓名
     */
    manager_name?: string | null;
    /**
     * Manager Phone
     *
     * 部门负责人联系电话
     */
    manager_phone?: string | null;
    /**
     * Manager Email
     *
     * 部门负责人邮箱
     */
    manager_email?: string | null;
    /**
     * Id
     *
     * 部门ID
     */
    id: string;
    /**
     * Tenant Id
     *
     * 租户ID
     */
    tenant_id?: string | null;
    /**
     * Parent Id
     *
     * 父部门ID
     */
    parent_id?: string | null;
    /**
     * Order Index
     *
     * 排序索引
     */
    order_index: number;
    /**
     * Status
     *
     * 部门状态
     */
    status: string;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
    /**
     * Updated At
     *
     * 更新时间
     */
    updated_at: string;
    /**
     * Created By
     *
     * 创建人
     */
    created_by?: string | null;
    /**
     * Updated By
     *
     * 更新人
     */
    updated_by?: string | null;
    /**
     * Children
     *
     * 子部门列表
     */
    children?: Array<DepartmentTreeResponseOutput>;
};

/**
 * DepartmentUpdate
 *
 * 更新部门模式
 */
export type DepartmentUpdate = {
    /**
     * Code
     *
     * 部门编码
     */
    code?: string | null;
    /**
     * Name
     *
     * 部门名称
     */
    name?: string | null;
    /**
     * Description
     *
     * 部门描述
     */
    description?: string | null;
    /**
     * Manager Name
     *
     * 部门负责人姓名
     */
    manager_name?: string | null;
    /**
     * Manager Phone
     *
     * 部门负责人联系电话
     */
    manager_phone?: string | null;
    /**
     * Manager Email
     *
     * 部门负责人邮箱
     */
    manager_email?: string | null;
    /**
     * Order Index
     *
     * 排序索引
     */
    order_index?: number | null;
    /**
     * Status
     *
     * 部门状态
     */
    status?: string | null;
};

/**
 * DiskInfo
 *
 * 磁盘信息模型
 */
export type DiskInfo = {
    /**
     * Total Bytes
     *
     * 总磁盘空间字节数
     */
    total_bytes: number;
    /**
     * Used Bytes
     *
     * 已用磁盘空间字节数
     */
    used_bytes: number;
    /**
     * Free Bytes
     *
     * 可用磁盘空间字节数
     */
    free_bytes: number;
    /**
     * Usage Percent
     *
     * 磁盘使用率百分比
     */
    usage_percent: number;
    /**
     * Partitions
     *
     * 磁盘分区列表
     */
    partitions?: Array<DiskPartitionInfo>;
};

/**
 * DiskPartitionInfo
 *
 * 磁盘分区信息模型
 */
export type DiskPartitionInfo = {
    /**
     * Device
     *
     * 设备名称
     */
    device: string;
    /**
     * Mountpoint
     *
     * 挂载点
     */
    mountpoint: string;
    /**
     * Total Bytes
     *
     * 总空间字节数
     */
    total_bytes: number;
    /**
     * Used Bytes
     *
     * 已用空间字节数
     */
    used_bytes: number;
    /**
     * Free Bytes
     *
     * 可用空间字节数
     */
    free_bytes: number;
    /**
     * Usage Percent
     *
     * 使用率百分比
     */
    usage_percent: number;
};

/**
 * EmailConfigTestResponse
 *
 * 邮件配置测试响应
 */
export type EmailConfigTestResponse = {
    /**
     * Success
     *
     * 测试是否成功
     */
    success: boolean;
    /**
     * Message
     *
     * 测试结果消息
     */
    message: string;
    /**
     * Config Valid
     *
     * 邮件配置是否有效
     */
    config_valid: boolean;
    /**
     * Connection Test
     *
     * 连接测试是否通过
     */
    connection_test: boolean;
    /**
     * Delivery Test
     *
     * 投递测试是否通过
     */
    delivery_test: boolean;
    /**
     * Error Details
     *
     * 错误详情（如果有）
     */
    error_details?: string | null;
};

/**
 * ExternalServiceConfigCreate
 *
 * 外部服务配置创建请求
 */
export type ExternalServiceConfigCreate = {
    /**
     * Name
     *
     * 服务名称
     */
    name: string;
    /**
     * 服务类型
     */
    service_type: ExternalServiceType;
    /**
     * Config
     *
     * 服务配置 (JSON格式)
     */
    config: string;
    /**
     * Description
     *
     * 服务描述
     */
    description?: string | null;
    /**
     * Is Active
     *
     * 是否启用
     */
    is_active?: boolean;
    /**
     * Is Default
     *
     * 是否默认服务
     */
    is_default?: boolean;
};

/**
 * ExternalServiceConfigResponse
 *
 * 外部服务配置响应
 */
export type ExternalServiceConfigResponse = {
    /**
     * Id
     *
     * 配置ID
     */
    id: string;
    /**
     * Name
     *
     * 服务名称
     */
    name: string;
    /**
     * 服务类型
     */
    service_type: ExternalServiceType;
    /**
     * Config
     *
     * 服务配置
     */
    config: string;
    /**
     * Description
     *
     * 服务描述
     */
    description?: string | null;
    /**
     * Is Active
     *
     * 是否启用
     */
    is_active: boolean;
    /**
     * Is Default
     *
     * 是否默认服务
     */
    is_default: boolean;
    /**
     * Is Healthy
     *
     * 是否健康
     */
    is_healthy: boolean;
    /**
     * Last Health Check
     *
     * 最后健康检查时间
     */
    last_health_check?: string | null;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
    /**
     * Updated At
     *
     * 更新时间
     */
    updated_at: string;
};

/**
 * ExternalServiceConfigUpdate
 *
 * 外部服务配置更新请求
 */
export type ExternalServiceConfigUpdate = {
    /**
     * Name
     *
     * 服务名称
     */
    name?: string | null;
    /**
     * Config
     *
     * 服务配置 (JSON格式)
     */
    config?: string | null;
    /**
     * Description
     *
     * 服务描述
     */
    description?: string | null;
    /**
     * Is Active
     *
     * 是否启用
     */
    is_active?: boolean | null;
    /**
     * Is Default
     *
     * 是否默认服务
     */
    is_default?: boolean | null;
};

/**
 * ExternalServiceType
 *
 * 外部服务类型枚举
 */
export type ExternalServiceType = 'smtp' | 'sms_provider' | 'push_service';

/**
 * HTTPValidationError
 */
export type HttpValidationError = {
    /**
     * Detail
     */
    detail?: Array<ValidationError>;
};

/**
 * InboxMessageResponse
 *
 * 站内信响应
 */
export type InboxMessageResponse = {
    /**
     * Id
     *
     * 消息ID
     */
    id: string;
    /**
     * Subject
     *
     * 消息主题
     */
    subject?: string | null;
    /**
     * Content
     *
     * 消息内容
     */
    content: string;
    /**
     * 消息优先级
     */
    priority: MessagePriority;
    /**
     * Is Read
     *
     * 是否已读
     */
    is_read: boolean;
    /**
     * Read At
     *
     * 阅读时间
     */
    read_at?: string | null;
    /**
     * Sent At
     *
     * 发送时间
     */
    sent_at?: string | null;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
    /**
     * 消息类型
     */
    message_type: MessageType;
    /**
     * Recipient
     *
     * 接收者号码
     */
    recipient: string;
    /**
     * Recipient Name
     *
     * 接收者名字
     */
    recipient_name?: string | null;
    /**
     * Retry Count
     *
     * 重试次数
     */
    retry_count: number;
    /**
     * Failure Reason
     *
     * 失败原因
     */
    failure_reason?: string | null;
    /**
     * Scheduled At
     *
     * 计划发送时间
     */
    scheduled_at?: string | null;
};

/**
 * InvoiceType
 *
 * 发票类型枚举
 */
export type InvoiceType = '普通发票' | '增值税专用发票' | '电子发票';

/**
 * LogExportRequest
 *
 * 日志导出请求
 */
export type LogExportRequest = {
    /**
     * Start Time
     *
     * 开始时间
     */
    start_time?: string | null;
    /**
     * End Time
     *
     * 结束时间
     */
    end_time?: string | null;
    /**
     * User Id
     *
     * 用户ID
     */
    user_id?: string | null;
    /**
     * Format
     *
     * 导出格式
     */
    format?: string;
};

/**
 * LoginLogStatistics
 *
 * 登录日志统计
 */
export type LoginLogStatistics = {
    /**
     * Total Logins
     *
     * 总登录次数
     */
    total_logins: number;
    /**
     * Successful Logins
     *
     * 成功登录次数
     */
    successful_logins: number;
    /**
     * Failed Logins
     *
     * 失败登录次数
     */
    failed_logins: number;
    /**
     * Suspicious Logins
     *
     * 可疑登录次数
     */
    suspicious_logins: number;
    /**
     * Success Rate
     *
     * 成功率
     */
    success_rate: number;
    /**
     * Method Distribution
     *
     * 登录方式分布
     */
    method_distribution: {
        [key: string]: number;
    };
    /**
     * Daily Distribution
     *
     * 每日登录分布
     */
    daily_distribution: {
        [key: string]: number;
    };
};

/**
 * MemoryInfo
 *
 * 内存信息模型
 */
export type MemoryInfo = {
    /**
     * Total Bytes
     *
     * 总内存字节数
     */
    total_bytes: number;
    /**
     * Used Bytes
     *
     * 已用内存字节数
     */
    used_bytes: number;
    /**
     * Available Bytes
     *
     * 可用内存字节数
     */
    available_bytes: number;
    /**
     * Usage Percent
     *
     * 内存使用率百分比
     */
    usage_percent: number;
    /**
     * Swap Total Bytes
     *
     * 交换空间总字节数
     */
    swap_total_bytes: number;
    /**
     * Swap Used Bytes
     *
     * 交换空间已用字节数
     */
    swap_used_bytes: number;
    /**
     * Swap Usage Percent
     *
     * 交换空间使用率百分比
     */
    swap_usage_percent: number;
};

/**
 * MessageLogResponse
 *
 * 消息日志响应
 */
export type MessageLogResponse = {
    /**
     * Id
     *
     * 消息ID
     */
    id: string;
    /**
     * 消息类型
     */
    message_type: MessageType;
    /**
     * Subject
     *
     * 消息主题
     */
    subject?: string | null;
    /**
     * Recipients
     *
     * 接收者列表
     */
    recipients: Array<string>;
    /**
     * Status
     *
     * 发送状态
     */
    status: string;
    /**
     * 消息优先级
     */
    priority: MessagePriority;
    /**
     * Scheduled At
     *
     * 计划发送时间
     */
    scheduled_at?: string | null;
    /**
     * Sent At
     *
     * 实际发送时间
     */
    sent_at?: string | null;
    /**
     * Failure Reason
     *
     * 失败原因
     */
    failure_reason?: string | null;
    /**
     * Retry Count
     *
     * 重试次数
     */
    retry_count: number;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
};

/**
 * MessagePriority
 *
 * 消息优先级枚举
 */
export type MessagePriority = 'low' | 'normal' | 'high' | 'urgent';

/**
 * MessageReceiptResponse
 *
 * 消息接收记录响应
 */
export type MessageReceiptResponse = {
    /**
     * Id
     *
     * 接收记录ID
     */
    id: string;
    /**
     * Message Id
     *
     * 消息ID
     */
    message_id: string;
    /**
     * Recipient
     *
     * 接收者
     */
    recipient: string;
    /**
     * Is Read
     *
     * 是否已读
     */
    is_read: boolean;
    /**
     * Is Delivered
     *
     * 是否已投递
     */
    is_delivered: boolean;
    /**
     * Read At
     *
     * 阅读时间
     */
    read_at?: string | null;
    /**
     * Delivered At
     *
     * 投递时间
     */
    delivered_at?: string | null;
    /**
     * External Status
     *
     * 外部服务状态
     */
    external_status?: string | null;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
};

/**
 * MessageSendRequest
 *
 * 消息发送请求
 */
export type MessageSendRequest = {
    /**
     * 消息类型
     */
    message_type: MessageType;
    /**
     * Recipients
     *
     * 接收者列表
     */
    recipients: Array<string>;
    /**
     * Subject
     *
     * 消息主题
     */
    subject?: string | null;
    /**
     * Content
     *
     * 消息内容
     */
    content: string;
    /**
     * Template Id
     *
     * 模板ID
     */
    template_id?: string | null;
    /**
     * Variables
     *
     * 模板变量
     */
    variables?: {
        [key: string]: string;
    } | null;
    /**
     * 消息优先级
     */
    priority?: MessagePriority;
    /**
     * Scheduled At
     *
     * 计划发送时间
     */
    scheduled_at?: string | null;
};

/**
 * MessageSendResponse
 *
 * 消息发送响应
 */
export type MessageSendResponse = {
    /**
     * Message Id
     *
     * 消息ID
     */
    message_id: string;
    /**
     * Status
     *
     * 发送状态
     */
    status: string;
    /**
     * Scheduled At
     *
     * 计划发送时间
     */
    scheduled_at?: string | null;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
};

/**
 * MessageStatus
 *
 * 消息状态枚举
 */
export type MessageStatus = 'pending' | 'sending' | 'sent' | 'delivered' | 'failed' | 'cancelled';

/**
 * MessageTemplateCreate
 *
 * 消息模板创建请求
 */
export type MessageTemplateCreate = {
    /**
     * Name
     *
     * 模板名称
     */
    name: string;
    /**
     * Description
     *
     * 模板描述
     */
    description?: string | null;
    /**
     * 消息类型
     */
    message_type: MessageType;
    /**
     * Subject
     *
     * 消息主题
     */
    subject?: string | null;
    /**
     * Content
     *
     * 模板内容
     */
    content: string;
    /**
     * 模板类型
     */
    template_type?: TemplateType;
};

/**
 * MessageTemplateResponse
 *
 * 消息模板响应
 */
export type MessageTemplateResponse = {
    /**
     * Id
     *
     * 模板ID
     */
    id: string;
    /**
     * Name
     *
     * 模板名称
     */
    name: string;
    /**
     * Description
     *
     * 模板描述
     */
    description?: string | null;
    /**
     * 消息类型
     */
    message_type: MessageType;
    /**
     * 模板类型
     */
    template_type: TemplateType;
    /**
     * Subject
     *
     * 消息主题
     */
    subject?: string | null;
    /**
     * Content
     *
     * 模板内容
     */
    content: string;
    /**
     * Variables
     *
     * 模板变量列表
     */
    variables: Array<string>;
    /**
     * Is Active
     *
     * 是否启用
     */
    is_active: boolean;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
    /**
     * Updated At
     *
     * 更新时间
     */
    updated_at: string;
};

/**
 * MessageTemplateUpdate
 *
 * 消息模板更新请求
 */
export type MessageTemplateUpdate = {
    /**
     * Name
     *
     * 模板名称
     */
    name?: string | null;
    /**
     * Description
     *
     * 模板描述
     */
    description?: string | null;
    /**
     * Subject
     *
     * 消息主题
     */
    subject?: string | null;
    /**
     * Content
     *
     * 模板内容
     */
    content?: string | null;
    /**
     * Is Active
     *
     * 是否启用
     */
    is_active?: boolean | null;
};

/**
 * MessageType
 *
 * 消息类型枚举
 */
export type MessageType = 'email' | 'sms' | 'inbox' | 'push';

/**
 * NetworkInfo
 *
 * 网络信息模型
 */
export type NetworkInfo = {
    /**
     * Interfaces
     *
     * 网络接口列表
     */
    interfaces?: Array<NetworkInterfaceInfo>;
    /**
     * Connections Count
     *
     * 连接数量
     */
    connections_count: number;
};

/**
 * NetworkInterfaceInfo
 *
 * 网络接口信息模型
 */
export type NetworkInterfaceInfo = {
    /**
     * Name
     *
     * 接口名称
     */
    name: string;
    /**
     * Is Up
     *
     * 接口是否启用
     */
    is_up: boolean;
    /**
     * Bytes Sent
     *
     * 发送字节数
     */
    bytes_sent: number;
    /**
     * Bytes Recv
     *
     * 接收字节数
     */
    bytes_recv: number;
    /**
     * Packets Sent
     *
     * 发送包数
     */
    packets_sent: number;
    /**
     * Packets Recv
     *
     * 接收包数
     */
    packets_recv: number;
};

/**
 * NetworkLogStatistics
 *
 * 网络日志统计
 */
export type NetworkLogStatistics = {
    /**
     * Total Requests
     *
     * 总请求数
     */
    total_requests: number;
    /**
     * Error Requests
     *
     * 错误请求数
     */
    error_requests: number;
    /**
     * Slow Requests
     *
     * 慢请求数
     */
    slow_requests: number;
    /**
     * Error Rate
     *
     * 错误率
     */
    error_rate: number;
    /**
     * Slow Request Rate
     *
     * 慢请求率
     */
    slow_request_rate: number;
    /**
     * Method Distribution
     *
     * 请求方法分布
     */
    method_distribution: {
        [key: string]: number;
    };
    /**
     * Status Distribution
     *
     * 状态码分布
     */
    status_distribution: {
        [key: string]: number;
    };
};

/**
 * OperationLogResponse
 *
 * 操作日志响应
 */
export type OperationLogResponse = {
    /**
     * Id
     *
     * 日志ID
     */
    id: string;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
    /**
     * Updated At
     *
     * 更新时间
     */
    updated_at: string;
    /**
     * Username
     *
     * 用户名
     */
    username: string;
    /**
     * User Id
     *
     * 用户ID
     */
    user_id: string;
    /**
     * Operation Type
     *
     * 操作类型
     */
    operation_type: string;
    /**
     * Module
     *
     * 操作模块
     */
    module: string;
    /**
     * Action
     *
     * 操作动作
     */
    action: string;
    /**
     * Request Method
     *
     * 请求方法
     */
    request_method: string;
    /**
     * Request Url
     *
     * 请求URL
     */
    request_url: string;
    /**
     * Request Headers
     *
     * 请求头
     */
    request_headers?: {
        [key: string]: unknown;
    } | null;
    /**
     * Request Body
     *
     * 请求体
     */
    request_body?: {
        [key: string]: unknown;
    } | null;
    /**
     * Request Params
     *
     * 请求参数
     */
    request_params?: {
        [key: string]: unknown;
    } | null;
    /**
     * Response Status
     *
     * 响应状态码
     */
    response_status: number;
    /**
     * Response Body
     *
     * 响应体
     */
    response_body?: {
        [key: string]: unknown;
    } | null;
    /**
     * Error Message
     *
     * 错误信息
     */
    error_message?: string | null;
    /**
     * Processing Time
     *
     * 处理时间
     */
    processing_time: number;
};

/**
 * OperationLogStatistics
 *
 * 操作日志统计
 */
export type OperationLogStatistics = {
    /**
     * Total Operations
     *
     * 总操作次数
     */
    total_operations: number;
    /**
     * Error Operations
     *
     * 错误操作次数
     */
    error_operations: number;
    /**
     * Error Rate
     *
     * 错误率
     */
    error_rate: number;
    /**
     * Type Distribution
     *
     * 操作类型分布
     */
    type_distribution: {
        [key: string]: number;
    };
    /**
     * Module Distribution
     *
     * 模块分布
     */
    module_distribution: {
        [key: string]: number;
    };
};

/**
 * PagedResponse[AdminSettingsResponse]
 */
export type PagedResponseAdminSettingsResponse = {
    /**
     * Data
     *
     * 数据列表
     */
    data?: Array<AdminSettingsResponse>;
    /**
     * Total
     *
     * 数据总数
     */
    total: number;
    /**
     * Page
     *
     * 当前页数
     */
    page: number;
    /**
     * Size
     *
     * 当前数量
     */
    size: number;
    /**
     * Total Pages
     *
     * 总页数
     */
    total_pages: number;
    /**
     * Has Next
     *
     * 是否有下一页
     */
    has_next: boolean;
    /**
     * Has Prev
     *
     * 是否有上一页
     */
    has_prev: boolean;
};

/**
 * PagedResponse[DepartmentResponse]
 */
export type PagedResponseDepartmentResponse = {
    /**
     * Data
     *
     * 数据列表
     */
    data?: Array<DepartmentResponse>;
    /**
     * Total
     *
     * 数据总数
     */
    total: number;
    /**
     * Page
     *
     * 当前页数
     */
    page: number;
    /**
     * Size
     *
     * 当前数量
     */
    size: number;
    /**
     * Total Pages
     *
     * 总页数
     */
    total_pages: number;
    /**
     * Has Next
     *
     * 是否有下一页
     */
    has_next: boolean;
    /**
     * Has Prev
     *
     * 是否有上一页
     */
    has_prev: boolean;
};

/**
 * PagedResponse[InboxMessageResponse]
 */
export type PagedResponseInboxMessageResponse = {
    /**
     * Data
     *
     * 数据列表
     */
    data?: Array<InboxMessageResponse>;
    /**
     * Total
     *
     * 数据总数
     */
    total: number;
    /**
     * Page
     *
     * 当前页数
     */
    page: number;
    /**
     * Size
     *
     * 当前数量
     */
    size: number;
    /**
     * Total Pages
     *
     * 总页数
     */
    total_pages: number;
    /**
     * Has Next
     *
     * 是否有下一页
     */
    has_next: boolean;
    /**
     * Has Prev
     *
     * 是否有上一页
     */
    has_prev: boolean;
};

/**
 * PagedResponse[MessageLogResponse]
 */
export type PagedResponseMessageLogResponse = {
    /**
     * Data
     *
     * 数据列表
     */
    data?: Array<MessageLogResponse>;
    /**
     * Total
     *
     * 数据总数
     */
    total: number;
    /**
     * Page
     *
     * 当前页数
     */
    page: number;
    /**
     * Size
     *
     * 当前数量
     */
    size: number;
    /**
     * Total Pages
     *
     * 总页数
     */
    total_pages: number;
    /**
     * Has Next
     *
     * 是否有下一页
     */
    has_next: boolean;
    /**
     * Has Prev
     *
     * 是否有上一页
     */
    has_prev: boolean;
};

/**
 * PagedResponse[MessageTemplateResponse]
 */
export type PagedResponseMessageTemplateResponse = {
    /**
     * Data
     *
     * 数据列表
     */
    data?: Array<MessageTemplateResponse>;
    /**
     * Total
     *
     * 数据总数
     */
    total: number;
    /**
     * Page
     *
     * 当前页数
     */
    page: number;
    /**
     * Size
     *
     * 当前数量
     */
    size: number;
    /**
     * Total Pages
     *
     * 总页数
     */
    total_pages: number;
    /**
     * Has Next
     *
     * 是否有下一页
     */
    has_next: boolean;
    /**
     * Has Prev
     *
     * 是否有上一页
     */
    has_prev: boolean;
};

/**
 * PagedResponse[OperationLogResponse]
 */
export type PagedResponseOperationLogResponse = {
    /**
     * Data
     *
     * 数据列表
     */
    data?: Array<OperationLogResponse>;
    /**
     * Total
     *
     * 数据总数
     */
    total: number;
    /**
     * Page
     *
     * 当前页数
     */
    page: number;
    /**
     * Size
     *
     * 当前数量
     */
    size: number;
    /**
     * Total Pages
     *
     * 总页数
     */
    total_pages: number;
    /**
     * Has Next
     *
     * 是否有下一页
     */
    has_next: boolean;
    /**
     * Has Prev
     *
     * 是否有上一页
     */
    has_prev: boolean;
};

/**
 * PagedResponse[Permission]
 */
export type PagedResponsePermission = {
    /**
     * Data
     *
     * 数据列表
     */
    data?: Array<Permission>;
    /**
     * Total
     *
     * 数据总数
     */
    total: number;
    /**
     * Page
     *
     * 当前页数
     */
    page: number;
    /**
     * Size
     *
     * 当前数量
     */
    size: number;
    /**
     * Total Pages
     *
     * 总页数
     */
    total_pages: number;
    /**
     * Has Next
     *
     * 是否有下一页
     */
    has_next: boolean;
    /**
     * Has Prev
     *
     * 是否有上一页
     */
    has_prev: boolean;
};

/**
 * PagedResponse[Role]
 */
export type PagedResponseRole = {
    /**
     * Data
     *
     * 数据列表
     */
    data?: Array<Role>;
    /**
     * Total
     *
     * 数据总数
     */
    total: number;
    /**
     * Page
     *
     * 当前页数
     */
    page: number;
    /**
     * Size
     *
     * 当前数量
     */
    size: number;
    /**
     * Total Pages
     *
     * 总页数
     */
    total_pages: number;
    /**
     * Has Next
     *
     * 是否有下一页
     */
    has_next: boolean;
    /**
     * Has Prev
     *
     * 是否有上一页
     */
    has_prev: boolean;
};

/**
 * PagedResponse[TenantAnonymousResponse]
 */
export type PagedResponseTenantAnonymousResponse = {
    /**
     * Data
     *
     * 数据列表
     */
    data?: Array<TenantAnonymousResponse>;
    /**
     * Total
     *
     * 数据总数
     */
    total: number;
    /**
     * Page
     *
     * 当前页数
     */
    page: number;
    /**
     * Size
     *
     * 当前数量
     */
    size: number;
    /**
     * Total Pages
     *
     * 总页数
     */
    total_pages: number;
    /**
     * Has Next
     *
     * 是否有下一页
     */
    has_next: boolean;
    /**
     * Has Prev
     *
     * 是否有上一页
     */
    has_prev: boolean;
};

/**
 * PagedResponse[TenantAuditLogResponse]
 */
export type PagedResponseTenantAuditLogResponse = {
    /**
     * Data
     *
     * 数据列表
     */
    data?: Array<TenantAuditLogResponse>;
    /**
     * Total
     *
     * 数据总数
     */
    total: number;
    /**
     * Page
     *
     * 当前页数
     */
    page: number;
    /**
     * Size
     *
     * 当前数量
     */
    size: number;
    /**
     * Total Pages
     *
     * 总页数
     */
    total_pages: number;
    /**
     * Has Next
     *
     * 是否有下一页
     */
    has_next: boolean;
    /**
     * Has Prev
     *
     * 是否有上一页
     */
    has_prev: boolean;
};

/**
 * PagedResponse[TenantResponse]
 */
export type PagedResponseTenantResponse = {
    /**
     * Data
     *
     * 数据列表
     */
    data?: Array<TenantResponse>;
    /**
     * Total
     *
     * 数据总数
     */
    total: number;
    /**
     * Page
     *
     * 当前页数
     */
    page: number;
    /**
     * Size
     *
     * 当前数量
     */
    size: number;
    /**
     * Total Pages
     *
     * 总页数
     */
    total_pages: number;
    /**
     * Has Next
     *
     * 是否有下一页
     */
    has_next: boolean;
    /**
     * Has Prev
     *
     * 是否有上一页
     */
    has_prev: boolean;
};

/**
 * PagedResponse[UserListResponse]
 */
export type PagedResponseUserListResponse = {
    /**
     * Data
     *
     * 数据列表
     */
    data?: Array<UserListResponse>;
    /**
     * Total
     *
     * 数据总数
     */
    total: number;
    /**
     * Page
     *
     * 当前页数
     */
    page: number;
    /**
     * Size
     *
     * 当前数量
     */
    size: number;
    /**
     * Total Pages
     *
     * 总页数
     */
    total_pages: number;
    /**
     * Has Next
     *
     * 是否有下一页
     */
    has_next: boolean;
    /**
     * Has Prev
     *
     * 是否有上一页
     */
    has_prev: boolean;
};

/**
 * PagedResponse[UserResponse]
 */
export type PagedResponseUserResponse = {
    /**
     * Data
     *
     * 数据列表
     */
    data?: Array<UserResponse>;
    /**
     * Total
     *
     * 数据总数
     */
    total: number;
    /**
     * Page
     *
     * 当前页数
     */
    page: number;
    /**
     * Size
     *
     * 当前数量
     */
    size: number;
    /**
     * Total Pages
     *
     * 总页数
     */
    total_pages: number;
    /**
     * Has Next
     *
     * 是否有下一页
     */
    has_next: boolean;
    /**
     * Has Prev
     *
     * 是否有上一页
     */
    has_prev: boolean;
};

/**
 * PerformanceMetricsSummary
 *
 * 性能指标摘要模型
 */
export type PerformanceMetricsSummary = {
    /**
     * Timestamp
     *
     * 数据收集时间戳
     */
    timestamp: string;
    /**
     * Cpu Usage
     *
     * CPU 使用率
     */
    cpu_usage: number;
    /**
     * Memory Usage
     *
     * 内存使用率
     */
    memory_usage: number;
    /**
     * Disk Usage
     *
     * 磁盘使用率
     */
    disk_usage: number;
    /**
     * System Load
     *
     * 系统负载
     */
    system_load: number;
    /**
     * Status
     *
     * 系统状态
     */
    status: string;
};

/**
 * Permission
 *
 * 权限响应模型
 */
export type Permission = {
    /**
     * Name
     *
     * 权限名称
     */
    name: string;
    /**
     * Description
     *
     * 权限描述
     */
    description?: string | null;
    /**
     * Group
     *
     * 权限分组
     */
    group?: string | null;
    /**
     * Resource
     *
     * 资源名称
     */
    resource?: string | null;
    /**
     * Action
     *
     * 操作名称
     */
    action?: string | null;
    /**
     * Id
     */
    id: string;
    /**
     * Is System
     */
    is_system: boolean;
    /**
     * Created At
     */
    created_at: string;
    /**
     * Updated At
     */
    updated_at: string;
    /**
     * Resource Action
     *
     * 资源:操作格式
     */
    resource_action: string;
};

/**
 * PythonRuntimeInfo
 *
 * Python 运行时信息模型
 */
export type PythonRuntimeInfo = {
    /**
     * Version
     *
     * Python 版本
     */
    version: string;
    /**
     * Implementation
     *
     * Python 实现
     */
    implementation: string;
    /**
     * Memory Usage Bytes
     *
     * 内存使用字节数
     */
    memory_usage_bytes: number;
    /**
     * Gc Stats
     *
     * 垃圾回收统计
     */
    gc_stats?: {
        [key: string]: unknown;
    };
};

/**
 * Role
 *
 * 角色响应模型
 */
export type Role = {
    /**
     * Name
     *
     * 角色名称
     */
    name: string;
    /**
     * Description
     *
     * 角色描述
     */
    description?: string | null;
    /**
     * Id
     */
    id: string;
    /**
     * Tenant Id
     */
    tenant_id: string | null;
    /**
     * Created At
     */
    created_at: string;
    /**
     * Updated At
     */
    updated_at: string;
};

/**
 * RoleCreate
 *
 * 创建角色模型
 */
export type RoleCreate = {
    /**
     * Name
     *
     * 角色名称
     */
    name: string;
    /**
     * Description
     *
     * 角色描述
     */
    description?: string | null;
    /**
     * Permission Ids
     *
     * 权限ID列表
     */
    permission_ids?: Array<string> | null;
};

/**
 * RoleUpdate
 *
 * 更新角色模型
 */
export type RoleUpdate = {
    /**
     * Name
     *
     * 角色名称
     */
    name?: string | null;
    /**
     * Description
     *
     * 角色描述
     */
    description?: string | null;
    /**
     * Is Active
     *
     * 是否激活
     */
    is_active?: boolean | null;
    /**
     * Permission Ids
     *
     * 权限ID列表
     */
    permission_ids?: Array<string> | null;
};

/**
 * SystemMetricsResponse
 *
 * 系统性能指标响应模型
 */
export type SystemMetricsResponse = {
    /**
     * Timestamp
     *
     * 数据收集时间戳
     */
    timestamp: string;
    /**
     * CPU 信息
     */
    cpu: CpuInfo;
    /**
     * 内存信息
     */
    memory: MemoryInfo;
    /**
     * 磁盘信息
     */
    disk: DiskInfo;
    /**
     * 网络信息
     */
    network: NetworkInfo;
    /**
     * Python 运行时信息
     */
    python_runtime: PythonRuntimeInfo;
    /**
     * 应用性能指标
     */
    application: ApplicationMetrics;
    /**
     * Metadata
     *
     * 元数据
     */
    metadata?: {
        [key: string]: unknown;
    };
};

/**
 * TemplateType
 *
 * 模板类型枚举
 */
export type TemplateType = 'system' | 'custom';

/**
 * TenantAnonymousResponse
 *
 * 租户匿名查询响应模型 - 只包含ID和名称
 */
export type TenantAnonymousResponse = {
    /**
     * Id
     *
     * 租户ID
     */
    id: string;
    /**
     * Tenant Code
     *
     * 租户编码
     */
    tenant_code: string;
    /**
     * Company Name
     *
     * 企业名称
     */
    company_name: string;
    /**
     * 审核状态
     */
    audit_status: AuditStatus;
};

/**
 * TenantAuditLogResponse
 *
 * 租户审计日志响应模型
 */
export type TenantAuditLogResponse = {
    /**
     * Id
     *
     * 日志ID
     */
    id: string;
    /**
     * Action
     *
     * 操作类型
     */
    action: string;
    /**
     * Action By
     *
     * 操作人
     */
    action_by?: string | null;
    /**
     * Action Time
     *
     * 操作时间
     */
    action_time: string;
    /**
     * Snapshot Company Name
     *
     * 企业名称快照
     */
    snapshot_company_name?: string | null;
    /**
     * Snapshot Company Type
     *
     * 企业类型快照
     */
    snapshot_company_type?: string | null;
    /**
     * Snapshot Province
     *
     * 省份快照
     */
    snapshot_province?: string | null;
    /**
     * Snapshot City
     *
     * 城市快照
     */
    snapshot_city?: string | null;
    /**
     * Snapshot District
     *
     * 区县快照
     */
    snapshot_district?: string | null;
    /**
     * Snapshot Detailed Address
     *
     * 详细地址快照
     */
    snapshot_detailed_address?: string | null;
    /**
     * Snapshot Registrant
     *
     * 登记人快照
     */
    snapshot_registrant?: string | null;
    /**
     * Snapshot Contact Phone
     *
     * 联系电话快照
     */
    snapshot_contact_phone?: string | null;
    /**
     * Snapshot Bank Account
     *
     * 银行账号快照
     */
    snapshot_bank_account?: string | null;
    /**
     * Snapshot Bank Name
     *
     * 开户行快照
     */
    snapshot_bank_name?: string | null;
    /**
     * Snapshot Bank Full Name
     *
     * 开户行全称快照
     */
    snapshot_bank_full_name?: string | null;
    /**
     * Snapshot Bank Address
     *
     * 开户行地址快照
     */
    snapshot_bank_address?: string | null;
    /**
     * Snapshot Social Credit Code
     *
     * 社会信用代码快照
     */
    snapshot_social_credit_code?: string | null;
    /**
     * Snapshot Legal Person Name
     *
     * 法人姓名快照
     */
    snapshot_legal_person_name?: string | null;
    /**
     * Snapshot Audit Status
     *
     * 审核状态快照
     */
    snapshot_audit_status?: string | null;
    /**
     * Snapshot Audit Comment
     *
     * 审核备注快照
     */
    snapshot_audit_comment?: string | null;
    /**
     * Snapshot Company Scale
     *
     * 公司规模快照
     */
    snapshot_company_scale?: string | null;
    /**
     * Snapshot Registered Capital
     *
     * 注册资本快照
     */
    snapshot_registered_capital?: number | null;
    /**
     * Change Summary
     *
     * 变更摘要描述
     */
    change_summary?: string | null;
    /**
     * Ip Address
     *
     * 操作IP地址
     */
    ip_address?: string | null;
    /**
     * User Agent
     *
     * 用户代理
     */
    user_agent?: string | null;
    /**
     * Request Id
     *
     * 请求追踪ID
     */
    request_id?: string | null;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
};

/**
 * TenantAuditRequest
 *
 * 租户审核请求模型
 */
export type TenantAuditRequest = {
    /**
     * 审核状态
     */
    audit_status: AuditStatus;
    /**
     * Audit Comment
     *
     * 审核备注
     */
    audit_comment?: string | null;
};

/**
 * TenantCreateRequest
 *
 * 创建租户请求模型
 */
export type TenantCreateRequest = {
    /**
     * Company Name
     *
     * 企业名称
     */
    company_name: string;
    /**
     * Tenant Code
     *
     * 企业编码
     */
    tenant_code: string;
    /**
     * 企业类型
     */
    company_type: TenantType;
};

/**
 * TenantResponse
 *
 * 租户响应模型（已脱敏）
 */
export type TenantResponse = {
    /**
     * Id
     *
     * 租户ID
     */
    id: string;
    /**
     * Tenant Code
     *
     * 租户编码
     */
    tenant_code: string;
    /**
     * Is Active
     *
     * 是否活跃
     */
    is_active: boolean;
    /**
     * Company Name
     *
     * 企业名称
     */
    company_name: string;
    /**
     * 企业类型
     */
    company_type?: TenantType | null;
    /**
     * Province
     *
     * 省份
     */
    province?: string | null;
    /**
     * City
     *
     * 城市
     */
    city?: string | null;
    /**
     * District
     *
     * 区县
     */
    district?: string | null;
    /**
     * Detailed Address
     *
     * 详细地址
     */
    detailed_address?: string | null;
    /**
     * Registrant
     *
     * 登记人
     */
    registrant?: string | null;
    /**
     * Contact Phone
     *
     * 联系电话（已脱敏）
     */
    contact_phone?: string | null;
    /**
     * Bank Account
     *
     * 银行账号（已脱敏）
     */
    bank_account?: string | null;
    /**
     * Bank Name
     *
     * 开户行
     */
    bank_name?: string | null;
    /**
     * Bank Full Name
     *
     * 开户行全称
     */
    bank_full_name?: string | null;
    /**
     * Bank Address
     *
     * 开户行地址
     */
    bank_address?: string | null;
    /**
     * Social Credit Code
     *
     * 社会信用代码（已脱敏）
     */
    social_credit_code?: string | null;
    /**
     * Legal Person Name
     *
     * 法人姓名（已脱敏）
     */
    legal_person_name?: string | null;
    /**
     * 公司规模
     */
    company_scale?: CompanyScale | null;
    /**
     * Registered Capital
     *
     * 注册资本(万元)
     */
    registered_capital?: number | null;
    /**
     * Established Date
     *
     * 成立时间
     */
    established_date?: string | null;
    /**
     * 发票类型
     */
    invoice_type?: InvoiceType | null;
    /**
     * Business Scope
     *
     * 经营范围
     */
    business_scope?: string | null;
    /**
     * Submit Time
     *
     * 提交时间
     */
    submit_time?: string | null;
    /**
     * Audit Time
     *
     * 审核时间
     */
    audit_time?: string | null;
    /**
     * Auditor
     *
     * 审核人
     */
    auditor?: string | null;
    /**
     * 审核状态
     */
    audit_status: AuditStatus;
    /**
     * Audit Comment
     *
     * 审核备注
     */
    audit_comment?: string | null;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
    /**
     * Updated At
     *
     * 更新时间
     */
    updated_at: string;
};

/**
 * TenantType
 *
 * 企业类型枚举
 */
export type TenantType = '个体工商户' | '有限责任公司' | '股份有限公司' | '合伙企业' | '其他';

/**
 * TenantUpdateRequest
 *
 * 更新租户请求模型
 */
export type TenantUpdateRequest = {
    /**
     * Company Name
     *
     * 企业名称
     */
    company_name?: string | null;
    /**
     * 企业类型
     */
    company_type?: TenantType | null;
    /**
     * Province
     *
     * 省份
     */
    province?: string | null;
    /**
     * City
     *
     * 城市
     */
    city?: string | null;
    /**
     * District
     *
     * 区县
     */
    district?: string | null;
    /**
     * Detailed Address
     *
     * 详细地址
     */
    detailed_address?: string | null;
    /**
     * Registrant
     *
     * 登记人
     */
    registrant?: string | null;
    /**
     * Contact Phone
     *
     * 联系电话
     */
    contact_phone?: string | null;
    /**
     * Bank Account
     *
     * 银行账号
     */
    bank_account?: string | null;
    /**
     * Bank Name
     *
     * 开户行
     */
    bank_name?: string | null;
    /**
     * Bank Full Name
     *
     * 开户行全称
     */
    bank_full_name?: string | null;
    /**
     * Bank Address
     *
     * 开户行地址
     */
    bank_address?: string | null;
    /**
     * Bank Permit Image
     *
     * 开户许可证图片路径
     */
    bank_permit_image?: string | null;
    /**
     * Social Credit Code
     *
     * 社会信用代码
     */
    social_credit_code?: string | null;
    /**
     * Business License Image
     *
     * 营业执照图片路径
     */
    business_license_image?: string | null;
    /**
     * Legal Person Name
     *
     * 法人姓名
     */
    legal_person_name?: string | null;
    /**
     * Id Card Front Image
     *
     * 身份证正面图片
     */
    id_card_front_image?: string | null;
    /**
     * Id Card Back Image
     *
     * 身份证反面图片
     */
    id_card_back_image?: string | null;
    /**
     * 公司规模
     */
    company_scale?: CompanyScale | null;
    /**
     * Registered Capital
     *
     * 注册资本(万元)
     */
    registered_capital?: number | null;
    /**
     * Established Date
     *
     * 成立时间
     */
    established_date?: string | null;
    /**
     * 发票类型
     */
    invoice_type?: InvoiceType | null;
    /**
     * Business Scope
     *
     * 经营范围
     */
    business_scope?: string | null;
};

/**
 * Token
 *
 * 令牌模型
 */
export type Token = {
    /**
     * Access Token
     *
     * 访问令牌
     */
    access_token: string;
    /**
     * Refresh Token
     *
     * 刷新令牌
     */
    refresh_token: string;
    /**
     * Token Type
     *
     * 令牌类型
     */
    token_type?: string;
    /**
     * Expires In
     *
     * 过期时间(秒)
     */
    expires_in: number;
};

/**
 * User
 *
 * 用户响应模型
 */
export type User = {
    /**
     * Email
     *
     * 邮箱地址
     */
    email: string;
    /**
     * Username
     *
     * 用户名
     */
    username: string;
    /**
     * Full Name
     *
     * 全名
     */
    full_name?: string | null;
    /**
     * Phone
     *
     * 手机号
     */
    phone: string;
    /**
     * Id
     */
    id: string;
    /**
     * Tenant Id
     */
    tenant_id: string | null;
    /**
     * Is Active
     */
    is_active: boolean;
    /**
     * Is Superuser
     */
    is_superuser: boolean;
    /**
     * Is Verified
     */
    is_verified: boolean;
    /**
     * Created At
     */
    created_at: string;
    /**
     * Updated At
     */
    updated_at: string;
    /**
     * Last Login At
     */
    last_login_at: string | null;
    /**
     * Avatar Url
     */
    avatar_url: string | null;
    /**
     * Bio
     */
    bio: string | null;
    /**
     * Display Name
     *
     * 显示名称
     */
    display_name: string;
    /**
     * Department Id
     *
     * 部门ID
     */
    department_id?: string | null;
    /**
     * Department Name
     *
     * 部门名称
     */
    department_name?: string | null;
};

/**
 * UserCreate
 *
 * 创建用户模型
 */
export type UserCreate = {
    /**
     * Email
     *
     * 邮箱地址
     */
    email: string;
    /**
     * Username
     *
     * 用户名
     */
    username: string;
    /**
     * Full Name
     *
     * 全名
     */
    full_name?: string | null;
    /**
     * Phone
     *
     * 手机号
     */
    phone: string;
    /**
     * Password
     *
     * 密码
     */
    password: string;
    /**
     * Tenant Id
     *
     * 租户ID
     */
    tenant_id?: string | null;
    /**
     * Scope
     *
     * 用户作用域
     */
    scope?: string | null;
    /**
     * Department Id
     *
     * 部门ID
     */
    department_id?: string | null;
    /**
     * Is Superuser
     *
     * 是否超级用户
     */
    is_superuser?: boolean;
};

/**
 * UserCreateWithCompany
 *
 * 创建用户并注册企业模型
 */
export type UserCreateWithCompany = {
    /**
     * Email
     *
     * 邮箱地址
     */
    email: string;
    /**
     * Username
     *
     * 用户名
     */
    username: string;
    /**
     * Full Name
     *
     * 全名
     */
    full_name?: string | null;
    /**
     * Phone
     *
     * 手机号
     */
    phone: string;
    /**
     * Password
     *
     * 密码
     */
    password: string;
    /**
     * Company Name
     *
     * 企业名称
     */
    company_name: string;
    /**
     * Tenant Code
     *
     * 企业编码
     */
    tenant_code?: string;
};

/**
 * UserListResponse
 *
 * 用户列表响应模型 - 用于系统用户管理接口
 */
export type UserListResponse = {
    /**
     * Id
     *
     * 用户ID
     */
    id: string;
    /**
     * Username
     *
     * 用户名
     */
    username: string;
    /**
     * Full Name
     *
     * 姓名
     */
    full_name?: string | null;
    /**
     * Phone
     *
     * 电话
     */
    phone: string;
    /**
     * Company Name
     *
     * 企业名称
     */
    company_name?: string | null;
    /**
     * User Type
     *
     * 用户类型: system/tenant
     */
    user_type: string;
    /**
     * Status
     *
     * 状态: active/inactive
     */
    status: string;
    /**
     * Is Superuser
     *
     * 是否超级用户
     */
    is_superuser: boolean;
    /**
     * User Type Str
     *
     * 用户类型描述
     */
    user_type_str: string;
};

/**
 * UserLoginWithCaptcha
 *
 * 带验证码的用户登录模型
 */
export type UserLoginWithCaptcha = {
    /**
     * Identifier
     *
     * 用户名、邮箱或手机号
     */
    identifier: string;
    /**
     * Password
     *
     * 密码
     */
    password: string;
    /**
     * Captcha Id
     *
     * 验证码ID
     */
    captcha_id: string;
    /**
     * Captcha Text
     *
     * 验证码文本
     */
    captcha_text: string;
};

/**
 * UserResponse
 *
 * 用户响应模型 - 用于API响应
 */
export type UserResponse = {
    /**
     * Id
     *
     * 用户ID
     */
    id: string;
    /**
     * Tenant Id
     *
     * 租户ID
     */
    tenant_id?: string | null;
    /**
     * Email
     *
     * 邮箱地址
     */
    email: string;
    /**
     * Username
     *
     * 用户名
     */
    username: string;
    /**
     * Full Name
     *
     * 全名
     */
    full_name?: string | null;
    /**
     * Phone
     *
     * 手机号
     */
    phone: string;
    /**
     * Is Active
     *
     * 是否激活
     */
    is_active: boolean;
    /**
     * Is Superuser
     *
     * 是否超级用户
     */
    is_superuser: boolean;
    /**
     * Is Verified
     *
     * 是否已验证
     */
    is_verified: boolean;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
    /**
     * Updated At
     *
     * 更新时间
     */
    updated_at: string;
    /**
     * Last Login At
     *
     * 最后登录时间
     */
    last_login_at?: string | null;
    /**
     * Avatar Url
     *
     * 头像URL
     */
    avatar_url?: string | null;
    /**
     * Bio
     *
     * 个人简介
     */
    bio?: string | null;
    /**
     * Display Name
     *
     * 显示名称
     */
    display_name: string;
    /**
     * Department Id
     *
     * 部门ID
     */
    department_id?: string | null;
    /**
     * Department Name
     *
     * 部门名称
     */
    department_name?: string | null;
    /**
     * Scope
     *
     * 用户作用域
     */
    scope: string;
    /**
     * Company Name
     *
     * 企业名称
     */
    company_name?: string | null;
};

/**
 * UserRoleAssignRequest
 *
 * 用户角色分配请求模型
 */
export type UserRoleAssignRequest = {
    /**
     * Role Ids
     *
     * 要分配的角色ID列表
     */
    role_ids: Array<string>;
};

/**
 * UserRoleResponse
 *
 * 用户角色分配响应模型
 */
export type UserRoleResponse = {
    /**
     * User Id
     *
     * 用户ID
     */
    user_id: string;
    /**
     * Username
     *
     * 用户名
     */
    username: string;
    /**
     * Email
     *
     * 邮箱
     */
    email: string;
    /**
     * Full Name
     *
     * 全名
     */
    full_name?: string | null;
    /**
     * Roles
     *
     * 用户角色列表
     */
    roles?: Array<Role>;
    /**
     * Assigned At
     *
     * 分配时间
     */
    assigned_at?: string | null;
};

/**
 * UserUpdate
 *
 * 更新用户模型
 */
export type UserUpdate = {
    /**
     * Email
     *
     * 邮箱地址
     */
    email?: string | null;
    /**
     * Full Name
     *
     * 全名
     */
    full_name?: string | null;
    /**
     * Phone
     *
     * 手机号
     */
    phone?: string | null;
    /**
     * Avatar Url
     *
     * 头像URL
     */
    avatar_url?: string | null;
    /**
     * Bio
     *
     * 个人简介
     */
    bio?: string | null;
    /**
     * Department Id
     *
     * 部门ID
     */
    department_id?: string | null;
};

/**
 * UserUpdatePassword
 *
 * 更新密码模型
 */
export type UserUpdatePassword = {
    /**
     * Current Password
     *
     * 当前密码
     */
    current_password: string;
    /**
     * New Password
     *
     * 新密码
     */
    new_password: string;
};

/**
 * ValidationError
 */
export type ValidationError = {
    /**
     * Location
     */
    loc: Array<string | number>;
    /**
     * Message
     */
    msg: string;
    /**
     * Error Type
     */
    type: string;
};

/**
 * ConnectionConfig
 */
export type ConnectionConfigWritable = {
    /**
     * Mail Username
     */
    MAIL_USERNAME: string;
    /**
     * Mail Password
     */
    MAIL_PASSWORD: string;
    /**
     * Mail Port
     */
    MAIL_PORT: number;
    /**
     * Mail Server
     */
    MAIL_SERVER: string;
    /**
     * Mail Starttls
     */
    MAIL_STARTTLS: boolean;
    /**
     * Mail Ssl Tls
     */
    MAIL_SSL_TLS: boolean;
    /**
     * Mail Debug
     */
    MAIL_DEBUG?: number;
    /**
     * Mail From
     */
    MAIL_FROM: string;
    /**
     * Mail From Name
     */
    MAIL_FROM_NAME?: string | null;
    /**
     * Template Folder
     */
    TEMPLATE_FOLDER?: string | null;
    /**
     * Suppress Send
     */
    SUPPRESS_SEND?: number;
    /**
     * Use Credentials
     */
    USE_CREDENTIALS?: boolean;
    /**
     * Validate Certs
     */
    VALIDATE_CERTS?: boolean;
    /**
     * Timeout
     */
    TIMEOUT?: number;
    /**
     * Local Hostname
     */
    LOCAL_HOSTNAME?: string | null;
    /**
     * Cert Bundle
     */
    CERT_BUNDLE?: string | null;
};

export type RegisterApiV1AuthRegisterPostData = {
    body: UserCreate;
    path?: never;
    query?: never;
    url: '/api/v1/auth/register';
};

export type RegisterApiV1AuthRegisterPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type RegisterApiV1AuthRegisterPostError = RegisterApiV1AuthRegisterPostErrors[keyof RegisterApiV1AuthRegisterPostErrors];

export type RegisterApiV1AuthRegisterPostResponses = {
    /**
     * Successful Response
     */
    200: User;
};

export type RegisterApiV1AuthRegisterPostResponse = RegisterApiV1AuthRegisterPostResponses[keyof RegisterApiV1AuthRegisterPostResponses];

export type RegisterWithCompanyApiV1AuthRegisterWithCompanyPostData = {
    body: UserCreateWithCompany;
    path?: never;
    query?: never;
    url: '/api/v1/auth/register-with-company';
};

export type RegisterWithCompanyApiV1AuthRegisterWithCompanyPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type RegisterWithCompanyApiV1AuthRegisterWithCompanyPostError = RegisterWithCompanyApiV1AuthRegisterWithCompanyPostErrors[keyof RegisterWithCompanyApiV1AuthRegisterWithCompanyPostErrors];

export type RegisterWithCompanyApiV1AuthRegisterWithCompanyPostResponses = {
    /**
     * Successful Response
     */
    200: User;
};

export type RegisterWithCompanyApiV1AuthRegisterWithCompanyPostResponse = RegisterWithCompanyApiV1AuthRegisterWithCompanyPostResponses[keyof RegisterWithCompanyApiV1AuthRegisterWithCompanyPostResponses];

export type GetCaptchaApiV1AuthCaptchaGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/auth/captcha';
};

export type GetCaptchaApiV1AuthCaptchaGetResponses = {
    /**
     * Successful Response
     */
    200: CaptchaResponse;
};

export type GetCaptchaApiV1AuthCaptchaGetResponse = GetCaptchaApiV1AuthCaptchaGetResponses[keyof GetCaptchaApiV1AuthCaptchaGetResponses];

export type LoginApiV1AuthLoginPostData = {
    body: UserLoginWithCaptcha;
    path?: never;
    query?: never;
    url: '/api/v1/auth/login';
};

export type LoginApiV1AuthLoginPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type LoginApiV1AuthLoginPostError = LoginApiV1AuthLoginPostErrors[keyof LoginApiV1AuthLoginPostErrors];

export type LoginApiV1AuthLoginPostResponses = {
    /**
     * Successful Response
     */
    200: Token;
};

export type LoginApiV1AuthLoginPostResponse = LoginApiV1AuthLoginPostResponses[keyof LoginApiV1AuthLoginPostResponses];

export type RefreshTokenApiV1AuthRefreshPostData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/auth/refresh';
};

export type RefreshTokenApiV1AuthRefreshPostResponses = {
    /**
     * Successful Response
     */
    200: Token;
};

export type RefreshTokenApiV1AuthRefreshPostResponse = RefreshTokenApiV1AuthRefreshPostResponses[keyof RefreshTokenApiV1AuthRefreshPostResponses];

export type LogoutApiV1AuthLogoutPostData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/auth/logout';
};

export type LogoutApiV1AuthLogoutPostResponses = {
    /**
     * Response Logout Api V1 Auth Logout Post
     *
     * Successful Response
     */
    200: unknown;
};

export type GetCurrentUserInfoApiV1AuthMeGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/auth/me';
};

export type GetCurrentUserInfoApiV1AuthMeGetResponses = {
    /**
     * Successful Response
     */
    200: User;
};

export type GetCurrentUserInfoApiV1AuthMeGetResponse = GetCurrentUserInfoApiV1AuthMeGetResponses[keyof GetCurrentUserInfoApiV1AuthMeGetResponses];

export type UpdateCurrentUserApiV1AuthMePutData = {
    body: UserUpdate;
    path?: never;
    query?: never;
    url: '/api/v1/auth/me';
};

export type UpdateCurrentUserApiV1AuthMePutErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type UpdateCurrentUserApiV1AuthMePutError = UpdateCurrentUserApiV1AuthMePutErrors[keyof UpdateCurrentUserApiV1AuthMePutErrors];

export type UpdateCurrentUserApiV1AuthMePutResponses = {
    /**
     * Successful Response
     */
    200: User;
};

export type UpdateCurrentUserApiV1AuthMePutResponse = UpdateCurrentUserApiV1AuthMePutResponses[keyof UpdateCurrentUserApiV1AuthMePutResponses];

export type ChangePasswordApiV1AuthChangePasswordPostData = {
    body: UserUpdatePassword;
    path?: never;
    query?: never;
    url: '/api/v1/auth/change-password';
};

export type ChangePasswordApiV1AuthChangePasswordPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ChangePasswordApiV1AuthChangePasswordPostError = ChangePasswordApiV1AuthChangePasswordPostErrors[keyof ChangePasswordApiV1AuthChangePasswordPostErrors];

export type ChangePasswordApiV1AuthChangePasswordPostResponses = {
    /**
     * Response Change Password Api V1 Auth Change Password Post
     *
     * Successful Response
     */
    200: unknown;
};

export type VerifyUserTokenApiV1AuthVerifyTokenPostData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/auth/verify-token';
};

export type VerifyUserTokenApiV1AuthVerifyTokenPostResponses = {
    /**
     * Response Verify User Token Api V1 Auth Verify Token Post
     *
     * Successful Response
     */
    200: unknown;
};

export type GetUsersApiV1UsersGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Search
         *
         * 搜索关键词
         */
        search?: string;
        /**
         * Is Active
         *
         * 是否活跃
         */
        is_active?: boolean;
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Order By
         *
         * 排序字段
         */
        order_by?: string;
        /**
         * Sort Order
         *
         * 排序方向 (asc/desc)
         */
        sort_order?: string;
    };
    url: '/api/v1/users';
};

export type GetUsersApiV1UsersGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetUsersApiV1UsersGetError = GetUsersApiV1UsersGetErrors[keyof GetUsersApiV1UsersGetErrors];

export type GetUsersApiV1UsersGetResponses = {
    /**
     * Successful Response
     */
    200: PagedResponseUserResponse;
};

export type GetUsersApiV1UsersGetResponse = GetUsersApiV1UsersGetResponses[keyof GetUsersApiV1UsersGetResponses];

export type CreateUserApiV1UsersPostData = {
    body: UserCreate;
    path?: never;
    query?: never;
    url: '/api/v1/users';
};

export type CreateUserApiV1UsersPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type CreateUserApiV1UsersPostError = CreateUserApiV1UsersPostErrors[keyof CreateUserApiV1UsersPostErrors];

export type CreateUserApiV1UsersPostResponses = {
    /**
     * Successful Response
     */
    200: UserResponse;
};

export type CreateUserApiV1UsersPostResponse = CreateUserApiV1UsersPostResponses[keyof CreateUserApiV1UsersPostResponses];

export type DeleteUserApiV1UsersUserIdDeleteData = {
    body?: never;
    path: {
        /**
         * User Id
         */
        user_id: string;
    };
    query?: never;
    url: '/api/v1/users/{user_id}';
};

export type DeleteUserApiV1UsersUserIdDeleteErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type DeleteUserApiV1UsersUserIdDeleteError = DeleteUserApiV1UsersUserIdDeleteErrors[keyof DeleteUserApiV1UsersUserIdDeleteErrors];

export type DeleteUserApiV1UsersUserIdDeleteResponses = {
    /**
     * Response Delete User Api V1 Users  User Id  Delete
     *
     * Successful Response
     */
    200: unknown;
};

export type GetUserApiV1UsersUserIdGetData = {
    body?: never;
    path: {
        /**
         * User Id
         */
        user_id: string;
    };
    query?: never;
    url: '/api/v1/users/{user_id}';
};

export type GetUserApiV1UsersUserIdGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetUserApiV1UsersUserIdGetError = GetUserApiV1UsersUserIdGetErrors[keyof GetUserApiV1UsersUserIdGetErrors];

export type GetUserApiV1UsersUserIdGetResponses = {
    /**
     * Successful Response
     */
    200: UserResponse;
};

export type GetUserApiV1UsersUserIdGetResponse = GetUserApiV1UsersUserIdGetResponses[keyof GetUserApiV1UsersUserIdGetResponses];

export type UpdateUserApiV1UsersUserIdPutData = {
    body: UserUpdate;
    path: {
        /**
         * User Id
         */
        user_id: string;
    };
    query?: never;
    url: '/api/v1/users/{user_id}';
};

export type UpdateUserApiV1UsersUserIdPutErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type UpdateUserApiV1UsersUserIdPutError = UpdateUserApiV1UsersUserIdPutErrors[keyof UpdateUserApiV1UsersUserIdPutErrors];

export type UpdateUserApiV1UsersUserIdPutResponses = {
    /**
     * Successful Response
     */
    200: UserResponse;
};

export type UpdateUserApiV1UsersUserIdPutResponse = UpdateUserApiV1UsersUserIdPutResponses[keyof UpdateUserApiV1UsersUserIdPutResponses];

export type ActivateUserApiV1UsersUserIdActivatePostData = {
    body?: never;
    path: {
        /**
         * User Id
         */
        user_id: string;
    };
    query?: never;
    url: '/api/v1/users/{user_id}/activate';
};

export type ActivateUserApiV1UsersUserIdActivatePostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ActivateUserApiV1UsersUserIdActivatePostError = ActivateUserApiV1UsersUserIdActivatePostErrors[keyof ActivateUserApiV1UsersUserIdActivatePostErrors];

export type ActivateUserApiV1UsersUserIdActivatePostResponses = {
    /**
     * Response Activate User Api V1 Users  User Id  Activate Post
     *
     * Successful Response
     */
    200: unknown;
};

export type DeactivateUserApiV1UsersUserIdDeactivatePostData = {
    body?: never;
    path: {
        /**
         * User Id
         */
        user_id: string;
    };
    query?: never;
    url: '/api/v1/users/{user_id}/deactivate';
};

export type DeactivateUserApiV1UsersUserIdDeactivatePostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type DeactivateUserApiV1UsersUserIdDeactivatePostError = DeactivateUserApiV1UsersUserIdDeactivatePostErrors[keyof DeactivateUserApiV1UsersUserIdDeactivatePostErrors];

export type DeactivateUserApiV1UsersUserIdDeactivatePostResponses = {
    /**
     * Response Deactivate User Api V1 Users  User Id  Deactivate Post
     *
     * Successful Response
     */
    200: unknown;
};

export type GetUserStatsApiV1UsersStatsSummaryGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/users/stats/summary';
};

export type GetUserStatsApiV1UsersStatsSummaryGetResponses = {
    /**
     * Response Get User Stats Api V1 Users Stats Summary Get
     *
     * Successful Response
     */
    200: unknown;
};

export type GetDepartmentOptionsApiV1UsersDepartmentsOptionsGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/users/departments/options';
};

export type GetDepartmentOptionsApiV1UsersDepartmentsOptionsGetResponses = {
    /**
     * Response Get Department Options Api V1 Users Departments Options Get
     *
     * Successful Response
     */
    200: Array<DepartmentResponse>;
};

export type GetDepartmentOptionsApiV1UsersDepartmentsOptionsGetResponse = GetDepartmentOptionsApiV1UsersDepartmentsOptionsGetResponses[keyof GetDepartmentOptionsApiV1UsersDepartmentsOptionsGetResponses];

export type GetSystemPermissionsApiV1UsersPermissionsPermissionsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Search
         *
         * 搜索关键词
         */
        search?: string;
        /**
         * Group
         *
         * 权限分组过滤
         */
        group?: string;
        /**
         * Resource
         *
         * 资源过滤
         */
        resource?: string;
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Order By
         *
         * 排序字段
         */
        order_by?: string;
        /**
         * Sort Order
         *
         * 排序方向 (asc/desc)
         */
        sort_order?: string;
    };
    url: '/api/v1/users/permissions/permissions';
};

export type GetSystemPermissionsApiV1UsersPermissionsPermissionsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetSystemPermissionsApiV1UsersPermissionsPermissionsGetError = GetSystemPermissionsApiV1UsersPermissionsPermissionsGetErrors[keyof GetSystemPermissionsApiV1UsersPermissionsPermissionsGetErrors];

export type GetSystemPermissionsApiV1UsersPermissionsPermissionsGetResponses = {
    /**
     * Successful Response
     */
    200: PagedResponsePermission;
};

export type GetSystemPermissionsApiV1UsersPermissionsPermissionsGetResponse = GetSystemPermissionsApiV1UsersPermissionsPermissionsGetResponses[keyof GetSystemPermissionsApiV1UsersPermissionsPermissionsGetResponses];

export type GetRolesApiV1UsersPermissionsRolesGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Search
         *
         * 搜索关键词
         */
        search?: string;
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Order By
         *
         * 排序字段
         */
        order_by?: string;
        /**
         * Sort Order
         *
         * 排序方向 (asc/desc)
         */
        sort_order?: string;
    };
    url: '/api/v1/users/permissions/roles';
};

export type GetRolesApiV1UsersPermissionsRolesGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetRolesApiV1UsersPermissionsRolesGetError = GetRolesApiV1UsersPermissionsRolesGetErrors[keyof GetRolesApiV1UsersPermissionsRolesGetErrors];

export type GetRolesApiV1UsersPermissionsRolesGetResponses = {
    /**
     * Successful Response
     */
    200: PagedResponseRole;
};

export type GetRolesApiV1UsersPermissionsRolesGetResponse = GetRolesApiV1UsersPermissionsRolesGetResponses[keyof GetRolesApiV1UsersPermissionsRolesGetResponses];

export type CreateRoleApiV1UsersPermissionsRolesPostData = {
    body: RoleCreate;
    path?: never;
    query?: never;
    url: '/api/v1/users/permissions/roles';
};

export type CreateRoleApiV1UsersPermissionsRolesPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type CreateRoleApiV1UsersPermissionsRolesPostError = CreateRoleApiV1UsersPermissionsRolesPostErrors[keyof CreateRoleApiV1UsersPermissionsRolesPostErrors];

export type CreateRoleApiV1UsersPermissionsRolesPostResponses = {
    /**
     * Successful Response
     */
    200: Role;
};

export type CreateRoleApiV1UsersPermissionsRolesPostResponse = CreateRoleApiV1UsersPermissionsRolesPostResponses[keyof CreateRoleApiV1UsersPermissionsRolesPostResponses];

export type DeleteRoleApiV1UsersPermissionsRolesRoleIdDeleteData = {
    body?: never;
    path: {
        /**
         * Role Id
         */
        role_id: string;
    };
    query?: never;
    url: '/api/v1/users/permissions/roles/{role_id}';
};

export type DeleteRoleApiV1UsersPermissionsRolesRoleIdDeleteErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type DeleteRoleApiV1UsersPermissionsRolesRoleIdDeleteError = DeleteRoleApiV1UsersPermissionsRolesRoleIdDeleteErrors[keyof DeleteRoleApiV1UsersPermissionsRolesRoleIdDeleteErrors];

export type DeleteRoleApiV1UsersPermissionsRolesRoleIdDeleteResponses = {
    /**
     * Response Delete Role Api V1 Users Permissions Roles  Role Id  Delete
     *
     * Successful Response
     */
    200: unknown;
};

export type GetRoleApiV1UsersPermissionsRolesRoleIdGetData = {
    body?: never;
    path: {
        /**
         * Role Id
         */
        role_id: string;
    };
    query?: never;
    url: '/api/v1/users/permissions/roles/{role_id}';
};

export type GetRoleApiV1UsersPermissionsRolesRoleIdGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetRoleApiV1UsersPermissionsRolesRoleIdGetError = GetRoleApiV1UsersPermissionsRolesRoleIdGetErrors[keyof GetRoleApiV1UsersPermissionsRolesRoleIdGetErrors];

export type GetRoleApiV1UsersPermissionsRolesRoleIdGetResponses = {
    /**
     * Successful Response
     */
    200: Role;
};

export type GetRoleApiV1UsersPermissionsRolesRoleIdGetResponse = GetRoleApiV1UsersPermissionsRolesRoleIdGetResponses[keyof GetRoleApiV1UsersPermissionsRolesRoleIdGetResponses];

export type UpdateRoleApiV1UsersPermissionsRolesRoleIdPutData = {
    body: RoleUpdate;
    path: {
        /**
         * Role Id
         */
        role_id: string;
    };
    query?: never;
    url: '/api/v1/users/permissions/roles/{role_id}';
};

export type UpdateRoleApiV1UsersPermissionsRolesRoleIdPutErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type UpdateRoleApiV1UsersPermissionsRolesRoleIdPutError = UpdateRoleApiV1UsersPermissionsRolesRoleIdPutErrors[keyof UpdateRoleApiV1UsersPermissionsRolesRoleIdPutErrors];

export type UpdateRoleApiV1UsersPermissionsRolesRoleIdPutResponses = {
    /**
     * Successful Response
     */
    200: Role;
};

export type UpdateRoleApiV1UsersPermissionsRolesRoleIdPutResponse = UpdateRoleApiV1UsersPermissionsRolesRoleIdPutResponses[keyof UpdateRoleApiV1UsersPermissionsRolesRoleIdPutResponses];

export type GetUserRolesApiV1UsersPermissionsUsersUserIdRolesGetData = {
    body?: never;
    path: {
        /**
         * User Id
         */
        user_id: string;
    };
    query?: never;
    url: '/api/v1/users/permissions/users/{user_id}/roles';
};

export type GetUserRolesApiV1UsersPermissionsUsersUserIdRolesGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetUserRolesApiV1UsersPermissionsUsersUserIdRolesGetError = GetUserRolesApiV1UsersPermissionsUsersUserIdRolesGetErrors[keyof GetUserRolesApiV1UsersPermissionsUsersUserIdRolesGetErrors];

export type GetUserRolesApiV1UsersPermissionsUsersUserIdRolesGetResponses = {
    /**
     * Response Get User Roles Api V1 Users Permissions Users  User Id  Roles Get
     *
     * Successful Response
     */
    200: Array<Role>;
};

export type GetUserRolesApiV1UsersPermissionsUsersUserIdRolesGetResponse = GetUserRolesApiV1UsersPermissionsUsersUserIdRolesGetResponses[keyof GetUserRolesApiV1UsersPermissionsUsersUserIdRolesGetResponses];

export type AssignRolesToUserApiV1UsersPermissionsUsersUserIdRolesPostData = {
    body: UserRoleAssignRequest;
    path: {
        /**
         * User Id
         */
        user_id: string;
    };
    query?: never;
    url: '/api/v1/users/permissions/users/{user_id}/roles';
};

export type AssignRolesToUserApiV1UsersPermissionsUsersUserIdRolesPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type AssignRolesToUserApiV1UsersPermissionsUsersUserIdRolesPostError = AssignRolesToUserApiV1UsersPermissionsUsersUserIdRolesPostErrors[keyof AssignRolesToUserApiV1UsersPermissionsUsersUserIdRolesPostErrors];

export type AssignRolesToUserApiV1UsersPermissionsUsersUserIdRolesPostResponses = {
    /**
     * Successful Response
     */
    200: UserRoleResponse;
};

export type AssignRolesToUserApiV1UsersPermissionsUsersUserIdRolesPostResponse = AssignRolesToUserApiV1UsersPermissionsUsersUserIdRolesPostResponses[keyof AssignRolesToUserApiV1UsersPermissionsUsersUserIdRolesPostResponses];

export type RemoveUserRoleApiV1UsersPermissionsUsersUserIdRolesRoleIdDeleteData = {
    body?: never;
    path: {
        /**
         * User Id
         */
        user_id: string;
        /**
         * Role Id
         */
        role_id: string;
    };
    query?: never;
    url: '/api/v1/users/permissions/users/{user_id}/roles/{role_id}';
};

export type RemoveUserRoleApiV1UsersPermissionsUsersUserIdRolesRoleIdDeleteErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type RemoveUserRoleApiV1UsersPermissionsUsersUserIdRolesRoleIdDeleteError = RemoveUserRoleApiV1UsersPermissionsUsersUserIdRolesRoleIdDeleteErrors[keyof RemoveUserRoleApiV1UsersPermissionsUsersUserIdRolesRoleIdDeleteErrors];

export type RemoveUserRoleApiV1UsersPermissionsUsersUserIdRolesRoleIdDeleteResponses = {
    /**
     * Response Remove User Role Api V1 Users Permissions Users  User Id  Roles  Role Id  Delete
     *
     * Successful Response
     */
    200: unknown;
};

export type ListSystemUsersApiV1UsersSystemUsersGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Search
         *
         * 搜索关键词（用户名、邮箱、全名、手机号、企业名称）
         */
        search?: string;
        /**
         * Is Active
         *
         * 是否活跃
         */
        is_active?: boolean;
        /**
         * Tenant Id
         *
         * 租户id
         */
        tenant_id?: string;
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Order By
         *
         * 排序字段
         */
        order_by?: string;
        /**
         * Sort Order
         *
         * 排序方向 (asc/desc)
         */
        sort_order?: string;
    };
    url: '/api/v1/users/system/users';
};

export type ListSystemUsersApiV1UsersSystemUsersGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ListSystemUsersApiV1UsersSystemUsersGetError = ListSystemUsersApiV1UsersSystemUsersGetErrors[keyof ListSystemUsersApiV1UsersSystemUsersGetErrors];

export type ListSystemUsersApiV1UsersSystemUsersGetResponses = {
    /**
     * Successful Response
     */
    200: PagedResponseUserListResponse;
};

export type ListSystemUsersApiV1UsersSystemUsersGetResponse = ListSystemUsersApiV1UsersSystemUsersGetResponses[keyof ListSystemUsersApiV1UsersSystemUsersGetResponses];

export type CreateSystemUserApiV1UsersSystemUsersPostData = {
    body: UserCreate;
    path?: never;
    query?: never;
    url: '/api/v1/users/system/users';
};

export type CreateSystemUserApiV1UsersSystemUsersPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type CreateSystemUserApiV1UsersSystemUsersPostError = CreateSystemUserApiV1UsersSystemUsersPostErrors[keyof CreateSystemUserApiV1UsersSystemUsersPostErrors];

export type CreateSystemUserApiV1UsersSystemUsersPostResponses = {
    /**
     * Successful Response
     */
    200: User;
};

export type CreateSystemUserApiV1UsersSystemUsersPostResponse = CreateSystemUserApiV1UsersSystemUsersPostResponses[keyof CreateSystemUserApiV1UsersSystemUsersPostResponses];

export type DeleteSystemUserApiV1UsersSystemUsersUserIdDeleteData = {
    body?: never;
    path: {
        /**
         * User Id
         */
        user_id: string;
    };
    query?: never;
    url: '/api/v1/users/system/users/{user_id}';
};

export type DeleteSystemUserApiV1UsersSystemUsersUserIdDeleteErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type DeleteSystemUserApiV1UsersSystemUsersUserIdDeleteError = DeleteSystemUserApiV1UsersSystemUsersUserIdDeleteErrors[keyof DeleteSystemUserApiV1UsersSystemUsersUserIdDeleteErrors];

export type DeleteSystemUserApiV1UsersSystemUsersUserIdDeleteResponses = {
    /**
     * Response Delete System User Api V1 Users System Users  User Id  Delete
     *
     * Successful Response
     */
    200: unknown;
};

export type GetSystemUserApiV1UsersSystemUsersUserIdGetData = {
    body?: never;
    path: {
        /**
         * User Id
         */
        user_id: string;
    };
    query?: never;
    url: '/api/v1/users/system/users/{user_id}';
};

export type GetSystemUserApiV1UsersSystemUsersUserIdGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetSystemUserApiV1UsersSystemUsersUserIdGetError = GetSystemUserApiV1UsersSystemUsersUserIdGetErrors[keyof GetSystemUserApiV1UsersSystemUsersUserIdGetErrors];

export type GetSystemUserApiV1UsersSystemUsersUserIdGetResponses = {
    /**
     * Successful Response
     */
    200: User;
};

export type GetSystemUserApiV1UsersSystemUsersUserIdGetResponse = GetSystemUserApiV1UsersSystemUsersUserIdGetResponses[keyof GetSystemUserApiV1UsersSystemUsersUserIdGetResponses];

export type UpdateSystemUserApiV1UsersSystemUsersUserIdPutData = {
    body: UserUpdate;
    path: {
        /**
         * User Id
         */
        user_id: string;
    };
    query?: never;
    url: '/api/v1/users/system/users/{user_id}';
};

export type UpdateSystemUserApiV1UsersSystemUsersUserIdPutErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type UpdateSystemUserApiV1UsersSystemUsersUserIdPutError = UpdateSystemUserApiV1UsersSystemUsersUserIdPutErrors[keyof UpdateSystemUserApiV1UsersSystemUsersUserIdPutErrors];

export type UpdateSystemUserApiV1UsersSystemUsersUserIdPutResponses = {
    /**
     * Successful Response
     */
    200: User;
};

export type UpdateSystemUserApiV1UsersSystemUsersUserIdPutResponse = UpdateSystemUserApiV1UsersSystemUsersUserIdPutResponses[keyof UpdateSystemUserApiV1UsersSystemUsersUserIdPutResponses];

export type GetSystemUserStatsApiV1UsersSystemUsersStatsSummaryGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/users/system/users/stats/summary';
};

export type GetSystemUserStatsApiV1UsersSystemUsersStatsSummaryGetResponses = {
    /**
     * Response Get System User Stats Api V1 Users System Users Stats Summary Get
     *
     * Successful Response
     */
    200: unknown;
};

export type ActivateSystemUserApiV1UsersSystemUsersUserIdActivatePostData = {
    body?: never;
    path: {
        /**
         * User Id
         */
        user_id: string;
    };
    query?: never;
    url: '/api/v1/users/system/users/{user_id}/activate';
};

export type ActivateSystemUserApiV1UsersSystemUsersUserIdActivatePostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ActivateSystemUserApiV1UsersSystemUsersUserIdActivatePostError = ActivateSystemUserApiV1UsersSystemUsersUserIdActivatePostErrors[keyof ActivateSystemUserApiV1UsersSystemUsersUserIdActivatePostErrors];

export type ActivateSystemUserApiV1UsersSystemUsersUserIdActivatePostResponses = {
    /**
     * Response Activate System User Api V1 Users System Users  User Id  Activate Post
     *
     * Successful Response
     */
    200: unknown;
};

export type DeactivateSystemUserApiV1UsersSystemUsersUserIdDeactivatePostData = {
    body?: never;
    path: {
        /**
         * User Id
         */
        user_id: string;
    };
    query?: never;
    url: '/api/v1/users/system/users/{user_id}/deactivate';
};

export type DeactivateSystemUserApiV1UsersSystemUsersUserIdDeactivatePostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type DeactivateSystemUserApiV1UsersSystemUsersUserIdDeactivatePostError = DeactivateSystemUserApiV1UsersSystemUsersUserIdDeactivatePostErrors[keyof DeactivateSystemUserApiV1UsersSystemUsersUserIdDeactivatePostErrors];

export type DeactivateSystemUserApiV1UsersSystemUsersUserIdDeactivatePostResponses = {
    /**
     * Response Deactivate System User Api V1 Users System Users  User Id  Deactivate Post
     *
     * Successful Response
     */
    200: unknown;
};

export type ListTenantsApiV1TenantsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Search
         *
         * 企业名称、编码（模糊查询）
         */
        search?: string;
        /**
         * Audit Status
         *
         * 审核状态
         */
        audit_status?: string;
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Order By
         *
         * 排序字段
         */
        order_by?: string;
        /**
         * Sort Order
         *
         * 排序方向 (asc/desc)
         */
        sort_order?: string;
    };
    url: '/api/v1/tenants';
};

export type ListTenantsApiV1TenantsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ListTenantsApiV1TenantsGetError = ListTenantsApiV1TenantsGetErrors[keyof ListTenantsApiV1TenantsGetErrors];

export type ListTenantsApiV1TenantsGetResponses = {
    /**
     * Successful Response
     */
    200: PagedResponseTenantResponse;
};

export type ListTenantsApiV1TenantsGetResponse = ListTenantsApiV1TenantsGetResponses[keyof ListTenantsApiV1TenantsGetResponses];

export type CreateTenantApiV1TenantsPostData = {
    body: TenantCreateRequest;
    path?: never;
    query?: never;
    url: '/api/v1/tenants';
};

export type CreateTenantApiV1TenantsPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type CreateTenantApiV1TenantsPostError = CreateTenantApiV1TenantsPostErrors[keyof CreateTenantApiV1TenantsPostErrors];

export type CreateTenantApiV1TenantsPostResponses = {
    /**
     * Successful Response
     */
    201: TenantResponse;
};

export type CreateTenantApiV1TenantsPostResponse = CreateTenantApiV1TenantsPostResponses[keyof CreateTenantApiV1TenantsPostResponses];

export type GetTenantAuditLogsApiV1TenantsAuditLogsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Tenant Id
         *
         * 租户id
         */
        tenant_id?: string;
        /**
         * Search
         *
         * 搜索关键词（用户名、邮箱、全名、手机号、企业名称）
         */
        search?: string;
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Order By
         *
         * 排序字段
         */
        order_by?: string;
        /**
         * Sort Order
         *
         * 排序方向 (asc/desc)
         */
        sort_order?: string;
    };
    url: '/api/v1/tenants/audit-logs';
};

export type GetTenantAuditLogsApiV1TenantsAuditLogsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetTenantAuditLogsApiV1TenantsAuditLogsGetError = GetTenantAuditLogsApiV1TenantsAuditLogsGetErrors[keyof GetTenantAuditLogsApiV1TenantsAuditLogsGetErrors];

export type GetTenantAuditLogsApiV1TenantsAuditLogsGetResponses = {
    /**
     * Successful Response
     */
    200: PagedResponseTenantAuditLogResponse;
};

export type GetTenantAuditLogsApiV1TenantsAuditLogsGetResponse = GetTenantAuditLogsApiV1TenantsAuditLogsGetResponses[keyof GetTenantAuditLogsApiV1TenantsAuditLogsGetResponses];

export type GetCurrentTenantApiV1TenantsMeGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/tenants/me';
};

export type GetCurrentTenantApiV1TenantsMeGetResponses = {
    /**
     * Successful Response
     */
    200: TenantResponse;
};

export type GetCurrentTenantApiV1TenantsMeGetResponse = GetCurrentTenantApiV1TenantsMeGetResponses[keyof GetCurrentTenantApiV1TenantsMeGetResponses];

export type SubmitTenantAuditApiV1TenantsSubmitPostData = {
    body: TenantUpdateRequest;
    path?: never;
    query?: never;
    url: '/api/v1/tenants/submit';
};

export type SubmitTenantAuditApiV1TenantsSubmitPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type SubmitTenantAuditApiV1TenantsSubmitPostError = SubmitTenantAuditApiV1TenantsSubmitPostErrors[keyof SubmitTenantAuditApiV1TenantsSubmitPostErrors];

export type SubmitTenantAuditApiV1TenantsSubmitPostResponses = {
    /**
     * Successful Response
     */
    200: TenantResponse;
};

export type SubmitTenantAuditApiV1TenantsSubmitPostResponse = SubmitTenantAuditApiV1TenantsSubmitPostResponses[keyof SubmitTenantAuditApiV1TenantsSubmitPostResponses];

export type DeleteTenantApiV1TenantsTenantIdDeleteData = {
    body?: never;
    path: {
        /**
         * Tenant Id
         */
        tenant_id: string;
    };
    query?: never;
    url: '/api/v1/tenants/{tenant_id}';
};

export type DeleteTenantApiV1TenantsTenantIdDeleteErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type DeleteTenantApiV1TenantsTenantIdDeleteError = DeleteTenantApiV1TenantsTenantIdDeleteErrors[keyof DeleteTenantApiV1TenantsTenantIdDeleteErrors];

export type DeleteTenantApiV1TenantsTenantIdDeleteResponses = {
    /**
     * Successful Response
     */
    200: BaseResponseBool;
};

export type DeleteTenantApiV1TenantsTenantIdDeleteResponse = DeleteTenantApiV1TenantsTenantIdDeleteResponses[keyof DeleteTenantApiV1TenantsTenantIdDeleteResponses];

export type GetTenantApiV1TenantsTenantIdGetData = {
    body?: never;
    path: {
        /**
         * Tenant Id
         */
        tenant_id: string;
    };
    query?: never;
    url: '/api/v1/tenants/{tenant_id}';
};

export type GetTenantApiV1TenantsTenantIdGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetTenantApiV1TenantsTenantIdGetError = GetTenantApiV1TenantsTenantIdGetErrors[keyof GetTenantApiV1TenantsTenantIdGetErrors];

export type GetTenantApiV1TenantsTenantIdGetResponses = {
    /**
     * Successful Response
     */
    200: TenantResponse;
};

export type GetTenantApiV1TenantsTenantIdGetResponse = GetTenantApiV1TenantsTenantIdGetResponses[keyof GetTenantApiV1TenantsTenantIdGetResponses];

export type AuditTenantApiV1TenantsTenantIdAuditPostData = {
    body: TenantAuditRequest;
    path: {
        /**
         * Tenant Id
         */
        tenant_id: string;
    };
    query?: never;
    url: '/api/v1/tenants/{tenant_id}/audit';
};

export type AuditTenantApiV1TenantsTenantIdAuditPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type AuditTenantApiV1TenantsTenantIdAuditPostError = AuditTenantApiV1TenantsTenantIdAuditPostErrors[keyof AuditTenantApiV1TenantsTenantIdAuditPostErrors];

export type AuditTenantApiV1TenantsTenantIdAuditPostResponses = {
    /**
     * Successful Response
     */
    200: TenantResponse;
};

export type AuditTenantApiV1TenantsTenantIdAuditPostResponse = AuditTenantApiV1TenantsTenantIdAuditPostResponses[keyof AuditTenantApiV1TenantsTenantIdAuditPostResponses];

export type DisableTenantApiV1TenantsTenantIdDisablePatchData = {
    body?: never;
    path: {
        /**
         * Tenant Id
         */
        tenant_id: string;
    };
    query?: never;
    url: '/api/v1/tenants/{tenant_id}/disable';
};

export type DisableTenantApiV1TenantsTenantIdDisablePatchErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type DisableTenantApiV1TenantsTenantIdDisablePatchError = DisableTenantApiV1TenantsTenantIdDisablePatchErrors[keyof DisableTenantApiV1TenantsTenantIdDisablePatchErrors];

export type DisableTenantApiV1TenantsTenantIdDisablePatchResponses = {
    /**
     * Successful Response
     */
    200: TenantResponse;
};

export type DisableTenantApiV1TenantsTenantIdDisablePatchResponse = DisableTenantApiV1TenantsTenantIdDisablePatchResponses[keyof DisableTenantApiV1TenantsTenantIdDisablePatchResponses];

export type EnableTenantApiV1TenantsTenantIdEnablePatchData = {
    body?: never;
    path: {
        /**
         * Tenant Id
         */
        tenant_id: string;
    };
    query?: never;
    url: '/api/v1/tenants/{tenant_id}/enable';
};

export type EnableTenantApiV1TenantsTenantIdEnablePatchErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type EnableTenantApiV1TenantsTenantIdEnablePatchError = EnableTenantApiV1TenantsTenantIdEnablePatchErrors[keyof EnableTenantApiV1TenantsTenantIdEnablePatchErrors];

export type EnableTenantApiV1TenantsTenantIdEnablePatchResponses = {
    /**
     * Successful Response
     */
    200: TenantResponse;
};

export type EnableTenantApiV1TenantsTenantIdEnablePatchResponse = EnableTenantApiV1TenantsTenantIdEnablePatchResponses[keyof EnableTenantApiV1TenantsTenantIdEnablePatchResponses];

export type ListAnonymousTenantsApiV1TenantsAnonymousListGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Search
         *
         * 企业名称、编码（模糊查询）
         */
        search?: string;
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Order By
         *
         * 排序字段
         */
        order_by?: string;
        /**
         * Sort Order
         *
         * 排序方向 (asc/desc)
         */
        sort_order?: string;
    };
    url: '/api/v1/tenants/anonymous/list';
};

export type ListAnonymousTenantsApiV1TenantsAnonymousListGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ListAnonymousTenantsApiV1TenantsAnonymousListGetError = ListAnonymousTenantsApiV1TenantsAnonymousListGetErrors[keyof ListAnonymousTenantsApiV1TenantsAnonymousListGetErrors];

export type ListAnonymousTenantsApiV1TenantsAnonymousListGetResponses = {
    /**
     * Successful Response
     */
    200: PagedResponseTenantAnonymousResponse;
};

export type ListAnonymousTenantsApiV1TenantsAnonymousListGetResponse = ListAnonymousTenantsApiV1TenantsAnonymousListGetResponses[keyof ListAnonymousTenantsApiV1TenantsAnonymousListGetResponses];

export type GetDepartmentsApiV1DepartmentsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Order By
         *
         * 排序字段
         */
        order_by?: string;
        /**
         * Sort Order
         *
         * 排序方向
         */
        sort_order?: string;
        /**
         * Status Filter
         *
         * 状态过滤
         */
        status_filter?: string | null;
        /**
         * Name Like
         *
         * 部门名称模糊查询
         */
        name_like?: string | null;
        /**
         * Code Like
         *
         * 部门编码模糊查询
         */
        code_like?: string | null;
    };
    url: '/api/v1/departments';
};

export type GetDepartmentsApiV1DepartmentsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetDepartmentsApiV1DepartmentsGetError = GetDepartmentsApiV1DepartmentsGetErrors[keyof GetDepartmentsApiV1DepartmentsGetErrors];

export type GetDepartmentsApiV1DepartmentsGetResponses = {
    /**
     * Successful Response
     */
    200: PagedResponseDepartmentResponse;
};

export type GetDepartmentsApiV1DepartmentsGetResponse = GetDepartmentsApiV1DepartmentsGetResponses[keyof GetDepartmentsApiV1DepartmentsGetResponses];

export type CreateDepartmentApiV1DepartmentsPostData = {
    body: DepartmentCreate;
    path?: never;
    query?: never;
    url: '/api/v1/departments';
};

export type CreateDepartmentApiV1DepartmentsPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type CreateDepartmentApiV1DepartmentsPostError = CreateDepartmentApiV1DepartmentsPostErrors[keyof CreateDepartmentApiV1DepartmentsPostErrors];

export type CreateDepartmentApiV1DepartmentsPostResponses = {
    /**
     * Successful Response
     */
    201: DepartmentResponse;
};

export type CreateDepartmentApiV1DepartmentsPostResponse = CreateDepartmentApiV1DepartmentsPostResponses[keyof CreateDepartmentApiV1DepartmentsPostResponses];

export type GetDepartmentTreeApiV1DepartmentsTreeGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/departments/tree';
};

export type GetDepartmentTreeApiV1DepartmentsTreeGetResponses = {
    /**
     * Response Get Department Tree Api V1 Departments Tree Get
     *
     * Successful Response
     */
    200: Array<DepartmentTreeResponseOutput>;
};

export type GetDepartmentTreeApiV1DepartmentsTreeGetResponse = GetDepartmentTreeApiV1DepartmentsTreeGetResponses[keyof GetDepartmentTreeApiV1DepartmentsTreeGetResponses];

export type DeleteDepartmentApiV1DepartmentsDepartmentIdDeleteData = {
    body?: never;
    path: {
        /**
         * Department Id
         */
        department_id: string;
    };
    query?: never;
    url: '/api/v1/departments/{department_id}';
};

export type DeleteDepartmentApiV1DepartmentsDepartmentIdDeleteErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type DeleteDepartmentApiV1DepartmentsDepartmentIdDeleteError = DeleteDepartmentApiV1DepartmentsDepartmentIdDeleteErrors[keyof DeleteDepartmentApiV1DepartmentsDepartmentIdDeleteErrors];

export type DeleteDepartmentApiV1DepartmentsDepartmentIdDeleteResponses = {
    /**
     * Successful Response
     */
    204: void;
};

export type DeleteDepartmentApiV1DepartmentsDepartmentIdDeleteResponse = DeleteDepartmentApiV1DepartmentsDepartmentIdDeleteResponses[keyof DeleteDepartmentApiV1DepartmentsDepartmentIdDeleteResponses];

export type GetDepartmentApiV1DepartmentsDepartmentIdGetData = {
    body?: never;
    path: {
        /**
         * Department Id
         */
        department_id: string;
    };
    query?: never;
    url: '/api/v1/departments/{department_id}';
};

export type GetDepartmentApiV1DepartmentsDepartmentIdGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetDepartmentApiV1DepartmentsDepartmentIdGetError = GetDepartmentApiV1DepartmentsDepartmentIdGetErrors[keyof GetDepartmentApiV1DepartmentsDepartmentIdGetErrors];

export type GetDepartmentApiV1DepartmentsDepartmentIdGetResponses = {
    /**
     * Successful Response
     */
    200: DepartmentResponse;
};

export type GetDepartmentApiV1DepartmentsDepartmentIdGetResponse = GetDepartmentApiV1DepartmentsDepartmentIdGetResponses[keyof GetDepartmentApiV1DepartmentsDepartmentIdGetResponses];

export type UpdateDepartmentApiV1DepartmentsDepartmentIdPutData = {
    body: DepartmentUpdate;
    path: {
        /**
         * Department Id
         */
        department_id: string;
    };
    query?: never;
    url: '/api/v1/departments/{department_id}';
};

export type UpdateDepartmentApiV1DepartmentsDepartmentIdPutErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type UpdateDepartmentApiV1DepartmentsDepartmentIdPutError = UpdateDepartmentApiV1DepartmentsDepartmentIdPutErrors[keyof UpdateDepartmentApiV1DepartmentsDepartmentIdPutErrors];

export type UpdateDepartmentApiV1DepartmentsDepartmentIdPutResponses = {
    /**
     * Successful Response
     */
    200: DepartmentResponse;
};

export type UpdateDepartmentApiV1DepartmentsDepartmentIdPutResponse = UpdateDepartmentApiV1DepartmentsDepartmentIdPutResponses[keyof UpdateDepartmentApiV1DepartmentsDepartmentIdPutResponses];

export type UpdateDepartmentOrderApiV1DepartmentsDepartmentIdOrderPatchData = {
    body?: never;
    path: {
        /**
         * Department Id
         */
        department_id: string;
    };
    query: {
        /**
         * Order Index
         *
         * 排序索引
         */
        order_index: number;
    };
    url: '/api/v1/departments/{department_id}/order';
};

export type UpdateDepartmentOrderApiV1DepartmentsDepartmentIdOrderPatchErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type UpdateDepartmentOrderApiV1DepartmentsDepartmentIdOrderPatchError = UpdateDepartmentOrderApiV1DepartmentsDepartmentIdOrderPatchErrors[keyof UpdateDepartmentOrderApiV1DepartmentsDepartmentIdOrderPatchErrors];

export type UpdateDepartmentOrderApiV1DepartmentsDepartmentIdOrderPatchResponses = {
    /**
     * Successful Response
     */
    200: DepartmentResponse;
};

export type UpdateDepartmentOrderApiV1DepartmentsDepartmentIdOrderPatchResponse = UpdateDepartmentOrderApiV1DepartmentsDepartmentIdOrderPatchResponses[keyof UpdateDepartmentOrderApiV1DepartmentsDepartmentIdOrderPatchResponses];

export type UpdateDepartmentStatusApiV1DepartmentsDepartmentIdStatusPatchData = {
    body?: never;
    path: {
        /**
         * Department Id
         */
        department_id: string;
    };
    query: {
        /**
         * Status
         *
         * 状态: active/inactive
         */
        status: string;
    };
    url: '/api/v1/departments/{department_id}/status';
};

export type UpdateDepartmentStatusApiV1DepartmentsDepartmentIdStatusPatchErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type UpdateDepartmentStatusApiV1DepartmentsDepartmentIdStatusPatchError = UpdateDepartmentStatusApiV1DepartmentsDepartmentIdStatusPatchErrors[keyof UpdateDepartmentStatusApiV1DepartmentsDepartmentIdStatusPatchErrors];

export type UpdateDepartmentStatusApiV1DepartmentsDepartmentIdStatusPatchResponses = {
    /**
     * Successful Response
     */
    200: DepartmentResponse;
};

export type UpdateDepartmentStatusApiV1DepartmentsDepartmentIdStatusPatchResponse = UpdateDepartmentStatusApiV1DepartmentsDepartmentIdStatusPatchResponses[keyof UpdateDepartmentStatusApiV1DepartmentsDepartmentIdStatusPatchResponses];

export type GetDepartmentUsersCountApiV1DepartmentsDepartmentIdUsersCountGetData = {
    body?: never;
    path: {
        /**
         * Department Id
         */
        department_id: string;
    };
    query?: never;
    url: '/api/v1/departments/{department_id}/users-count';
};

export type GetDepartmentUsersCountApiV1DepartmentsDepartmentIdUsersCountGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetDepartmentUsersCountApiV1DepartmentsDepartmentIdUsersCountGetError = GetDepartmentUsersCountApiV1DepartmentsDepartmentIdUsersCountGetErrors[keyof GetDepartmentUsersCountApiV1DepartmentsDepartmentIdUsersCountGetErrors];

export type GetDepartmentUsersCountApiV1DepartmentsDepartmentIdUsersCountGetResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type ListLoginLogsApiV1LogsLoginLoginLogsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Keyword
         *
         * 关键词搜索
         */
        keyword?: string | null;
        /**
         * Start Time
         *
         * 开始时间
         */
        start_time?: string | null;
        /**
         * End Time
         *
         * 结束时间
         */
        end_time?: string | null;
        /**
         * User Id
         *
         * 用户ID
         */
        user_id?: string | null;
        /**
         * Ip Address
         *
         * IP地址
         */
        ip_address?: string | null;
        /**
         * Status
         *
         * 登录状态
         */
        status?: string | null;
        /**
         * Method
         *
         * 登录方式
         */
        method?: string | null;
        /**
         * Is Suspicious
         *
         * 是否可疑
         */
        is_suspicious?: boolean | null;
    };
    url: '/api/v1/logs/login/login-logs';
};

export type ListLoginLogsApiV1LogsLoginLoginLogsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ListLoginLogsApiV1LogsLoginLoginLogsGetError = ListLoginLogsApiV1LogsLoginLoginLogsGetErrors[keyof ListLoginLogsApiV1LogsLoginLoginLogsGetErrors];

export type ListLoginLogsApiV1LogsLoginLoginLogsGetResponses = {
    /**
     * Response List Login Logs Api V1 Logs Login Login Logs Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type ListLoginLogsApiV1LogsLoginLoginLogsGetResponse = ListLoginLogsApiV1LogsLoginLoginLogsGetResponses[keyof ListLoginLogsApiV1LogsLoginLoginLogsGetResponses];

export type GetLoginStatisticsApiV1LogsLoginLoginLogsStatisticsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Start Date
         *
         * 开始日期
         */
        start_date?: string | null;
        /**
         * End Date
         *
         * 结束日期
         */
        end_date?: string | null;
    };
    url: '/api/v1/logs/login/login-logs/statistics';
};

export type GetLoginStatisticsApiV1LogsLoginLoginLogsStatisticsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetLoginStatisticsApiV1LogsLoginLoginLogsStatisticsGetError = GetLoginStatisticsApiV1LogsLoginLoginLogsStatisticsGetErrors[keyof GetLoginStatisticsApiV1LogsLoginLoginLogsStatisticsGetErrors];

export type GetLoginStatisticsApiV1LogsLoginLoginLogsStatisticsGetResponses = {
    /**
     * Successful Response
     */
    200: LoginLogStatistics;
};

export type GetLoginStatisticsApiV1LogsLoginLoginLogsStatisticsGetResponse = GetLoginStatisticsApiV1LogsLoginLoginLogsStatisticsGetResponses[keyof GetLoginStatisticsApiV1LogsLoginLoginLogsStatisticsGetResponses];

export type ExportLoginLogsApiV1LogsLoginLoginLogsExportGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Start Time
         *
         * 开始时间
         */
        start_time?: string | null;
        /**
         * End Time
         *
         * 结束时间
         */
        end_time?: string | null;
        /**
         * User Id
         *
         * 用户ID
         */
        user_id?: string | null;
        /**
         * Format
         *
         * 导出格式
         */
        format?: string;
    };
    url: '/api/v1/logs/login/login-logs/export';
};

export type ExportLoginLogsApiV1LogsLoginLoginLogsExportGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ExportLoginLogsApiV1LogsLoginLoginLogsExportGetError = ExportLoginLogsApiV1LogsLoginLoginLogsExportGetErrors[keyof ExportLoginLogsApiV1LogsLoginLoginLogsExportGetErrors];

export type ExportLoginLogsApiV1LogsLoginLoginLogsExportGetResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type GetSuspiciousLoginsApiV1LogsLoginLoginLogsSuspiciousGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Hours
         *
         * 时间范围（小时）
         */
        hours?: number;
    };
    url: '/api/v1/logs/login/login-logs/suspicious';
};

export type GetSuspiciousLoginsApiV1LogsLoginLoginLogsSuspiciousGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetSuspiciousLoginsApiV1LogsLoginLoginLogsSuspiciousGetError = GetSuspiciousLoginsApiV1LogsLoginLoginLogsSuspiciousGetErrors[keyof GetSuspiciousLoginsApiV1LogsLoginLoginLogsSuspiciousGetErrors];

export type GetSuspiciousLoginsApiV1LogsLoginLoginLogsSuspiciousGetResponses = {
    /**
     * Response Get Suspicious Logins Api V1 Logs Login Login Logs Suspicious Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type GetSuspiciousLoginsApiV1LogsLoginLoginLogsSuspiciousGetResponse = GetSuspiciousLoginsApiV1LogsLoginLoginLogsSuspiciousGetResponses[keyof GetSuspiciousLoginsApiV1LogsLoginLoginLogsSuspiciousGetResponses];

export type GetFailedLoginAttemptsApiV1LogsLoginLoginLogsFailedAttemptsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Hours
         *
         * 时间范围（小时）
         */
        hours?: number;
        /**
         * Username
         *
         * 用户名
         */
        username?: string | null;
        /**
         * Ip Address
         *
         * IP地址
         */
        ip_address?: string | null;
    };
    url: '/api/v1/logs/login/login-logs/failed-attempts';
};

export type GetFailedLoginAttemptsApiV1LogsLoginLoginLogsFailedAttemptsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetFailedLoginAttemptsApiV1LogsLoginLoginLogsFailedAttemptsGetError = GetFailedLoginAttemptsApiV1LogsLoginLoginLogsFailedAttemptsGetErrors[keyof GetFailedLoginAttemptsApiV1LogsLoginLoginLogsFailedAttemptsGetErrors];

export type GetFailedLoginAttemptsApiV1LogsLoginLoginLogsFailedAttemptsGetResponses = {
    /**
     * Response Get Failed Login Attempts Api V1 Logs Login Login Logs Failed Attempts Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type GetFailedLoginAttemptsApiV1LogsLoginLoginLogsFailedAttemptsGetResponse = GetFailedLoginAttemptsApiV1LogsLoginLoginLogsFailedAttemptsGetResponses[keyof GetFailedLoginAttemptsApiV1LogsLoginLoginLogsFailedAttemptsGetResponses];

export type GetUserLoginHistoryApiV1LogsLoginLoginLogsUserUserIdHistoryGetData = {
    body?: never;
    path: {
        /**
         * User Id
         */
        user_id: string;
    };
    query?: {
        /**
         * Limit
         *
         * 记录数量限制
         */
        limit?: number;
    };
    url: '/api/v1/logs/login/login-logs/user/{user_id}/history';
};

export type GetUserLoginHistoryApiV1LogsLoginLoginLogsUserUserIdHistoryGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetUserLoginHistoryApiV1LogsLoginLoginLogsUserUserIdHistoryGetError = GetUserLoginHistoryApiV1LogsLoginLoginLogsUserUserIdHistoryGetErrors[keyof GetUserLoginHistoryApiV1LogsLoginLoginLogsUserUserIdHistoryGetErrors];

export type GetUserLoginHistoryApiV1LogsLoginLoginLogsUserUserIdHistoryGetResponses = {
    /**
     * Response Get User Login History Api V1 Logs Login Login Logs User  User Id  History Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type GetUserLoginHistoryApiV1LogsLoginLoginLogsUserUserIdHistoryGetResponse = GetUserLoginHistoryApiV1LogsLoginLoginLogsUserUserIdHistoryGetResponses[keyof GetUserLoginHistoryApiV1LogsLoginLoginLogsUserUserIdHistoryGetResponses];

export type ListOperationLogsApiV1LogsOperationOperationLogsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Keyword
         *
         * 关键词搜索
         */
        keyword?: string | null;
        /**
         * Start Time
         *
         * 开始时间
         */
        start_time?: string | null;
        /**
         * End Time
         *
         * 结束时间
         */
        end_time?: string | null;
        /**
         * User Id
         *
         * 用户ID
         */
        user_id?: string | null;
        /**
         * Operation Type
         *
         * 操作类型
         */
        operation_type?: string | null;
        /**
         * Module
         *
         * 操作模块
         */
        module?: string | null;
        /**
         * Action
         *
         * 操作动作
         */
        action?: string | null;
        /**
         * Request Method
         *
         * 请求方法
         */
        request_method?: string | null;
        /**
         * Response Status
         *
         * 响应状态码
         */
        response_status?: number | null;
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Order By
         *
         * 排序字段
         */
        order_by?: string;
        /**
         * Sort Order
         *
         * 排序方向 (asc/desc)
         */
        sort_order?: string;
    };
    url: '/api/v1/logs/operation/operation-logs';
};

export type ListOperationLogsApiV1LogsOperationOperationLogsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ListOperationLogsApiV1LogsOperationOperationLogsGetError = ListOperationLogsApiV1LogsOperationOperationLogsGetErrors[keyof ListOperationLogsApiV1LogsOperationOperationLogsGetErrors];

export type ListOperationLogsApiV1LogsOperationOperationLogsGetResponses = {
    /**
     * Successful Response
     */
    200: PagedResponseOperationLogResponse;
};

export type ListOperationLogsApiV1LogsOperationOperationLogsGetResponse = ListOperationLogsApiV1LogsOperationOperationLogsGetResponses[keyof ListOperationLogsApiV1LogsOperationOperationLogsGetResponses];

export type GetOperationStatisticsApiV1LogsOperationOperationLogsStatisticsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Start Date
         *
         * 开始日期
         */
        start_date?: string | null;
        /**
         * End Date
         *
         * 结束日期
         */
        end_date?: string | null;
    };
    url: '/api/v1/logs/operation/operation-logs/statistics';
};

export type GetOperationStatisticsApiV1LogsOperationOperationLogsStatisticsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetOperationStatisticsApiV1LogsOperationOperationLogsStatisticsGetError = GetOperationStatisticsApiV1LogsOperationOperationLogsStatisticsGetErrors[keyof GetOperationStatisticsApiV1LogsOperationOperationLogsStatisticsGetErrors];

export type GetOperationStatisticsApiV1LogsOperationOperationLogsStatisticsGetResponses = {
    /**
     * Successful Response
     */
    200: OperationLogStatistics;
};

export type GetOperationStatisticsApiV1LogsOperationOperationLogsStatisticsGetResponse = GetOperationStatisticsApiV1LogsOperationOperationLogsStatisticsGetResponses[keyof GetOperationStatisticsApiV1LogsOperationOperationLogsStatisticsGetResponses];

export type ExportOperationLogsApiV1LogsOperationOperationLogsExportGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Start Time
         *
         * 开始时间
         */
        start_time?: string | null;
        /**
         * End Time
         *
         * 结束时间
         */
        end_time?: string | null;
        /**
         * User Id
         *
         * 用户ID
         */
        user_id?: string | null;
        /**
         * Format
         *
         * 导出格式
         */
        format?: string;
    };
    url: '/api/v1/logs/operation/operation-logs/export';
};

export type ExportOperationLogsApiV1LogsOperationOperationLogsExportGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ExportOperationLogsApiV1LogsOperationOperationLogsExportGetError = ExportOperationLogsApiV1LogsOperationOperationLogsExportGetErrors[keyof ExportOperationLogsApiV1LogsOperationOperationLogsExportGetErrors];

export type ExportOperationLogsApiV1LogsOperationOperationLogsExportGetResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type GetErrorOperationsApiV1LogsOperationOperationLogsErrorsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Hours
         *
         * 时间范围（小时）
         */
        hours?: number;
        /**
         * Module
         *
         * 操作模块
         */
        module?: string | null;
        /**
         * User Id
         *
         * 用户ID
         */
        user_id?: string | null;
    };
    url: '/api/v1/logs/operation/operation-logs/errors';
};

export type GetErrorOperationsApiV1LogsOperationOperationLogsErrorsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetErrorOperationsApiV1LogsOperationOperationLogsErrorsGetError = GetErrorOperationsApiV1LogsOperationOperationLogsErrorsGetErrors[keyof GetErrorOperationsApiV1LogsOperationOperationLogsErrorsGetErrors];

export type GetErrorOperationsApiV1LogsOperationOperationLogsErrorsGetResponses = {
    /**
     * Response Get Error Operations Api V1 Logs Operation Operation Logs Errors Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type GetErrorOperationsApiV1LogsOperationOperationLogsErrorsGetResponse = GetErrorOperationsApiV1LogsOperationOperationLogsErrorsGetResponses[keyof GetErrorOperationsApiV1LogsOperationOperationLogsErrorsGetResponses];

export type GetModuleOperationsApiV1LogsOperationOperationLogsModuleModuleHistoryGetData = {
    body?: never;
    path: {
        /**
         * Module
         */
        module: string;
    };
    query?: {
        /**
         * Hours
         *
         * 时间范围（小时）
         */
        hours?: number;
        /**
         * Operation Type
         *
         * 操作类型
         */
        operation_type?: string | null;
    };
    url: '/api/v1/logs/operation/operation-logs/module/{module}/history';
};

export type GetModuleOperationsApiV1LogsOperationOperationLogsModuleModuleHistoryGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetModuleOperationsApiV1LogsOperationOperationLogsModuleModuleHistoryGetError = GetModuleOperationsApiV1LogsOperationOperationLogsModuleModuleHistoryGetErrors[keyof GetModuleOperationsApiV1LogsOperationOperationLogsModuleModuleHistoryGetErrors];

export type GetModuleOperationsApiV1LogsOperationOperationLogsModuleModuleHistoryGetResponses = {
    /**
     * Response Get Module Operations Api V1 Logs Operation Operation Logs Module  Module  History Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type GetModuleOperationsApiV1LogsOperationOperationLogsModuleModuleHistoryGetResponse = GetModuleOperationsApiV1LogsOperationOperationLogsModuleModuleHistoryGetResponses[keyof GetModuleOperationsApiV1LogsOperationOperationLogsModuleModuleHistoryGetResponses];

export type GetUserOperationHistoryApiV1LogsOperationOperationLogsUserUserIdHistoryGetData = {
    body?: never;
    path: {
        /**
         * User Id
         */
        user_id: string;
    };
    query?: {
        /**
         * Limit
         *
         * 记录数量限制
         */
        limit?: number;
        /**
         * Module
         *
         * 操作模块
         */
        module?: string | null;
    };
    url: '/api/v1/logs/operation/operation-logs/user/{user_id}/history';
};

export type GetUserOperationHistoryApiV1LogsOperationOperationLogsUserUserIdHistoryGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetUserOperationHistoryApiV1LogsOperationOperationLogsUserUserIdHistoryGetError = GetUserOperationHistoryApiV1LogsOperationOperationLogsUserUserIdHistoryGetErrors[keyof GetUserOperationHistoryApiV1LogsOperationOperationLogsUserUserIdHistoryGetErrors];

export type GetUserOperationHistoryApiV1LogsOperationOperationLogsUserUserIdHistoryGetResponses = {
    /**
     * Response Get User Operation History Api V1 Logs Operation Operation Logs User  User Id  History Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type GetUserOperationHistoryApiV1LogsOperationOperationLogsUserUserIdHistoryGetResponse = GetUserOperationHistoryApiV1LogsOperationOperationLogsUserUserIdHistoryGetResponses[keyof GetUserOperationHistoryApiV1LogsOperationOperationLogsUserUserIdHistoryGetResponses];

export type ListNetworkLogsApiV1LogsNetworkNetworkLogsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Keyword
         *
         * 关键词搜索
         */
        keyword?: string | null;
        /**
         * Start Time
         *
         * 开始时间
         */
        start_time?: string | null;
        /**
         * End Time
         *
         * 结束时间
         */
        end_time?: string | null;
        /**
         * User Id
         *
         * 用户ID
         */
        user_id?: string | null;
        /**
         * Ip Address
         *
         * IP地址
         */
        ip_address?: string | null;
        /**
         * Request Method
         *
         * 请求方法
         */
        request_method?: string | null;
        /**
         * Request Path
         *
         * 请求路径
         */
        request_path?: string | null;
        /**
         * Response Status
         *
         * 响应状态码
         */
        response_status?: number | null;
        /**
         * Is Error
         *
         * 是否错误
         */
        is_error?: boolean | null;
    };
    url: '/api/v1/logs/network/network-logs';
};

export type ListNetworkLogsApiV1LogsNetworkNetworkLogsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ListNetworkLogsApiV1LogsNetworkNetworkLogsGetError = ListNetworkLogsApiV1LogsNetworkNetworkLogsGetErrors[keyof ListNetworkLogsApiV1LogsNetworkNetworkLogsGetErrors];

export type ListNetworkLogsApiV1LogsNetworkNetworkLogsGetResponses = {
    /**
     * Response List Network Logs Api V1 Logs Network Network Logs Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type ListNetworkLogsApiV1LogsNetworkNetworkLogsGetResponse = ListNetworkLogsApiV1LogsNetworkNetworkLogsGetResponses[keyof ListNetworkLogsApiV1LogsNetworkNetworkLogsGetResponses];

export type GetNetworkStatisticsApiV1LogsNetworkNetworkLogsStatisticsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Start Date
         *
         * 开始日期
         */
        start_date?: string | null;
        /**
         * End Date
         *
         * 结束日期
         */
        end_date?: string | null;
    };
    url: '/api/v1/logs/network/network-logs/statistics';
};

export type GetNetworkStatisticsApiV1LogsNetworkNetworkLogsStatisticsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetNetworkStatisticsApiV1LogsNetworkNetworkLogsStatisticsGetError = GetNetworkStatisticsApiV1LogsNetworkNetworkLogsStatisticsGetErrors[keyof GetNetworkStatisticsApiV1LogsNetworkNetworkLogsStatisticsGetErrors];

export type GetNetworkStatisticsApiV1LogsNetworkNetworkLogsStatisticsGetResponses = {
    /**
     * Successful Response
     */
    200: NetworkLogStatistics;
};

export type GetNetworkStatisticsApiV1LogsNetworkNetworkLogsStatisticsGetResponse = GetNetworkStatisticsApiV1LogsNetworkNetworkLogsStatisticsGetResponses[keyof GetNetworkStatisticsApiV1LogsNetworkNetworkLogsStatisticsGetResponses];

export type ExportNetworkLogsApiV1LogsNetworkNetworkLogsExportGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Start Time
         *
         * 开始时间
         */
        start_time?: string | null;
        /**
         * End Time
         *
         * 结束时间
         */
        end_time?: string | null;
        /**
         * User Id
         *
         * 用户ID
         */
        user_id?: string | null;
        /**
         * Format
         *
         * 导出格式
         */
        format?: string;
    };
    url: '/api/v1/logs/network/network-logs/export';
};

export type ExportNetworkLogsApiV1LogsNetworkNetworkLogsExportGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ExportNetworkLogsApiV1LogsNetworkNetworkLogsExportGetError = ExportNetworkLogsApiV1LogsNetworkNetworkLogsExportGetErrors[keyof ExportNetworkLogsApiV1LogsNetworkNetworkLogsExportGetErrors];

export type ExportNetworkLogsApiV1LogsNetworkNetworkLogsExportGetResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type GetErrorRequestsApiV1LogsNetworkNetworkLogsErrorsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Hours
         *
         * 时间范围（小时）
         */
        hours?: number;
        /**
         * Status Code
         *
         * 特定状态码
         */
        status_code?: number | null;
    };
    url: '/api/v1/logs/network/network-logs/errors';
};

export type GetErrorRequestsApiV1LogsNetworkNetworkLogsErrorsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetErrorRequestsApiV1LogsNetworkNetworkLogsErrorsGetError = GetErrorRequestsApiV1LogsNetworkNetworkLogsErrorsGetErrors[keyof GetErrorRequestsApiV1LogsNetworkNetworkLogsErrorsGetErrors];

export type GetErrorRequestsApiV1LogsNetworkNetworkLogsErrorsGetResponses = {
    /**
     * Response Get Error Requests Api V1 Logs Network Network Logs Errors Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type GetErrorRequestsApiV1LogsNetworkNetworkLogsErrorsGetResponse = GetErrorRequestsApiV1LogsNetworkNetworkLogsErrorsGetResponses[keyof GetErrorRequestsApiV1LogsNetworkNetworkLogsErrorsGetResponses];

export type GetSlowRequestsApiV1LogsNetworkNetworkLogsSlowGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Threshold Seconds
         *
         * 阈值（秒）
         */
        threshold_seconds?: number;
        /**
         * Hours
         *
         * 时间范围（小时）
         */
        hours?: number;
    };
    url: '/api/v1/logs/network/network-logs/slow';
};

export type GetSlowRequestsApiV1LogsNetworkNetworkLogsSlowGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetSlowRequestsApiV1LogsNetworkNetworkLogsSlowGetError = GetSlowRequestsApiV1LogsNetworkNetworkLogsSlowGetErrors[keyof GetSlowRequestsApiV1LogsNetworkNetworkLogsSlowGetErrors];

export type GetSlowRequestsApiV1LogsNetworkNetworkLogsSlowGetResponses = {
    /**
     * Response Get Slow Requests Api V1 Logs Network Network Logs Slow Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type GetSlowRequestsApiV1LogsNetworkNetworkLogsSlowGetResponse = GetSlowRequestsApiV1LogsNetworkNetworkLogsSlowGetResponses[keyof GetSlowRequestsApiV1LogsNetworkNetworkLogsSlowGetResponses];

export type GetIpActivityApiV1LogsNetworkNetworkLogsIpIpAddressActivityGetData = {
    body?: never;
    path: {
        /**
         * Ip Address
         */
        ip_address: string;
    };
    query?: {
        /**
         * Hours
         *
         * 时间范围（小时）
         */
        hours?: number;
    };
    url: '/api/v1/logs/network/network-logs/ip/{ip_address}/activity';
};

export type GetIpActivityApiV1LogsNetworkNetworkLogsIpIpAddressActivityGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetIpActivityApiV1LogsNetworkNetworkLogsIpIpAddressActivityGetError = GetIpActivityApiV1LogsNetworkNetworkLogsIpIpAddressActivityGetErrors[keyof GetIpActivityApiV1LogsNetworkNetworkLogsIpIpAddressActivityGetErrors];

export type GetIpActivityApiV1LogsNetworkNetworkLogsIpIpAddressActivityGetResponses = {
    /**
     * Response Get Ip Activity Api V1 Logs Network Network Logs Ip  Ip Address  Activity Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type GetIpActivityApiV1LogsNetworkNetworkLogsIpIpAddressActivityGetResponse = GetIpActivityApiV1LogsNetworkNetworkLogsIpIpAddressActivityGetResponses[keyof GetIpActivityApiV1LogsNetworkNetworkLogsIpIpAddressActivityGetResponses];

export type GetEndpointStatisticsApiV1LogsNetworkNetworkLogsEndpointEndpointStatisticsGetData = {
    body?: never;
    path: {
        /**
         * Endpoint
         */
        endpoint: string;
    };
    query?: {
        /**
         * Hours
         *
         * 时间范围（小时）
         */
        hours?: number;
    };
    url: '/api/v1/logs/network/network-logs/endpoint/{endpoint}/statistics';
};

export type GetEndpointStatisticsApiV1LogsNetworkNetworkLogsEndpointEndpointStatisticsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetEndpointStatisticsApiV1LogsNetworkNetworkLogsEndpointEndpointStatisticsGetError = GetEndpointStatisticsApiV1LogsNetworkNetworkLogsEndpointEndpointStatisticsGetErrors[keyof GetEndpointStatisticsApiV1LogsNetworkNetworkLogsEndpointEndpointStatisticsGetErrors];

export type GetEndpointStatisticsApiV1LogsNetworkNetworkLogsEndpointEndpointStatisticsGetResponses = {
    /**
     * Response Get Endpoint Statistics Api V1 Logs Network Network Logs Endpoint  Endpoint  Statistics Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type GetEndpointStatisticsApiV1LogsNetworkNetworkLogsEndpointEndpointStatisticsGetResponse = GetEndpointStatisticsApiV1LogsNetworkNetworkLogsEndpointEndpointStatisticsGetResponses[keyof GetEndpointStatisticsApiV1LogsNetworkNetworkLogsEndpointEndpointStatisticsGetResponses];

export type SearchLogsApiV1LogsQueryLogTypeGetData = {
    body?: never;
    path: {
        /**
         * Log Type
         */
        log_type: string;
    };
    query?: {
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Keyword
         *
         * 关键词搜索
         */
        keyword?: string | null;
        /**
         * Start Time
         *
         * 开始时间
         */
        start_time?: string | null;
        /**
         * End Time
         *
         * 结束时间
         */
        end_time?: string | null;
        /**
         * User Id
         *
         * 用户ID
         */
        user_id?: string | null;
        /**
         * Ip Address
         *
         * IP地址
         */
        ip_address?: string | null;
    };
    url: '/api/v1/logs/query/{log_type}';
};

export type SearchLogsApiV1LogsQueryLogTypeGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type SearchLogsApiV1LogsQueryLogTypeGetError = SearchLogsApiV1LogsQueryLogTypeGetErrors[keyof SearchLogsApiV1LogsQueryLogTypeGetErrors];

export type SearchLogsApiV1LogsQueryLogTypeGetResponses = {
    /**
     * Response Search Logs Api V1 Logs Query  Log Type  Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type SearchLogsApiV1LogsQueryLogTypeGetResponse = SearchLogsApiV1LogsQueryLogTypeGetResponses[keyof SearchLogsApiV1LogsQueryLogTypeGetResponses];

export type ExportLogsApiV1LogsQueryLogTypeExportPostData = {
    body: LogExportRequest;
    path: {
        /**
         * Log Type
         */
        log_type: string;
    };
    query?: never;
    url: '/api/v1/logs/query/{log_type}/export';
};

export type ExportLogsApiV1LogsQueryLogTypeExportPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ExportLogsApiV1LogsQueryLogTypeExportPostError = ExportLogsApiV1LogsQueryLogTypeExportPostErrors[keyof ExportLogsApiV1LogsQueryLogTypeExportPostErrors];

export type ExportLogsApiV1LogsQueryLogTypeExportPostResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type GetComprehensiveStatisticsApiV1LogsQueryStatisticsComprehensiveGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Start Date
         *
         * 开始日期
         */
        start_date?: string | null;
        /**
         * End Date
         *
         * 结束日期
         */
        end_date?: string | null;
    };
    url: '/api/v1/logs/query/statistics/comprehensive';
};

export type GetComprehensiveStatisticsApiV1LogsQueryStatisticsComprehensiveGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetComprehensiveStatisticsApiV1LogsQueryStatisticsComprehensiveGetError = GetComprehensiveStatisticsApiV1LogsQueryStatisticsComprehensiveGetErrors[keyof GetComprehensiveStatisticsApiV1LogsQueryStatisticsComprehensiveGetErrors];

export type GetComprehensiveStatisticsApiV1LogsQueryStatisticsComprehensiveGetResponses = {
    /**
     * Response Get Comprehensive Statistics Api V1 Logs Query Statistics Comprehensive Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type GetComprehensiveStatisticsApiV1LogsQueryStatisticsComprehensiveGetResponse = GetComprehensiveStatisticsApiV1LogsQueryStatisticsComprehensiveGetResponses[keyof GetComprehensiveStatisticsApiV1LogsQueryStatisticsComprehensiveGetResponses];

export type GetUserActivitySummaryApiV1LogsQueryUserUserIdActivityGetData = {
    body?: never;
    path: {
        /**
         * User Id
         */
        user_id: string;
    };
    query?: {
        /**
         * Hours
         *
         * 时间范围（小时）
         */
        hours?: number;
    };
    url: '/api/v1/logs/query/user/{user_id}/activity';
};

export type GetUserActivitySummaryApiV1LogsQueryUserUserIdActivityGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetUserActivitySummaryApiV1LogsQueryUserUserIdActivityGetError = GetUserActivitySummaryApiV1LogsQueryUserUserIdActivityGetErrors[keyof GetUserActivitySummaryApiV1LogsQueryUserUserIdActivityGetErrors];

export type GetUserActivitySummaryApiV1LogsQueryUserUserIdActivityGetResponses = {
    /**
     * Response Get User Activity Summary Api V1 Logs Query User  User Id  Activity Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type GetUserActivitySummaryApiV1LogsQueryUserUserIdActivityGetResponse = GetUserActivitySummaryApiV1LogsQueryUserUserIdActivityGetResponses[keyof GetUserActivitySummaryApiV1LogsQueryUserUserIdActivityGetResponses];

export type CleanupOldLogsApiV1LogsQueryCleanupPostData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Days
         *
         * 保留天数
         */
        days?: number;
        /**
         * Log Types
         *
         * 日志类型，逗号分隔
         */
        log_types?: string;
    };
    url: '/api/v1/logs/query/cleanup';
};

export type CleanupOldLogsApiV1LogsQueryCleanupPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type CleanupOldLogsApiV1LogsQueryCleanupPostError = CleanupOldLogsApiV1LogsQueryCleanupPostErrors[keyof CleanupOldLogsApiV1LogsQueryCleanupPostErrors];

export type CleanupOldLogsApiV1LogsQueryCleanupPostResponses = {
    /**
     * Response Cleanup Old Logs Api V1 Logs Query Cleanup Post
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type CleanupOldLogsApiV1LogsQueryCleanupPostResponse = CleanupOldLogsApiV1LogsQueryCleanupPostResponses[keyof CleanupOldLogsApiV1LogsQueryCleanupPostResponses];

export type SendMessageApiV1MessagesSendPostData = {
    body: MessageSendRequest;
    path?: never;
    query?: never;
    url: '/api/v1/messages/send';
};

export type SendMessageApiV1MessagesSendPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type SendMessageApiV1MessagesSendPostError = SendMessageApiV1MessagesSendPostErrors[keyof SendMessageApiV1MessagesSendPostErrors];

export type SendMessageApiV1MessagesSendPostResponses = {
    /**
     * Successful Response
     */
    202: MessageSendResponse;
};

export type SendMessageApiV1MessagesSendPostResponse = SendMessageApiV1MessagesSendPostResponses[keyof SendMessageApiV1MessagesSendPostResponses];

export type ScheduleMessageApiV1MessagesSchedulePostData = {
    body: MessageSendRequest;
    path?: never;
    query?: never;
    url: '/api/v1/messages/schedule';
};

export type ScheduleMessageApiV1MessagesSchedulePostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ScheduleMessageApiV1MessagesSchedulePostError = ScheduleMessageApiV1MessagesSchedulePostErrors[keyof ScheduleMessageApiV1MessagesSchedulePostErrors];

export type ScheduleMessageApiV1MessagesSchedulePostResponses = {
    /**
     * Successful Response
     */
    202: MessageSendResponse;
};

export type ScheduleMessageApiV1MessagesSchedulePostResponse = ScheduleMessageApiV1MessagesSchedulePostResponses[keyof ScheduleMessageApiV1MessagesSchedulePostResponses];

export type CancelScheduledMessageApiV1MessagesMessageIdCancelDeleteData = {
    body?: never;
    path: {
        /**
         * Message Id
         */
        message_id: string;
    };
    query?: never;
    url: '/api/v1/messages/{message_id}/cancel';
};

export type CancelScheduledMessageApiV1MessagesMessageIdCancelDeleteErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type CancelScheduledMessageApiV1MessagesMessageIdCancelDeleteError = CancelScheduledMessageApiV1MessagesMessageIdCancelDeleteErrors[keyof CancelScheduledMessageApiV1MessagesMessageIdCancelDeleteErrors];

export type CancelScheduledMessageApiV1MessagesMessageIdCancelDeleteResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type RetryFailedMessageApiV1MessagesMessageIdRetryPostData = {
    body?: never;
    path: {
        /**
         * Message Id
         */
        message_id: string;
    };
    query?: never;
    url: '/api/v1/messages/{message_id}/retry';
};

export type RetryFailedMessageApiV1MessagesMessageIdRetryPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type RetryFailedMessageApiV1MessagesMessageIdRetryPostError = RetryFailedMessageApiV1MessagesMessageIdRetryPostErrors[keyof RetryFailedMessageApiV1MessagesMessageIdRetryPostErrors];

export type RetryFailedMessageApiV1MessagesMessageIdRetryPostResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type GetUserInboxMessagesApiV1MessagesInboxGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Is Read
         */
        is_read?: boolean | null;
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Page Size
         */
        page_size?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Order By
         *
         * 排序字段
         */
        order_by?: string;
        /**
         * Sort Order
         *
         * 排序方向 (asc/desc)
         */
        sort_order?: string;
    };
    url: '/api/v1/messages/inbox';
};

export type GetUserInboxMessagesApiV1MessagesInboxGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetUserInboxMessagesApiV1MessagesInboxGetError = GetUserInboxMessagesApiV1MessagesInboxGetErrors[keyof GetUserInboxMessagesApiV1MessagesInboxGetErrors];

export type GetUserInboxMessagesApiV1MessagesInboxGetResponses = {
    /**
     * Successful Response
     */
    200: PagedResponseInboxMessageResponse;
};

export type GetUserInboxMessagesApiV1MessagesInboxGetResponse = GetUserInboxMessagesApiV1MessagesInboxGetResponses[keyof GetUserInboxMessagesApiV1MessagesInboxGetResponses];

export type MarkMessageAsReadApiV1MessagesInboxMessageIdReadPostData = {
    body?: never;
    path: {
        /**
         * Message Id
         */
        message_id: string;
    };
    query?: never;
    url: '/api/v1/messages/inbox/{message_id}/read';
};

export type MarkMessageAsReadApiV1MessagesInboxMessageIdReadPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type MarkMessageAsReadApiV1MessagesInboxMessageIdReadPostError = MarkMessageAsReadApiV1MessagesInboxMessageIdReadPostErrors[keyof MarkMessageAsReadApiV1MessagesInboxMessageIdReadPostErrors];

export type MarkMessageAsReadApiV1MessagesInboxMessageIdReadPostResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type GetUnreadMessageCountApiV1MessagesInboxUnreadCountGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/messages/inbox/unread-count';
};

export type GetUnreadMessageCountApiV1MessagesInboxUnreadCountGetResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type MarkAllMessagesAsReadApiV1MessagesInboxReadAllPostData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/messages/inbox/read-all';
};

export type MarkAllMessagesAsReadApiV1MessagesInboxReadAllPostResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type TestEmailConfigApiV1MessagesTestEmailConfigPostData = {
    body: ConnectionConfigWritable;
    path?: never;
    query: {
        /**
         * Recipient
         *
         * 测试邮件接收地址
         */
        recipient: string;
        /**
         * Is Html
         *
         * 是否HTML
         */
        is_html?: boolean;
    };
    url: '/api/v1/messages/test-email-config';
};

export type TestEmailConfigApiV1MessagesTestEmailConfigPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type TestEmailConfigApiV1MessagesTestEmailConfigPostError = TestEmailConfigApiV1MessagesTestEmailConfigPostErrors[keyof TestEmailConfigApiV1MessagesTestEmailConfigPostErrors];

export type TestEmailConfigApiV1MessagesTestEmailConfigPostResponses = {
    /**
     * Successful Response
     */
    200: EmailConfigTestResponse;
};

export type TestEmailConfigApiV1MessagesTestEmailConfigPostResponse = TestEmailConfigApiV1MessagesTestEmailConfigPostResponses[keyof TestEmailConfigApiV1MessagesTestEmailConfigPostResponses];

export type ListTemplatesApiV1MessagesTemplatesGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Message Type
         *
         * 消息类型
         */
        message_type?: MessageType | null;
        /**
         * Template Type
         *
         * 模板类型
         */
        template_type?: TemplateType | null;
        /**
         * Is Active
         *
         * 是否启用
         */
        is_active?: boolean | null;
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Order By
         *
         * 排序字段
         */
        order_by?: string;
        /**
         * Sort Order
         *
         * 排序方向 (asc/desc)
         */
        sort_order?: string;
    };
    url: '/api/v1/messages/templates';
};

export type ListTemplatesApiV1MessagesTemplatesGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ListTemplatesApiV1MessagesTemplatesGetError = ListTemplatesApiV1MessagesTemplatesGetErrors[keyof ListTemplatesApiV1MessagesTemplatesGetErrors];

export type ListTemplatesApiV1MessagesTemplatesGetResponses = {
    /**
     * Successful Response
     */
    200: PagedResponseMessageTemplateResponse;
};

export type ListTemplatesApiV1MessagesTemplatesGetResponse = ListTemplatesApiV1MessagesTemplatesGetResponses[keyof ListTemplatesApiV1MessagesTemplatesGetResponses];

export type CreateTemplateApiV1MessagesTemplatesPostData = {
    body: MessageTemplateCreate;
    path?: never;
    query?: never;
    url: '/api/v1/messages/templates';
};

export type CreateTemplateApiV1MessagesTemplatesPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type CreateTemplateApiV1MessagesTemplatesPostError = CreateTemplateApiV1MessagesTemplatesPostErrors[keyof CreateTemplateApiV1MessagesTemplatesPostErrors];

export type CreateTemplateApiV1MessagesTemplatesPostResponses = {
    /**
     * Successful Response
     */
    201: MessageTemplateResponse;
};

export type CreateTemplateApiV1MessagesTemplatesPostResponse = CreateTemplateApiV1MessagesTemplatesPostResponses[keyof CreateTemplateApiV1MessagesTemplatesPostResponses];

export type DeleteTemplateApiV1MessagesTemplatesTemplateIdDeleteData = {
    body?: never;
    path: {
        /**
         * Template Id
         */
        template_id: string;
    };
    query?: never;
    url: '/api/v1/messages/templates/{template_id}';
};

export type DeleteTemplateApiV1MessagesTemplatesTemplateIdDeleteErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type DeleteTemplateApiV1MessagesTemplatesTemplateIdDeleteError = DeleteTemplateApiV1MessagesTemplatesTemplateIdDeleteErrors[keyof DeleteTemplateApiV1MessagesTemplatesTemplateIdDeleteErrors];

export type DeleteTemplateApiV1MessagesTemplatesTemplateIdDeleteResponses = {
    /**
     * Successful Response
     */
    204: void;
};

export type DeleteTemplateApiV1MessagesTemplatesTemplateIdDeleteResponse = DeleteTemplateApiV1MessagesTemplatesTemplateIdDeleteResponses[keyof DeleteTemplateApiV1MessagesTemplatesTemplateIdDeleteResponses];

export type GetTemplateApiV1MessagesTemplatesTemplateIdGetData = {
    body?: never;
    path: {
        /**
         * Template Id
         */
        template_id: string;
    };
    query?: never;
    url: '/api/v1/messages/templates/{template_id}';
};

export type GetTemplateApiV1MessagesTemplatesTemplateIdGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetTemplateApiV1MessagesTemplatesTemplateIdGetError = GetTemplateApiV1MessagesTemplatesTemplateIdGetErrors[keyof GetTemplateApiV1MessagesTemplatesTemplateIdGetErrors];

export type GetTemplateApiV1MessagesTemplatesTemplateIdGetResponses = {
    /**
     * Successful Response
     */
    200: MessageTemplateResponse;
};

export type GetTemplateApiV1MessagesTemplatesTemplateIdGetResponse = GetTemplateApiV1MessagesTemplatesTemplateIdGetResponses[keyof GetTemplateApiV1MessagesTemplatesTemplateIdGetResponses];

export type UpdateTemplateApiV1MessagesTemplatesTemplateIdPutData = {
    body: MessageTemplateUpdate;
    path: {
        /**
         * Template Id
         */
        template_id: string;
    };
    query?: never;
    url: '/api/v1/messages/templates/{template_id}';
};

export type UpdateTemplateApiV1MessagesTemplatesTemplateIdPutErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type UpdateTemplateApiV1MessagesTemplatesTemplateIdPutError = UpdateTemplateApiV1MessagesTemplatesTemplateIdPutErrors[keyof UpdateTemplateApiV1MessagesTemplatesTemplateIdPutErrors];

export type UpdateTemplateApiV1MessagesTemplatesTemplateIdPutResponses = {
    /**
     * Successful Response
     */
    200: MessageTemplateResponse;
};

export type UpdateTemplateApiV1MessagesTemplatesTemplateIdPutResponse = UpdateTemplateApiV1MessagesTemplatesTemplateIdPutResponses[keyof UpdateTemplateApiV1MessagesTemplatesTemplateIdPutResponses];

export type TestTemplateApiV1MessagesTemplatesTemplateIdTestPostData = {
    /**
     * Test Variables
     */
    body: {
        [key: string]: string;
    };
    path: {
        /**
         * Template Id
         */
        template_id: string;
    };
    query?: never;
    url: '/api/v1/messages/templates/{template_id}/test';
};

export type TestTemplateApiV1MessagesTemplatesTemplateIdTestPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type TestTemplateApiV1MessagesTemplatesTemplateIdTestPostError = TestTemplateApiV1MessagesTemplatesTemplateIdTestPostErrors[keyof TestTemplateApiV1MessagesTemplatesTemplateIdTestPostErrors];

export type TestTemplateApiV1MessagesTemplatesTemplateIdTestPostResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type ListMessageLogsApiV1MessagesLogsMessageLogsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Message Type
         *
         * 消息类型
         */
        message_type?: MessageType | null;
        /**
         * Status
         *
         * 发送状态
         */
        status?: MessageStatus | null;
        /**
         * Recipient
         *
         * 接收者
         */
        recipient?: string | null;
        /**
         * Start Date
         *
         * 开始时间
         */
        start_date?: string | null;
        /**
         * End Date
         *
         * 结束时间
         */
        end_date?: string | null;
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Order By
         *
         * 排序字段
         */
        order_by?: string;
        /**
         * Sort Order
         *
         * 排序方向 (asc/desc)
         */
        sort_order?: string;
    };
    url: '/api/v1/messages/logs/message-logs';
};

export type ListMessageLogsApiV1MessagesLogsMessageLogsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ListMessageLogsApiV1MessagesLogsMessageLogsGetError = ListMessageLogsApiV1MessagesLogsMessageLogsGetErrors[keyof ListMessageLogsApiV1MessagesLogsMessageLogsGetErrors];

export type ListMessageLogsApiV1MessagesLogsMessageLogsGetResponses = {
    /**
     * Successful Response
     */
    200: PagedResponseMessageLogResponse;
};

export type ListMessageLogsApiV1MessagesLogsMessageLogsGetResponse = ListMessageLogsApiV1MessagesLogsMessageLogsGetResponses[keyof ListMessageLogsApiV1MessagesLogsMessageLogsGetResponses];

export type GetMessageLogApiV1MessagesLogsMessageLogsMessageIdGetData = {
    body?: never;
    path: {
        /**
         * Message Id
         */
        message_id: string;
    };
    query?: never;
    url: '/api/v1/messages/logs/message-logs/{message_id}';
};

export type GetMessageLogApiV1MessagesLogsMessageLogsMessageIdGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetMessageLogApiV1MessagesLogsMessageLogsMessageIdGetError = GetMessageLogApiV1MessagesLogsMessageLogsMessageIdGetErrors[keyof GetMessageLogApiV1MessagesLogsMessageLogsMessageIdGetErrors];

export type GetMessageLogApiV1MessagesLogsMessageLogsMessageIdGetResponses = {
    /**
     * Successful Response
     */
    200: MessageLogResponse;
};

export type GetMessageLogApiV1MessagesLogsMessageLogsMessageIdGetResponse = GetMessageLogApiV1MessagesLogsMessageLogsMessageIdGetResponses[keyof GetMessageLogApiV1MessagesLogsMessageLogsMessageIdGetResponses];

export type GetMessageReceiptsApiV1MessagesLogsMessageLogsMessageIdReceiptsGetData = {
    body?: never;
    path: {
        /**
         * Message Id
         */
        message_id: string;
    };
    query?: never;
    url: '/api/v1/messages/logs/message-logs/{message_id}/receipts';
};

export type GetMessageReceiptsApiV1MessagesLogsMessageLogsMessageIdReceiptsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetMessageReceiptsApiV1MessagesLogsMessageLogsMessageIdReceiptsGetError = GetMessageReceiptsApiV1MessagesLogsMessageLogsMessageIdReceiptsGetErrors[keyof GetMessageReceiptsApiV1MessagesLogsMessageLogsMessageIdReceiptsGetErrors];

export type GetMessageReceiptsApiV1MessagesLogsMessageLogsMessageIdReceiptsGetResponses = {
    /**
     * Response Get Message Receipts Api V1 Messages Logs Message Logs  Message Id  Receipts Get
     *
     * Successful Response
     */
    200: Array<MessageReceiptResponse>;
};

export type GetMessageReceiptsApiV1MessagesLogsMessageLogsMessageIdReceiptsGetResponse = GetMessageReceiptsApiV1MessagesLogsMessageLogsMessageIdReceiptsGetResponses[keyof GetMessageReceiptsApiV1MessagesLogsMessageLogsMessageIdReceiptsGetResponses];

export type MarkMessageAsReadApiV1MessagesLogsMessageLogsMessageIdReadPostData = {
    body?: never;
    path: {
        /**
         * Message Id
         */
        message_id: string;
    };
    query: {
        /**
         * Recipient
         *
         * 接收者
         */
        recipient: string;
    };
    url: '/api/v1/messages/logs/message-logs/{message_id}/read';
};

export type MarkMessageAsReadApiV1MessagesLogsMessageLogsMessageIdReadPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type MarkMessageAsReadApiV1MessagesLogsMessageLogsMessageIdReadPostError = MarkMessageAsReadApiV1MessagesLogsMessageLogsMessageIdReadPostErrors[keyof MarkMessageAsReadApiV1MessagesLogsMessageLogsMessageIdReadPostErrors];

export type MarkMessageAsReadApiV1MessagesLogsMessageLogsMessageIdReadPostResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type GetMessageStatisticsApiV1MessagesLogsMessageLogsStatisticsOverviewGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Days
         *
         * 统计天数
         */
        days?: number;
    };
    url: '/api/v1/messages/logs/message-logs/statistics/overview';
};

export type GetMessageStatisticsApiV1MessagesLogsMessageLogsStatisticsOverviewGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetMessageStatisticsApiV1MessagesLogsMessageLogsStatisticsOverviewGetError = GetMessageStatisticsApiV1MessagesLogsMessageLogsStatisticsOverviewGetErrors[keyof GetMessageStatisticsApiV1MessagesLogsMessageLogsStatisticsOverviewGetErrors];

export type GetMessageStatisticsApiV1MessagesLogsMessageLogsStatisticsOverviewGetResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type GetRecipientStatisticsApiV1MessagesLogsMessageLogsStatisticsRecipientRecipientGetData = {
    body?: never;
    path: {
        /**
         * Recipient
         */
        recipient: string;
    };
    query?: {
        /**
         * Days
         *
         * 统计天数
         */
        days?: number;
    };
    url: '/api/v1/messages/logs/message-logs/statistics/recipient/{recipient}';
};

export type GetRecipientStatisticsApiV1MessagesLogsMessageLogsStatisticsRecipientRecipientGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetRecipientStatisticsApiV1MessagesLogsMessageLogsStatisticsRecipientRecipientGetError = GetRecipientStatisticsApiV1MessagesLogsMessageLogsStatisticsRecipientRecipientGetErrors[keyof GetRecipientStatisticsApiV1MessagesLogsMessageLogsStatisticsRecipientRecipientGetErrors];

export type GetRecipientStatisticsApiV1MessagesLogsMessageLogsStatisticsRecipientRecipientGetResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type GetUnreadCountApiV1MessagesLogsMessageLogsUnreadCountGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Recipient
         *
         * 接收者
         */
        recipient?: string;
    };
    url: '/api/v1/messages/logs/message-logs/unread/count';
};

export type GetUnreadCountApiV1MessagesLogsMessageLogsUnreadCountGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetUnreadCountApiV1MessagesLogsMessageLogsUnreadCountGetError = GetUnreadCountApiV1MessagesLogsMessageLogsUnreadCountGetErrors[keyof GetUnreadCountApiV1MessagesLogsMessageLogsUnreadCountGetErrors];

export type GetUnreadCountApiV1MessagesLogsMessageLogsUnreadCountGetResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type CleanupOldLogsApiV1MessagesLogsMessageLogsCleanupPostData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Days
         *
         * 保留天数
         */
        days?: number;
    };
    url: '/api/v1/messages/logs/message-logs/cleanup';
};

export type CleanupOldLogsApiV1MessagesLogsMessageLogsCleanupPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type CleanupOldLogsApiV1MessagesLogsMessageLogsCleanupPostError = CleanupOldLogsApiV1MessagesLogsMessageLogsCleanupPostErrors[keyof CleanupOldLogsApiV1MessagesLogsMessageLogsCleanupPostErrors];

export type CleanupOldLogsApiV1MessagesLogsMessageLogsCleanupPostResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type ListExternalServiceConfigsApiV1MessagesConfigsConfigsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Service Type
         */
        service_type?: ExternalServiceType | null;
        /**
         * Is Active
         */
        is_active?: boolean | null;
    };
    url: '/api/v1/messages/configs/configs';
};

export type ListExternalServiceConfigsApiV1MessagesConfigsConfigsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ListExternalServiceConfigsApiV1MessagesConfigsConfigsGetError = ListExternalServiceConfigsApiV1MessagesConfigsConfigsGetErrors[keyof ListExternalServiceConfigsApiV1MessagesConfigsConfigsGetErrors];

export type ListExternalServiceConfigsApiV1MessagesConfigsConfigsGetResponses = {
    /**
     * Response List External Service Configs Api V1 Messages Configs Configs Get
     *
     * Successful Response
     */
    200: Array<ExternalServiceConfigResponse>;
};

export type ListExternalServiceConfigsApiV1MessagesConfigsConfigsGetResponse = ListExternalServiceConfigsApiV1MessagesConfigsConfigsGetResponses[keyof ListExternalServiceConfigsApiV1MessagesConfigsConfigsGetResponses];

export type CreateExternalServiceConfigApiV1MessagesConfigsConfigsPostData = {
    body: ExternalServiceConfigCreate;
    path?: never;
    query?: never;
    url: '/api/v1/messages/configs/configs';
};

export type CreateExternalServiceConfigApiV1MessagesConfigsConfigsPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type CreateExternalServiceConfigApiV1MessagesConfigsConfigsPostError = CreateExternalServiceConfigApiV1MessagesConfigsConfigsPostErrors[keyof CreateExternalServiceConfigApiV1MessagesConfigsConfigsPostErrors];

export type CreateExternalServiceConfigApiV1MessagesConfigsConfigsPostResponses = {
    /**
     * Successful Response
     */
    201: ExternalServiceConfigResponse;
};

export type CreateExternalServiceConfigApiV1MessagesConfigsConfigsPostResponse = CreateExternalServiceConfigApiV1MessagesConfigsConfigsPostResponses[keyof CreateExternalServiceConfigApiV1MessagesConfigsConfigsPostResponses];

export type DeleteExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdDeleteData = {
    body?: never;
    path: {
        /**
         * Config Id
         */
        config_id: string;
    };
    query?: never;
    url: '/api/v1/messages/configs/configs/{config_id}';
};

export type DeleteExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdDeleteErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type DeleteExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdDeleteError = DeleteExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdDeleteErrors[keyof DeleteExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdDeleteErrors];

export type DeleteExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdDeleteResponses = {
    /**
     * Successful Response
     */
    204: void;
};

export type DeleteExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdDeleteResponse = DeleteExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdDeleteResponses[keyof DeleteExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdDeleteResponses];

export type GetExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdGetData = {
    body?: never;
    path: {
        /**
         * Config Id
         */
        config_id: string;
    };
    query?: never;
    url: '/api/v1/messages/configs/configs/{config_id}';
};

export type GetExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdGetError = GetExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdGetErrors[keyof GetExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdGetErrors];

export type GetExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdGetResponses = {
    /**
     * Successful Response
     */
    200: ExternalServiceConfigResponse;
};

export type GetExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdGetResponse = GetExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdGetResponses[keyof GetExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdGetResponses];

export type UpdateExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdPutData = {
    body: ExternalServiceConfigUpdate;
    path: {
        /**
         * Config Id
         */
        config_id: string;
    };
    query?: never;
    url: '/api/v1/messages/configs/configs/{config_id}';
};

export type UpdateExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdPutErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type UpdateExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdPutError = UpdateExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdPutErrors[keyof UpdateExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdPutErrors];

export type UpdateExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdPutResponses = {
    /**
     * Successful Response
     */
    200: ExternalServiceConfigResponse;
};

export type UpdateExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdPutResponse = UpdateExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdPutResponses[keyof UpdateExternalServiceConfigApiV1MessagesConfigsConfigsConfigIdPutResponses];

export type SetDefaultServiceApiV1MessagesConfigsConfigsConfigIdSetDefaultPostData = {
    body?: never;
    path: {
        /**
         * Config Id
         */
        config_id: string;
    };
    query?: never;
    url: '/api/v1/messages/configs/configs/{config_id}/set-default';
};

export type SetDefaultServiceApiV1MessagesConfigsConfigsConfigIdSetDefaultPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type SetDefaultServiceApiV1MessagesConfigsConfigsConfigIdSetDefaultPostError = SetDefaultServiceApiV1MessagesConfigsConfigsConfigIdSetDefaultPostErrors[keyof SetDefaultServiceApiV1MessagesConfigsConfigsConfigIdSetDefaultPostErrors];

export type SetDefaultServiceApiV1MessagesConfigsConfigsConfigIdSetDefaultPostResponses = {
    /**
     * Successful Response
     */
    200: ExternalServiceConfigResponse;
};

export type SetDefaultServiceApiV1MessagesConfigsConfigsConfigIdSetDefaultPostResponse = SetDefaultServiceApiV1MessagesConfigsConfigsConfigIdSetDefaultPostResponses[keyof SetDefaultServiceApiV1MessagesConfigsConfigsConfigIdSetDefaultPostResponses];

export type CheckServiceHealthApiV1MessagesConfigsConfigsConfigIdHealthCheckPostData = {
    body?: never;
    path: {
        /**
         * Config Id
         */
        config_id: string;
    };
    query?: never;
    url: '/api/v1/messages/configs/configs/{config_id}/health-check';
};

export type CheckServiceHealthApiV1MessagesConfigsConfigsConfigIdHealthCheckPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type CheckServiceHealthApiV1MessagesConfigsConfigsConfigIdHealthCheckPostError = CheckServiceHealthApiV1MessagesConfigsConfigsConfigIdHealthCheckPostErrors[keyof CheckServiceHealthApiV1MessagesConfigsConfigsConfigIdHealthCheckPostErrors];

export type CheckServiceHealthApiV1MessagesConfigsConfigsConfigIdHealthCheckPostResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};

export type HealthCheckApiV1HealthGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/health';
};

export type HealthCheckApiV1HealthGetResponses = {
    /**
     * Response Health Check Api V1 Health Get
     *
     * Successful Response
     */
    200: {
        [key: string]: string;
    };
};

export type HealthCheckApiV1HealthGetResponse = HealthCheckApiV1HealthGetResponses[keyof HealthCheckApiV1HealthGetResponses];

export type DetailedHealthCheckApiV1HealthDetailedGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/health/detailed';
};

export type DetailedHealthCheckApiV1HealthDetailedGetResponses = {
    /**
     * Response Detailed Health Check Api V1 Health Detailed Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type DetailedHealthCheckApiV1HealthDetailedGetResponse = DetailedHealthCheckApiV1HealthDetailedGetResponses[keyof DetailedHealthCheckApiV1HealthDetailedGetResponses];

export type GetSystemInfoApiV1SystemInfoGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/system/info';
};

export type GetSystemInfoApiV1SystemInfoGetResponses = {
    /**
     * Response Get System Info Api V1 System Info Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type GetSystemInfoApiV1SystemInfoGetResponse = GetSystemInfoApiV1SystemInfoGetResponses[keyof GetSystemInfoApiV1SystemInfoGetResponses];

export type GetSystemStatsApiV1SystemStatsGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/system/stats';
};

export type GetSystemStatsApiV1SystemStatsGetResponses = {
    /**
     * Response Get System Stats Api V1 System Stats Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type GetSystemStatsApiV1SystemStatsGetResponse = GetSystemStatsApiV1SystemStatsGetResponses[keyof GetSystemStatsApiV1SystemStatsGetResponses];

export type GetSystemConfigApiV1SystemConfigGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/system/config';
};

export type GetSystemConfigApiV1SystemConfigGetResponses = {
    /**
     * Response Get System Config Api V1 System Config Get
     *
     * Successful Response
     */
    200: {
        [key: string]: unknown;
    };
};

export type GetSystemConfigApiV1SystemConfigGetResponse = GetSystemConfigApiV1SystemConfigGetResponses[keyof GetSystemConfigApiV1SystemConfigGetResponses];

export type GetSystemMetricsApiV1SystemMetricsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Sanitize
         */
        sanitize?: boolean;
    };
    url: '/api/v1/system/metrics';
};

export type GetSystemMetricsApiV1SystemMetricsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetSystemMetricsApiV1SystemMetricsGetError = GetSystemMetricsApiV1SystemMetricsGetErrors[keyof GetSystemMetricsApiV1SystemMetricsGetErrors];

export type GetSystemMetricsApiV1SystemMetricsGetResponses = {
    /**
     * Successful Response
     */
    200: SystemMetricsResponse;
};

export type GetSystemMetricsApiV1SystemMetricsGetResponse = GetSystemMetricsApiV1SystemMetricsGetResponses[keyof GetSystemMetricsApiV1SystemMetricsGetResponses];

export type GetPerformanceSummaryApiV1SystemMetricsSummaryGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/system/metrics/summary';
};

export type GetPerformanceSummaryApiV1SystemMetricsSummaryGetResponses = {
    /**
     * Successful Response
     */
    200: PerformanceMetricsSummary;
};

export type GetPerformanceSummaryApiV1SystemMetricsSummaryGetResponse = GetPerformanceSummaryApiV1SystemMetricsSummaryGetResponses[keyof GetPerformanceSummaryApiV1SystemMetricsSummaryGetResponses];

export type ListAdminSettingsApiV1AdminSettingsGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Order By
         *
         * 排序字段
         */
        order_by?: string;
        /**
         * Sort Order
         *
         * 排序方向 (asc/desc)
         */
        sort_order?: string;
    };
    url: '/api/v1/admin/settings';
};

export type ListAdminSettingsApiV1AdminSettingsGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type ListAdminSettingsApiV1AdminSettingsGetError = ListAdminSettingsApiV1AdminSettingsGetErrors[keyof ListAdminSettingsApiV1AdminSettingsGetErrors];

export type ListAdminSettingsApiV1AdminSettingsGetResponses = {
    /**
     * Successful Response
     */
    200: PagedResponseAdminSettingsResponse;
};

export type ListAdminSettingsApiV1AdminSettingsGetResponse = ListAdminSettingsApiV1AdminSettingsGetResponses[keyof ListAdminSettingsApiV1AdminSettingsGetResponses];

export type CreateAdminSettingApiV1AdminSettingsPostData = {
    body: AdminSettingsCreateRequest;
    path?: never;
    query?: never;
    url: '/api/v1/admin/settings';
};

export type CreateAdminSettingApiV1AdminSettingsPostErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type CreateAdminSettingApiV1AdminSettingsPostError = CreateAdminSettingApiV1AdminSettingsPostErrors[keyof CreateAdminSettingApiV1AdminSettingsPostErrors];

export type CreateAdminSettingApiV1AdminSettingsPostResponses = {
    /**
     * Successful Response
     */
    201: AdminSettingsResponse;
};

export type CreateAdminSettingApiV1AdminSettingsPostResponse = CreateAdminSettingApiV1AdminSettingsPostResponses[keyof CreateAdminSettingApiV1AdminSettingsPostResponses];

export type DeleteAdminSettingApiV1AdminSettingsKeyDeleteData = {
    body?: never;
    path: {
        /**
         * Key
         */
        key: string;
    };
    query?: never;
    url: '/api/v1/admin/settings/{key}';
};

export type DeleteAdminSettingApiV1AdminSettingsKeyDeleteErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type DeleteAdminSettingApiV1AdminSettingsKeyDeleteError = DeleteAdminSettingApiV1AdminSettingsKeyDeleteErrors[keyof DeleteAdminSettingApiV1AdminSettingsKeyDeleteErrors];

export type DeleteAdminSettingApiV1AdminSettingsKeyDeleteResponses = {
    /**
     * Successful Response
     */
    204: void;
};

export type DeleteAdminSettingApiV1AdminSettingsKeyDeleteResponse = DeleteAdminSettingApiV1AdminSettingsKeyDeleteResponses[keyof DeleteAdminSettingApiV1AdminSettingsKeyDeleteResponses];

export type GetAdminSettingApiV1AdminSettingsKeyGetData = {
    body?: never;
    path: {
        /**
         * Key
         */
        key: string;
    };
    query?: never;
    url: '/api/v1/admin/settings/{key}';
};

export type GetAdminSettingApiV1AdminSettingsKeyGetErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetAdminSettingApiV1AdminSettingsKeyGetError = GetAdminSettingApiV1AdminSettingsKeyGetErrors[keyof GetAdminSettingApiV1AdminSettingsKeyGetErrors];

export type GetAdminSettingApiV1AdminSettingsKeyGetResponses = {
    /**
     * Successful Response
     */
    200: AdminSettingsResponse;
};

export type GetAdminSettingApiV1AdminSettingsKeyGetResponse = GetAdminSettingApiV1AdminSettingsKeyGetResponses[keyof GetAdminSettingApiV1AdminSettingsKeyGetResponses];

export type UpdateAdminSettingApiV1AdminSettingsKeyPutData = {
    body: AdminSettingsUpdateRequest;
    path: {
        /**
         * Key
         */
        key: string;
    };
    query?: never;
    url: '/api/v1/admin/settings/{key}';
};

export type UpdateAdminSettingApiV1AdminSettingsKeyPutErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type UpdateAdminSettingApiV1AdminSettingsKeyPutError = UpdateAdminSettingApiV1AdminSettingsKeyPutErrors[keyof UpdateAdminSettingApiV1AdminSettingsKeyPutErrors];

export type UpdateAdminSettingApiV1AdminSettingsKeyPutResponses = {
    /**
     * Successful Response
     */
    200: AdminSettingsResponse;
};

export type UpdateAdminSettingApiV1AdminSettingsKeyPutResponse = UpdateAdminSettingApiV1AdminSettingsKeyPutResponses[keyof UpdateAdminSettingApiV1AdminSettingsKeyPutResponses];

export type HealthCheckHealthGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/health';
};

export type HealthCheckHealthGetResponses = {
    /**
     * Successful Response
     */
    200: unknown;
};
