/**
 * CreateModelService请求参数结构体
 */
export interface CreateModelServiceRequest {
    /**
     * <p>实例</p>
     */
    InstanceID: string;
    /**
     * <p>模型服务名称</p>
     */
    Name: string;
    /**
     * <p>描述</p>
     */
    Description: string;
    /**
     * <p>访问路径</p>
     */
    PubPath: string;
    /**
     * <p>模型ID列表</p>
     */
    TargetModels: Array<TargetModelDTO>;
    /**
     * <p>路径匹配类型: prefix 前缀匹配(不送默认); absolute 绝对匹配; regex正则匹配;</p>
     */
    PathMatchType?: string;
    /**
     * <p>是否开启限流</p>
     */
    InvokeLimitConfigStatus?: boolean;
    /**
     * <p>限流配置</p>
     */
    InvokeLimitConfig?: InvokeLimitConfigDTO;
    /**
     * <p>是否开启token控制</p>
     */
    TokenLimitStatus?: boolean;
    /**
     * <p>token控制</p>
     */
    TokenLimitConfig?: TokenLimitConfigDTO;
    /**
     * <p>是否开启内容安全</p>
     */
    TmsStatus?: boolean;
    /**
     * <p>内容安全配置</p>
     */
    TmsConfig?: TmsConfigDTO;
    /**
     * <p>是否开启IP白名单</p>
     */
    IpWhiteStatus?: boolean;
    /**
     * <p>IP白名单</p>
     */
    IpWhiteList?: Array<string>;
    /**
     * <p>IP黑名单</p>
     */
    IpBlackList?: Array<string>;
    /**
     * <p>插件配置</p>
     */
    PluginConfigs?: Array<PluginConfigDTO>;
    /**
     * <p>超时配置，秒</p>
     */
    Timeout?: number;
    /**
     * <p>是否开启提示词安全检测</p>
     */
    PromptModerateStatus?: boolean;
    /**
     * <p>提示词安全检测配置</p>
     */
    PromptModerateConfig?: PromptModerateConfigDTO;
    /**
     * <p>是否开启敏感数据检测</p>
     */
    SensitiveDataCheckStatus?: boolean;
    /**
     * <p>敏感数据检测配置</p>
     */
    SensitiveDataCheckConfig?: SensitiveDataCheckConfigDTO;
    /**
     * <p>负载方式</p><p>枚举值：</p><ul><li>random： 随机</li><li>consistentHash： 会话保持</li></ul>
     */
    TargetSelect?: string;
    /**
     * <p>会话判断方式</p><p>枚举值：</p><ul><li>fromClientIP： 客户端IP</li><li>fromHeader： 通过header值</li><li>autoDetect： 自动探测</li></ul>
     */
    FindHostKeyMethod?: string;
    /**
     * <p>会话判定方式为fromHeader时会话的header名称</p>
     */
    HostKeyHeaderName?: string;
    /**
     * <p>是否启用Fallback模型</p>
     */
    FallbackStatus?: boolean;
    /**
     * <p>Fallback模型配置</p>
     */
    FallbackModels?: Array<TargetModelDTO>;
    /**
     * <p>模型协议</p>
     */
    ModelProtocol?: string;
    /**
     * <p>自定义模型协议配置</p>
     */
    RawCustomModelProtocolConfig?: string;
}
/**
 * FieldValue结构体
 */
export interface FieldValueDTO {
    /**
     * <p>属性</p>
     */
    Field?: string;
    /**
     * <p>值</p>
     */
    Value?: string;
}
/**
 * secretKey的出参
 */
export interface AgentAppSecretKeyVO {
    /**
     * secret id
     */
    SecretID?: string;
    /**
     * secret key
     */
    SecretKey?: string;
}
/**
 * mcp安全规则
 */
export interface McpSecurityRule {
    /**
     * 规则ID
     */
    ID?: string;
    /**
     * 状态
     */
    Status?: string;
    /**
     * 处置动作
     */
    Act?: string;
}
/**
 * ModifyAgentApp请求参数结构体
 */
export interface ModifyAgentAppRequest {
    /**
     * <p>实例ID</p>
     */
    InstanceID: string;
    /**
     * <p>应用ID</p>
     */
    ID: string;
    /**
     * <p>名称</p>
     */
    Name?: string;
    /**
     * <p>OAuth2资源服务器ID</p>
     */
    OAuth2ResourceServerID?: string;
    /**
     * <p>描述</p>
     */
    Description?: string;
    /**
     * <p>凭据ID</p>
     */
    ConnectorIDs?: Array<string>;
}
/**
 * InvokeLimitConfigDTO
 */
export interface InvokeLimitConfigDTO {
    /**
     * Type类型
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Type?: string;
    /**
     * 令牌桶最大容量
  
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TokenBucketMaxNum?: number;
    /**
     * 令牌生成速率
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TokenBucketRate?: number;
    /**
     * 漏斗容量
  注意：此字段可能返回 null，表示取不到有效值。
     */
    FunnelMaxNum?: number;
    /**
     * 漏嘴流速
  注意：此字段可能返回 null，表示取不到有效值。
     */
    FunnelRate?: number;
    /**
     * 滑动窗口最大请求数
  注意：此字段可能返回 null，表示取不到有效值。
     */
    SlidingWindowMaxNum?: number;
    /**
     * 滑动窗口长度
  注意：此字段可能返回 null，表示取不到有效值。
     */
    SlidingWindowSize?: number;
    /**
     * 时间窗口最大请求数
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TimeWindow?: number;
    /**
     * 时间窗口长度
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TimeWindowInterval?: number;
    /**
     * 请求的超时时间
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Timeout?: number;
}
/**
 * WizardConfig 向导模式配置
 */
export interface WizardConfig {
    /**
     * <p>表名</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    DbTable?: string;
    /**
     * <p>是否分页</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    DbEnablePaging?: boolean;
    /**
     * <p>请求参数</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    DbReqParams?: Array<ServiceDatabaseReqParam>;
    /**
     * <p>响应参数</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    DbRespParams?: Array<ServiceDatabaseRespParam>;
    /**
     * <p>排序参数</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    DbOrdParams?: Array<ServiceDatabaseOrderParam>;
    /**
     * <p>是否开启出参映射</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    DbEnableMappingResp?: boolean;
}
/**
 * DeleteAgentAppServices请求参数结构体
 */
export interface DeleteAgentAppServicesRequest {
    /**
     * <p>实例ID</p>
     */
    InstanceID: string;
    /**
     * <p>应用ID</p>
     */
    ID: string;
    /**
     * <p>服务IDs</p>
     */
    ServiceIDs: Array<string>;
}
/**
 * 工具级别配置
 */
export interface ToolConfigDTO {
    /**
     * 工具名称
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ToolName?: string;
    /**
     * 是否开启限流配置
     */
    InvokeLimitConfigStatus?: boolean;
    /**
     * 限流配置
     */
    InvokeLimitConfig?: InvokeLimitConfigDTO;
    /**
     * 绑定安全规则
     */
    McpSecurityRules?: Array<BindMcpSecurityRuleDTO>;
}
/**
 * CreateAgentApp返回参数结构体
 */
export interface CreateAgentAppResponse {
    /**
     * <p>app id</p>
     */
    Data?: CreateAgentAppResp;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * DescribeAgentAppModelServices请求参数结构体
 */
export type DescribeAgentAppModelServicesRequest = null;
/**
 * DeleteAgentCredential返回参数结构体
 */
export interface DeleteAgentCredentialResponse {
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * DescribeMcpServer返回参数结构体
 */
export interface DescribeMcpServerResponse {
    /**
     * mcp server详情
     */
    Data?: DescribeMcpServerResponseVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * 查询模型列表的响应
 */
export interface DescribeModelsResponseVO {
    /**
     * 条目
     */
    Total?: number;
    /**
     * 列表
     */
    Items?: Array<DescribeModelResponseVO>;
}
/**
 * SourceTypeConfigDTO
 */
export interface SourceTypeConfigDTO {
    /**
     * json xml urlencoded amf0 amf3 hessian1 hessian2
  
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ReqSourceType?: string;
    /**
     * json xml urlencoded amf0 amf3 hessian1 hessian2
  
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ReqTargetType?: string;
    /**
     * json xml urlencoded amf0 amf3 hessian1 hessian2
  
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ResSourceType?: string;
    /**
     * json xml urlencoded amf0 amf3 hessian1 hessian2
  
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ResTargetType?: string;
}
/**
 * CreateAgentAppServices请求参数结构体
 */
export interface CreateAgentAppServicesRequest {
    /**
     * <p>实例ID</p>
     */
    InstanceID: string;
    /**
     * <p>应用ID</p>
     */
    ID: string;
    /**
     * <p>服务详情</p>
     */
    Services: Array<AgentAppServiceDTO>;
}
/**
 * BindMcpSecurityRuleDTO，替换之前的McpSecurityRule
 */
export interface BindMcpSecurityRuleDTO {
    /**
     * 规则ID
     */
    ID?: string;
    /**
     * 处置动作
     */
    Act?: string;
}
/**
 * 应用关联的mcp响应
 */
export interface AgentAppMcpServerVO {
    /**
     * 绑定ID
     */
    ID?: string;
    /**
     * 需要认证
     */
    NeedAuth?: boolean;
    /**
     * 凭据ID
     */
    AgentCredentialID?: string;
    /**
     * 凭据详情
     */
    AgentCredentialVO?: DescribeAgentCredentialResp;
    /**
     * mcp详情
     */
    McpServerVO?: DescribeMcpServerResponseVO;
    /**
     * 关联时间
     */
    RelateTime?: string;
    /**
     * 应用为OAuth2认证时，sse模式请求mcp时的资源标识
  注意：此字段可能返回 null，表示取不到有效值。
     */
    SSEResourceIdentifier?: string;
    /**
     * 应用为OAuth2认证时，streamable模式请求mcp时的资源标识
  注意：此字段可能返回 null，表示取不到有效值。
     */
    StreamableResourceIdentifier?: string;
    /**
     * 应用ID
  注意：此字段可能返回 null，表示取不到有效值。
     */
    AgentAppID?: string;
    /**
     * mcp ID
  注意：此字段可能返回 null，表示取不到有效值。
     */
    McpServerID?: string;
}
/**
 * DeleteModelService返回参数结构体
 */
export interface DeleteModelServiceResponse {
    /**
     * 结果集
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * DescribeMcpServerResponseVO
 */
export interface DescribeMcpServerResponseVO {
    /**
     * <p>实例ID</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    InstanceID?: string;
    /**
     * <p>名称</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Name?: string;
    /**
     * <p>描述</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Description?: string;
    /**
     * <p>标签ID数组</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    LabelIDs?: Array<string>;
    /**
     * <p>目录ID数组</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    CategoryIDs?: Array<string>;
    /**
     * <p>负载方式，robin random consistentHash</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetSelect?: string;
    /**
     * <p>目标服务器</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetHosts?: Array<TargetHostDTO>;
    /**
     * <p>后端协议：http https</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    HttpProtocolType?: string;
    /**
     * <p>证书检查</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    CheckTargetCertsError?: boolean;
    /**
     * <p>目标路径</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetPath?: string;
    /**
     * <p>流量控制状态</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    InvokeLimitConfigStatus?: boolean;
    /**
     * <p>流量控制配置</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    InvokeLimitConfig?: InvokeLimitConfigDTO;
    /**
     * <p>IP白名单开启状态</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    IpWhiteStatus?: boolean;
    /**
     * <p>IP白名单配置</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    IpWhiteConfig?: IpConfig;
    /**
     * <p>IP黑名单开启状态</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    IpBlackStatus?: boolean;
    /**
     * <p>IP黑名单配置</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    IpBlackConfig?: IpConfig;
    /**
     * <p>mcp server ID</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ID?: string;
    /**
     * <p>状态</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Status?: string;
    /**
     * <p>预览地址</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Url?: string;
    /**
     * <p>应用</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    App?: IDNameVO;
    /**
     * <p>目录</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Catalogs?: Array<IDNameVO>;
    /**
     * <p>标签</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Labels?: Array<IDNameVO>;
    /**
     * <p>创建时间</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    CreateTime?: string;
    /**
     * <p>最后修改时间</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    LastUpdateTime?: string;
    /**
     * <p>用户appID</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    AppID?: number;
    /**
     * <p>用户ID</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Uin?: string;
    /**
     * <p>自定义host</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    CustomHttpHost?: string;
    /**
     * <p>Http 请求host类型 useRequestHost 保持源请求host targetHost 修正为源站host  customHost 自定义host</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    HttpHostType?: string;
    /**
     * <p>请求的超时时间</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Timeout?: number;
    /**
     * <p>mcp server模式</p>
     */
    Mode?: string;
    /**
     * <p>mcp version</p>
     */
    McpVersion?: string;
    /**
     * <p>封装模式下绑定的服务ID列表</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    WrapServices?: Array<string>;
    /**
     * <p>工具数量</p>
     */
    ToolNum?: number;
    /**
     * <p>安全规则集响应</p>
     */
    McpSecurityRulesVO?: Array<McpSecurityRulesVO>;
    /**
     * <p>真实工具级别配置，实时拉取了tool/list做渲染的，如果tool/list不通，就拉不到。</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ToolConfigs?: Array<ToolConfigVO>;
    /**
     * <p>访问URL</p>
     */
    UrlObj?: McpUrlObj;
    /**
     * <p>后端mcp服务是否正常</p>
     */
    ToolMessage?: string;
    /**
     * <p>后端mcp服务的工具列表</p>
     */
    Tools?: Array<McpTool>;
    /**
     * <p>封装的API分组ID</p>
     */
    WrapPaasID?: string;
    /**
     * <p>关联的agentApp数量</p>
     */
    RelateAgentAppNum?: number;
    /**
     * <p>插件配置</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    PluginConfigs?: Array<PluginConfigDTO>;
    /**
     * <p>是否忽略健康检查</p>
     */
    IgnoreHealthCheck?: boolean;
}
/**
 * mcp工具注解
 */
export interface McpToolAnnotation {
    /**
     * title for the tool
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Title?: string;
    /**
     * If true, the tool does not modify its environment
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ReadOnlyHint?: boolean;
    /**
     * If true, the tool may perform destructive updates
  注意：此字段可能返回 null，表示取不到有效值。
     */
    DestructiveHint?: boolean;
    /**
     * If true, repeated calls with same args have no additional effect
  注意：此字段可能返回 null，表示取不到有效值。
     */
    IdempotentHint?: boolean;
    /**
     * If true, tool interacts with external entities
  注意：此字段可能返回 null，表示取不到有效值。
     */
    OpenWorldHint?: boolean;
}
/**
 * DeleteService请求参数结构体
 */
export interface DeleteServiceRequest {
    /**
     * 实例ID
     */
    InstanceID?: string;
    /**
     * 业务ID
     */
    ID?: string;
}
/**
 * 开始结束时间结构体
 */
export interface StartEndTime {
    /**
     * 开始时间
  注意：此字段可能返回 null，表示取不到有效值。
     */
    StartTime?: string;
    /**
     * 结束时间
  注意：此字段可能返回 null，表示取不到有效值。
     */
    EndTime?: string;
}
/**
 * DeleteModel返回参数结构体
 */
export interface DeleteModelResponse {
    /**
     * 结果集
     */
    Data?: ResultIDsVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * IDNameVO
 */
export interface IDNameVO {
    /**
     * 业务ID
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ID?: string;
    /**
     * 名称
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Name?: string;
}
/**
 * ServicesVO
 */
export interface DescribeMcpServersResponseVO {
    /**
     * 条目
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Total?: number;
    /**
     * 数组
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Items?: Array<DescribeMcpServerResponseVO>;
}
/**
 * ModifyModelService请求参数结构体
 */
export interface ModifyModelServiceRequest {
    /**
     * <p>实例</p>
     */
    InstanceID: string;
    /**
     * <p>模型服务ID</p>
     */
    ID: string;
    /**
     * <p>模型服务名称</p>
     */
    Name?: string;
    /**
     * <p>描述</p>
     */
    Description?: string;
    /**
     * <p>模板模型列表</p>
     */
    TargetModels?: Array<TargetModelDTO>;
    /**
     * <p>是否开启限流</p>
     */
    InvokeLimitConfigStatus?: boolean;
    /**
     * <p>限流配置</p>
     */
    InvokeLimitConfig?: InvokeLimitConfigDTO;
    /**
     * <p>是否开启token控制</p>
     */
    TokenLimitStatus?: boolean;
    /**
     * <p>token控制</p>
     */
    TokenLimitConfig?: TokenLimitConfigDTO;
    /**
     * <p>是否开启内容安全</p>
     */
    TmsStatus?: boolean;
    /**
     * <p>内容安全配置</p>
     */
    TmsConfig?: TmsConfigDTO;
    /**
     * <p>是否开启IP白名单</p>
     */
    IpWhiteStatus?: boolean;
    /**
     * <p>IP白名单</p>
     */
    IpWhiteList?: Array<string>;
    /**
     * <p>是否开启IP黑名单</p>
     */
    IpBlackStatus?: boolean;
    /**
     * <p>IP黑名单</p>
     */
    IpBlackList?: Array<string>;
    /**
     * <p>插件配置</p>
     */
    PluginConfigs?: Array<PluginConfigDTO>;
    /**
     * <p>超时配置，秒</p>
     */
    Timeout?: number;
    /**
     * <p>是否开启提示词安全检测配置</p>
     */
    PromptModerateStatus?: boolean;
    /**
     * <p>提示词安全检测配置</p>
     */
    PromptModerateConfig?: PromptModerateConfigDTO;
    /**
     * <p>是否开启敏感数据检测</p>
     */
    SensitiveDataCheckStatus?: boolean;
    /**
     * <p>敏感数据检测配置</p>
     */
    SensitiveDataCheckConfig?: SensitiveDataCheckConfigDTO;
    /**
     * <p>负载方式</p><p>枚举值：</p><ul><li>random： 随机</li><li>consistentHash： 会话保持</li></ul>
     */
    TargetSelect?: string;
    /**
     * <p>会话判断方式</p><p>枚举值：</p><ul><li>fromClientIP： 从客户端IP判断</li><li>fromHeader： 从请求header判断</li><li>autoDetect： 自动探测</li></ul>
     */
    FindHostKeyMethod?: string;
    /**
     * <p>会话判断header名称</p>
     */
    HostKeyHeaderName?: string;
    /**
     * <p>是否开启备份模型</p>
     */
    FallbackStatus?: boolean;
    /**
     * <p>备份模型</p>
     */
    FallbackModels?: Array<TargetModelDTO>;
    /**
     * <p>模型类型</p>
     */
    ModelProtocol?: string;
    /**
     * <p>自定义模型协议配置</p>
     */
    RawCustomModelProtocolConfig?: string;
}
/**
 * DescribeService返回参数结构体
 */
export interface DescribeServiceResponse {
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * ModifyModel返回参数结构体
 */
export interface ModifyModelResponse {
    /**
     * <p>结果集</p>
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * 向导模式请求参数
 */
export interface ServiceDatabaseReqParam {
    /**
     * <p>表字段名</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    FieldName?: string;
    /**
     * <p>操作符</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Operator?: string;
    /**
     * <p>参数名/常量</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Val?: string;
    /**
     * <p>参数类型</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ValType?: string;
    /**
     * <p>内部字段</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    InternalField?: boolean;
}
/**
 * CreateAgentAppServices返回参数结构体
 */
export interface CreateAgentAppServicesResponse {
    /**
     * <p>app id</p>
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * CreateAgentAppModelServices请求参数结构体
 */
export interface CreateAgentAppModelServicesRequest {
    /**
     * 实例ID
     */
    InstanceID: string;
    /**
     * 应用ID
     */
    ID: string;
    /**
     * 关联的model service
     */
    ModelServices: Array<AgentAppModelServiceDTO>;
}
/**
 * 查询模型列表的响应
 */
export interface DescribeModelServicesResponseVO {
    /**
     * 条目
     */
    Total?: number;
    /**
     * 列表
     */
    Items?: Array<DescribeModelServiceResponseVO>;
}
/**
 * DeleteMcpServer返回参数结构体
 */
export interface DeleteMcpServerResponse {
    /**
     * mcp server ID
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * ModifyService返回参数结构体
 */
export interface ModifyServiceResponse {
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * DescribeAgentCredentials请求参数结构体
 */
export type DescribeAgentCredentialsRequest = null;
/**
 * 创建Agent应用的返回值，根据创建的AuthType，返回ApiKey或者SecretKey
 */
export interface CreateAgentAppResp {
    /**
     * app id
     */
    ID?: string;
    /**
     * 如果authType为apiKey时，返回该字段
     */
    ApiKey?: string;
    /**
     * 如果authType为secretKey时，返回该字段
     */
    SecretKey?: string;
    /**
     * 如果authType为secretKey时，返回该字段
     */
    SecretID?: string;
}
/**
 * CreateMcpServer返回参数结构体
 */
export interface CreateMcpServerResponse {
    /**
     * <p>mcp server ID</p>
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * 匹配条件请求参数
 */
export interface SimpleCondition {
    /**
     * <p>字段名</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Key?: string;
    /**
     * <p>匹配方式: eq 等于;ne 不等于;regex 正则;</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Condition?: string;
    /**
     * <p>字段值 或正则表达式</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Value?: string;
}
/**
 * DescribeAgentApps请求参数结构体
 */
export interface DescribeAgentAppsRequest {
    /**
     * 分页大小
     */
    Limit: number;
    /**
     * 分页偏移量
     */
    Offset?: number;
    /**
     * 服务ID数组
     */
    IDs?: Array<string>;
    /**
     * 实例ID
     */
    InstanceID?: string;
    /**
     * notID列表
     */
    NotIDs?: Array<string>;
    /**
     * 状态：normal正常状态，disabled下线状态
     */
    Status?: string;
    /**
     * 关键词
     */
    Keyword?: string;
    /**
     * 认证类型：apiKey，secretKey
     */
    AuthType?: string;
    /**
     * 排序
     */
    Sort?: DescribeAgentAppsSortDTO;
    /**
     * 凭据ID
     */
    AgentCredentialID?: string;
}
/**
 * 工具配置响应
 */
export interface ToolConfigVO {
    /**
     * 工具名称
     */
    ToolName?: string;
    /**
     * 是否开启限流配置
     */
    InvokeLimitConfigStatus?: boolean;
    /**
     * 限流配置
     */
    InvokeLimitConfig?: InvokeLimitConfigDTO;
    /**
     * 绑定安全规则（响应）
     */
    McpSecurityRules?: Array<BindMcpSecurityRuleVO>;
}
/**
 * DescribeAgentApp返回参数结构体
 */
export interface DescribeAgentAppResponse {
    /**
     * app详情
     */
    Data?: DescribeAgentAppResp;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * ResultIDVO
 */
export interface ResultIDVO {
    /**
     * 对象ID
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ID?: string;
}
/**
 * 限流窗口配置
 */
export interface LimitWindowsDTO {
    /**
     * 时间窗口，分钟
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Interval?: number;
    /**
     * 累计上限，k
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Limit?: number;
}
/**
 * DescribeModel请求参数结构体
 */
export interface DescribeModelRequest {
    /**
     * 实例
     */
    InstanceID: string;
    /**
     * 模型ID
     */
    ID: string;
}
/**
 * 凭证内容头
 */
export interface AgentCredentialContentHeaderDTO {
    /**
     * 凭据header key
     */
    Key?: string;
    /**
     * 凭据header value
     */
    Value?: string;
}
/**
 * 敏感数据检测配置
 */
export interface SensitiveDataCheckConfigDTO {
    /**
     * <p>执行动作</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Action?: string;
    /**
     * <p>响应拦截内容</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    InterceptMessage?: string;
    /**
     * <p>检测项</p><p>枚举值：</p><ul><li>birthday： 生日</li><li>email： 邮箱</li><li>identity_number： 身份证</li><li>phone_number： 电话号码</li><li>secret： 秘钥</li><li>password： 密码</li><li>private_key： 私钥</li></ul>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    CheckItems?: Array<string>;
    /**
     * <p>检测上下文</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ContextScope?: string;
}
/**
 * BindMcpSecurityRuleVO，重新定义了之前的McpSecurityRulesVO
 */
export interface BindMcpSecurityRuleVO {
    /**
     * 规则ID
     */
    ID?: string;
    /**
     * 规则类型
     */
    Type?: string;
    /**
     * 规则名称
     */
    Name?: string;
    /**
     * 规则描述
     */
    Description?: string;
    /**
     * 风险等级
     */
    RiskLevel?: string;
    /**
     * 版本号
     */
    VersionNumber?: string;
    /**
     * 当前选择的处置动作
     */
    Act?: string;
    /**
     * 支持的处置动作
     */
    SupportActs?: Array<string>;
    /**
     * 内容类型
     */
    BodyType?: string;
    /**
     * icon类型
     */
    IconType?: string;
}
/**
 * 绑定的安全规则列表
 */
export interface McpSecurityRulesVO {
    /**
     * 规则ID
     */
    ID?: string;
    /**
     * 规则类型
     */
    Type?: string;
    /**
     * 规则名称
     */
    Name?: string;
    /**
     * 规则描述
     */
    Description?: string;
    /**
     * 风险等级
     */
    RiskLevel?: string;
    /**
     * 版本号
     */
    VersionNumber?: string;
    /**
     * 状态开关
     */
    Status?: string;
    /**
     * 当前选择的处置动作
     */
    Act?: string;
    /**
     * 支持的处置动作
     */
    SupportActs?: Array<string>;
    /**
     * 内容类型
     */
    BodyType?: string;
    /**
     * icon类型
     */
    IconType?: string;
}
/**
 * DeleteAgentAppModelServices返回参数结构体
 */
export interface DeleteAgentAppModelServicesResponse {
    /**
     * app id
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * CreateService返回参数结构体
 */
export interface CreateServiceResponse {
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * CreateModel返回参数结构体
 */
export interface CreateModelResponse {
    /**
     * <p>结果集</p>
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * 查询模型服务列表的排序
 */
export interface DescribeModelServicesSort {
    /**
     * 创建时间
     */
    CreateTime?: number;
    /**
     * 最后修改时间
     */
    LastUpdateTime?: number;
    /**
     * 模型名称
     */
    Name?: number;
    /**
     * 状态
     */
    Status?: number;
}
/**
 * agentApp查询排序
 */
export interface DescribeAgentAppsSortDTO {
    /**
     * 创建时间
     */
    CreateTime?: number;
    /**
     * 修改时间
     */
    UpdateTime?: number;
    /**
     * 名称
     */
    Name?: number;
    /**
     * 状态
     */
    Status?: number;
}
/**
 * DescribeMcpServers请求参数结构体
 */
export interface DescribeMcpServersRequest {
    /**
     * 分页大小
     */
    Limit: number;
    /**
     * 分页偏移量
     */
    Offset?: number;
    /**
     * 实例ID
     */
    InstanceID?: string;
    /**
     * 状态数组：normal正常状态，disabled下线状态
     */
    Statuses?: Array<string>;
    /**
     * 关键词
     */
    Keyword?: string;
    /**
     * 服务ID数组
     */
    IDs?: Array<string>;
    /**
     * 模式：proxy代理模式； wrap封装模式；
     */
    Modes?: Array<string>;
    /**
     * 绑定的安全规则ID
     */
    McpSecurityRuleID?: string;
    /**
     * 绑定安全规则的处置动作（填写时McpSecurityRuleID得必填）
     */
    McpSecurityRuleAct?: string;
    /**
     * 已绑定插件id
     */
    PluginID?: string;
}
/**
 * DescribeAgentApps返回参数结构体
 */
export interface DescribeAgentAppsResponse {
    /**
     * app列表
     */
    Data?: DescribeAgentAppsResp;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * CreateService请求参数结构体
 */
export type CreateServiceRequest = null;
/**
 * ModifyAgentApp返回参数结构体
 */
export interface ModifyAgentAppResponse {
    /**
     * <p>app id</p>
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * DescribeService请求参数结构体
 */
export interface DescribeServiceRequest {
    /**
     * 实例ID
     */
    InstanceID?: string;
    /**
     * 业务ID
     */
    ID?: string;
}
/**
 * DescribeModelService返回参数结构体
 */
export interface DescribeModelServiceResponse {
    /**
     * 结果集
     */
    Data?: DescribeModelServiceResponseVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * 凭证内容
 */
export interface AgentCredentialContentDTO {
    /**
     * 如果认证类型为sts时，该项必填
     */
    STSSystem?: string;
    /**
     * 如果认证类型为sts时，该项必填
     */
    STSService?: string;
    /**
     * 如果认证类型为reqKey时，该项必填
     */
    Headers?: Array<AgentCredentialContentHeaderDTO>;
}
/**
 * 后端服务组DTO
 */
export interface TargetServerGroupDTO {
    /**
     * <p>后端服务组ID</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ID?: string;
    /**
     * <p>名称</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Name?: string;
    /**
     * <p>目标服务器列表</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetHosts?: Array<TargetHostDTO>;
    /**
     * <p>目标Host类型 0 默认 1 vpc</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetHostType?: number;
    /**
     * <p>关联的服务数量</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ServiceCount?: number;
    /**
     * <p>创建时间</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    CreateTime?: string;
}
/**
 * DescribeAgentCredential返回参数结构体
 */
export interface DescribeAgentCredentialResponse {
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * Mcp的访问URL
 */
export interface McpUrlObj {
    /**
     * sse访问URL
     */
    SSEUrl?: string;
    /**
     * streamable访问URL
     */
    StreamAbleUrl?: string;
}
/**
 * ModifyAgentAppModelServices请求参数结构体
 */
export interface ModifyAgentAppModelServicesRequest {
    /**
     * 实例ID
     */
    InstanceID: string;
    /**
     * 应用ID
     */
    ID: string;
    /**
     * 关联的model service
     */
    ModelServices: Array<AgentAppModelServiceDTO>;
}
/**
 * DescribeModelService请求参数结构体
 */
export interface DescribeModelServiceRequest {
    /**
     * 实例
     */
    InstanceID: string;
    /**
     * 模型服务ID
     */
    ID: string;
}
/**
 * DeleteAgentAppMcpServers请求参数结构体
 */
export interface DeleteAgentAppMcpServersRequest {
    /**
     * 实例ID
     */
    InstanceID: string;
    /**
     * 应用ID
     */
    ID: string;
    /**
     * mcp server id数组
     */
    McpServerIDs: Array<string>;
}
/**
 * 查询app详情响应
 */
export interface DescribeAgentAppResp {
    /**
     * <p>租户appID</p>
     */
    AppID?: number;
    /**
     * <p>租户ID</p>
     */
    Uin?: string;
    /**
     * <p>实例ID</p>
     */
    InstanceID?: string;
    /**
     * <p>应用ID</p>
     */
    ID?: string;
    /**
     * <p>名称</p>
     */
    Name?: string;
    /**
     * <p>描述</p>
     */
    Description?: string;
    /**
     * <p>状态</p>
     */
    Status?: string;
    /**
     * <p>创建时间</p>
     */
    CreateTime?: string;
    /**
     * <p>修改时间</p>
     */
    UpdateTime?: string;
    /**
     * <p>认证类型</p>
     */
    AuthType?: string;
    /**
     * <p>apiKeys列表，脱敏</p>
     */
    ApiKeys?: Array<string>;
    /**
     * <p>secretKey列表，脱敏</p>
     */
    SecretKeys?: Array<AgentAppSecretKeyVO>;
    /**
     * <p>OAuth2 Resource Server ID</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    OAuth2ResourceServerID?: string;
    /**
     * <p>绑定mcpServer数量</p>
     */
    McpServersNum?: number;
    /**
     * <p>绑定的模型服务数量</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ModelServicesNum?: number;
    /**
     * <p>API认证列表</p>
     */
    ConnectorIDs?: Array<string>;
    /**
     * <p>关联API数量</p>
     */
    ServicesNum?: number;
}
/**
 * CreateMcpServer请求参数结构体
 */
export interface CreateMcpServerRequest {
    /**
     * <p>模式：proxy代理模式； wrap封装模式；</p>
     */
    Mode: string;
    /**
     * <p>版本号：2024-11-05 2025-03-26</p>
     */
    McpVersion: string;
    /**
     * <p>实例ID</p>
     */
    InstanceID: string;
    /**
     * <p>名称</p>
     */
    Name: string;
    /**
     * <p>描述</p>
     */
    Description: string;
    /**
     * <p>封装服务列表</p>
     */
    WrapServices?: Array<string>;
    /**
     * <p>负载方式，robin random consistentHash</p>
     */
    TargetSelect?: string;
    /**
     * <p>目标服务器</p>
     */
    TargetHosts?: Array<TargetHostDTO>;
    /**
     * <p>后端协议：http https</p>
     */
    HttpProtocolType?: string;
    /**
     * <p>证书检查</p>
     */
    CheckTargetCertsError?: boolean;
    /**
     * <p>目标路径</p>
     */
    TargetPath?: string;
    /**
     * <p>流量控制开启状态</p>
     */
    InvokeLimitConfigStatus?: boolean;
    /**
     * <p>流量控制配置</p>
     */
    InvokeLimitConfig?: InvokeLimitConfigDTO;
    /**
     * <p>IP白名单开启状态</p>
     */
    IpWhiteStatus?: boolean;
    /**
     * <p>IP白名单配置</p>
     */
    IpWhiteConfig?: IpConfig;
    /**
     * <p>IP黑名单开启状态</p>
     */
    IpBlackStatus?: boolean;
    /**
     * <p>IP黑名单配置</p>
     */
    IpBlackConfig?: IpConfig;
    /**
     * <p>自定义host</p>
     */
    CustomHttpHost?: string;
    /**
     * <p>Http 请求host类型：useRequestHost 保持源请求；host targetHost 修正为源站host；  customHost 自定义host</p>
     */
    HttpHostType?: string;
    /**
     * <p>请求的超时时间</p>
     */
    Timeout?: number;
    /**
     * <p>安全规则集</p>
     */
    McpSecurityRules?: Array<McpSecurityRule>;
    /**
     * <p>工具集配置（openapi时或许用的是）</p>
     */
    ToolConfigs?: Array<ToolConfigDTO>;
    /**
     * <p>封装的API分组ID</p>
     */
    WrapPaasID?: string;
    /**
     * <p>插件配置</p>
     */
    PluginConfigs?: Array<PluginConfigDTO>;
    /**
     * <p>是否忽略健康检查</p>
     */
    IgnoreHealthCheck?: boolean;
}
/**
 * DeleteModelService请求参数结构体
 */
export interface DeleteModelServiceRequest {
    /**
     * 实例
     */
    InstanceID: string;
    /**
     * 模型服务ID
     */
    ID: string;
}
/**
 * DescribeServices请求参数结构体
 */
export type DescribeServicesRequest = null;
/**
 * DeleteAgentApp请求参数结构体
 */
export interface DeleteAgentAppRequest {
    /**
     * 实例ID
     */
    InstanceID: string;
    /**
     * 应用ID
     */
    ID: string;
}
/**
 * ModifyService请求参数结构体
 */
export interface ModifyServiceRequest {
    /**
     * <p>实例</p>
     */
    InstanceID?: string;
    /**
     * <p>名称</p>
     */
    Name?: string;
    /**
     * <p>里约应用ID</p>
     * @deprecated
     */
    PaasID?: string;
    /**
     * <p>描述</p>
     */
    Description?: string;
    /**
     * <p>标签</p>
     */
    LabelIDs?: Array<string>;
    /**
     * <p>目录</p>
     */
    CategoryIDs?: Array<string>;
    /**
     * <p>鉴权方式</p>
     * @deprecated
     */
    AuthType?: string;
    /**
     * <p>签名</p>
     * @deprecated
     */
    SignType?: string;
    /**
     * <p>登录方式</p>
     * @deprecated
     */
    LoginTypes?: Array<string>;
    /**
     * <p>负载方式</p>
     */
    TargetSelect?: string;
    /**
     * <p>公开路径</p>
     */
    PubPath?: string;
    /**
     * <p>请求方法</p>
     */
    RequestMethod?: string;
    /**
     * <p>是否https</p>
     */
    HttpProtocolType?: string;
    /**
     * <p>证书检查</p>
     */
    CheckTargetCertsError?: boolean;
    /**
     * <p>http协议类型</p>
     */
    HttpProtocolVersion?: string;
    /**
     * <p>版本号</p>
     */
    Versions?: Array<VersionDTO>;
    /**
     * <p>目标路径</p>
     */
    TargetPath?: string;
    /**
     * <p>入参</p>
     */
    RequestParamsValidatorStatus?: boolean;
    /**
     * <p>入参</p>
     */
    RequestParamsValidatorJsonInfoT?: string;
    /**
     * <p>出参</p>
     */
    ResponseParamsValidatorStatus?: boolean;
    /**
     * <p>出参</p>
     */
    ResponseParamsValidatorJsonInfoT?: string;
    /**
     * <p>流量控制</p>
     */
    InvokeLimitConfigStatus?: boolean;
    /**
     * <p>流量控制</p>
     */
    InvokeLimitConfig?: InvokeLimitConfigDTO;
    /**
     * <p>健康检查</p>
     */
    HealthCheckStatus?: boolean;
    /**
     * <p>健康检查</p>
     */
    HealthCheckConfig?: HealthCheckConfigDTO;
    /**
     * <p>格式转换</p>
     */
    SourceTypeStatus?: boolean;
    /**
     * <p>格式转换</p>
     */
    SourceTypeConfig?: SourceTypeConfigDTO;
    /**
     * <p>IP白名单</p>
     */
    IpWhiteStatus?: boolean;
    /**
     * <p>IP白名单</p>
     */
    IpWhiteList?: Array<string>;
    /**
     * <p>IP黑名单</p>
     */
    IpBlackStatus?: boolean;
    /**
     * <p>IP黑名单</p>
     */
    IpBlackList?: Array<string>;
    /**
     * <p>插件</p>
     */
    PluginConfigs?: Array<PluginConfigDTO>;
    /**
     * <p>服务ID</p>
     */
    ID?: string;
}
/**
 * DeleteMcpServer请求参数结构体
 */
export interface DeleteMcpServerRequest {
    /**
     * 实例ID
     */
    InstanceID: string;
    /**
     * mcp server ID
     */
    ID: string;
}
/**
 * DeleteService返回参数结构体
 */
export interface DeleteServiceResponse {
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * ModifyModel请求参数结构体
 */
export interface ModifyModelRequest {
    /**
     * <p>实例</p>
     */
    InstanceID: string;
    /**
     * <p>模型ID</p>
     */
    ID: string;
    /**
     * <p>模型名称</p>
     */
    Name?: string;
    /**
     * <p>协议类型：http/https</p>
     */
    HttpProtocolType?: string;
    /**
     * <p>目标路径</p>
     */
    TargetPath?: string;
    /**
     * <p>目标服务器</p>
     */
    TargetHosts?: Array<TargetHostDTO>;
    /**
     * <p>凭据ID</p>
     */
    CredentialID?: string;
    /**
     * <p>https时，是否检查证书合法</p>
     */
    CheckTargetCertsError?: boolean;
    /**
     * <p>http协议版本：1.1/2.0</p>
     */
    HttpProtocolVersion?: string;
    /**
     * <p>model ID</p>
     */
    ModelID?: string;
    /**
     * <p>描述</p>
     */
    Description?: string;
}
/**
 * HealthCheckConfigDTO
 */
export interface HealthCheckConfigDTO {
    /**
     * 健康检查路径
  注意：此字段可能返回 null，表示取不到有效值。
     */
    HealthCheckPath?: string;
    /**
     * 状态码
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ValidHealthCheckStatusCode?: Array<number | bigint>;
    /**
     * 请求的超时时间
  注意：此字段可能返回 null，表示取不到有效值。
     */
    HealthCheckTimeout?: number;
}
/**
 * 凭据详情响应
 */
export interface DescribeAgentCredentialResp {
    /**
     * <p>租户应用ID</p>
     */
    AppID?: number;
    /**
     * <p>租户ID</p>
     */
    Uin?: string;
    /**
     * <p>实例ID</p>
     */
    InstanceID?: string;
    /**
     * <p>凭据ID</p>
     */
    ID?: string;
    /**
     * <p>凭据名称</p>
     */
    Name?: string;
    /**
     * <p>状态</p>
     */
    Status?: string;
    /**
     * <p>关联应用数</p>
     * @deprecated
     */
    RelateAgentAppNum?: number;
    /**
     * <p>关联mcp数</p>
     */
    RelateMcpServerNum?: number;
    /**
     * <p>关联模型数</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    RelateModelNum?: number;
    /**
     * <p>关联服务数</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    RelateServiceNum?: number;
    /**
     * <p>凭据内容</p>
     */
    Content?: AgentCredentialContentDTO;
    /**
     * <p>创建时间</p>
     */
    CreateTime?: string;
    /**
     * <p>修改时间</p>
     */
    LastUpdateTime?: string;
    /**
     * <p>类型</p>
     */
    Type?: string;
}
/**
 * CreateAgentAppModelServices返回参数结构体
 */
export interface CreateAgentAppModelServicesResponse {
    /**
     * app id
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * DescribeAgentAppMcpServers返回参数结构体
 */
export interface DescribeAgentAppMcpServersResponse {
    /**
     * 列表
     */
    Data?: DescribeAgentAppMcpServersResp;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * DescribeModelServices请求参数结构体
 */
export interface DescribeModelServicesRequest {
    /**
     * <p>实例</p>
     */
    InstanceID: string;
    /**
     * <p>分页参数</p>
     */
    Offset?: number;
    /**
     * <p>分页限制</p>
     */
    Limit?: number;
    /**
     * <p>ID列表</p>
     */
    IDs?: Array<string>;
    /**
     * <p>排除的ID列表</p>
     */
    NotIDs?: Array<string>;
    /**
     * <p>状态：normal，disabled</p>
     */
    Status?: string;
    /**
     * <p>关键词</p>
     */
    Keyword?: string;
    /**
     * <p>模型ID</p>
     */
    ModelID?: string;
    /**
     * <p>排序</p>
     */
    Sort?: DescribeModelServicesSort;
    /**
     * <p>模型类型，OpenAI或Anthropic</p>
     */
    ModelProtocol?: string;
}
/**
 * ModifyAgentAppModelServices返回参数结构体
 */
export interface ModifyAgentAppModelServicesResponse {
    /**
     * app id
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * 内容安全配置
 */
export interface TmsConfigDTO {
    /**
     * <p>检测范围,请求/响应</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Scope?: Array<string>;
    /**
     * <p>检测形式</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Mode?: string;
    /**
     * <p>执行动作</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Action?: string;
    /**
     * <p>合并请求检测event数，联动Mode字段sync</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    MergeCount?: number;
    /**
     * <p>风控策略</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    BizType?: string;
    /**
     * <p>响应拦截内容</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    InterceptMessage?: string;
    /**
     * <p>检测上下文</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ContextScope?: string;
}
/**
 * 应用绑定模型服务入参
 */
export interface AgentAppModelServiceDTO {
    /**
     * 模型服务ID
     */
    ID?: string;
    /**
     * 是否开启流量控制
     */
    InvokeLimitConfigStatus?: boolean;
    /**
     * 流量控制
     */
    InvokeLimitConfig?: InvokeLimitConfigDTO;
    /**
     * 是否开启token控制
     */
    TokenLimitStatus?: boolean;
    /**
     * token控制
     */
    TokenLimitConfig?: TokenLimitConfigDTO;
}
/**
 * mcp工具
 */
export interface McpTool {
    /**
     * 名称
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Name?: string;
    /**
     * 描述
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Description?: string;
    /**
     * 入参参数
  注意：此字段可能返回 null，表示取不到有效值。
     */
    InputSchema?: McpInputOutSchema;
    /**
     * 注释
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Annotations?: McpToolAnnotation;
    /**
     * 出参参数
  注意：此字段可能返回 null，表示取不到有效值。
     */
    OutputSchema?: McpInputOutSchema;
}
/**
 * DescribeMcpServer请求参数结构体
 */
export interface DescribeMcpServerRequest {
    /**
     * 实例ID
     */
    InstanceID: string;
    /**
     * mcp server ID
     */
    ID: string;
}
/**
 * ip黑白名单配置
 */
export interface IpConfig {
    /**
     * ip数组
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Ips?: Array<string>;
    /**
     * 生效类型
  注意：此字段可能返回 null，表示取不到有效值。
     */
    EffectType?: string;
    /**
     * 生效时间
  注意：此字段可能返回 null，表示取不到有效值。
     */
    EffectTimes?: Array<StartEndTime>;
    /**
     * 备注
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Comment?: string;
}
/**
 * ServiceVO
 */
export interface ServiceVO {
    /**
     * <p>实例</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    InstanceID?: string;
    /**
     * <p>名称</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Name?: string;
    /**
     * <p>里约应用ID</p>
  注意：此字段可能返回 null，表示取不到有效值。
     * @deprecated
     */
    PaasID?: string;
    /**
     * <p>描述</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Description?: string;
    /**
     * <p>标签</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    LabelIDs?: Array<string>;
    /**
     * <p>目录</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    CategoryIDs?: Array<string>;
    /**
     * <p>鉴权方式</p>
  注意：此字段可能返回 null，表示取不到有效值。
     * @deprecated
     */
    AuthType?: string;
    /**
     * <p>签名</p>
  注意：此字段可能返回 null，表示取不到有效值。
     * @deprecated
     */
    SignType?: string;
    /**
     * <p>登录方式</p>
  注意：此字段可能返回 null，表示取不到有效值。
     * @deprecated
     */
    LoginTypes?: Array<string>;
    /**
     * <p>负载方式</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetSelect?: string;
    /**
     * <p>公开路径</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    PubPath?: string;
    /**
     * <p>请求方法</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    RequestMethod?: string;
    /**
     * <p>目标服务器</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetHosts?: Array<TargetHostDTO>;
    /**
     * <p>是否https</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    HttpProtocolType?: string;
    /**
     * <p>证书检查</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    CheckTargetCertsError?: boolean;
    /**
     * <p>http协议类型</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    HttpProtocolVersion?: string;
    /**
     * <p>版本号</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Versions?: Array<VersionDTO>;
    /**
     * <p>目标路径</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetPath?: string;
    /**
     * <p>入参</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    RequestParamsValidatorStatus?: boolean;
    /**
     * <p>入参</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    RequestParamsValidatorJsonInfoT?: string;
    /**
     * <p>出参</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ResponseParamsValidatorStatus?: boolean;
    /**
     * <p>出参</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ResponseParamsValidatorJsonInfoT?: string;
    /**
     * <p>流量控制</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    InvokeLimitConfigStatus?: boolean;
    /**
     * <p>流量控制</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    InvokeLimitConfig?: InvokeLimitConfigDTO;
    /**
     * <p>健康检查</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    HealthCheckStatus?: boolean;
    /**
     * <p>健康检查</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    HealthCheckConfig?: HealthCheckConfigDTO;
    /**
     * <p>格式转换</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    SourceTypeStatus?: boolean;
    /**
     * <p>格式转换</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    SourceTypeConfig?: SourceTypeConfigDTO;
    /**
     * <p>是否开启Token限流</p>
  注意：此字段可能返回 null，表示取不到有效值。
     * @deprecated
     */
    TokenLimitStatus?: boolean;
    /**
     * <p>Token限流配置</p>
  注意：此字段可能返回 null，表示取不到有效值。
     * @deprecated
     */
    TokenLimitConfig?: TokenLimitConfigDTO;
    /**
     * <p>是否开启内容安全</p>
  注意：此字段可能返回 null，表示取不到有效值。
     * @deprecated
     */
    TmsStatus?: boolean;
    /**
     * <p>内容安全配置</p>
  注意：此字段可能返回 null，表示取不到有效值。
     * @deprecated
     */
    TmsConfig?: TmsConfigDTO;
    /**
     * <p>IP白名单</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    IpWhiteStatus?: boolean;
    /**
     * <p>IP白名单</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    IpWhiteList?: Array<string>;
    /**
     * <p>IP黑名单</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    IpBlackStatus?: boolean;
    /**
     * <p>IP黑名单</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    IpBlackList?: Array<string>;
    /**
     * <p>插件</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    PluginConfigs?: Array<PluginConfigDTO>;
    /**
     * <p>服务ID</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ID?: string;
    /**
     * <p>状态</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Status?: string;
    /**
     * <p>预览地址</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Url?: string;
    /**
     * <p>app</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    App?: IDNameVO;
    /**
     * <p>目录</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Catalogs?: Array<IDNameVO>;
    /**
     * <p>标签</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Labels?: Array<IDNameVO>;
    /**
     * <p>认证方式</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Logins?: Array<IDNameVO>;
    /**
     * <p>授权数</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    AuthAppNum?: number;
    /**
     * <p>创建时间</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    CreateTime?: string;
    /**
     * <p>最后修改时间</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    LastUpdateTime?: string;
    /**
     * <p>应用ID</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    AppID?: number;
    /**
     * <p>用户ID</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Uin?: string;
    /**
     * <p>域名</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Domain?: string;
    /**
     * <p>是否开启报文记录</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    OpenMessageLogStatus?: boolean;
    /**
     * <p>订阅页面的当前用户是否订阅了该API</p>
  注意：此字段可能返回 null，表示取不到有效值。
     * @deprecated
     */
    CurrPaasIDSubscriptionID?: string;
    /**
     * <p>目标服务类型 Restful Database Mock</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetServiceType?: string;
    /**
     * <p>SQL模板</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    SqlTemplate?: SqlTemplate;
    /**
     * <p>目标Host类型 0 默认 1 vpc</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetHostType?: number;
    /**
     * <p>后端服务类型 0 自定义 原始数据:ip/域名或vpc 1 后端服务 服务组</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetServiceHostType?: number;
    /**
     * <p>后端服务组ID</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetServerGroupID?: string;
    /**
     * <p>后端服务组</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetServerGroup?: TargetServerGroupDTO;
    /**
     * <p>自定义host</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    CustomHttpHost?: string;
    /**
     * <p>Http 请求host类型 useRequestHost 保持源请求host targetHost 修正为源站host  customHost 自定义host</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    HttpHostType?: string;
    /**
     * <p>mock响应状态码</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    MockStatusCode?: number;
    /**
     * <p>mock响应body</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    MockBody?: string;
    /**
     * <p>mock响应头</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    MockHeaders?: Array<FieldValueDTO>;
    /**
     * <p>路径匹配类型: prefix 前缀匹配(不送默认); absolute 绝对匹配; regex正则匹配;</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    PathMatchType?: string;
    /**
     * <p>自定义匹配条件</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    CustomMatch?: CustomMatch;
    /**
     * <p>请求的超时时间</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Timeout?: number;
    /**
     * <p>绑定的mcp server数量</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    McpServerNum?: number;
}
/**
 * ModifyAgentCredential返回参数结构体
 */
export interface ModifyAgentCredentialResponse {
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * 查询模型详情的响应
 */
export interface DescribeModelResponseVO {
    /**
     * <p>腾讯云AppID</p>
     */
    AppID?: number;
    /**
     * <p>腾讯云Uin</p>
     */
    Uin?: string;
    /**
     * <p>实例ID</p>
     */
    InstanceID?: string;
    /**
     * <p>模型ID</p>
     */
    ID?: string;
    /**
     * <p>模型名称</p>
     */
    Name?: string;
    /**
     * <p>凭据ID</p>
     */
    CredentialID?: string;
    /**
     * <p>凭据名称</p>
     */
    CredentialName?: string;
    /**
     * <p>http协议类型</p>
     */
    HttpProtocolType?: string;
    /**
     * <p>https时，是否校验目标证书</p>
     */
    CheckTargetCertsError?: boolean;
    /**
     * <p>http协议版本：1.1/2.0</p>
     */
    HttpProtocolVersion?: string;
    /**
     * <p>目标路径</p>
     */
    TargetPath?: string;
    /**
     * <p>目标器列表</p>
     */
    TargetHosts?: Array<TargetHostDTO>;
    /**
     * <p>被模型服务使用的个数</p>
     */
    ModelServiceCount?: number;
    /**
     * <p>创建时间</p>
     */
    CreateTime?: string;
    /**
     * <p>最后修改时间</p>
     */
    LastUpdateTime?: string;
    /**
     * <p>model ID</p>
     */
    ModelID?: string;
    /**
     * <p>描述</p>
     */
    Description?: string;
}
/**
 * DeleteAgentCredential请求参数结构体
 */
export type DeleteAgentCredentialRequest = null;
/**
 * ModifyModelService返回参数结构体
 */
export interface ModifyModelServiceResponse {
    /**
     * <p>结果集</p>
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * CreateAgentAppMcpServers请求参数结构体
 */
export interface CreateAgentAppMcpServersRequest {
    /**
     * 实例ID
     */
    InstanceID: string;
    /**
     * 应用ID
     */
    ID: string;
    /**
     * 关联的mcp server
     */
    McpServers: Array<AgentAppMcpServerDTO>;
}
/**
 * DescribeMcpServers返回参数结构体
 */
export interface DescribeMcpServersResponse {
    /**
     * mcp server列表
     */
    Data?: DescribeMcpServersResponseVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * ModifyAgentCredential请求参数结构体
 */
export type ModifyAgentCredentialRequest = null;
/**
 * CreateAgentApp请求参数结构体
 */
export interface CreateAgentAppRequest {
    /**
     * <p>实例ID</p>
     */
    InstanceID: string;
    /**
     * <p>名称</p>
     */
    Name: string;
    /**
     * <p>认证类型</p>
     */
    AuthType: string;
    /**
     * <p>OAuth2资源服务器ID</p>
     */
    OAuth2ResourceServerID?: string;
    /**
     * <p>描述</p>
     */
    Description?: string;
    /**
     * <p>API认证列表</p>
     */
    ConnectorIDs?: Array<string>;
}
/**
 * 结果ID数组
 */
export interface ResultIDsVO {
    /**
     * 结果ID数组
  注意：此字段可能返回 null，表示取不到有效值。
     */
    IDs?: Array<string>;
}
/**
 * 查询App列表响应
 */
export interface DescribeAgentAppsResp {
    /**
     * 条目总数
     */
    Total?: number;
    /**
     * 具体条目
     */
    Items?: Array<DescribeAgentAppResp>;
}
/**
 * CreateModelService返回参数结构体
 */
export interface CreateModelServiceResponse {
    /**
     * <p>结果集</p>
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * DescribeAgentCredentials返回参数结构体
 */
export interface DescribeAgentCredentialsResponse {
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * DeleteAgentAppMcpServers返回参数结构体
 */
export interface DeleteAgentAppMcpServersResponse {
    /**
     * app id
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * 提示词安全配置
 */
export interface PromptModerateConfigDTO {
    /**
     * <p>执行动作</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Action?: string;
    /**
     * <p>响应拦截内容</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    InterceptMessage?: string;
    /**
     * <p>检测上下文</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ContextScope?: string;
}
/**
 * DescribeAgentAppServices返回参数结构体
 */
export interface DescribeAgentAppServicesResponse {
    /**
     * <p>app id</p>
     */
    Data?: DescribeAgentAppServicesVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * TargetHostDTO
 */
export interface TargetHostDTO {
    /**
     * 服务器
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Host?: string;
    /**
     * 权重
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Rank?: number;
}
/**
 * DescribeModels请求参数结构体
 */
export interface DescribeModelsRequest {
    /**
     * 实例
     */
    InstanceID: string;
    /**
     * 分页参数
     */
    Offset?: number;
    /**
     * 分页限制
     */
    Limit?: number;
    /**
     * ID列表
     */
    IDs?: Array<string>;
    /**
     * 排除的ID列表
     */
    NotIDs?: Array<string>;
    /**
     * 凭据ID
     */
    CredentialID?: string;
    /**
     * 关键词
     */
    Keyword?: string;
    /**
     * 排序
     */
    Sort?: DescribeModelsSort;
}
/**
 * DescribeAgentCredential请求参数结构体
 */
export type DescribeAgentCredentialRequest = null;
/**
 * CreateModel请求参数结构体
 */
export interface CreateModelRequest {
    /**
     * <p>实例</p>
     */
    InstanceID: string;
    /**
     * <p>模型名称</p>
     */
    Name: string;
    /**
     * <p>协议类型：http/https</p>
     */
    HttpProtocolType: string;
    /**
     * <p>目标路径</p>
     */
    TargetPath: string;
    /**
     * <p>目标服务器</p>
     */
    TargetHosts: Array<TargetHostDTO>;
    /**
     * <p>凭据ID</p>
     */
    CredentialID?: string;
    /**
     * <p>https时，是否检查证书合法</p>
     */
    CheckTargetCertsError?: boolean;
    /**
     * <p>http协议版本：1.1/2.0</p>
     */
    HttpProtocolVersion?: string;
    /**
     * <p>model ID</p>
     */
    ModelID?: string;
    /**
     * <p>描述</p>
     */
    Description?: string;
}
/**
 * VersionDTO
 */
export interface VersionDTO {
    /**
     * Version版本
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Version?: string;
    /**
     * 目标路径
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetPath?: string;
}
/**
 * 匹配条件
 */
export interface CompoundCondition {
    /**
     * <p>是否启用</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Enable?: boolean;
    /**
     * <p>匹配信息</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Rules?: Array<SimpleCondition>;
}
/**
 * ServiceDatabaseOrderParam
 */
export interface ServiceDatabaseOrderParam {
    /**
     * <p>字段名称</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    FieldName?: string;
    /**
     * <p>排序 asc desc</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Order?: string;
}
/**
 * Agent应用关联的服务配置
 */
export interface AgentAppServiceDTO {
    /**
     * <p>ID</p>
     */
    ID?: string;
    /**
     * <p>是否限流</p>
     */
    InvokeLimitConfigStatus?: boolean;
    /**
     * <p>限流配置</p>
     */
    InvokeLimitConfig?: InvokeLimitConfigDTO;
    /**
     * <p>是否要认证</p>
     */
    NeedAuth?: boolean;
    /**
     * <p>凭据ID</p>
     */
    AgentCredentialID?: string;
}
/**
 * CreateAgentCredential请求参数结构体
 */
export type CreateAgentCredentialRequest = null;
/**
 * DeleteAgentAppModelServices请求参数结构体
 */
export interface DeleteAgentAppModelServicesRequest {
    /**
     * 实例ID
     */
    InstanceID: string;
    /**
     * 应用ID
     */
    ID: string;
    /**
     * 关联的model service id
     */
    ModelServiceIDs: Array<string>;
}
/**
 * DeleteAgentAppServices返回参数结构体
 */
export interface DeleteAgentAppServicesResponse {
    /**
     * <p>app id</p>
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * CreateAgentAppMcpServers返回参数结构体
 */
export interface CreateAgentAppMcpServersResponse {
    /**
     * app id
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * DescribeServices返回参数结构体
 */
export interface DescribeServicesResponse {
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * ModifyMcpServer请求参数结构体
 */
export interface ModifyMcpServerRequest {
    /**
     * <p>mcp server ID</p>
     */
    ID: string;
    /**
     * <p>模式：proxy代理模式； wrap封装模式；</p>
     */
    Mode: string;
    /**
     * <p>版本号：2024-11-05 2025-03-26</p>
     */
    McpVersion: string;
    /**
     * <p>实例ID</p>
     */
    InstanceID: string;
    /**
     * <p>名称</p>
     */
    Name: string;
    /**
     * <p>描述</p>
     */
    Description?: string;
    /**
     * <p>封装服务列表</p>
     */
    WrapServices?: Array<string>;
    /**
     * <p>负载方式，robin random consistentHash</p>
     */
    TargetSelect?: string;
    /**
     * <p>目标服务器</p>
     */
    TargetHosts?: Array<TargetHostDTO>;
    /**
     * <p>后端协议：http https</p>
     */
    HttpProtocolType?: string;
    /**
     * <p>证书检查</p>
     */
    CheckTargetCertsError?: boolean;
    /**
     * <p>目标路径</p>
     */
    TargetPath?: string;
    /**
     * <p>流量控制开启状态</p>
     */
    InvokeLimitConfigStatus?: boolean;
    /**
     * <p>流量控制配置</p>
     */
    InvokeLimitConfig?: InvokeLimitConfigDTO;
    /**
     * <p>IP白名单开启状态</p>
     */
    IpWhiteStatus?: boolean;
    /**
     * <p>IP白名单配置</p>
     */
    IpWhiteConfig?: IpConfig;
    /**
     * <p>IP黑名单开启状态</p>
     */
    IpBlackStatus?: boolean;
    /**
     * <p>IP黑名单配置</p>
     */
    IpBlackConfig?: IpConfig;
    /**
     * <p>目标Host类型 0 默认 1 vpc</p>
     */
    TargetHostType?: number;
    /**
     * <p>自定义host</p>
     */
    CustomHttpHost?: string;
    /**
     * <p>Http 请求host类型：useRequestHost 保持源请求；host targetHost 修正为源站host； customHost 自定义host</p>
     */
    HttpHostType?: string;
    /**
     * <p>请求的超时时间</p>
     */
    Timeout?: number;
    /**
     * <p>安全规则集</p>
     */
    McpSecurityRules?: Array<McpSecurityRule>;
    /**
     * <p>工具集配置（openapi可能会用到）</p>
     */
    ToolConfigs?: Array<ToolConfigDTO>;
    /**
     * <p>封装的API分组ID</p>
     */
    WrapPaasID?: string;
    /**
     * <p>插件配置</p>
     */
    PluginConfigs?: Array<PluginConfigDTO>;
    /**
     * <p>是否忽略健康检查</p>
     */
    IgnoreHealthCheck?: boolean;
}
/**
 * DescribeModel返回参数结构体
 */
export interface DescribeModelResponse {
    /**
     * 结果集
     */
    Data?: DescribeModelResponseVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * DescribeAgentAppMcpServers请求参数结构体
 */
export interface DescribeAgentAppMcpServersRequest {
    /**
     * 分页大小
     */
    Limit: number;
    /**
     * 分页偏移量
     */
    Offset?: number;
    /**
     * 实例ID
     */
    InstanceID?: string;
    /**
     * 应用ID
     */
    AgentAppIDs?: Array<string>;
    /**
     * 关联的mcp
     */
    McpServerIDs?: Array<string>;
    /**
     * 凭据ID
     */
    AgentCredentialIDs?: Array<string>;
    /**
     * 关键词
     */
    Keyword?: string;
}
/**
 * 应用服务查询
 */
export interface DescribeAgentAppServicesVO {
    /**
     * <p>总数</p>
     */
    Total?: number;
    /**
     * <p>数据列表</p>
     */
    Items?: Array<AgentAppServiceVO>;
}
/**
 * 关联的mcp服务配置
 */
export interface AgentAppMcpServerDTO {
    /**
     * mcp server id
     */
    ID: string;
    /**
     * 是否需要鉴权
  注意：此字段可能返回 null，表示取不到有效值。
     */
    NeedAuth?: boolean;
    /**
     * 凭据代填的ID
  注意：此字段可能返回 null，表示取不到有效值。
     */
    AgentCredentialID?: string;
    /**
     * 应用为OAuth2认证时，sse模式请求mcp时的资源标识
  注意：此字段可能返回 null，表示取不到有效值。
     */
    SSEResourceIdentifier?: string;
    /**
     * 应用为OAuth2认证时，streamable模式请求mcp时的资源标识
  注意：此字段可能返回 null，表示取不到有效值。
     */
    StreamableResourceIdentifier?: string;
}
/**
 * 模板模型
 */
export interface TargetModelDTO {
    /**
     * 模型ID
     */
    ID?: string;
    /**
     * 匹配名称
     */
    Name?: string;
    /**
     * 权重
     */
    Rank?: number;
}
/**
 * Token限流配置
 */
export interface TokenLimitConfigDTO {
    /**
     * <p>限流类型</p><p>枚举值：</p><ul><li>minute： 时间窗口</li><li>day： 自然日</li><li>month： 自然月</li></ul>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Type?: string;
    /**
     * <p>单次请求上限，k</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    LimitRequestBody?: number;
    /**
     * <p>累次token总量消耗上限</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    LimitWindows?: Array<LimitWindowsDTO>;
}
/**
 * SqlTemplate SQL模板
 */
export interface SqlTemplate {
    /**
     * <p>配置方式  script  脚本 wizard 向导</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    DbConfigMode?: string;
    /**
     * <p>数据源ID</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    DataSourceID?: string;
    /**
     * <p>Sql代码</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Sql?: string;
    /**
     * <p>向导模式配置</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    WizardConfig?: WizardConfig;
}
/**
 * 查询App mcpServer绑定列表响应
 */
export interface DescribeAgentAppMcpServersResp {
    /**
     * 条目总数
     */
    Total?: number;
    /**
     * 具体条目
     */
    Items?: Array<AgentAppMcpServerVO>;
}
/**
 * 应用API详情
 */
export interface AgentAppServiceVO {
    /**
     * <p>ID</p>
     */
    ID?: string;
    /**
     * <p>应用ID</p>
     */
    AgentAppID?: string;
    /**
     * <p>服务ID</p>
     */
    ServiceID?: string;
    /**
     * <p>是否限流</p>
     */
    InvokeLimitConfigStatus?: boolean;
    /**
     * <p>限流配置</p>
     */
    InvokeLimitConfig?: InvokeLimitConfigDTO;
    /**
     * <p>服务详情</p>
     */
    ServiceVO?: ServiceVO;
    /**
     * <p>关联时间</p>
     */
    RelateTime?: string;
    /**
     * <p>是否需要认证</p>
     */
    NeedAuth?: boolean;
    /**
     * <p>凭据ID</p>
     */
    AgentCredentialID?: string;
    /**
     * <p>凭据详情</p>
     */
    AgentCredentialVO?: DescribeAgentCredentialResp;
}
/**
 * 查询模型服务详情的响应
 */
export interface DescribeModelServiceResponseVO {
    /**
     * <p>腾讯云AppID</p>
     */
    AppID?: number;
    /**
     * <p>腾讯云Uin</p>
     */
    Uin?: string;
    /**
     * <p>实例ID</p>
     */
    InstanceID?: string;
    /**
     * <p>模型ID</p>
     */
    ID?: string;
    /**
     * <p>模型名称</p>
     */
    Name?: string;
    /**
     * <p>描述</p>
     */
    Description?: string;
    /**
     * <p>访问路径</p>
     */
    PubPath?: string;
    /**
     * <p>路径匹配方式：absolute，prefix，regex</p>
     */
    PathMatchType?: string;
    /**
     * <p>目标模型列表</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetModels?: Array<TargetModelDTO>;
    /**
     * <p>模板模型的名称列表</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ModelNames?: Array<string>;
    /**
     * <p>是否开启限流</p>
     */
    InvokeLimitConfigStatus?: boolean;
    /**
     * <p>限流配置</p>
     */
    InvokeLimitConfig?: InvokeLimitConfigDTO;
    /**
     * <p>创建时间</p>
     */
    CreateTime?: string;
    /**
     * <p>最后修改时间</p>
     */
    LastUpdateTime?: string;
    /**
     * <p>是否开启token控制</p>
     */
    TokenLimitStatus?: boolean;
    /**
     * <p>token控制</p>
     */
    TokenLimitConfig?: TokenLimitConfigDTO;
    /**
     * <p>是否开启tms配置</p>
     */
    TmsStatus?: boolean;
    /**
     * <p>tms配置</p>
     */
    TmsConfig?: TmsConfigDTO;
    /**
     * <p>是否开启IP白名单</p>
     */
    IpWhiteStatus?: boolean;
    /**
     * <p>IP白名单列表</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    IpWhiteList?: Array<string>;
    /**
     * <p>是否开启IP黑名单</p>
     */
    IpBlackStatus?: boolean;
    /**
     * <p>IP黑名单列表</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    IpBlackList?: Array<string>;
    /**
     * <p>插件配置</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    PluginConfigs?: Array<PluginConfigDTO>;
    /**
     * <p>超时配置，单位秒</p>
     */
    Timeout?: number;
    /**
     * <p>状态：normal，disabled</p>
     */
    Status?: string;
    /**
     * <p>关联应用数</p>
     */
    RelateAgentAppNum?: number;
    /**
     * <p>请求路径</p>
     */
    Url?: string;
    /**
     * <p>是否开启提示词安全检测</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    PromptModerateStatus?: boolean;
    /**
     * <p>提示词安全检测配置</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    PromptModerateConfig?: PromptModerateConfigDTO;
    /**
     * <p>是否开启敏感数据检测</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    SensitiveDataCheckStatus?: boolean;
    /**
     * <p>敏感数据检测配置</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    SensitiveDataCheckConfig?: SensitiveDataCheckConfigDTO;
    /**
     * <p>负载方式</p><p>枚举值：</p><ul><li>random： 随机</li><li>consistentHash： 会话保持</li></ul>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    TargetSelect?: string;
    /**
     * <p>会话判断方式</p><p>枚举值：</p><ul><li>fromClientIP： 从客户端IP判断</li><li>fromHeader： 从请求header判断</li><li>autoDetect： 自动探测</li></ul>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    FindHostKeyMethod?: string;
    /**
     * <p>会话判断header名称</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    HostKeyHeaderName?: string;
    /**
     * <p>是否开启备份模型</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    FallbackStatus?: boolean;
    /**
     * <p>备份模型</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    FallbackModels?: Array<TargetModelDTO>;
    /**
     * <p>模型类型</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    ModelProtocol?: string;
    /**
     * <p>自定义模型协议配置</p>
     */
    RawCustomModelProtocolConfig?: string;
}
/**
 * 响应参数
 */
export interface ServiceDatabaseRespParam {
    /**
     * <p>源字段名称</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    FieldName?: string;
    /**
     * <p>目标字段名称</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Name?: string;
}
/**
 * DescribeModelsSort
 */
export interface DescribeModelsSort {
    /**
     * 创建时间
     */
    CreateTime?: number;
    /**
     * 最后修改时间
     */
    LastUpdateTime?: number;
    /**
     * 模型名称
     */
    Name?: number;
}
/**
 * PluginConfigDTO
 */
export interface PluginConfigDTO {
    /**
     * 状态
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Status?: boolean;
    /**
     * 名称
  注意：此字段可能返回 null，表示取不到有效值。
     */
    PluginName?: string;
    /**
     * 描述
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Description?: string;
    /**
     * ID
  注意：此字段可能返回 null，表示取不到有效值。
     */
    PluginID?: string;
    /**
     * 优先级
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Level?: number;
    /**
     * 表单配置
  注意：此字段可能返回 null，表示取不到有效值。
     */
    PluginFormValues?: Array<PluginFormValueDTO>;
}
/**
 * PluginFormValueDTO
 */
export interface PluginFormValueDTO {
    /**
     * 字段
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Field?: string;
    /**
     * 值
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Value?: string;
}
/**
 * DescribeAgentApp请求参数结构体
 */
export interface DescribeAgentAppRequest {
    /**
     * 实例ID
     */
    InstanceID: string;
    /**
     * app id
     */
    ID: string;
}
/**
 * DeleteAgentApp返回参数结构体
 */
export interface DeleteAgentAppResponse {
    /**
     * app id
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * CreateAgentCredential返回参数结构体
 */
export interface CreateAgentCredentialResponse {
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * DescribeAgentAppModelServices返回参数结构体
 */
export interface DescribeAgentAppModelServicesResponse {
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * ModifyMcpServer返回参数结构体
 */
export interface ModifyMcpServerResponse {
    /**
     * <p>mcp server ID</p>
     */
    Data?: ResultIDVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * DeleteModel请求参数结构体
 */
export interface DeleteModelRequest {
    /**
     * 实例
     */
    InstanceID: string;
    /**
     * 模型ID数组
     */
    IDs: Array<string>;
}
/**
 * DescribeModels返回参数结构体
 */
export interface DescribeModelsResponse {
    /**
     * 结果集
     */
    Data?: DescribeModelsResponseVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * DescribeAgentAppServices请求参数结构体
 */
export interface DescribeAgentAppServicesRequest {
    /**
     * <p>实例ID</p>
     */
    InstanceID: string;
    /**
     * <p>数据量</p>
     */
    Limit: number;
    /**
     * <p>IDs</p>
     */
    IDs?: Array<string>;
    /**
     * <p>应用IDs</p>
     */
    AgentAppIDs?: Array<string>;
    /**
     * <p>服务IDs</p>
     */
    ServiceIDs?: Array<string>;
    /**
     * <p>关键字</p>
     */
    Keyword?: string;
    /**
     * <p>偏移量</p>
     */
    Offset?: number;
    /**
     * <p>是否有凭据</p>
     */
    AgentCredentialExist?: boolean;
    /**
     * <p>凭据ID</p>
     */
    AgentCredentialIDs?: Array<string>;
}
/**
 * DescribeModelServices返回参数结构体
 */
export interface DescribeModelServicesResponse {
    /**
     * <p>结果集</p>
     */
    Data?: DescribeModelServicesResponseVO;
    /**
     * 唯一请求 ID，由服务端生成，每次请求都会返回（若请求因其他原因未能抵达服务端，则该次请求不会获得 RequestId）。定位问题时需要提供该次请求的 RequestId。
     */
    RequestId?: string;
}
/**
 * 出入参说明
 */
export interface McpInputOutSchema {
    /**
     * 类型
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Type?: string;
    /**
     * 属性
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Properties?: string;
    /**
     * 必填字段
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Required?: Array<string>;
    /**
     * 描述
  注意：此字段可能返回 null，表示取不到有效值。
     */
    Description?: string;
}
/**
 * 自定义匹配条件
 */
export interface CustomMatch {
    /**
     * <p>请求头  匹配条件</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    HeadersMatch?: CompoundCondition;
    /**
     * <p>请求参数 匹配条件</p>
  注意：此字段可能返回 null，表示取不到有效值。
     */
    QueryMatch?: CompoundCondition;
}
