// 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 & {});
};

/**
 * 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人以上)';

/**
 * 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;
    /**
     * 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;
    /**
     * 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;
    /**
     * 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;
    /**
     * Parent Id
     *
     * 父部门ID
     */
    parent_id?: 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;
};

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

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

/**
 * LogListResponse
 *
 * 日志列表响应模式
 */
export type LogListResponse = {
    /**
     * Items
     *
     * 日志列表
     */
    items: Array<unknown>;
    /**
     * Total
     *
     * 总记录数
     */
    total: number;
    /**
     * Skip
     *
     * 跳过记录数
     */
    skip?: number;
    /**
     * Limit
     *
     * 限制记录数
     */
    limit?: number;
};

/**
 * LoginLog
 *
 * 登录日志响应模式
 */
export type LoginLog = {
    /**
     * Tenant Id
     *
     * 租户ID
     */
    tenant_id?: string | null;
    /**
     * User Id
     *
     * 用户ID
     */
    user_id: string;
    /**
     * Username
     *
     * 用户名
     */
    username: string;
    /**
     * 登录状态
     */
    status: LoginStatus;
    /**
     * 登录方式
     */
    method: LoginMethod;
    /**
     * Ip Address
     *
     * IP地址
     */
    ip_address: string;
    /**
     * User Agent
     *
     * 用户代理
     */
    user_agent?: string | null;
    /**
     * Location
     *
     * 地理位置
     */
    location?: string | null;
    /**
     * Failure Reason
     *
     * 失败原因
     */
    failure_reason?: string | null;
    /**
     * Attempt Count
     *
     * 尝试次数
     */
    attempt_count?: number;
    /**
     * Is Suspicious
     *
     * 是否可疑
     */
    is_suspicious?: boolean;
    /**
     * Id
     *
     * 日志ID
     */
    id: string;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
    /**
     * Updated At
     *
     * 更新时间
     */
    updated_at: string;
};

/**
 * LoginMethod
 *
 * 登录方式枚举
 */
export type LoginMethod = 'password' | 'captcha' | 'sso';

/**
 * LoginStatus
 *
 * 登录状态枚举
 */
export type LoginStatus = 'success' | 'failed' | 'locked';

/**
 * 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;
};

/**
 * NetworkLog
 *
 * 网络日志响应模式
 */
export type NetworkLog = {
    /**
     * Tenant Id
     *
     * 租户ID
     */
    tenant_id?: string | null;
    /**
     * Request Method
     *
     * 请求方法
     */
    request_method: string;
    /**
     * Request Url
     *
     * 请求URL
     */
    request_url: string;
    /**
     * Request Path
     *
     * 请求路径
     */
    request_path: string;
    /**
     * Query Params
     *
     * 查询参数
     */
    query_params?: {
        [key: string]: unknown;
    } | null;
    /**
     * Client Ip
     *
     * 客户端IP
     */
    client_ip: string;
    /**
     * User Agent
     *
     * 用户代理
     */
    user_agent?: string | null;
    /**
     * Referer
     *
     * 来源页面
     */
    referer?: string | null;
    /**
     * Response Status
     *
     * 响应状态码
     */
    response_status: number;
    /**
     * Response Size
     *
     * 响应大小(字节)
     */
    response_size?: number | null;
    /**
     * Processing Time
     *
     * 处理时间(秒)
     */
    processing_time: number;
    /**
     * Database Time
     *
     * 数据库查询时间(秒)
     */
    database_time?: number | null;
    /**
     * User Id
     *
     * 用户ID
     */
    user_id?: string | null;
    /**
     * Is Error
     *
     * 是否错误
     */
    is_error?: boolean;
    /**
     * Error Message
     *
     * 错误信息
     */
    error_message?: string | null;
    /**
     * Id
     *
     * 日志ID
     */
    id: string;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
    /**
     * Updated At
     *
     * 更新时间
     */
    updated_at: string;
};

/**
 * OperationLog
 *
 * 操作日志响应模式
 */
export type OperationLog = {
    /**
     * Tenant Id
     *
     * 租户ID
     */
    tenant_id?: string | null;
    /**
     * User Id
     *
     * 用户ID
     */
    user_id: string;
    /**
     * Username
     *
     * 用户名
     */
    username: string;
    /**
     * 操作类型
     */
    operation_type: OperationType;
    /**
     * 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;
    /**
     * Id
     *
     * 日志ID
     */
    id: string;
    /**
     * Created At
     *
     * 创建时间
     */
    created_at: string;
    /**
     * Updated At
     *
     * 更新时间
     */
    updated_at: string;
};

/**
 * OperationType
 *
 * 操作类型枚举
 */
export type OperationType = 'create' | 'read' | 'update' | 'delete' | 'export' | 'import' | 'config' | 'auth';

/**
 * Page[DepartmentResponse]
 */
export type PageDepartmentResponse = {
    /**
     * Data
     */
    data: Array<DepartmentResponse>;
    /**
     * Total
     */
    total: number;
    /**
     * Page
     */
    page: number;
    /**
     * Size
     */
    size: number;
};

/**
 * 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;
};

/**
 * 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;
};

/**
 * PerformanceStats
 *
 * 性能统计响应模式
 */
export type PerformanceStats = {
    /**
     * Total Requests
     *
     * 总请求数
     */
    total_requests: number;
    /**
     * Avg Response Time
     *
     * 平均响应时间
     */
    avg_response_time: number;
    /**
     * Error Rate
     *
     * 错误率
     */
    error_rate: number;
    /**
     * Slow Requests
     *
     * 慢请求数
     */
    slow_requests: number;
};

/**
 * 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;
    };
};

/**
 * 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;
    /**
     * 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;
};

/**
 * 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;
};

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

/**
 * 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;
};

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 ListSystemUsersApiV1UsersSystemUsersGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
        /**
         * Search
         *
         * 搜索关键词
         */
        search?: string;
        /**
         * Is Active
         *
         * 是否活跃
         */
        is_active?: boolean;
    };
    url: '/api/v1/users/system/users';
};

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

export type ListSystemUsersApiV1UsersSystemUsersGetError = ListSystemUsersApiV1UsersSystemUsersGetErrors[keyof ListSystemUsersApiV1UsersSystemUsersGetErrors];

export type ListSystemUsersApiV1UsersSystemUsersGetResponses = {
    /**
     * Response List System Users Api V1 Users System Users Get
     *
     * Successful Response
     */
    200: Array<User>;
};

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 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 = {
    /**
     * Response Get Users Api V1 Users  Get
     *
     * Successful Response
     */
    200: Array<User>;
};

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: User;
};

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: User;
};

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: User;
};

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 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;
        /**
         * Page
         *
         * 页码
         */
        page?: number;
        /**
         * Size
         *
         * 每页数量
         */
        size?: number;
    };
    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 GetDepartmentsApiV1DepartmentsDepartmentsGetData = {
    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/departments/';
};

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

export type GetDepartmentsApiV1DepartmentsDepartmentsGetError = GetDepartmentsApiV1DepartmentsDepartmentsGetErrors[keyof GetDepartmentsApiV1DepartmentsDepartmentsGetErrors];

export type GetDepartmentsApiV1DepartmentsDepartmentsGetResponses = {
    /**
     * Successful Response
     */
    200: PageDepartmentResponse;
};

export type GetDepartmentsApiV1DepartmentsDepartmentsGetResponse = GetDepartmentsApiV1DepartmentsDepartmentsGetResponses[keyof GetDepartmentsApiV1DepartmentsDepartmentsGetResponses];

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

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

export type CreateDepartmentApiV1DepartmentsDepartmentsPostError = CreateDepartmentApiV1DepartmentsDepartmentsPostErrors[keyof CreateDepartmentApiV1DepartmentsDepartmentsPostErrors];

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

export type CreateDepartmentApiV1DepartmentsDepartmentsPostResponse = CreateDepartmentApiV1DepartmentsDepartmentsPostResponses[keyof CreateDepartmentApiV1DepartmentsDepartmentsPostResponses];

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

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

export type GetDepartmentTreeApiV1DepartmentsDepartmentsTreeGetResponse = GetDepartmentTreeApiV1DepartmentsDepartmentsTreeGetResponses[keyof GetDepartmentTreeApiV1DepartmentsDepartmentsTreeGetResponses];

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

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

export type DeleteDepartmentApiV1DepartmentsDepartmentsDepartmentIdDeleteError = DeleteDepartmentApiV1DepartmentsDepartmentsDepartmentIdDeleteErrors[keyof DeleteDepartmentApiV1DepartmentsDepartmentsDepartmentIdDeleteErrors];

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

export type DeleteDepartmentApiV1DepartmentsDepartmentsDepartmentIdDeleteResponse = DeleteDepartmentApiV1DepartmentsDepartmentsDepartmentIdDeleteResponses[keyof DeleteDepartmentApiV1DepartmentsDepartmentsDepartmentIdDeleteResponses];

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

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

export type GetDepartmentApiV1DepartmentsDepartmentsDepartmentIdGetError = GetDepartmentApiV1DepartmentsDepartmentsDepartmentIdGetErrors[keyof GetDepartmentApiV1DepartmentsDepartmentsDepartmentIdGetErrors];

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

export type GetDepartmentApiV1DepartmentsDepartmentsDepartmentIdGetResponse = GetDepartmentApiV1DepartmentsDepartmentsDepartmentIdGetResponses[keyof GetDepartmentApiV1DepartmentsDepartmentsDepartmentIdGetResponses];

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

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

export type UpdateDepartmentApiV1DepartmentsDepartmentsDepartmentIdPutError = UpdateDepartmentApiV1DepartmentsDepartmentsDepartmentIdPutErrors[keyof UpdateDepartmentApiV1DepartmentsDepartmentsDepartmentIdPutErrors];

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

export type UpdateDepartmentApiV1DepartmentsDepartmentsDepartmentIdPutResponse = UpdateDepartmentApiV1DepartmentsDepartmentsDepartmentIdPutResponses[keyof UpdateDepartmentApiV1DepartmentsDepartmentsDepartmentIdPutResponses];

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

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

export type UpdateDepartmentOrderApiV1DepartmentsDepartmentsDepartmentIdOrderPatchError = UpdateDepartmentOrderApiV1DepartmentsDepartmentsDepartmentIdOrderPatchErrors[keyof UpdateDepartmentOrderApiV1DepartmentsDepartmentsDepartmentIdOrderPatchErrors];

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

export type UpdateDepartmentOrderApiV1DepartmentsDepartmentsDepartmentIdOrderPatchResponse = UpdateDepartmentOrderApiV1DepartmentsDepartmentsDepartmentIdOrderPatchResponses[keyof UpdateDepartmentOrderApiV1DepartmentsDepartmentsDepartmentIdOrderPatchResponses];

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

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

export type UpdateDepartmentStatusApiV1DepartmentsDepartmentsDepartmentIdStatusPatchError = UpdateDepartmentStatusApiV1DepartmentsDepartmentsDepartmentIdStatusPatchErrors[keyof UpdateDepartmentStatusApiV1DepartmentsDepartmentsDepartmentIdStatusPatchErrors];

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

export type UpdateDepartmentStatusApiV1DepartmentsDepartmentsDepartmentIdStatusPatchResponse = UpdateDepartmentStatusApiV1DepartmentsDepartmentsDepartmentIdStatusPatchResponses[keyof UpdateDepartmentStatusApiV1DepartmentsDepartmentsDepartmentIdStatusPatchResponses];

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

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

export type GetDepartmentUsersCountApiV1DepartmentsDepartmentsDepartmentIdUsersCountGetError = GetDepartmentUsersCountApiV1DepartmentsDepartmentsDepartmentIdUsersCountGetErrors[keyof GetDepartmentUsersCountApiV1DepartmentsDepartmentsDepartmentIdUsersCountGetErrors];

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

export type GetLoginLogsApiV1LogsLogsLoginGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Username
         *
         * 用户名
         */
        username?: string | null;
        /**
         * Ip Address
         *
         * IP地址
         */
        ip_address?: string | null;
        /**
         * Status
         *
         * 登录状态: success, failed, locked
         */
        status?: string | null;
        /**
         * Is Suspicious
         *
         * 是否可疑
         */
        is_suspicious?: boolean | null;
        /**
         * Start Time
         *
         * 开始时间 (YYYY-MM-DD HH:MM:SS)
         */
        start_time?: string | null;
        /**
         * End Time
         *
         * 结束时间 (YYYY-MM-DD HH:MM:SS)
         */
        end_time?: string | null;
        /**
         * Skip
         *
         * 跳过记录数
         */
        skip?: number;
        /**
         * Limit
         *
         * 限制记录数
         */
        limit?: number;
    };
    url: '/api/v1/logs/logs/login';
};

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

export type GetLoginLogsApiV1LogsLogsLoginGetError = GetLoginLogsApiV1LogsLogsLoginGetErrors[keyof GetLoginLogsApiV1LogsLogsLoginGetErrors];

export type GetLoginLogsApiV1LogsLogsLoginGetResponses = {
    /**
     * Successful Response
     */
    200: LogListResponse;
};

export type GetLoginLogsApiV1LogsLogsLoginGetResponse = GetLoginLogsApiV1LogsLogsLoginGetResponses[keyof GetLoginLogsApiV1LogsLogsLoginGetResponses];

export type GetLoginLogApiV1LogsLogsLoginLogIdGetData = {
    body?: never;
    path: {
        /**
         * Log Id
         */
        log_id: string;
    };
    query?: never;
    url: '/api/v1/logs/logs/login/{log_id}';
};

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

export type GetLoginLogApiV1LogsLogsLoginLogIdGetError = GetLoginLogApiV1LogsLogsLoginLogIdGetErrors[keyof GetLoginLogApiV1LogsLogsLoginLogIdGetErrors];

export type GetLoginLogApiV1LogsLogsLoginLogIdGetResponses = {
    /**
     * Successful Response
     */
    200: LoginLog;
};

export type GetLoginLogApiV1LogsLogsLoginLogIdGetResponse = GetLoginLogApiV1LogsLogsLoginLogIdGetResponses[keyof GetLoginLogApiV1LogsLogsLoginLogIdGetResponses];

export type GetOperationLogsApiV1LogsLogsOperationGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * User Id
         *
         * 用户ID
         */
        user_id?: string | null;
        /**
         * Username
         *
         * 用户名
         */
        username?: string | null;
        /**
         * Operation Type
         *
         * 操作类型: create, read, update, delete, export, import, config, auth
         */
        operation_type?: string | null;
        /**
         * Module
         *
         * 操作模块
         */
        module?: string | null;
        /**
         * Action
         *
         * 操作动作
         */
        action?: string | null;
        /**
         * Response Status
         *
         * 响应状态码
         */
        response_status?: number | null;
        /**
         * Start Time
         *
         * 开始时间 (YYYY-MM-DD HH:MM:SS)
         */
        start_time?: string | null;
        /**
         * End Time
         *
         * 结束时间 (YYYY-MM-DD HH:MM:SS)
         */
        end_time?: string | null;
        /**
         * Skip
         *
         * 跳过记录数
         */
        skip?: number;
        /**
         * Limit
         *
         * 限制记录数
         */
        limit?: number;
    };
    url: '/api/v1/logs/logs/operation';
};

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

export type GetOperationLogsApiV1LogsLogsOperationGetError = GetOperationLogsApiV1LogsLogsOperationGetErrors[keyof GetOperationLogsApiV1LogsLogsOperationGetErrors];

export type GetOperationLogsApiV1LogsLogsOperationGetResponses = {
    /**
     * Successful Response
     */
    200: LogListResponse;
};

export type GetOperationLogsApiV1LogsLogsOperationGetResponse = GetOperationLogsApiV1LogsLogsOperationGetResponses[keyof GetOperationLogsApiV1LogsLogsOperationGetResponses];

export type GetOperationLogApiV1LogsLogsOperationLogIdGetData = {
    body?: never;
    path: {
        /**
         * Log Id
         */
        log_id: string;
    };
    query?: never;
    url: '/api/v1/logs/logs/operation/{log_id}';
};

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

export type GetOperationLogApiV1LogsLogsOperationLogIdGetError = GetOperationLogApiV1LogsLogsOperationLogIdGetErrors[keyof GetOperationLogApiV1LogsLogsOperationLogIdGetErrors];

export type GetOperationLogApiV1LogsLogsOperationLogIdGetResponses = {
    /**
     * Successful Response
     */
    200: OperationLog;
};

export type GetOperationLogApiV1LogsLogsOperationLogIdGetResponse = GetOperationLogApiV1LogsLogsOperationLogIdGetResponses[keyof GetOperationLogApiV1LogsLogsOperationLogIdGetResponses];

export type GetNetworkLogsApiV1LogsLogsNetworkGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Request Method
         *
         * 请求方法: GET, POST, PUT, DELETE, PATCH
         */
        request_method?: string | null;
        /**
         * Request Path
         *
         * 请求路径
         */
        request_path?: string | null;
        /**
         * Client Ip
         *
         * 客户端IP
         */
        client_ip?: string | null;
        /**
         * Response Status
         *
         * 响应状态码
         */
        response_status?: number | null;
        /**
         * Is Error
         *
         * 是否错误
         */
        is_error?: boolean | null;
        /**
         * Min Processing Time
         *
         * 最小处理时间(秒)
         */
        min_processing_time?: number | null;
        /**
         * Max Processing Time
         *
         * 最大处理时间(秒)
         */
        max_processing_time?: number | null;
        /**
         * Start Time
         *
         * 开始时间 (YYYY-MM-DD HH:MM:SS)
         */
        start_time?: string | null;
        /**
         * End Time
         *
         * 结束时间 (YYYY-MM-DD HH:MM:SS)
         */
        end_time?: string | null;
        /**
         * Skip
         *
         * 跳过记录数
         */
        skip?: number;
        /**
         * Limit
         *
         * 限制记录数
         */
        limit?: number;
    };
    url: '/api/v1/logs/logs/network';
};

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

export type GetNetworkLogsApiV1LogsLogsNetworkGetError = GetNetworkLogsApiV1LogsLogsNetworkGetErrors[keyof GetNetworkLogsApiV1LogsLogsNetworkGetErrors];

export type GetNetworkLogsApiV1LogsLogsNetworkGetResponses = {
    /**
     * Successful Response
     */
    200: LogListResponse;
};

export type GetNetworkLogsApiV1LogsLogsNetworkGetResponse = GetNetworkLogsApiV1LogsLogsNetworkGetResponses[keyof GetNetworkLogsApiV1LogsLogsNetworkGetResponses];

export type GetNetworkLogApiV1LogsLogsNetworkLogIdGetData = {
    body?: never;
    path: {
        /**
         * Log Id
         */
        log_id: string;
    };
    query?: never;
    url: '/api/v1/logs/logs/network/{log_id}';
};

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

export type GetNetworkLogApiV1LogsLogsNetworkLogIdGetError = GetNetworkLogApiV1LogsLogsNetworkLogIdGetErrors[keyof GetNetworkLogApiV1LogsLogsNetworkLogIdGetErrors];

export type GetNetworkLogApiV1LogsLogsNetworkLogIdGetResponses = {
    /**
     * Successful Response
     */
    200: NetworkLog;
};

export type GetNetworkLogApiV1LogsLogsNetworkLogIdGetResponse = GetNetworkLogApiV1LogsLogsNetworkLogIdGetResponses[keyof GetNetworkLogApiV1LogsLogsNetworkLogIdGetResponses];

export type GetPerformanceStatsApiV1LogsLogsNetworkStatsPerformanceGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/api/v1/logs/logs/network/stats/performance';
};

export type GetPerformanceStatsApiV1LogsLogsNetworkStatsPerformanceGetResponses = {
    /**
     * Successful Response
     */
    200: PerformanceStats;
};

export type GetPerformanceStatsApiV1LogsLogsNetworkStatsPerformanceGetResponse = GetPerformanceStatsApiV1LogsLogsNetworkStatsPerformanceGetResponses[keyof GetPerformanceStatsApiV1LogsLogsNetworkStatsPerformanceGetResponses];

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 ListTemplatesApiV1MessagesTemplatesMessageTemplatesGetData = {
    body?: never;
    path?: never;
    query?: {
        /**
         * Message Type
         *
         * 消息类型
         */
        message_type?: MessageType | null;
        /**
         * Template Type
         *
         * 模板类型
         */
        template_type?: TemplateType | null;
        /**
         * Is Active
         *
         * 是否启用
         */
        is_active?: boolean | null;
        /**
         * Skip
         *
         * 跳过数量
         */
        skip?: number;
        /**
         * Limit
         *
         * 限制数量
         */
        limit?: number;
    };
    url: '/api/v1/messages/templates/message-templates';
};

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

export type ListTemplatesApiV1MessagesTemplatesMessageTemplatesGetError = ListTemplatesApiV1MessagesTemplatesMessageTemplatesGetErrors[keyof ListTemplatesApiV1MessagesTemplatesMessageTemplatesGetErrors];

export type ListTemplatesApiV1MessagesTemplatesMessageTemplatesGetResponses = {
    /**
     * Response List Templates Api V1 Messages Templates Message Templates Get
     *
     * Successful Response
     */
    200: Array<MessageTemplateResponse>;
};

export type ListTemplatesApiV1MessagesTemplatesMessageTemplatesGetResponse = ListTemplatesApiV1MessagesTemplatesMessageTemplatesGetResponses[keyof ListTemplatesApiV1MessagesTemplatesMessageTemplatesGetResponses];

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

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

export type CreateTemplateApiV1MessagesTemplatesMessageTemplatesPostError = CreateTemplateApiV1MessagesTemplatesMessageTemplatesPostErrors[keyof CreateTemplateApiV1MessagesTemplatesMessageTemplatesPostErrors];

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

export type CreateTemplateApiV1MessagesTemplatesMessageTemplatesPostResponse = CreateTemplateApiV1MessagesTemplatesMessageTemplatesPostResponses[keyof CreateTemplateApiV1MessagesTemplatesMessageTemplatesPostResponses];

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

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

export type DeleteTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdDeleteError = DeleteTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdDeleteErrors[keyof DeleteTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdDeleteErrors];

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

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

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

export type GetTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdGetError = GetTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdGetErrors[keyof GetTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdGetErrors];

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

export type GetTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdGetResponse = GetTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdGetResponses[keyof GetTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdGetResponses];

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

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

export type UpdateTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdPutError = UpdateTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdPutErrors[keyof UpdateTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdPutErrors];

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

export type UpdateTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdPutResponse = UpdateTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdPutResponses[keyof UpdateTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdPutResponses];

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

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

export type TestTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdTestPostError = TestTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdTestPostErrors[keyof TestTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdTestPostErrors];

export type TestTemplateApiV1MessagesTemplatesMessageTemplatesTemplateIdTestPostResponses = {
    /**
     * 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;
        /**
         * Skip
         *
         * 跳过数量
         */
        skip?: number;
        /**
         * Limit
         *
         * 限制数量
         */
        limit?: number;
    };
    url: '/api/v1/messages/logs/message-logs';
};

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

export type ListMessageLogsApiV1MessagesLogsMessageLogsGetError = ListMessageLogsApiV1MessagesLogsMessageLogsGetErrors[keyof ListMessageLogsApiV1MessagesLogsMessageLogsGetErrors];

export type ListMessageLogsApiV1MessagesLogsMessageLogsGetResponses = {
    /**
     * Response List Message Logs Api V1 Messages Logs Message Logs Get
     *
     * Successful Response
     */
    200: Array<MessageLogResponse>;
};

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 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 HealthCheckHealthGetData = {
    body?: never;
    path?: never;
    query?: never;
    url: '/health';
};

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