feat: manually mirror opencoze's code from bytedance
Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
4022
frontend/packages/arch/idl/src/auto-generated/fornax_api2/index.ts
Normal file
4022
frontend/packages/arch/idl/src/auto-generated/fornax_api2/index.ts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,246 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum Channel {
|
||||
Undefined = 0,
|
||||
/** 飞书 */
|
||||
Lark = 1,
|
||||
/** OpenAPI */
|
||||
OpenAPI = 2,
|
||||
}
|
||||
|
||||
export enum LarkReleaseStatus {
|
||||
Undefined = 0,
|
||||
/** 审核中 */
|
||||
InReview = 10,
|
||||
/** 审核通过 */
|
||||
Approved = 20,
|
||||
/** 审核拒绝 */
|
||||
ReviewReject = 30,
|
||||
/** 发布失败 */
|
||||
Error = 40,
|
||||
}
|
||||
|
||||
export enum OpenAPIReleaseStatus {
|
||||
Undefined = 0,
|
||||
/** 发布成功 */
|
||||
Success = 20,
|
||||
/** 发布失败 */
|
||||
Error = 30,
|
||||
}
|
||||
|
||||
export enum OperationType {
|
||||
Undefined = 0,
|
||||
/** 创建发布单 */
|
||||
Create = 1,
|
||||
/** 更新发布单 */
|
||||
Update = 2,
|
||||
/** 发布渠道 */
|
||||
ReleaseChannel = 3,
|
||||
}
|
||||
|
||||
export enum Status {
|
||||
Undefined = 0,
|
||||
/** 发布中 */
|
||||
Publishing = 10,
|
||||
/** 发布成功 */
|
||||
Success = 20,
|
||||
/** 发布失败 */
|
||||
Error = 30,
|
||||
}
|
||||
|
||||
export enum TemplateImportStatus {
|
||||
Undefined = 0,
|
||||
/** 进行中 */
|
||||
InProgress = 10,
|
||||
/** 成功 */
|
||||
Success = 20,
|
||||
/** 失败 */
|
||||
Error = 30,
|
||||
/** 超时 */
|
||||
Timeout = 40,
|
||||
}
|
||||
|
||||
export enum TemplateLanguage {
|
||||
Unknown = 0,
|
||||
Golang = 1,
|
||||
Typescript = 2,
|
||||
Python = 3,
|
||||
}
|
||||
|
||||
export enum TemplateType {
|
||||
Unknown = 0,
|
||||
ChatBot = 1,
|
||||
OpenAPI = 2,
|
||||
}
|
||||
|
||||
export interface Agent {
|
||||
/** agent id */
|
||||
id: Int64;
|
||||
/** agent name */
|
||||
name: string;
|
||||
/** agent所属fornax空间id */
|
||||
spaceID: Int64;
|
||||
/** agent description */
|
||||
desc?: string;
|
||||
/** agent头像 */
|
||||
avatar?: Image;
|
||||
/** agent隐式的项目名 */
|
||||
projectName: string;
|
||||
/** agent模版仓库 */
|
||||
repo?: TemplateRepo;
|
||||
/** agent ide空间地址 */
|
||||
ideSpaceURL?: string;
|
||||
/** agent关联的仓库 */
|
||||
associatedRepo?: AssociatedRepo;
|
||||
/** agent是否发布过 */
|
||||
ifReleased?: boolean;
|
||||
/** agent faas function信息 */
|
||||
faasInfo?: FaaSInfo;
|
||||
/** agent飞书应用配置 */
|
||||
larkInfo?: LarkInfo;
|
||||
/** 创建人 */
|
||||
createdBy?: string;
|
||||
/** 更新人 */
|
||||
updatedBy?: string;
|
||||
/** 创建时间 */
|
||||
createdAt?: Int64;
|
||||
/** 更新时间 */
|
||||
updatedAt?: Int64;
|
||||
}
|
||||
|
||||
export interface AgentOpenAPIAccount {
|
||||
id?: Int64;
|
||||
agentID?: Int64;
|
||||
token?: string;
|
||||
spaceAccountID?: Int64;
|
||||
owner?: string;
|
||||
/** 创建时间 */
|
||||
createTime?: Int64;
|
||||
/** 更新时间 */
|
||||
updateTime?: Int64;
|
||||
}
|
||||
|
||||
export interface AgentReleaseInfo {
|
||||
id?: Int64;
|
||||
agentID?: Int64;
|
||||
/** 版本 */
|
||||
version?: string;
|
||||
/** 版本描述 */
|
||||
versionDesc?: string;
|
||||
status?: Status;
|
||||
avatar?: Image;
|
||||
name?: string;
|
||||
desc?: string;
|
||||
/** 发布人 */
|
||||
publisher?: string;
|
||||
/** 创建时间 */
|
||||
createTime?: Int64;
|
||||
/** 更新时间 */
|
||||
updateTime?: Int64;
|
||||
channels?: Array<Channel>;
|
||||
/** Faas相关发布信息 */
|
||||
faasInfo?: FaaSInfo;
|
||||
/** lark相关发布信息 */
|
||||
larkInfo?: LarkInfo;
|
||||
/** openAPI发布信息 */
|
||||
openAPIInfo?: OpenAPIInfo;
|
||||
}
|
||||
|
||||
export interface AssociatedRepo {
|
||||
/** codebase id */
|
||||
ID?: Int64;
|
||||
/** 仓库名 */
|
||||
repoName?: string;
|
||||
/** 仓库ssh地址 */
|
||||
repoURL?: string;
|
||||
/** 分支 */
|
||||
branch?: string;
|
||||
/** 模板导入状态 */
|
||||
templateImportStatus?: TemplateImportStatus;
|
||||
/** gitlab project id */
|
||||
externalID?: Int64;
|
||||
}
|
||||
|
||||
export interface Avatar {
|
||||
region?: string;
|
||||
url?: string;
|
||||
uri?: string;
|
||||
}
|
||||
|
||||
export interface FaaSCluster {
|
||||
/** faas集群 */
|
||||
cluster: string;
|
||||
/** faas集群所在区域 */
|
||||
region: string;
|
||||
}
|
||||
|
||||
export interface FaaSInfo {
|
||||
id?: string;
|
||||
psm?: string;
|
||||
clusters?: Array<FaaSCluster>;
|
||||
owner?: string;
|
||||
}
|
||||
|
||||
export interface Image {
|
||||
uri: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface LarkInfo {
|
||||
appID?: string;
|
||||
appSecret?: string;
|
||||
versionID?: string;
|
||||
larkReleaseStatus?: LarkReleaseStatus;
|
||||
}
|
||||
|
||||
export interface OpenAPIInfo {
|
||||
openAPIReleaseStatus?: OpenAPIReleaseStatus;
|
||||
}
|
||||
|
||||
export interface TemplateMetaInfo {
|
||||
name?: string;
|
||||
description?: string;
|
||||
type?: string;
|
||||
projectName?: string;
|
||||
path?: string;
|
||||
tags?: Array<string>;
|
||||
avatar?: Array<Avatar>;
|
||||
templateType?: string;
|
||||
repoURL?: string;
|
||||
repoName?: string;
|
||||
}
|
||||
|
||||
export interface TemplateRepo {
|
||||
/** 模版仓库名 */
|
||||
repoName: string;
|
||||
/** 模版仓库地址 */
|
||||
repoURL: string;
|
||||
/** 模版仓库相对路径 */
|
||||
relativePath: string;
|
||||
/** 模版语言 */
|
||||
language: TemplateLanguage;
|
||||
/** 模版类型 */
|
||||
templateType?: TemplateType;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,261 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum AuditResultEnum {
|
||||
/** 未检查 */
|
||||
Init = 1,
|
||||
/** 标记合格 */
|
||||
Pass = 2,
|
||||
/** 标记不合格 */
|
||||
Reject = 3,
|
||||
}
|
||||
|
||||
export enum AuditStatus {
|
||||
/** 被判定作弊 */
|
||||
Fraud = 1,
|
||||
/** AIDP审核通过 */
|
||||
Pass = 2,
|
||||
/** AIDP审核未通过 */
|
||||
Fail = 3,
|
||||
}
|
||||
|
||||
export enum AuditStatusEnum {
|
||||
/** 不涉及审核操作 */
|
||||
None = 0,
|
||||
/** 通过 */
|
||||
Pass = 1,
|
||||
/** 回收 */
|
||||
Recycle = 2,
|
||||
/** 打回 */
|
||||
Back = 3,
|
||||
}
|
||||
|
||||
/** 题目状态: 未领取、被领取、被回收 */
|
||||
export enum ItemStatus {
|
||||
/** 未领取 */
|
||||
Init = 1,
|
||||
/** 被领取 */
|
||||
Received = 2,
|
||||
/** 被回收 */
|
||||
Recycled = 3,
|
||||
}
|
||||
|
||||
export enum MsgOpType {
|
||||
/** 未知类型提交,暂时不会出现,只做该字段兜底取值使用 */
|
||||
Unknown = 0,
|
||||
/** 题目送标,等同于消息里的 IsInit = true */
|
||||
InitItem = 1,
|
||||
/** 提交后被通过,题目向后置节点流转,等同于 AuditNodeList[$x].AuditStatus = 1 */
|
||||
PassSubmit = 2,
|
||||
/** 提交后被打回,题目向前置节点流转,等同于 AuditNodeList[$x].AuditStatus = 3 */
|
||||
BackSubmit = 3,
|
||||
/** 废弃提交,等同于消息里的 IsDiscard = true */
|
||||
DiscardSubmit = 4,
|
||||
/** 点击无效后提交 */
|
||||
AbandonSubmit = 5,
|
||||
/** 直接提交,等同于消息里的 IsDirectSubmit = true */
|
||||
DirectSubmit = 6,
|
||||
/** 更新答案,等同于消息里的 IsUpdate = true */
|
||||
UpdateAnswer = 7,
|
||||
}
|
||||
|
||||
/** 节点ID */
|
||||
export enum NodeID {
|
||||
Invalid = 0,
|
||||
/** 标注/初审 */
|
||||
Start = 1,
|
||||
/** 结束 */
|
||||
End = 2,
|
||||
/** 标检模式-检查 */
|
||||
Check = 4,
|
||||
/** 标检模式-质检 */
|
||||
QA = 5,
|
||||
/** 标检模式-验收 */
|
||||
Accept = 6,
|
||||
/** QA/盲审模式保留-盲审 */
|
||||
BlindCheck = 102,
|
||||
/** QA/盲审模式保留-质检 */
|
||||
BlindQA = 104,
|
||||
/** QA/盲审模式保留-合并后的标注节点(包含标注和盲审) */
|
||||
BlindCombinedLabel = 1001,
|
||||
}
|
||||
|
||||
export enum PriceType {
|
||||
DEFAULT = 1,
|
||||
TYPEDOUBLE = 2,
|
||||
}
|
||||
|
||||
export enum TaskMode {
|
||||
/** 自定义 */
|
||||
Custom = 0,
|
||||
/** 经典 */
|
||||
Classical = 1,
|
||||
/** 盲审(标准) */
|
||||
BlindAudit = 12,
|
||||
}
|
||||
|
||||
/** 模版类型 */
|
||||
export enum TemplateType {
|
||||
/** App端模版
|
||||
视频多选项 */
|
||||
VIDEO_MULTI_OPTIONS = 1,
|
||||
/** 视频/图片sidebyside */
|
||||
VIDEO_IMG_SBS = 2,
|
||||
/** 视频判断 */
|
||||
VIDEO_SINGLE_OPTIONS = 3,
|
||||
/** 图片判断 */
|
||||
IMG_SINGLE_OPTIONS = 4,
|
||||
/** 图片多选项 */
|
||||
IMG_MULTI_OPTIONS = 5,
|
||||
/** 图片拉框 */
|
||||
IMG_FRAME = 6,
|
||||
/** 文本多选项 */
|
||||
TEXT_MULTI_OPTIONS = 7,
|
||||
/** 视频输入 */
|
||||
VIDEO_INPUT = 11,
|
||||
/** 图片输入 */
|
||||
IMG_INPUT = 12,
|
||||
/** SBS输入 */
|
||||
SBS_INPUT = 13,
|
||||
/** 视频输入无答案 */
|
||||
VIDEO_INPUTANY = 14,
|
||||
/** 图片输入无答案 */
|
||||
IMG_INPUTANY = 15,
|
||||
/** SBS输入无答案 */
|
||||
SBS_INPUTANY = 16,
|
||||
/** POI */
|
||||
POI = 21,
|
||||
DOUYIN_INPUT = 51,
|
||||
DOUYIN_INPUTANY = 52,
|
||||
/** 多结果多判断 */
|
||||
DOUYIN_MULTI_OPTIONS = 53,
|
||||
/** PC端模版
|
||||
pc端图片判断 */
|
||||
PC_IMG_SINGLE_OPTIONS = 101,
|
||||
/** 自建模板类型
|
||||
图片类型 */
|
||||
CUSTOM_IMAGE_TEMPLATE = 201,
|
||||
/** 语音类型 */
|
||||
CUSTOM_VOICE_TEMPLATE = 202,
|
||||
/** 文字类型 */
|
||||
CUSTOM_TEXT_TEMPLATE = 203,
|
||||
/** 视频类型 */
|
||||
CUSTOM_VIDEO_TEMPLATE = 204,
|
||||
/** 网页类型 */
|
||||
CUSTOM_WEB_TEMPLATE = 205,
|
||||
/** TTS类型模板 */
|
||||
CUSTOM_TTS_TEMPLATE = 206,
|
||||
/** 组合数据分类标签模板 */
|
||||
CUSTOM_CLASS_TEMPLATE = 207,
|
||||
/** 几何图形标注签模板 */
|
||||
CUSTOM_GEOMETRY_TEMPLATE = 208,
|
||||
/** 文本切分模板 */
|
||||
CUSTOM_TEXT_SPLIT_TEMPLATE = 209,
|
||||
/** 点云模版 */
|
||||
CUSTOM_POINT_CLOUD_TEMPLATE = 210,
|
||||
/** EA企业库模板 */
|
||||
CUSTOM_EA_ENTERPRISE_TEMPLATE = 211,
|
||||
/** POI模版 */
|
||||
CUSTOM_POI_TEMPLATE = 212,
|
||||
/** 飞书云文档模板类型 */
|
||||
CUSTOM_LARK_DOC_TEMPLATE = 213,
|
||||
/** PF模版 */
|
||||
CUSTOM_PF_TEMPLATE = 214,
|
||||
/** DCC模版 */
|
||||
DCC = 301,
|
||||
/** DCC新模板 */
|
||||
DccNew = 302,
|
||||
/** Neeko类型模板 */
|
||||
Neeko = 1000,
|
||||
}
|
||||
|
||||
export interface AuditNodeInfo {
|
||||
/** 节点名称 */
|
||||
Name?: string;
|
||||
/** 操作人 */
|
||||
Operator?: string;
|
||||
/** 提交时间 */
|
||||
SubmitTime?: Int64;
|
||||
/** 备注(修改建议等信息) */
|
||||
Comment?: string;
|
||||
/** 节点ID */
|
||||
NodeID?: number;
|
||||
/** 审核结果,合格 or 不合格 or 未抽中 */
|
||||
AuditResult?: AuditResultEnum;
|
||||
/** 审核状态,通过 or 打回 */
|
||||
AuditStatus?: AuditStatusEnum;
|
||||
}
|
||||
|
||||
export interface DispatcherNode {
|
||||
/** 节点名称 */
|
||||
Name?: string;
|
||||
/** 节点ID,可见NodeID */
|
||||
ID?: number;
|
||||
}
|
||||
|
||||
export interface ExportMsg {
|
||||
/** AIDP 任务队列 ID */
|
||||
TaskID?: Int64;
|
||||
/** 所属项目ID */
|
||||
ProjectID?: Int64;
|
||||
/** 题目唯一标识 */
|
||||
ObjectID?: string;
|
||||
/** 透传信息 */
|
||||
Penetrate?: string;
|
||||
/** 原始数据 */
|
||||
RawData?: string;
|
||||
/** 标注结果和原始数据沉底,避免过大导致日志被截断
|
||||
标注结果 */
|
||||
Answer?: string;
|
||||
/** 审核&检查等人员信息 */
|
||||
AuditNodeList?: Array<AuditNodeInfo>;
|
||||
/** 时间戳 */
|
||||
Timestamp?: Int64;
|
||||
/** 下个节点 */
|
||||
ToNode?: DispatcherNode;
|
||||
/** 上个节点 */
|
||||
FromNode?: DispatcherNode;
|
||||
/** 题目送标时间 */
|
||||
CreateTime?: Int64;
|
||||
/** 题目回调唯一标识 */
|
||||
UUID?: string;
|
||||
/** 是否废弃 */
|
||||
IsDiscard?: boolean;
|
||||
/** AIDP 题目 ID */
|
||||
ItemID?: Int64;
|
||||
/** 模版类型 */
|
||||
TemplateType?: TemplateType;
|
||||
/** 模版子类型 ID,后端只存储不感知具体值(目前只有 POI 模版类型有) */
|
||||
TemplateSubType?: Int64;
|
||||
/** 任务版本 */
|
||||
TaskVersion?: number;
|
||||
/** 是否为更新答案 */
|
||||
IsUpdate?: boolean;
|
||||
/** 是否为直接提交 */
|
||||
IsDirectSubmit?: boolean;
|
||||
/** 是否为送标时创建题目事件 */
|
||||
IsInit?: boolean;
|
||||
/** 消息类型 */
|
||||
OpType?: MsgOpType;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,140 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as flow_devops_evaluation_entity from './flow_devops_evaluation_entity';
|
||||
import * as flow_devops_evaluation_object from './flow_devops_evaluation_object';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum AppClientEnvType {
|
||||
Undefined = 0,
|
||||
AllEnv = 1,
|
||||
/** 返回PPE和Online的client */
|
||||
PPEAndOnline = 2,
|
||||
/** 仅返回BOE Client */
|
||||
BOEOnly = 3,
|
||||
}
|
||||
|
||||
export enum AppClientType {
|
||||
Undefined = 0,
|
||||
TCE = 1,
|
||||
}
|
||||
|
||||
export enum AppType {
|
||||
Undefined = 0,
|
||||
TCE = 1,
|
||||
CozeBot = 2,
|
||||
}
|
||||
|
||||
export enum AppV2Type {
|
||||
Undefined = 0,
|
||||
PSM = 1,
|
||||
FullCodeFlow = 2,
|
||||
}
|
||||
|
||||
export interface App {
|
||||
id?: string;
|
||||
spaceID?: string;
|
||||
/** 应用类型, 如 TCE */
|
||||
type?: AppType;
|
||||
/** 空间内唯一.对于 TCE 类型的app,其 uid 为 psm;对于 coze_bot 类型的 app,其 uid 为 BotID */
|
||||
uid?: string;
|
||||
/** TCE 类型的应用默认为 PSM, 可修改;CozeBot 类型的不可修改 */
|
||||
name?: string;
|
||||
description?: string;
|
||||
ownerIDs?: Array<string>;
|
||||
/** 头像,当前仅 cozeBot 展示使用 */
|
||||
iconURL?: string;
|
||||
/** 创建人 */
|
||||
createdBy?: string;
|
||||
/** 更新人 */
|
||||
updatedBy?: string;
|
||||
/** 创建时间 */
|
||||
createdAt?: string;
|
||||
/** 更新时间 */
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
/** AppClient 表示访问该应用数据的客户端, 一般为一个使用了 FornaxSDK 的 TCE 服务. */
|
||||
export interface AppClient {
|
||||
id?: Int64;
|
||||
spaceID?: Int64;
|
||||
appID?: Int64;
|
||||
/** TCE 类型的 client, 其值为 PSM */
|
||||
appUID?: string;
|
||||
/** 泳道env */
|
||||
env?: string;
|
||||
/** cluster */
|
||||
cluster?: string;
|
||||
/** TCE 类型的 client, 其值为 ${PSM}:${env}:${cluster} */
|
||||
identity?: string;
|
||||
labels?: Record<string, string>;
|
||||
/** 创建人 */
|
||||
createdBy?: string;
|
||||
/** 创建时间 */
|
||||
createdAt?: Int64;
|
||||
/** 更新时间 */
|
||||
updatedAt?: Int64;
|
||||
}
|
||||
|
||||
export interface AppEvaluationInfo {
|
||||
callbackType: flow_devops_evaluation_entity.CallbackType;
|
||||
rpcCallbackObjectParams?: flow_devops_evaluation_object.RPCCallbackObjectParams;
|
||||
faasCallbackObjectParams?: flow_devops_evaluation_object.FaasCallbackObjectParams;
|
||||
}
|
||||
|
||||
export interface AppV2 {
|
||||
id?: string;
|
||||
spaceID?: string;
|
||||
type?: AppV2Type;
|
||||
entityID?: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
version?: string;
|
||||
psm?: string;
|
||||
regions?: Array<string>;
|
||||
appEvaluationInfo?: AppEvaluationInfo;
|
||||
/** 创建人 */
|
||||
createdBy?: string;
|
||||
/** 更新人 */
|
||||
updatedBy?: string;
|
||||
/** 创建时间 */
|
||||
createdAt?: string;
|
||||
/** 更新时间 */
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
/** ClientEvaluationSetting 客户端的评测配置 */
|
||||
export interface ClientEvaluationSetting {
|
||||
/** 是否写入数据集 (默认开启) */
|
||||
enableWriteToDataSet: boolean;
|
||||
/** 数据集ID */
|
||||
dataSetID?: string;
|
||||
/** 采样率 */
|
||||
samplingRate?: number;
|
||||
/** 采样上限 */
|
||||
samplingLimit?: string;
|
||||
/** 采样开始时间 */
|
||||
fromMillis?: string;
|
||||
/** 采样结束时间 */
|
||||
toMillis?: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,192 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum Action {
|
||||
Undefined = 0,
|
||||
Authorize = 1,
|
||||
Revoke = 2,
|
||||
}
|
||||
|
||||
/** 主体类型 */
|
||||
export enum AuthPrincipalType {
|
||||
Undefined = 0,
|
||||
/** 用户 */
|
||||
User = 1,
|
||||
/** 部门 */
|
||||
Department = 2,
|
||||
/** Coze标识 */
|
||||
CozeIdentifier = 3,
|
||||
}
|
||||
|
||||
export enum Connector {
|
||||
undefined = 0,
|
||||
feishu = 1,
|
||||
coze = 2,
|
||||
gitlab = 3,
|
||||
}
|
||||
|
||||
/** 资源类型 */
|
||||
export enum ResourceType {
|
||||
Undefined = 0,
|
||||
Space = 1,
|
||||
Prompt = 2,
|
||||
Application = 3,
|
||||
Evaluation = 4,
|
||||
Trace = 5,
|
||||
Agent = 6,
|
||||
}
|
||||
|
||||
export enum TenantType {
|
||||
/** 字节 */
|
||||
ByteDance = 0,
|
||||
/** 懂车帝 */
|
||||
Dcar = 1,
|
||||
}
|
||||
|
||||
/** 操作信息 */
|
||||
export interface AuthAction {
|
||||
/** 唯一标识 */
|
||||
unique_key?: string;
|
||||
/** 操作展示名称 */
|
||||
name?: string;
|
||||
/** 实体类型,世纪不绑定实体,仅记录操作对象 */
|
||||
entity_type?: string;
|
||||
}
|
||||
|
||||
/** Coze标识 */
|
||||
export interface AuthCozeIdentifier {
|
||||
/** 身份票据 */
|
||||
identity_ticket?: string;
|
||||
}
|
||||
|
||||
/** 鉴权部门 */
|
||||
export interface AuthDepartment {
|
||||
/** 部门ID */
|
||||
department_id?: string;
|
||||
}
|
||||
|
||||
/** 鉴权资源,客体 */
|
||||
export interface AuthEntity {
|
||||
/** 实体唯一ID */
|
||||
id?: string;
|
||||
/** 实体类型 */
|
||||
entity_type?: string;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
/** 实体owner用户ID */
|
||||
owner_user_id?: string;
|
||||
}
|
||||
|
||||
export interface AuthorizationRecord {
|
||||
connector?: Connector;
|
||||
action?: Action;
|
||||
scopes?: Array<string>;
|
||||
created_at?: Int64;
|
||||
is_expired?: boolean;
|
||||
}
|
||||
|
||||
/** 鉴权主体 */
|
||||
export interface AuthPrincipal {
|
||||
/** 主体类型 */
|
||||
auth_principal_type?: AuthPrincipalType;
|
||||
/** 鉴权用户 */
|
||||
auth_user?: AuthUser;
|
||||
/** 鉴权部门 */
|
||||
auth_department?: AuthDepartment;
|
||||
/** Coze标识 */
|
||||
auth_coze_identifier?: AuthCozeIdentifier;
|
||||
}
|
||||
|
||||
/** 角色信息 */
|
||||
export interface AuthRole {
|
||||
/** 唯一标识 */
|
||||
unique_key?: string;
|
||||
/** 角色展示名称 */
|
||||
name?: string;
|
||||
/** 关联的Action列表 */
|
||||
actions?: Array<AuthAction>;
|
||||
/** 实体类型 */
|
||||
entity_type?: string;
|
||||
}
|
||||
|
||||
/** 鉴权用户 */
|
||||
export interface AuthUser {
|
||||
/** 邮箱前缀,与FornaxUserID传一个即可 */
|
||||
sso_username?: string;
|
||||
/** Fornax用户ID */
|
||||
fornax_user_id?: string;
|
||||
/** 租户类型 */
|
||||
tenant?: TenantType;
|
||||
}
|
||||
|
||||
export interface OAuthConfig {
|
||||
connector: Connector;
|
||||
clientID?: string;
|
||||
redirectURI: string;
|
||||
authorizeURI?: string;
|
||||
}
|
||||
|
||||
export interface ServiceAccount {
|
||||
id: Int64;
|
||||
defaultSpaceID: Int64;
|
||||
accessKey: string;
|
||||
secretKey?: string;
|
||||
secretKeyCipher?: string;
|
||||
}
|
||||
|
||||
/** 主体+客体+权限点,鉴权结果 */
|
||||
export interface SubjectActionObjectAuthRes {
|
||||
/** 主体+客体+权限点 鉴权对 */
|
||||
subject_action_objects?: SubjectActionObjects;
|
||||
/** 是否允许 */
|
||||
is_allowed?: boolean;
|
||||
}
|
||||
|
||||
/** 主体+客体+权限点,鉴权组合信息 */
|
||||
export interface SubjectActionObjects {
|
||||
/** 主体,鉴权时通常为用户 */
|
||||
subject?: AuthPrincipal;
|
||||
/** 权限唯一标识 */
|
||||
action?: string;
|
||||
/** 客体列表,默认按照或的逻辑处理 */
|
||||
objects?: Array<AuthEntity>;
|
||||
}
|
||||
|
||||
/** 主体+客体+角色 */
|
||||
export interface SubjectRoleObject {
|
||||
/** 主体,授权时可以时用户或部门 */
|
||||
subject?: AuthPrincipal;
|
||||
/** 角色信息 */
|
||||
role?: AuthRole;
|
||||
/** 客体 */
|
||||
object?: AuthEntity;
|
||||
}
|
||||
|
||||
export interface UploadToken {
|
||||
access_key_id: string;
|
||||
secret_access_key: string;
|
||||
session_token: string;
|
||||
expired_time: string;
|
||||
current_time: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,417 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as flow_devops_evaluation_task from './flow_devops_evaluation_task';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum ApplyStatus {
|
||||
Pending = 1,
|
||||
Approved = 2,
|
||||
Rejected = 3,
|
||||
Canceled = 4,
|
||||
}
|
||||
|
||||
export enum BuiltinSpanFilterType {
|
||||
Undefined = 0,
|
||||
/** 业务含义(区别于 Trace Root)上的根节点 */
|
||||
BizRootSpan = 1,
|
||||
/** 模型 span */
|
||||
LLMSpan = 2,
|
||||
/** 非内置过滤 */
|
||||
CustomSpan = 3,
|
||||
}
|
||||
|
||||
/** Schedule */
|
||||
export enum ExecutePeriodic {
|
||||
Undefined = 0,
|
||||
Everyday = 1,
|
||||
Workdays = 2,
|
||||
Weekends = 3,
|
||||
Monday = 4,
|
||||
Tuesday = 5,
|
||||
Wednesday = 6,
|
||||
Thursday = 7,
|
||||
Friday = 8,
|
||||
Saturday = 9,
|
||||
Sunday = 10,
|
||||
}
|
||||
|
||||
/** 比较算子 */
|
||||
export enum FilterCmpOp {
|
||||
Undefined = 0,
|
||||
/** greater than */
|
||||
GT = 1,
|
||||
/** greater than or equal */
|
||||
GTE = 2,
|
||||
/** less than */
|
||||
LT = 3,
|
||||
/** less than or equal */
|
||||
LTE = 4,
|
||||
In = 5,
|
||||
NotIn = 6,
|
||||
/** equal */
|
||||
Eq = 7,
|
||||
/** not equal */
|
||||
NEq = 8,
|
||||
Like = 9,
|
||||
NotLike = 10,
|
||||
/** 有该 tag */
|
||||
Exists = 11,
|
||||
/** 没有该 tag */
|
||||
NotExists = 12,
|
||||
}
|
||||
|
||||
/** 逻辑算子 */
|
||||
export enum FilterLogicOp {
|
||||
Undefined = 0,
|
||||
Nop = 1,
|
||||
And = 2,
|
||||
Or = 3,
|
||||
Not = 4,
|
||||
}
|
||||
|
||||
export enum ObjectType {
|
||||
Undefined = 0,
|
||||
CozeBot = 1,
|
||||
FornaxPSM = 2,
|
||||
Prompt = 3,
|
||||
Doubao = 4,
|
||||
FornaxAgent = 5,
|
||||
}
|
||||
|
||||
export enum SecurityLevel {
|
||||
L4 = 4,
|
||||
}
|
||||
|
||||
export enum Span2ColumnSourceType {
|
||||
PromptVariable = 1,
|
||||
SpanMeta = 2,
|
||||
SpanTag = 3,
|
||||
}
|
||||
|
||||
export enum TaskStatusType {
|
||||
Undefined = 0,
|
||||
Unstarted = 1,
|
||||
Running = 2,
|
||||
Succeeded = 3,
|
||||
Failed = 4,
|
||||
Pending = 5,
|
||||
Stopped = 6,
|
||||
}
|
||||
|
||||
/** Task */
|
||||
export enum TaskType {
|
||||
Undefined = 0,
|
||||
/** Span 导入数据集 */
|
||||
SpanToDataset = 1,
|
||||
/** 在线评测 Span */
|
||||
SpanEval = 2,
|
||||
/** 批量执行自动化用例 */
|
||||
BatchExecAutoUseCase = 3,
|
||||
/** Deprecated: 统一使用 SpanToDataset
|
||||
数据回流用于模型精调 */
|
||||
SpanToDatasetForModelSFT = 4,
|
||||
}
|
||||
|
||||
export enum ValueKind {
|
||||
Undefined = 0,
|
||||
Bool = 1,
|
||||
Integer = 2,
|
||||
Double = 3,
|
||||
String = 4,
|
||||
}
|
||||
|
||||
export interface ApplyTicket {
|
||||
id?: string;
|
||||
url?: string;
|
||||
/** 工单状态 */
|
||||
status?: ApplyStatus;
|
||||
/** 审批节点 */
|
||||
node?: string;
|
||||
/** 生效时间 */
|
||||
validateAt?: string;
|
||||
/** 失效时间 */
|
||||
invalidateAt?: string;
|
||||
}
|
||||
|
||||
export interface BackfillStat {
|
||||
/** 已从观测检索到 span 数量 */
|
||||
retrievedSpanCount?: string;
|
||||
/** 已写入到数据集中 span 数量 */
|
||||
backfilledSpanCount?: string;
|
||||
/** 回填状态 */
|
||||
backfillStatus?: TaskStatusType;
|
||||
}
|
||||
|
||||
export interface BatchExecAutoUseCaseStat {
|
||||
common?: StatusDetailCommon;
|
||||
/** 各用例执行情况 */
|
||||
evalCaseRun?: Array<EvalCaseRun>;
|
||||
}
|
||||
|
||||
export interface ColumnInfo {
|
||||
/** 数据集列名 */
|
||||
name: string;
|
||||
/** 注释 */
|
||||
desc?: string;
|
||||
}
|
||||
|
||||
/** ProcessorConfig */
|
||||
export interface DatasetConfig {
|
||||
/** 为0时表示新建数据集 */
|
||||
datasetID: string;
|
||||
datasetName?: string;
|
||||
/** 默认将 span 的 input&output tag 写入 dataset 同名列中, 通过 extraColumns 定义其他列的回流 */
|
||||
extraColumns?: Array<Span2ColumnConfig>;
|
||||
/** omitDefaultColumns=true 时,不写入默认的 input、output 列 */
|
||||
omitDefaultColumns?: boolean;
|
||||
datasetDesc?: string;
|
||||
}
|
||||
|
||||
/** Deprecated */
|
||||
export interface DatasetForModelSFTConfig {
|
||||
datasetID?: string;
|
||||
datasetName?: string;
|
||||
customColumns?: Array<ColumnInfo>;
|
||||
}
|
||||
|
||||
export interface EffectiveTime {
|
||||
/** unix timestamp */
|
||||
startAt?: string;
|
||||
/** unix timestamp */
|
||||
endAt?: string;
|
||||
/** 生效日,以开始生效时间为准 */
|
||||
effectiveDays?: ExecutePeriodic;
|
||||
/** 生效时间-开始, HH:mm:SS */
|
||||
effectivePeriodStart?: string;
|
||||
/** 生效时间-结束, HH:mm:SS */
|
||||
effectivePeriodEnd?: string;
|
||||
/** 生效时间-所在时区,±HH:MM。 */
|
||||
effectivePeriodTimeZone?: string;
|
||||
}
|
||||
|
||||
export interface EvalCase {
|
||||
id: string;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export interface EvalCaseRun {
|
||||
/** 用例 ID */
|
||||
caseID?: string;
|
||||
/** 评测任务 ID */
|
||||
taskID?: string;
|
||||
caseName?: string;
|
||||
status?: flow_devops_evaluation_task.TaskStatus;
|
||||
}
|
||||
|
||||
export interface EvalCasesConfig {
|
||||
evalCases: Array<EvalCase>;
|
||||
}
|
||||
|
||||
export interface EvalRuleConfig {
|
||||
evalRuleID: string;
|
||||
evalRuleName?: string;
|
||||
}
|
||||
|
||||
/** Rule */
|
||||
export interface Rule {
|
||||
/** 任务对象类型 */
|
||||
objectType?: ObjectType;
|
||||
/** 任务对象唯一键,对应 cozeBot 和 fornax psm 的 appUID */
|
||||
objectUID?: string;
|
||||
objectName?: string;
|
||||
/** 通过 filter 指定任务对象的其他信息。如 fornax psm 的 env+cluster */
|
||||
objectFilter?: SpanFilter;
|
||||
/** 采样配置 */
|
||||
sampler?: Sampler;
|
||||
/** 筛选条件 */
|
||||
spanFilter?: SpanFilter;
|
||||
/** Deprecated, typo, 换用 triggerTime(13) 字段 */
|
||||
tiggerTime?: TriggerTime;
|
||||
/** 生效时间窗口 */
|
||||
effectiveTime?: EffectiveTime;
|
||||
/** 任务对象在 fornax 平台上的 id */
|
||||
objectID?: Int64;
|
||||
/** 内置过滤器, 包含服务端定义的复杂过滤逻辑. 用于页面的"数据类型"字段过滤 */
|
||||
builtinFilter?: BuiltinSpanFilterType;
|
||||
/** 回流历史数据 */
|
||||
effectiveTimeFromPast?: EffectiveTime;
|
||||
/** 定时触发时效配置 */
|
||||
triggerTime?: TriggerTime;
|
||||
/** Processor Config
|
||||
数据集 */
|
||||
dataset?: DatasetConfig;
|
||||
/** 在线评测规则 */
|
||||
evalRule?: EvalRuleConfig;
|
||||
/** 批量评测用例 */
|
||||
evalCases?: EvalCasesConfig;
|
||||
/** Deprecated 数据回流用于模型精调 */
|
||||
datasetForModelSFT?: DatasetForModelSFTConfig;
|
||||
}
|
||||
|
||||
/** Sampler */
|
||||
export interface Sampler {
|
||||
/** 采样率 */
|
||||
sampleRate?: number;
|
||||
/** 采样上限 */
|
||||
sampleSize?: string;
|
||||
}
|
||||
|
||||
export interface Span2ColumnConfig {
|
||||
sourceType: Span2ColumnSourceType;
|
||||
/** 根据 sourceType 不同, 其值为 span 属性, prompt 变量的 key 等 */
|
||||
sourceField: string;
|
||||
/** 指定 sourceField 的 JSON 提取路径 */
|
||||
sourceFieldJSONPath?: string;
|
||||
/** dataset column 名 */
|
||||
datasetColumn: string;
|
||||
}
|
||||
|
||||
export interface SpanEvalStat {
|
||||
common?: StatusDetailCommon;
|
||||
/** 评测规则 ID */
|
||||
ruleID?: string;
|
||||
/** 评测任务 ID */
|
||||
taskID?: string;
|
||||
caseID?: Int64;
|
||||
/** 符合 filter 的 span 条数 */
|
||||
matchedSpan?: string;
|
||||
/** 采样器命中的 span 条数 */
|
||||
sampledSpan?: string;
|
||||
firstWrittenAt?: string;
|
||||
lastWrittenAt?: string;
|
||||
/** 等待评测 */
|
||||
queuing?: string;
|
||||
/** 评测中 */
|
||||
evaluating?: string;
|
||||
/** 评测完成 */
|
||||
evaluated?: string;
|
||||
/** 评测失败 */
|
||||
evaluateFailed?: string;
|
||||
}
|
||||
|
||||
/** Span 过滤器 */
|
||||
export interface SpanFilter {
|
||||
op: FilterLogicOp;
|
||||
tagFilters?: Array<TagFilter>;
|
||||
spanFilters?: Array<SpanFilter>;
|
||||
}
|
||||
|
||||
export interface SpanToDatasetStat {
|
||||
common?: StatusDetailCommon;
|
||||
/** 数据集 ID */
|
||||
datasetID?: string;
|
||||
/** 符合 filter 的 span 条数 */
|
||||
matchedSpan?: string;
|
||||
/** 采样器命中的 span 条数 */
|
||||
sampledSpan?: string;
|
||||
/** 采样上限 */
|
||||
sampleLimit?: string;
|
||||
/** 首条写入时间 */
|
||||
firstWrittenAt?: string;
|
||||
/** 最近写入时间 */
|
||||
lastWrittenAt?: string;
|
||||
/** 写入数据集的 span 条数 */
|
||||
writtenSpan?: string;
|
||||
/** 数据集已写满 */
|
||||
hitsDatasetLimit?: boolean;
|
||||
}
|
||||
|
||||
/** Task Status Detail */
|
||||
export interface StatusDetailCommon {
|
||||
/** task 终止执行的原因 */
|
||||
pauseReason?: string;
|
||||
}
|
||||
|
||||
/** 字段过滤器 */
|
||||
export interface TagFilter {
|
||||
tag: string;
|
||||
op: FilterCmpOp;
|
||||
valueKind: ValueKind;
|
||||
/** JSON 编码的值,类型与 valueKind 一致。 当 op 为 In, NotIn 等集合相关算子值时,类型为 valueKind 对应的数组。 */
|
||||
value?: string;
|
||||
}
|
||||
|
||||
/** 字段过滤器选项 */
|
||||
export interface TagFilterOption {
|
||||
tag?: string;
|
||||
description?: string;
|
||||
isRequired?: boolean;
|
||||
type?: ValueKind;
|
||||
/** 允许的比较运算 */
|
||||
operators?: Array<FilterCmpOp>;
|
||||
/** 选项列表 */
|
||||
options?: Array<string>;
|
||||
/** 是否允许自定义选项 */
|
||||
allowCustomOption?: boolean;
|
||||
/** 默认单位 */
|
||||
defaultUnit?: string;
|
||||
}
|
||||
|
||||
/** Task */
|
||||
export interface Task {
|
||||
/** 任务 id */
|
||||
id?: string;
|
||||
/** 名称 */
|
||||
name?: string;
|
||||
/** 所在空间 */
|
||||
spaceID?: string;
|
||||
/** 类型 */
|
||||
type?: TaskType;
|
||||
/** 状态 */
|
||||
status?: TaskStatusType;
|
||||
/** 描述 */
|
||||
description?: string;
|
||||
rule?: Rule;
|
||||
/** 是否可删除 */
|
||||
deletable?: boolean;
|
||||
/** 是否可编辑 */
|
||||
editable?: boolean;
|
||||
/** 密级 */
|
||||
securityLevel?: SecurityLevel;
|
||||
/** 审批工单信息 */
|
||||
ticket?: ApplyTicket;
|
||||
/** Status detail
|
||||
数据集导入状态详情 */
|
||||
spanToDatatasetStat?: SpanToDatasetStat;
|
||||
/** 在线评测状态详情 */
|
||||
spanEvalStat?: SpanEvalStat;
|
||||
/** 批量评测状态详情 */
|
||||
batchExecAutoUseCaseStat?: BatchExecAutoUseCaseStat;
|
||||
/** 回填历史数据详情 */
|
||||
backfillStat?: BackfillStat;
|
||||
/** 创建者 */
|
||||
createdBy?: string;
|
||||
/** 更新者 */
|
||||
updatedBy?: string;
|
||||
/** 创建时间 */
|
||||
createdAt?: string;
|
||||
/** 更新时间 */
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export interface TriggerTime {
|
||||
execAt?: string;
|
||||
/** 按天重复 */
|
||||
repeatDays?: ExecutePeriodic;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface Base {
|
||||
LogID?: string;
|
||||
Caller?: string;
|
||||
Addr?: string;
|
||||
Client?: string;
|
||||
TrafficEnv?: TrafficEnv;
|
||||
Extra?: Record<string, string>;
|
||||
}
|
||||
|
||||
export interface BaseResp {
|
||||
StatusMessage?: string;
|
||||
StatusCode?: number;
|
||||
Extra?: Record<string, string>;
|
||||
}
|
||||
|
||||
export interface TrafficEnv {
|
||||
Open?: boolean;
|
||||
Env?: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,370 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as model from './model';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum AIDPMsgOpType {
|
||||
Unknown = 0,
|
||||
InitItem = 1,
|
||||
PassSubmit = 2,
|
||||
BackSubmit = 3,
|
||||
DiscardSubmit = 4,
|
||||
AbandonSubmit = 5,
|
||||
DirectSubmit = 6,
|
||||
UpdateAnswer = 7,
|
||||
SendLabel = 8,
|
||||
ExitItem = 9,
|
||||
}
|
||||
|
||||
export enum AnnotatePlatform {
|
||||
Undefined = 0,
|
||||
AIDP = 1,
|
||||
}
|
||||
|
||||
export enum AuditResultEnum {
|
||||
/** 未检查 */
|
||||
Init = 1,
|
||||
/** 标记合格 */
|
||||
Pass = 2,
|
||||
/** 标记不合格 */
|
||||
Reject = 3,
|
||||
}
|
||||
|
||||
export enum AuditStatusEnum {
|
||||
/** 不涉及审核操作 */
|
||||
None = 0,
|
||||
/** 通过 */
|
||||
Pass = 1,
|
||||
/** 回收 */
|
||||
Recycle = 2,
|
||||
/** 打回 */
|
||||
Back = 3,
|
||||
}
|
||||
|
||||
export enum DatasetFileType {
|
||||
Undefined = 0,
|
||||
/** JSONL = 1 */
|
||||
CSV = 2,
|
||||
PARQUET = 3,
|
||||
}
|
||||
|
||||
export enum DatasetType {
|
||||
Undefined = 0,
|
||||
/** 数据处理数据集 */
|
||||
Default = 1,
|
||||
/** 评测集 */
|
||||
Eval = 2,
|
||||
/** 结果集 */
|
||||
EvalResult = 3,
|
||||
}
|
||||
|
||||
export enum DataSourceType {
|
||||
Undefined = 0,
|
||||
/** TOS = 1 */
|
||||
HDFS = 2,
|
||||
}
|
||||
|
||||
export enum FieldType {
|
||||
/** DefinedText 类型 */
|
||||
Undefined = 0,
|
||||
String = 1,
|
||||
Number = 2,
|
||||
Bool = 4,
|
||||
Array = 5,
|
||||
Object = 6,
|
||||
Null = 7,
|
||||
/** Dataset 原生类型 */
|
||||
MarkdownBox = 11,
|
||||
Image = 12,
|
||||
File = 13,
|
||||
JSONString = 14,
|
||||
TextFile = 15,
|
||||
MultiContent = 16,
|
||||
}
|
||||
|
||||
export enum InterpreterType {
|
||||
Undefined = 0,
|
||||
Aqua = 1,
|
||||
BizIDE = 2,
|
||||
}
|
||||
|
||||
export enum MsgOpType {
|
||||
/** 未知类型提交,暂时不会出现,只做该字段兜底取值使用 */
|
||||
Unknown = 0,
|
||||
/** 题目送标,等同于消息里的 IsInit = true */
|
||||
InitItem = 1,
|
||||
/** 提交后被通过,题目向后置节点流转,等同于 AuditNodeList[$x].AuditStatus = 1 */
|
||||
PassSubmit = 2,
|
||||
/** 提交后被打回,题目向前置节点流转,等同于 AuditNodeList[$x].AuditStatus = 3 */
|
||||
BackSubmit = 3,
|
||||
/** 废弃提交,等同于消息里的 IsDiscard = true */
|
||||
DiscardSubmit = 4,
|
||||
/** 点击无效后提交 */
|
||||
AbandonSubmit = 5,
|
||||
/** 直接提交,等同于消息里的 IsDirectSubmit = true */
|
||||
DirectSubmit = 6,
|
||||
/** 更新答案,等同于消息里的 IsUpdate = true */
|
||||
UpdateAnswer = 7,
|
||||
}
|
||||
|
||||
export enum RunLogSourceType {
|
||||
Undefined = 0,
|
||||
/** 文本 */
|
||||
Text = 1,
|
||||
/** 从TOS读取 */
|
||||
TOS = 2,
|
||||
/** 从StreamLog读取 */
|
||||
StreamLog = 3,
|
||||
}
|
||||
|
||||
export enum ScriptType {
|
||||
Undefined = 0,
|
||||
Python = 1,
|
||||
JavaScript = 2,
|
||||
}
|
||||
|
||||
export enum TaskStatus {
|
||||
Undefined = 0,
|
||||
/** 正在初始化 */
|
||||
Initializing = 1,
|
||||
/** 正在运行 */
|
||||
Running = 2,
|
||||
/** 成功完成 */
|
||||
Done = 3,
|
||||
/** 失败 */
|
||||
Failed = 4,
|
||||
/** 手动终止 */
|
||||
Terminated = 5,
|
||||
/** 成功完成,但有错误 */
|
||||
DoneWithError = 6,
|
||||
}
|
||||
|
||||
export enum TaskType {
|
||||
Undefined = 0,
|
||||
DataProcessing = 1,
|
||||
FineTuning = 2,
|
||||
}
|
||||
|
||||
/** 模版类型
|
||||
Notice: 此处类型不完整 */
|
||||
export enum TemplateType {
|
||||
/** Neeko类型模板 */
|
||||
Neeko = 1000,
|
||||
}
|
||||
|
||||
export interface AIDPConfig {
|
||||
/** AIDP 用户 ID */
|
||||
userID?: string;
|
||||
/** AIDP 任务 ID */
|
||||
taskID?: string;
|
||||
/** AIDP 任务详情链接 */
|
||||
taskURL?: string;
|
||||
}
|
||||
|
||||
export interface AnnotateStatusDetail {
|
||||
/** 总数据量 */
|
||||
inputSize?: string;
|
||||
/** 已送标数据量 */
|
||||
sent?: string;
|
||||
/** 已取标数据量 */
|
||||
received?: string;
|
||||
}
|
||||
|
||||
export interface AnnotateTask {
|
||||
id?: string;
|
||||
name?: string;
|
||||
spaceID?: string;
|
||||
/** 标注数据的平台 */
|
||||
platform?: AnnotatePlatform;
|
||||
/** AIDP 配置 */
|
||||
aidpConfig?: AIDPConfig;
|
||||
/** 任务状态 */
|
||||
status?: TaskStatus;
|
||||
/** 待标注字段映射关系 */
|
||||
sendMapConfig?: Array<SendFieldMapping>;
|
||||
/** 输入数据集信息 */
|
||||
inputDatasetInfo?: DatasetInfo;
|
||||
/** 输出数据集信息 */
|
||||
outputDatasetInfo?: DatasetInfo;
|
||||
/** 取标字段 */
|
||||
receiveFields?: Array<string>;
|
||||
/** 任务终止/失败的原因 */
|
||||
terminateReason?: string;
|
||||
/** 任务状态详情 */
|
||||
statusDetail?: AnnotateStatusDetail;
|
||||
/** 创建时间 */
|
||||
createdAt?: string;
|
||||
/** 更新时间,对于完成/失败/终止的任务,为结束时间 */
|
||||
updatedAt?: string;
|
||||
createdBy?: string;
|
||||
}
|
||||
|
||||
export interface DataProcessingTask {
|
||||
id?: string;
|
||||
name?: string;
|
||||
taskType?: TaskType;
|
||||
inDataset?: DatasetInfo;
|
||||
/** Deprecated,使用outDatasets */
|
||||
outDataset?: DatasetInfo;
|
||||
userScript?: UserScript;
|
||||
taskStatus?: TaskStatus;
|
||||
trainingDatasetType?: model.TrainingDatasetType;
|
||||
/** 输出数据集列表 */
|
||||
outDatasets?: Array<DatasetInfo>;
|
||||
/** 数据集类型 */
|
||||
datasetType?: DatasetType;
|
||||
/** Fornax空间ID */
|
||||
spaceID?: string;
|
||||
/** 创建人ID */
|
||||
createdBy?: string;
|
||||
/** 创建时间 */
|
||||
createdAt?: string;
|
||||
/** 更新人ID */
|
||||
updatedBy?: string;
|
||||
/** 更新时间 */
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export interface DatasetColumnMapping {
|
||||
fromColumn: string;
|
||||
toColumn: string;
|
||||
}
|
||||
|
||||
export interface DatasetImportTask {
|
||||
id?: string;
|
||||
datasetID?: string;
|
||||
status?: TaskStatus;
|
||||
fileType?: DatasetFileType;
|
||||
dataSource?: DataSource;
|
||||
overwrite?: boolean;
|
||||
/** 文件大小,单位:byte */
|
||||
totalSize?: number;
|
||||
/** 已处理数据大小,单位:byte */
|
||||
processedSize?: number;
|
||||
/** 已处理的行数 */
|
||||
processedLineCount?: number;
|
||||
/** 已导入的行数 */
|
||||
outputLineCount?: number;
|
||||
errLog?: string;
|
||||
msg?: string;
|
||||
/** 批量导入详情 */
|
||||
batchImportDetail?: Array<DataSource>;
|
||||
/** Fornax空间ID */
|
||||
spaceID?: string;
|
||||
/** 创建人ID */
|
||||
createdBy?: string;
|
||||
/** 创建时间,秒 */
|
||||
createdAt?: string;
|
||||
/** 更新人ID */
|
||||
updatedBy?: string;
|
||||
/** 更新时间,秒 */
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export interface DatasetInfo {
|
||||
id?: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface DataSource {
|
||||
type?: DataSourceType;
|
||||
/** 2: TOSFile tosFile */
|
||||
hdfsPath?: string;
|
||||
}
|
||||
|
||||
export interface ExportDatasetStatusDetail {
|
||||
/** 源数据集中的样本总数 */
|
||||
totalSamples: Int64;
|
||||
/** 成功写入到目标数据集的样本数 */
|
||||
addedSamples?: Int64;
|
||||
/** 错误信息 */
|
||||
errors?: Array<string>;
|
||||
}
|
||||
|
||||
export interface ExportDatasetTask {
|
||||
id?: string;
|
||||
spaceID: string;
|
||||
fromDatasetID: string;
|
||||
columnMappings?: Array<DatasetColumnMapping>;
|
||||
toDatasetID?: string;
|
||||
/** 为 true 时覆盖更新 */
|
||||
overwrite?: boolean;
|
||||
status?: TaskStatus;
|
||||
statusDetail?: ExportDatasetStatusDetail;
|
||||
createdBy?: string;
|
||||
createdAt?: string;
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export interface FieldInfo {
|
||||
name?: string;
|
||||
type?: FieldType;
|
||||
}
|
||||
|
||||
export interface ScriptRunResultItem {
|
||||
isSuccess?: boolean;
|
||||
input?: string;
|
||||
output?: string;
|
||||
error?: string;
|
||||
latencyInMs?: string;
|
||||
/** 期望输出到的数据集名称。如果为空则表明未找到目标数据集 */
|
||||
datasetName?: string;
|
||||
}
|
||||
|
||||
export interface SendFieldMapping {
|
||||
/** 输入数据集中的字段名 */
|
||||
inputField?: string;
|
||||
/** 映射的送标数据字段名 */
|
||||
sendField?: string;
|
||||
}
|
||||
|
||||
export interface TaskRun {
|
||||
id?: string;
|
||||
taskID?: string;
|
||||
realInDatasetID?: string;
|
||||
totalQty?: string;
|
||||
processedQty?: string;
|
||||
outputQty?: string;
|
||||
scriptHash?: string;
|
||||
message?: string;
|
||||
status?: TaskStatus;
|
||||
createdBy?: string;
|
||||
createdAt?: string;
|
||||
endedAt?: string;
|
||||
}
|
||||
|
||||
export interface UserScript {
|
||||
content?: string;
|
||||
scriptType?: ScriptType;
|
||||
interpreterType?: InterpreterType;
|
||||
templateVersion?: string;
|
||||
}
|
||||
|
||||
export interface UserScriptTemplateConfig {
|
||||
version?: string;
|
||||
template?: string;
|
||||
scriptType?: ScriptType;
|
||||
interpreterType?: InterpreterType;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum DataType {
|
||||
/** 默认,纯文本类型 */
|
||||
PlainText = 0,
|
||||
/** markdown-box 类型,用于展示markdown内容,字节基于标准 markdown 语法进行了扩展和修改
|
||||
@flow-web/md-box: */
|
||||
MarkdownBox = 11,
|
||||
Image = 12,
|
||||
File = 13,
|
||||
JSONString = 14,
|
||||
TextFile = 15,
|
||||
MultiContent = 16,
|
||||
DefinedText = 17,
|
||||
}
|
||||
|
||||
export enum DefinedType {
|
||||
Unknown = 0,
|
||||
Null = 1,
|
||||
String = 2,
|
||||
Number = 3,
|
||||
Bool = 4,
|
||||
Array = 5,
|
||||
Object = 6,
|
||||
}
|
||||
|
||||
export enum Role {
|
||||
System = 1,
|
||||
User = 2,
|
||||
Assistant = 3,
|
||||
Placeholder = 4,
|
||||
LLMOutput = 5,
|
||||
ToolOutput = 6,
|
||||
Function = 7,
|
||||
}
|
||||
|
||||
export interface CardInfo {
|
||||
/** card string 是json序列化字段,只透传obric/card返回的内容,具体cardBody,参考
|
||||
前端可以直接根据前端组件解析这个字段 */
|
||||
card_body?: string;
|
||||
}
|
||||
|
||||
export interface Content {
|
||||
text?: string;
|
||||
data_type?: DataType;
|
||||
markdown_box?: MarkdownBox;
|
||||
image_info?: ImageInfo;
|
||||
file_info?: FileInfo;
|
||||
json_info?: JSONInfo;
|
||||
text_file?: TextFile;
|
||||
multi_content_info?: MultiContentInfo;
|
||||
defined_text?: DefinedText;
|
||||
/** #31开始是输出字段
|
||||
card不单独作为类型,与其他DataType组合返回,不为空,即需要解析 */
|
||||
card_infos?: Array<CardInfo>;
|
||||
}
|
||||
|
||||
export interface DefinedText {
|
||||
defined_type?: DefinedType;
|
||||
content?: string;
|
||||
}
|
||||
|
||||
export interface File {
|
||||
name?: string;
|
||||
url?: string;
|
||||
uri?: string;
|
||||
}
|
||||
|
||||
export interface FileInfo {
|
||||
files?: Array<File>;
|
||||
}
|
||||
|
||||
export interface Image {
|
||||
name?: string;
|
||||
url?: string;
|
||||
uri?: string;
|
||||
thumb_url?: string;
|
||||
original_url?: string;
|
||||
}
|
||||
|
||||
export interface ImageInfo {
|
||||
images?: Array<Image>;
|
||||
}
|
||||
|
||||
export interface JSONInfo {
|
||||
content?: string;
|
||||
}
|
||||
|
||||
export interface MarkdownBox {
|
||||
text?: string;
|
||||
}
|
||||
|
||||
export interface MultiContentInfo {
|
||||
multi_content?: Array<Content>;
|
||||
}
|
||||
|
||||
export interface TextFile {
|
||||
preview_text?: string;
|
||||
name?: string;
|
||||
url?: string;
|
||||
uri?: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,174 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as flow_devops_evaluation_entity from './flow_devops_evaluation_entity';
|
||||
import * as flow_devops_evaluation_callback_common from './flow_devops_evaluation_callback_common';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum DatasetStatus {
|
||||
Unknown = 0,
|
||||
Normal = 1,
|
||||
Locked = 2,
|
||||
}
|
||||
|
||||
export enum DatasetType {
|
||||
Unknown = 0,
|
||||
Chat = 1,
|
||||
KV = 2,
|
||||
FunctionCall = 3,
|
||||
MultiModalUnderstanding = 4,
|
||||
}
|
||||
|
||||
export enum ProfessionalKnowledgeType {
|
||||
/** 官方 */
|
||||
Official = 1,
|
||||
/** 自定义 */
|
||||
Customize = 2,
|
||||
}
|
||||
|
||||
/** # service CreateDataset */
|
||||
export enum PublishOption {
|
||||
/** 评测数据集展示时使用(创建与查询,接口默认值) */
|
||||
Publish = 1,
|
||||
/** 评测任务创建数据集,不对外展示,只用于评测用例与任务使用 */
|
||||
NotPublish = 2,
|
||||
/** SFT 数据集展示,创建时需要指定该模式,查询时需要指定该模式 */
|
||||
SFTPublish = 3,
|
||||
/** 数据集展示,创建时需要指定该模式,查询时需要指定该模式 */
|
||||
DataProcessPublish = 4,
|
||||
/** 评测业务下的结果集场景 */
|
||||
EvalResultPublish = 5,
|
||||
}
|
||||
|
||||
export enum ReplyType {
|
||||
/** 最终结果 */
|
||||
ReplyTypeFinalAnswer = 0,
|
||||
/** 工具调用 */
|
||||
ReplyTypeToolCall = 1,
|
||||
}
|
||||
|
||||
export enum ResultState {
|
||||
Generated = 1,
|
||||
Selected = 2,
|
||||
Abandoned = 3,
|
||||
}
|
||||
|
||||
/** # dataset info */
|
||||
export enum RowGroupSource {
|
||||
Unknown = 0,
|
||||
ManualAdd = 1,
|
||||
RuntimeAutoRecord = 2,
|
||||
}
|
||||
|
||||
export enum SecurityLevel {
|
||||
Unknown = 0,
|
||||
L4 = 4,
|
||||
}
|
||||
|
||||
export enum StreamState {
|
||||
/** 非流式 */
|
||||
StreamStateNone = 1,
|
||||
/** 流式传输开始(首包) */
|
||||
StreamStateBegin = 2,
|
||||
/** 流式传输中 */
|
||||
StreamStateStreaming = 3,
|
||||
/** 流失传输结束(尾包) */
|
||||
StreamStateEnd = 4,
|
||||
}
|
||||
|
||||
export enum TaskState {
|
||||
/** task 状态流转
|
||||
初始化状态 */
|
||||
GenerateTaskInitState = 1,
|
||||
/** 运行状态 */
|
||||
GenerateTaskRunningState = 2,
|
||||
/** 任务完成状态 */
|
||||
GenerateTaskGenFinishedState = 3,
|
||||
/** 生成的任务全部做了标注 */
|
||||
GenerateTaskSelectCompletedState = 4,
|
||||
/** 终止状态 */
|
||||
GenerateTaskStoppedState = 5,
|
||||
/** 失败状态 */
|
||||
GenerateTaskFailedState = 6,
|
||||
}
|
||||
|
||||
/** # service UpdateDataset */
|
||||
export enum UpdateDatasetField {
|
||||
Name = 3,
|
||||
Desc = 4,
|
||||
Tag = 5,
|
||||
}
|
||||
|
||||
/** common
|
||||
############# DATASET ##############
|
||||
dataset
|
||||
# Column */
|
||||
export interface ColumnInfo {
|
||||
column_id?: Int64;
|
||||
/** len <= 256 */
|
||||
name: string;
|
||||
/** 字段描述 */
|
||||
describe?: string;
|
||||
/** 是否为评测系统内置定义列 */
|
||||
buildin?: boolean;
|
||||
}
|
||||
|
||||
export interface DatasetInfo {
|
||||
dataset_id?: Int64;
|
||||
name: string;
|
||||
space_id: Int64;
|
||||
creator_id: Int64;
|
||||
desc: string;
|
||||
column_schema: Array<ColumnInfo>;
|
||||
dataset_status?: DatasetStatus;
|
||||
dataset_type?: DatasetType;
|
||||
tag?: Array<flow_devops_evaluation_entity.Tag>;
|
||||
create_time?: Int64;
|
||||
update_time?: Int64;
|
||||
/** 密级 */
|
||||
security_level?: SecurityLevel;
|
||||
/** 过期时间 */
|
||||
expire_time?: Int64;
|
||||
publish_option?: PublishOption;
|
||||
/** 数据集容量, 默认为 5k */
|
||||
row_group_capacity?: Int64;
|
||||
/** Cell 中文本内容的 bytes 数限制, 默认为 3,2000 */
|
||||
max_cell_content_length?: Int64;
|
||||
/** 是否允许导出 */
|
||||
not_allow_export?: boolean;
|
||||
}
|
||||
|
||||
/** ############# ROW GROUP ############## */
|
||||
export interface Row {
|
||||
row_id?: Int64;
|
||||
cells?: Array<string>;
|
||||
cells_v2?: Array<flow_devops_evaluation_callback_common.Content>;
|
||||
}
|
||||
|
||||
export interface RowGroup {
|
||||
row_group_id?: Int64;
|
||||
group_name?: string;
|
||||
/** 新增创建时指定tags */
|
||||
tags?: Array<string>;
|
||||
rows: Array<Row>;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum CallbackType {
|
||||
/** rpc接口实现 */
|
||||
RPC = 1,
|
||||
/** 通过psm,http协议访问服务 */
|
||||
PSMHTTP = 2,
|
||||
/** 为开放评测对象类型;无法通过平台触发评测,被评测对象自行上报数据 */
|
||||
Open = 3,
|
||||
}
|
||||
|
||||
/** 评估结果数据类型 */
|
||||
export enum EvaluateResultDataType {
|
||||
Unknown = 0,
|
||||
/** 数值打分 */
|
||||
Score = 1,
|
||||
/** 数值 */
|
||||
Value = 2,
|
||||
/** 选项 */
|
||||
Select = 3,
|
||||
/** 纯文本描述 */
|
||||
PlainText = 4,
|
||||
}
|
||||
|
||||
/** 数值类型评估结果数值的具体类型 (EvaluateResultDataType = Value) */
|
||||
export enum EvaluateResultValueType {
|
||||
/** 浮点数数值, 默认 */
|
||||
Double = 0,
|
||||
/** 整数数值 */
|
||||
Int = 1,
|
||||
}
|
||||
|
||||
/** 评估粒度 */
|
||||
export enum EvaluatorGranularity {
|
||||
Unknown = 0,
|
||||
/** 单轮对话 */
|
||||
Row = 1,
|
||||
/** 对话组 */
|
||||
RowGroup = 2,
|
||||
}
|
||||
|
||||
/** faas http函数如果开启auth有自己的鉴权方式,和http不一样。 */
|
||||
export enum HTTPAuthType {
|
||||
/** 默认 */
|
||||
default = 0,
|
||||
/** 如果faas函数开启auth,需要给evaluation的服务账号secret开白名单 */
|
||||
JWT = 1,
|
||||
}
|
||||
|
||||
export enum HTTPMethod {
|
||||
Undefined = 0,
|
||||
Get = 1,
|
||||
Post = 2,
|
||||
}
|
||||
|
||||
export enum ModelPlatform {
|
||||
Unknown = 0,
|
||||
GPTOpenAPI = 1,
|
||||
MAAS = 2,
|
||||
}
|
||||
|
||||
/** 评估结果可选项 */
|
||||
export interface EvaluateResultOption {
|
||||
/** 选项名称 */
|
||||
name: string;
|
||||
color?: string;
|
||||
}
|
||||
|
||||
export interface ModelInfo {
|
||||
model_id?: Int64;
|
||||
model_name?: string;
|
||||
/** 前端展示名称 */
|
||||
show_name?: string;
|
||||
/** 前端展示名称 */
|
||||
max_tokens?: Int64;
|
||||
/** 模型家族信息 */
|
||||
model_family?: Int64;
|
||||
Platform?: ModelPlatform;
|
||||
}
|
||||
|
||||
/** 评分范围 */
|
||||
export interface ScoringScope {
|
||||
/** 评分范围上限 */
|
||||
max_score: number;
|
||||
/** 评分范围下限 */
|
||||
min_score: number;
|
||||
}
|
||||
|
||||
/** fornax 标签管理平台的标签 */
|
||||
export interface Tag {
|
||||
tag_id: Int64;
|
||||
/** 对于二级标签标签名称格式为: "一级标签名称" + "/" + "二级标签名称" */
|
||||
tag_name: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,229 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as flow_devops_evaluation_entity from './flow_devops_evaluation_entity';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum ContentType {
|
||||
Txt = 1,
|
||||
Image = 2,
|
||||
Audio = 3,
|
||||
Video = 4,
|
||||
Link = 6,
|
||||
Music = 7,
|
||||
Tako = 8,
|
||||
File = 9,
|
||||
Card = 50,
|
||||
BotCard = 51,
|
||||
APP = 100,
|
||||
OutputSearchResult = 200,
|
||||
}
|
||||
|
||||
/** Evaluator 执行时的处理流程的类型,表达 Evaluator 实现方式的属性信息
|
||||
EvaluatorID 是不可枚举的,但 EvaluatorProcessType 是可枚举的
|
||||
EvaluatorProcessType 是创建 Evaluator 时必须确定下来的信息。 */
|
||||
export enum EvaluatorProcessType {
|
||||
Prompt = 1,
|
||||
PythonCode = 2,
|
||||
JSCode = 3,
|
||||
BuildinFunc = 4,
|
||||
BuildinPrompt = 5,
|
||||
/** 目前包含了RPCCallback 和 HTTPCallback */
|
||||
CustomCallback = 6,
|
||||
/** 人工评测 */
|
||||
Manual = 7,
|
||||
/** 自定义指标上报 */
|
||||
CustomMetric = 8,
|
||||
/** 专项测试规则 */
|
||||
BuiltinSpecTest = 9,
|
||||
/** fornax平台Prompt开发中的prompt */
|
||||
FornaxPrompt = 10,
|
||||
/** coze2.0 裁判模型评估器 */
|
||||
CozePrompt = 11,
|
||||
}
|
||||
|
||||
export enum LLMResponseFormat {
|
||||
TEXT = 0,
|
||||
MARKDOWN = 1,
|
||||
JSON = 2,
|
||||
}
|
||||
|
||||
export enum ReplyType {
|
||||
Answer = 1,
|
||||
Suggest = 2,
|
||||
LLMOutput = 3,
|
||||
ToolOutput = 4,
|
||||
DataSet = 5,
|
||||
QueryKeyword = 6,
|
||||
IntermediateOutput = 7,
|
||||
}
|
||||
|
||||
export enum RuleRunState {
|
||||
/** 运行状态, 异步下状态流转, 同步下只有 Success / Fail */
|
||||
NotInit = 0,
|
||||
Init = 1,
|
||||
Processing = 2,
|
||||
Success = 3,
|
||||
Fail = 4,
|
||||
}
|
||||
|
||||
export enum SupportUpdateRuleGroupField {
|
||||
Name = 4,
|
||||
Desc = 5,
|
||||
}
|
||||
|
||||
export interface BuildinFuncRule {
|
||||
contents?: Array<string>;
|
||||
}
|
||||
|
||||
export interface BuildinPromptRule {
|
||||
contents?: Array<string>;
|
||||
model_name?: string;
|
||||
/** 20240815 服务端内部使用 */
|
||||
ModelInfo?: flow_devops_evaluation_entity.ModelInfo;
|
||||
}
|
||||
|
||||
export interface CozePromptRule {
|
||||
model_info: ModelInfo;
|
||||
prompt: string;
|
||||
}
|
||||
|
||||
export interface CustomCallback {
|
||||
content?: string;
|
||||
/** 回调业务方的env */
|
||||
env?: string;
|
||||
}
|
||||
|
||||
/** 自定义指标规则 */
|
||||
export interface CustomMetricsRule {
|
||||
data_type: flow_devops_evaluation_entity.EvaluateResultDataType;
|
||||
value_type?: flow_devops_evaluation_entity.EvaluateResultValueType;
|
||||
}
|
||||
|
||||
export interface FornaxPromptRule {
|
||||
/** prompt开发中prompt的唯一标识 */
|
||||
prompt_id: Int64;
|
||||
/** prompt版本 */
|
||||
version?: string;
|
||||
/** 服务端内部使用 */
|
||||
ModelInfo?: flow_devops_evaluation_entity.ModelInfo;
|
||||
}
|
||||
|
||||
export interface JSRule {
|
||||
code: string;
|
||||
}
|
||||
|
||||
export interface LLMSetting {
|
||||
model_version: string;
|
||||
temperature: number;
|
||||
respose_max_length: Int64;
|
||||
}
|
||||
|
||||
/** 多维度人工评测评分规则 */
|
||||
export interface ManualRule {
|
||||
/** 数据类型:数值评分、选项、纯文本 */
|
||||
data_type: flow_devops_evaluation_entity.EvaluateResultDataType;
|
||||
/** 评分范围 */
|
||||
scope?: flow_devops_evaluation_entity.ScoringScope;
|
||||
options?: Array<flow_devops_evaluation_entity.EvaluateResultOption>;
|
||||
}
|
||||
|
||||
export interface ModelInfo {
|
||||
model_id: Int64;
|
||||
temperature: number;
|
||||
max_tokens: Int64;
|
||||
top_p?: number;
|
||||
response_format?: LLMResponseFormat;
|
||||
presence_penalty?: number;
|
||||
frequency_penalty?: number;
|
||||
model_style?: Int64;
|
||||
model_name?: string;
|
||||
}
|
||||
|
||||
export interface PromptRule {
|
||||
setting: LLMSetting;
|
||||
content: string;
|
||||
/** 20240815 服务端内部使用 */
|
||||
ModelInfo?: flow_devops_evaluation_entity.ModelInfo;
|
||||
}
|
||||
|
||||
export interface PythonRule {
|
||||
code: string;
|
||||
}
|
||||
|
||||
export interface Rule {
|
||||
/** 规则 id */
|
||||
rule_id?: Int64;
|
||||
/** 评估器标识 */
|
||||
evaluator_type: Int64;
|
||||
process_type: EvaluatorProcessType;
|
||||
/** 自定义评估器的名称 */
|
||||
evaluator_type_name?: string;
|
||||
/** 权重 */
|
||||
weight?: Int64;
|
||||
creator_id?: Int64;
|
||||
/** 展示用名称 */
|
||||
name?: string;
|
||||
/** 评测粒度 */
|
||||
granularity?: flow_devops_evaluation_entity.EvaluatorGranularity;
|
||||
receive_chat_history?: boolean;
|
||||
/** 数据类型 */
|
||||
data_type?: flow_devops_evaluation_entity.EvaluateResultDataType;
|
||||
/** 不同的 EvaluatorProcessType 对应着不同的结构体定义 */
|
||||
prompt_rule?: PromptRule;
|
||||
python_rule?: PythonRule;
|
||||
js_rule?: JSRule;
|
||||
buildin_func_rule?: BuildinFuncRule;
|
||||
buildin_prompt_rule?: BuildinPromptRule;
|
||||
custom_callback?: CustomCallback;
|
||||
manual_rule?: ManualRule;
|
||||
custom_metrics?: CustomMetricsRule;
|
||||
spec_test_rule?: SpecTestRule;
|
||||
fornax_prompt_rule?: FornaxPromptRule;
|
||||
coze_prompt_rule?: CozePromptRule;
|
||||
}
|
||||
|
||||
export interface RuleGroup {
|
||||
meta: RuleGroupMeta;
|
||||
rules: Array<Rule>;
|
||||
}
|
||||
|
||||
export interface RuleGroupMeta {
|
||||
/** rule_group_id */
|
||||
id: Int64;
|
||||
name?: string;
|
||||
desc?: string;
|
||||
space_id: Int64;
|
||||
/** true 时该 rule group 在规则界面可见 */
|
||||
is_published?: boolean;
|
||||
creator_id?: Int64;
|
||||
created_at?: Int64;
|
||||
updated_at?: Int64;
|
||||
deleted_at?: Int64;
|
||||
/** 默认为空 */
|
||||
rules_count?: Int64;
|
||||
}
|
||||
|
||||
export interface SpecTestRule {
|
||||
content?: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,149 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
/** https://lilianweng.github.io/posts/2023-06-23-agent/agent-overview.png
|
||||
Agent 包含:Planning、Memory、Tools 等。
|
||||
这里 Action 泛指 Agent 下的各种子组件的类型的执行 */
|
||||
export enum ActionType {
|
||||
Unknown = 0,
|
||||
LLMPlanning = 1,
|
||||
ToolCall = 2,
|
||||
/** coze agent 思考过程 */
|
||||
CozeVerbose = 100,
|
||||
}
|
||||
|
||||
export enum BuiltinEvaluatorType {
|
||||
/** 以用户定制输入的 PromptTemplate 作为评估器的配置信息,对评估对象的输入输出进行测评 */
|
||||
Prompt = 1,
|
||||
/** 以用户定制输入的 Python Code 作为评估器的配置信息,对评估对象的输入输出进行测评 */
|
||||
PythonCode = 2,
|
||||
/** 以用户定制输入的 JS Code 作为评估器的配置信息,对评估对象的输入输出进行测评 */
|
||||
JSCode = 3,
|
||||
/** 人工评测 */
|
||||
Manual = 7,
|
||||
/** prompt开发中的prompt */
|
||||
FornaxPrompt = 10,
|
||||
/** coze2.0 裁判模型评估器 */
|
||||
CozePrompt = 11,
|
||||
/** 以用户定制输入的 Func 静态参数 作为评估器的配置信息,对评估对象的输入输出进行测评 */
|
||||
BuiltinEquals = 10000,
|
||||
BuiltinNotEquals = 10001,
|
||||
BuiltinContains = 10002,
|
||||
BuiltinNotContains = 10003,
|
||||
BuiltinIContains = 10004,
|
||||
BuiltinNotIContains = 10005,
|
||||
BuiltinRegex = 10006,
|
||||
BuiltinNotRegex = 10007,
|
||||
BuiltinStartsWith = 10008,
|
||||
BuiltinNotStartsWith = 10009,
|
||||
BuiltinContainsAny = 10010,
|
||||
BuiltinNotContainsAny = 10011,
|
||||
BuiltinContainsAll = 10012,
|
||||
BuiltinNotContainsAll = 10013,
|
||||
BuiltinIContainsAny = 10014,
|
||||
BuiltinNotIContainsAny = 10015,
|
||||
BuiltinIContainsAll = 10016,
|
||||
BuiltinNotIContainsAll = 10017,
|
||||
BuiltinIsJSON = 10018,
|
||||
BuiltinNotIsJSON = 10019,
|
||||
/** deprecated */
|
||||
BuiltinContainsJSON = 10020,
|
||||
/** deprecated */
|
||||
BuiltinNotContainsJSON = 10021,
|
||||
BuiltinIsValidJSONObject = 10022,
|
||||
BuiltinNotIsValidJSONObject = 10023,
|
||||
/** single criteria eval (auto check label / unlabeled) */
|
||||
BuiltinConcisenessCriteriaEval = 20001,
|
||||
BuiltinRelevanceCriteriaEval = 20002,
|
||||
BuiltinHarmfulnessCriteriaEval = 20003,
|
||||
BuiltinMaliciousnessCriteriaEval = 20004,
|
||||
BuiltinHelpfulnessCriteriaEval = 20005,
|
||||
BuiltinControversialityCriteriaEval = 20006,
|
||||
BuiltinMisogynyCriteriaEval = 20007,
|
||||
BuiltinCriminalityCriteriaEval = 20008,
|
||||
BuiltinInsensitivityCriteriaEval = 20009,
|
||||
BuiltinDepthCriteriaEval = 20010,
|
||||
BuiltinCreativityCriteriaEval = 20011,
|
||||
BuiltinDetailCriteriaEval = 20012,
|
||||
/** must labeled, CotQA */
|
||||
BuiltinCorrectnessEval = 20013,
|
||||
/** 语言一致性 */
|
||||
BuiltinSpecTestLanguageConsistency = 20014,
|
||||
/** 回复拒答检查 */
|
||||
BuiltinSpecTestResponseDenialCheck = 20015,
|
||||
/** 内容真实性 */
|
||||
BuiltinSpecTestContentAuthenticity = 20016,
|
||||
/** 内容准确性 */
|
||||
BuiltinSpecTestContentAccuracy = 20017,
|
||||
/** 满足需求性 */
|
||||
BuiltinSpecTestNeedFulfillment = 20018,
|
||||
/** 回复时效性 */
|
||||
BuiltinSpecTestResponseTimeliness = 20019,
|
||||
/** 回复冗余性 */
|
||||
BuiltinSpecTestResponseRedundancy = 20020,
|
||||
/** 符合人设 */
|
||||
BuiltinSpecTestCharacterConsistency = 20021,
|
||||
/** 拟人程度 */
|
||||
BuiltinSpecTestAnthropomorphismLevel = 20022,
|
||||
/** 输入-输出语义相似度 */
|
||||
BuiltinSpecTestIOSematicSimilarity = 20023,
|
||||
/** 答案-输出语义相似度 */
|
||||
BuiltinSpecTestAOSematicSimilarity = 20024,
|
||||
/** 生图一致性 */
|
||||
BuiltinSpecTestImageGenerationConsistency = 20025,
|
||||
/** 图片美观性 */
|
||||
BuiltinSpecTestImageAesthetics = 20026,
|
||||
/** 回复完整性 */
|
||||
BuiltinSpecTestResponseCompleteness = 20027,
|
||||
/** 文生图完整性 */
|
||||
BuiltinSpecTestTextToImageGenerationCompleteness = 20028,
|
||||
/** 代码生成质量 */
|
||||
BuiltinSpecTestCodeGenerationScoring = 20029,
|
||||
/** 插件调用正确性 for coze bot */
|
||||
BuiltinSpecTestPluginCallingCorrectness = 20030,
|
||||
/** 插件入参正确性 for coze bot */
|
||||
BuiltinSpecTestPluginParametersCorrectness = 20031,
|
||||
/** Workflow调用正确性 for coze bot */
|
||||
BuiltinSpecTestWorkflowCallingCorrectness = 20032,
|
||||
/** Workflow入参正确性 for coze bot */
|
||||
BuiltinSpecTestWorkflowParametersCorrectness = 20033,
|
||||
/** 触发器调用正确性 for coze bot */
|
||||
BuiltinSpecTestTriggerCallingCorrectness = 20034,
|
||||
/** 触发器入参正确性 for coze bot */
|
||||
BuiltinSpecTestTriggerParametersCorrectness = 20035,
|
||||
/** 流程编排准确性 for coze bot */
|
||||
BuiltinSpecTestChoreographyAccuracy = 20036,
|
||||
/** Fornax prompt 泄露检测 */
|
||||
BuiltinFornaxPromptLeakDetection = 20200,
|
||||
/** 自定义指标
|
||||
系统内置指标 */
|
||||
BuiltinDefaultMetric = 30001,
|
||||
/** 用户上报自定义指标 */
|
||||
BuiltinCustomMetric = 30002,
|
||||
}
|
||||
|
||||
export enum EvaluatorState {
|
||||
Success = 1,
|
||||
Fail = 2,
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum AnnotationItemDataType {
|
||||
Unknown = 0,
|
||||
/** 数值打分 */
|
||||
Score = 1,
|
||||
/** 数值 */
|
||||
Value = 2,
|
||||
/** 选项 */
|
||||
Select = 3,
|
||||
/** 纯文本描述 */
|
||||
PlainText = 4,
|
||||
}
|
||||
|
||||
export enum ManualAnnotationLabelTaskStatus {
|
||||
Created = 10,
|
||||
Finished = 50,
|
||||
}
|
||||
|
||||
export enum ManualAnnotationTaskCreateStatus {
|
||||
Unknown = 0,
|
||||
Creating = 1,
|
||||
Failed = 2,
|
||||
Success = 3,
|
||||
}
|
||||
|
||||
/** 标注任务回写状态 */
|
||||
export enum ManualAnnotationTaskWriteBackStatus {
|
||||
Unknown = 0,
|
||||
/** 任务进行中 */
|
||||
Running = 1,
|
||||
/** 任务成功 */
|
||||
Success = 2,
|
||||
/** 任务失败 */
|
||||
Failed = 3,
|
||||
}
|
||||
|
||||
export enum ManualStatus {
|
||||
/** 不需要人工标注 */
|
||||
NoNeed = 0,
|
||||
/** 需要人工标注 */
|
||||
Need = 1,
|
||||
}
|
||||
|
||||
export enum ObjectType {
|
||||
/** 评测任务row,objectID为task_id+row_id */
|
||||
EvaluationTaskRow = 1,
|
||||
}
|
||||
|
||||
export enum RowGroupRunState {
|
||||
Unknown = -1,
|
||||
/** 排队中 */
|
||||
Queueing = 0,
|
||||
/** 执行中 */
|
||||
Processing = 1,
|
||||
/** 成功 */
|
||||
Success = 2,
|
||||
/** 失败 */
|
||||
Fail = 3,
|
||||
/** 结果待评估 */
|
||||
Evaluating = 4,
|
||||
/** 终止执行 */
|
||||
Terminal = 5,
|
||||
}
|
||||
|
||||
export enum RowRunState {
|
||||
/** 未开始执行 */
|
||||
Queueing = 0,
|
||||
/** 执行成功 */
|
||||
Success = 1,
|
||||
/** 执行失败 */
|
||||
Fail = 2,
|
||||
}
|
||||
|
||||
export enum SourceType {
|
||||
/** 评测对比报告,sourceID为评测对比报告ID */
|
||||
EvaluationContrastReport = 1,
|
||||
/** 评测任务,sourceID为评测任务ID */
|
||||
EvaluationTask = 2,
|
||||
/** 无来源 */
|
||||
NoSource = 100,
|
||||
}
|
||||
|
||||
export enum VisibleArea {
|
||||
Unknown = 0,
|
||||
/** 在评测模块可见 */
|
||||
Evaluation = 1,
|
||||
/** 在标注模块可见 */
|
||||
ManuaAnnotation = 2,
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as flow_devops_evaluation_entity from './flow_devops_evaluation_entity';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum ObjectTypeCategory {
|
||||
/** 内置评估对象类型 */
|
||||
Builtin = 1,
|
||||
/** 自定义评估对象类型 */
|
||||
Custom = 2,
|
||||
}
|
||||
|
||||
export interface FaasCallbackObjectParams {
|
||||
psm?: string;
|
||||
cluster?: string;
|
||||
/** 单位ms */
|
||||
timeout?: Int64;
|
||||
faas_id?: string;
|
||||
agent_execute_path?: string;
|
||||
search_object_path?: string;
|
||||
http_auth_type?: flow_devops_evaluation_entity.HTTPAuthType;
|
||||
/** NeedSearchObjectMetaInfo为true的情况下,需要填写SearchObjectPath */
|
||||
need_search_object_meta_info?: boolean;
|
||||
search_object_method?: flow_devops_evaluation_entity.HTTPMethod;
|
||||
agent_execute_method?: flow_devops_evaluation_entity.HTTPMethod;
|
||||
}
|
||||
|
||||
export interface RPCCallbackObjectParams {
|
||||
psm?: string;
|
||||
cluster?: string;
|
||||
/** 单位ms */
|
||||
timeout?: Int64;
|
||||
need_search_object_meta_info?: boolean;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as flow_devops_evaluation_entity from './flow_devops_evaluation_entity';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum AsyncStatus {
|
||||
Running = 1,
|
||||
Success = 2,
|
||||
Failure = 3,
|
||||
}
|
||||
|
||||
export enum CozeBotInfoType {
|
||||
/** 草稿 bot */
|
||||
DraftBot = 1,
|
||||
/** 商店 bot */
|
||||
ProductBot = 2,
|
||||
}
|
||||
|
||||
/** 回调的壳子:
|
||||
既作为服务端返回参数
|
||||
关联对象时候,又作为前端传参的壳子 */
|
||||
export interface Object {
|
||||
object_type: Int64;
|
||||
/** UI上针对评估对象的拉列表页展示的名称,objectMetaName */
|
||||
name?: string;
|
||||
/** 一方 Agent 中子评估对象的唯一标识和配置等相关信息。建议采用 Json 序列化透传
|
||||
ObjectMeta 的生产、传递、消费路径:SearchObject(生产方)->评测平台UI->评测平台用户圈选->评测平台服务端->评测对象Playground(消费方)
|
||||
ObjectMeta 由 评估对象服务方 生成和解析,评测平台仅透传
|
||||
像内置的接口没有这个字段 */
|
||||
object_meta?: string;
|
||||
/** 用于筛选哪些object可见 */
|
||||
space_id: Int64;
|
||||
/** 只用于展示的object信息,例如bot头像 */
|
||||
avatar_url?: string;
|
||||
/** 回调业务方的env, 前端透传该值,由evaluation解析后执行对应泳道的回调 */
|
||||
env?: string;
|
||||
/** UI在用例列表展示唯一子对象的id,需回调业务方填 */
|
||||
object_meta_id?: string;
|
||||
/** UI在用例列表展示,用户在前端选中评测对象后,快照存储用于在用例列表中展示 */
|
||||
object_type_name?: string;
|
||||
callback_type?: flow_devops_evaluation_entity.CallbackType;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,573 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as flow_devops_evaluation_entity from './flow_devops_evaluation_entity';
|
||||
import * as flow_devops_evaluation_object_callback from './flow_devops_evaluation_object_callback';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
/** 聚合方式 */
|
||||
export enum AggregatorMode {
|
||||
Unknown = 0,
|
||||
/** 按照评测维度标签聚合 */
|
||||
EvaluatorTag = 1,
|
||||
}
|
||||
|
||||
/** 聚合器类型 */
|
||||
export enum AggregatorType {
|
||||
Average = 1,
|
||||
Sum = 2,
|
||||
Max = 3,
|
||||
Min = 4,
|
||||
/** 使用double类型来表示百分比。例如50.5%设置为0.505 */
|
||||
PassingRate = 5,
|
||||
ExcellentRate = 6,
|
||||
/** 人工选项打分,count 各选项并给出比例分布 */
|
||||
Count = 7,
|
||||
Pct50 = 8,
|
||||
Pct90 = 9,
|
||||
Pct99 = 10,
|
||||
}
|
||||
|
||||
export enum BatchTaskRetryMode {
|
||||
All = 1,
|
||||
Unsuccessful = 2,
|
||||
}
|
||||
|
||||
export enum BitableStatus {
|
||||
Unknown = 0,
|
||||
/** 任务未开始 */
|
||||
Running = 1,
|
||||
/** 任务成功 */
|
||||
Success = 2,
|
||||
/** 任务失败 */
|
||||
Failed = 3,
|
||||
}
|
||||
|
||||
/** ChainTask模版类型 */
|
||||
export enum ChainTaskTemplate {
|
||||
ChainTaskTemplate_Unknow = 0,
|
||||
ChainTaskTemplate_BotTemplate = 1,
|
||||
}
|
||||
|
||||
/** 分析图表的类型 */
|
||||
export enum ChartType {
|
||||
Unknown = 0,
|
||||
/** 指标卡 */
|
||||
KPI = 1,
|
||||
/** 饼图 */
|
||||
Pie = 2,
|
||||
/** 条形图 */
|
||||
Bar = 3,
|
||||
/** 条形堆积图 */
|
||||
StackedBar = 4,
|
||||
/** 雷达图 */
|
||||
Radar = 5,
|
||||
/** 折线图 */
|
||||
Line = 6,
|
||||
}
|
||||
|
||||
export enum DataType {
|
||||
/** 默认,有小数的浮点数值类型 */
|
||||
Double = 0,
|
||||
JSON = 1,
|
||||
}
|
||||
|
||||
/** 评估器资源 */
|
||||
export enum EvaluateMode {
|
||||
/** 人工 */
|
||||
Manual = 0,
|
||||
/** 自动 */
|
||||
Auto = 1,
|
||||
/** 重置 */
|
||||
Reset = 2,
|
||||
}
|
||||
|
||||
/** 关联评估器 */
|
||||
export enum EvaluateScope {
|
||||
/** data row 范围 */
|
||||
Row = 0,
|
||||
/** 全case默认生效 */
|
||||
Case = 1,
|
||||
}
|
||||
|
||||
export enum ExecutionPolicy {
|
||||
/** error 停止运行 */
|
||||
StopOnAnyError = 1,
|
||||
/** error 继续执行后续任务 */
|
||||
ContinueOnAnyError = 2,
|
||||
/** 部分失败继续执行后续任务 */
|
||||
OnlyContinueOnPartialError = 3,
|
||||
}
|
||||
|
||||
export enum ExportCSVSourceType {
|
||||
/** 后续可能迁移单报告为服务端导出 */
|
||||
EvaluationTaskReport = 1,
|
||||
ContrastReport = 2,
|
||||
}
|
||||
|
||||
export enum FilterField {
|
||||
Unknown = 0,
|
||||
/** 得分 */
|
||||
Score = 1,
|
||||
/** 数值 */
|
||||
Value = 2,
|
||||
/** 评测结果option value */
|
||||
OptionValue = 3,
|
||||
/** 标注 */
|
||||
Plaintext = 4,
|
||||
/** 数据集标签 */
|
||||
DataSetTag = 5,
|
||||
/** 评测维度,对应于ruleID */
|
||||
RuleID = 6,
|
||||
}
|
||||
|
||||
export enum FilterLogicOp {
|
||||
Unknown = 0,
|
||||
And = 1,
|
||||
Or = 2,
|
||||
}
|
||||
|
||||
export enum FilterOperatorType {
|
||||
Unknown = 0,
|
||||
/** 等于 */
|
||||
Equal = 1,
|
||||
/** 不等于 */
|
||||
NotEqual = 2,
|
||||
/** 包含 */
|
||||
Contains = 3,
|
||||
/** 不包含 */
|
||||
NotContains = 4,
|
||||
/** 大于 */
|
||||
Greater = 5,
|
||||
/** 大于等于 */
|
||||
GreaterOrEqual = 6,
|
||||
/** 小于 */
|
||||
Less = 7,
|
||||
/** 小于等于 */
|
||||
LessOrEqual = 8,
|
||||
/** 空 */
|
||||
IsNull = 9,
|
||||
/** 非空 */
|
||||
IsNotNull = 10,
|
||||
}
|
||||
|
||||
export enum FornaxAgentOpenAPIKey {
|
||||
Unknown = 0,
|
||||
Invoke = 1,
|
||||
Stream = 2,
|
||||
}
|
||||
|
||||
export enum FornaxAgentTmplType {
|
||||
Unknown = 0,
|
||||
ChatBot = 1,
|
||||
OpenAPI = 2,
|
||||
}
|
||||
|
||||
export enum GenAnnotationTaskCustomFilterLanguage {
|
||||
Unknown = 0,
|
||||
Golang = 1,
|
||||
Typescript = 2,
|
||||
Python = 3,
|
||||
}
|
||||
|
||||
/** 分组方式 */
|
||||
export enum GroupMode {
|
||||
Unknown = 0,
|
||||
/** 数据集标签 */
|
||||
DataSetTag = 1,
|
||||
/** 按照option结果分组 */
|
||||
OptionResult = 2,
|
||||
}
|
||||
|
||||
export enum ManualStatus {
|
||||
/** 不需要人工标注 */
|
||||
NoNeed = 0,
|
||||
/** 需要人工标注 */
|
||||
Need = 1,
|
||||
}
|
||||
|
||||
export enum ModelResponseFormat {
|
||||
Text = 0,
|
||||
Markdown = 1,
|
||||
JSON = 2,
|
||||
}
|
||||
|
||||
export enum ModelStyle {
|
||||
Custom = 0,
|
||||
Creative = 1,
|
||||
Balance = 2,
|
||||
Precise = 3,
|
||||
}
|
||||
|
||||
/** 评估器资源 */
|
||||
export enum PromptTemplateFormat {
|
||||
PromptTemplateFormat_FString = 0,
|
||||
PromptTemplateFormat_Jinja2 = 1,
|
||||
}
|
||||
|
||||
export enum RetryMode {
|
||||
All = 1,
|
||||
/** 重试未成功的rowGroup */
|
||||
Unsuccessful = 2,
|
||||
/** 指定rowGroupID重试 */
|
||||
SpecifyRowGroup = 3,
|
||||
}
|
||||
|
||||
export enum RowGroupRunState {
|
||||
Unknown = -1,
|
||||
/** 排队中 */
|
||||
Queueing = 0,
|
||||
/** 执行中 */
|
||||
Processing = 1,
|
||||
/** 成功 */
|
||||
Success = 2,
|
||||
/** 失败 */
|
||||
Fail = 3,
|
||||
/** 结果待评估 */
|
||||
Evaluating = 4,
|
||||
/** 终止执行 */
|
||||
Terminal = 5,
|
||||
}
|
||||
|
||||
export enum RowRunState {
|
||||
/** 未开始执行 */
|
||||
Queueing = 0,
|
||||
/** 执行成功 */
|
||||
Success = 1,
|
||||
/** 执行失败 */
|
||||
Fail = 2,
|
||||
}
|
||||
|
||||
/** 表单展示元素类型 */
|
||||
export enum ShowEntityType {
|
||||
/** 评测对象coze bot,对应使用 11:CozeEntityMap */
|
||||
CozeBot = 1,
|
||||
/** 评测对象prompt */
|
||||
Prompt = 2,
|
||||
/** 用户信息 */
|
||||
User = 3,
|
||||
/** 注册agent */
|
||||
Agent = 4,
|
||||
}
|
||||
|
||||
/** SpecialObjectType 后面可单独在 评估对象管理平台上进行动态注册,注册的会动态分配 */
|
||||
export enum SpecialObjectType {
|
||||
CozeBot = 0,
|
||||
Prompt = 1,
|
||||
ChainTask = 2,
|
||||
/** 接入 Fornax 的应用,Eino 框架默认集成 */
|
||||
FornaxApp = 3,
|
||||
/** CloudIDE 提供的 FornaxAgent */
|
||||
FornaxAgent = 4,
|
||||
PlaygroundCozeBot = 5,
|
||||
PlaygroundCozeBotV2 = 6,
|
||||
/** 结果集批量评测类型 */
|
||||
EvalResultDatasetCollection = 7,
|
||||
PlaygroundCozeModel = 8,
|
||||
CiciCrawl = 9,
|
||||
/** 自定义评测规则,idgen id 不可枚举, 此 enum 仅用于搜索&过滤的 request */
|
||||
Custom = 100,
|
||||
}
|
||||
|
||||
export enum TaskAggrReportGenStatus {
|
||||
/** 未生成,任务未执行完成 */
|
||||
NotGenerated = 0,
|
||||
/** 更新中 */
|
||||
Updating = 1,
|
||||
/** 运行时可查看报告详情,完成 后展示整体得分和【查看聚合报告可点击】 */
|
||||
Generated = 2,
|
||||
/** 完成后如果评分有更新,需要重新聚合计算 */
|
||||
NeedUpdate = 3,
|
||||
}
|
||||
|
||||
export enum TaskManualStatus {
|
||||
NoNeed = 0,
|
||||
Need = 1,
|
||||
Completed = 2,
|
||||
}
|
||||
|
||||
export enum TaskMode {
|
||||
Unknown = 0,
|
||||
/** 平台手动运行Case */
|
||||
SubmitExec = 1,
|
||||
/** 在线评测场景 */
|
||||
OnlineSyncExec = 2,
|
||||
}
|
||||
|
||||
export enum TaskStatus {
|
||||
/** 评测任务执行中,前端展示【运行中】 */
|
||||
Processing = 1,
|
||||
/** 评测任务创建中,初始话rowGroup状态等操作,前端展示【创建中】 */
|
||||
Creating = 4,
|
||||
/** rowgroup持续评测并添加到任务,在线评测场景中使用 */
|
||||
Appending = 10,
|
||||
/** 执行完成且需要人工评分,前端展示【需要人工评分】 */
|
||||
NeedManualEval = 20,
|
||||
/** 用户手动取消运行, 前端展示【已终止,用户取消】 */
|
||||
Termination = 21,
|
||||
/** 系统主动终止任务,前端展示【已终止: 系统异常】 */
|
||||
SystemTermination = 22,
|
||||
/** 任务执行完成,前端展示【成功】 */
|
||||
Completed = 30,
|
||||
/** 执行完成,全部 rowGroup 都执行失败,前端展示【失败】 */
|
||||
Error = 31,
|
||||
/** 执行完成, 部分rowGroup失败。前端展示【部分失败】 */
|
||||
PartialFailure = 41,
|
||||
/** 任务已创建,等待任务被调度执行 */
|
||||
AwaitExecution = 42,
|
||||
/** 等待任务被重试 */
|
||||
AwaitRetry = 43,
|
||||
}
|
||||
|
||||
export enum UserChangeMode {
|
||||
/** 无限制,用户可读写、运行 */
|
||||
Default = 0,
|
||||
/** 不可编辑、不可触发运行,可读 */
|
||||
ReadOnly = 5,
|
||||
}
|
||||
|
||||
export interface ChainTask {
|
||||
task_id: string;
|
||||
task_name?: string;
|
||||
/** 评测时候,chainTask的版本,需要前端传 */
|
||||
version?: number;
|
||||
model_info?: string;
|
||||
chain_task_template?: ChainTaskTemplate;
|
||||
prompt_template_format?: PromptTemplateFormat;
|
||||
app_id?: string;
|
||||
}
|
||||
|
||||
export interface CiciCrawl {
|
||||
bot_id: string;
|
||||
name?: string;
|
||||
avatar_url?: string;
|
||||
crawl_project_id?: string;
|
||||
}
|
||||
|
||||
export interface CozeAgent {
|
||||
AgentID: Int64;
|
||||
AgentName: string;
|
||||
ModelInfo?: flow_devops_evaluation_entity.ModelInfo;
|
||||
}
|
||||
|
||||
/** 评测CozeBot */
|
||||
export interface CozeBot {
|
||||
bot_id?: Int64;
|
||||
/** 默认0, 是draft版本
|
||||
deprecated */
|
||||
is_draft?: number;
|
||||
/** 创建case version 为空,task实体会携带当前case run 时候 bot version */
|
||||
version?: Int64;
|
||||
/** Bot类型,默认0, 是draft版本 */
|
||||
bot_info_type?: flow_devops_evaluation_object_callback.CozeBotInfoType;
|
||||
/** 创建case connector_id 为空,task实体会携带当前case run 时候 bot connector_id */
|
||||
connector_id?: string;
|
||||
model_info?: flow_devops_evaluation_entity.ModelInfo;
|
||||
bot_name?: string;
|
||||
avatar_url?: string;
|
||||
env?: string;
|
||||
bot_version?: string;
|
||||
Agents?: Array<CozeAgent>;
|
||||
}
|
||||
|
||||
export interface EvalObject {
|
||||
/** 评测对象的类型。每一个 RPC 接口,视为一种类型 */
|
||||
object_type: Int64;
|
||||
/** ObjectType=0 时,传参此字段。 评测对象为 CozeBot 时, 需要设置 CozeBot 信息 */
|
||||
coze_bot?: CozeBot;
|
||||
/** ObjectType=1 时,传参此字段。 评测对象为 EvalPrompt 时, 需要设置 Prompt 信息 */
|
||||
prompt?: EvalPrompt;
|
||||
/** ObjectType 为其他时,传参此字段 */
|
||||
object?: flow_devops_evaluation_object_callback.Object;
|
||||
/** ObjectType=2 时,传参此字段。 评测对象为 ChainTask 时, 需要设置 ChainTask 信息 */
|
||||
chain_task?: ChainTask;
|
||||
fornax_app_object?: FornaxAppObject;
|
||||
fornax_agent_object?: FornaxAgentObject;
|
||||
playground_coze_bot_v2?: PlaygroundCozeBotV2;
|
||||
/** EvalResultDatasetCollection 类型对象数据 */
|
||||
eval_result_dataset_collection?: EvalResultDatasetCollection;
|
||||
playground_coze_model?: PlaygroundCozeModel;
|
||||
cici_crawl?: CiciCrawl;
|
||||
}
|
||||
|
||||
export interface EvalPrompt {
|
||||
/** 一个prompt的唯一标识 */
|
||||
prompt_id: string;
|
||||
/** 评测时候,prompt的版本,需要前端传 */
|
||||
version?: string;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export interface EvalResultDatasetCollection {
|
||||
items: Array<EvalResultDatasetObject>;
|
||||
}
|
||||
|
||||
export interface EvalResultDatasetObject {
|
||||
dataset_id: Int64;
|
||||
rule_group_id: Int64;
|
||||
dataset_name?: string;
|
||||
}
|
||||
|
||||
export interface FornaxAgentAPI {
|
||||
open_api_key?: FornaxAgentOpenAPIKey;
|
||||
}
|
||||
|
||||
export interface FornaxAgentObject {
|
||||
agent_id: Int64;
|
||||
faas_id: string;
|
||||
name?: string;
|
||||
avatar_url?: string;
|
||||
tmpl_type?: FornaxAgentTmplType;
|
||||
/** 评测的目标 api */
|
||||
api?: FornaxAgentAPI;
|
||||
}
|
||||
|
||||
export interface FornaxAppObject {
|
||||
psm: string;
|
||||
env: string;
|
||||
cluster: string;
|
||||
region: string;
|
||||
app_id: string;
|
||||
client_id: string;
|
||||
/** for 二级搜索 */
|
||||
object?: flow_devops_evaluation_object_callback.Object;
|
||||
}
|
||||
|
||||
/** Coze2.0Bot */
|
||||
export interface PlaygroundCozeBotV2 {
|
||||
bot_id?: Int64;
|
||||
/** 创建case version 为空,task实体会携带当前case run 时候 bot version */
|
||||
bot_version?: string;
|
||||
/** Bot类型,默认0, 是draft版本 */
|
||||
bot_info_type?: flow_devops_evaluation_object_callback.CozeBotInfoType;
|
||||
model_info?: flow_devops_evaluation_entity.ModelInfo;
|
||||
bot_name?: string;
|
||||
avatar_url?: string;
|
||||
}
|
||||
|
||||
/** Coze2.0 model */
|
||||
export interface PlaygroundCozeModel {
|
||||
/** 模型id */
|
||||
model_id?: string;
|
||||
/** 温度,模型输出随机性,值越大越随机,越小越保守(0-1] */
|
||||
temperature?: number;
|
||||
/** 回复最大Token数 */
|
||||
max_tokens?: number;
|
||||
/** 另一种模型的输出随机性,值越大越随机[0,1] */
|
||||
top_p?: number;
|
||||
/** 生成时,采样候选集的大小 */
|
||||
top_k?: number;
|
||||
/** 频率惩罚,调整生成内容中的单词频率,正值单词越少见[-1.0,1.0] */
|
||||
frequency_penalty?: number;
|
||||
/** 存在惩罚,调整生成内容中新词语频率,正值避免重复单词,用新词[-1.0,1.0] */
|
||||
presence_penalty?: number;
|
||||
/** 模型回复内容格式 */
|
||||
response_format?: ModelResponseFormat;
|
||||
/** 模型名称 */
|
||||
model_name?: string;
|
||||
}
|
||||
|
||||
export interface ScoringThreshold {
|
||||
/** 及格率阈值 */
|
||||
pass_threshold?: number;
|
||||
/** 优秀率阈值 */
|
||||
excellent_threshold?: number;
|
||||
}
|
||||
|
||||
export interface Task {
|
||||
id?: Int64;
|
||||
status?: TaskStatus;
|
||||
dataset_id?: Int64;
|
||||
/** run case时候的评测对象实体,包含版本信息 */
|
||||
eval_object?: EvalObject;
|
||||
/** 运行的测数据行数 */
|
||||
row_run_cnt?: Int64;
|
||||
/** 任务整体开销 */
|
||||
token?: Int64;
|
||||
/** 任务整体耗时 */
|
||||
consuming?: Int64;
|
||||
/** 任务开始执行时间 */
|
||||
start_time?: Int64;
|
||||
/** 任务执行完成时间 */
|
||||
end_time?: Int64;
|
||||
creator_id?: Int64;
|
||||
/** 执行本次任务的log_id */
|
||||
log_id?: string;
|
||||
/** 本次执行失败的原因文案 */
|
||||
object_output_err?: string;
|
||||
/** 任务统计, RowGroup维度 */
|
||||
task_stats?: TaskStats;
|
||||
/** 任务人工评分统计, Row维度 */
|
||||
task_manual_stats?: TaskManualStats;
|
||||
/** 任务人工评分状态 */
|
||||
task_manual_status?: TaskManualStatus;
|
||||
/** 聚合报告生成状态 */
|
||||
aggr_report_gen_status?: TaskAggrReportGenStatus;
|
||||
score?: number;
|
||||
passing_rate?: number;
|
||||
excellent_rate?: number;
|
||||
/** 及格优秀阈值 */
|
||||
threshold?: ScoringThreshold;
|
||||
/** deprecated 评测对象整体 token消耗 */
|
||||
object_token_usage?: TokenUsage;
|
||||
/** 运行时参数,json序列化 */
|
||||
runtime_parameter?: string;
|
||||
/** 评测对象整体 token 消耗 */
|
||||
object_token_cost?: TokenUsage;
|
||||
/** 数据集名称 */
|
||||
dataset_name?: string;
|
||||
/** 原始数据集ID */
|
||||
original_dataset_id?: Int64;
|
||||
/** 评估器整体 token 消耗 */
|
||||
evaluator_token_usage?: TokenUsage;
|
||||
credit_cost?: number;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface TaskManualStats {
|
||||
needed_row_count?: Int64;
|
||||
completed_row_count?: Int64;
|
||||
/** 需要group粒度人工评分的对话组数 */
|
||||
needed_row_group_count?: Int64;
|
||||
/** 已完成group粒度人工评分的对话组数 */
|
||||
completed_row_group_count?: Int64;
|
||||
}
|
||||
|
||||
export interface TaskStats {
|
||||
uncompleted_count?: Int64;
|
||||
success_count?: Int64;
|
||||
fail_count?: Int64;
|
||||
/** 最终执行成功的 row 数量 */
|
||||
success_row_count?: Int64;
|
||||
/** 最终执行失败的 row 数量 */
|
||||
fail_row_count?: Int64;
|
||||
/** 执行过的 row 数量总和 */
|
||||
total_row_count?: Int64;
|
||||
}
|
||||
|
||||
export interface TokenUsage {
|
||||
/** input token消耗 */
|
||||
input_token: Int64;
|
||||
/** output token消耗 */
|
||||
output_token: Int64;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,218 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as agent from './agent';
|
||||
import * as base from './base';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface AgentReleaseRequest {
|
||||
info?: agent.AgentReleaseInfo;
|
||||
/** 操作类型 */
|
||||
operationType: agent.OperationType;
|
||||
}
|
||||
|
||||
export interface AgentReleaseResponse {
|
||||
id?: Int64;
|
||||
}
|
||||
|
||||
export interface CheckAgentTokenReq {
|
||||
'Fornax-Agent-Token': string;
|
||||
agentID: Int64;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface CheckAgentTokenResp {
|
||||
ifPass?: boolean;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface CreateAgentReq {
|
||||
name: string;
|
||||
spaceID: Int64;
|
||||
projectName?: string;
|
||||
avatar?: agent.Image;
|
||||
desc?: string;
|
||||
repo?: agent.TemplateRepo;
|
||||
/** agent关联的仓库 */
|
||||
associatedRepo?: agent.AssociatedRepo;
|
||||
faasInfo?: agent.FaaSInfo;
|
||||
larkInfo?: agent.LarkInfo;
|
||||
'X-Jwt-Token'?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface CreateAgentResp {
|
||||
agentID?: Int64;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface DeleteAgentReq {
|
||||
agentID: Int64;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface DeleteAgentResp {
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface GetAgentByWorkspaceIDReq {
|
||||
workspaceID: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface GetAgentByWorkspaceIDResp {
|
||||
agent?: agent.Agent;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface GetAgentOpenAPITokenReq {
|
||||
accountID: Int64;
|
||||
agentID: Int64;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface GetAgentOpenAPITokenResp {
|
||||
token?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface GetAgentReq {
|
||||
agentID: Int64;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface GetAgentResp {
|
||||
agent?: agent.Agent;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface GetUserCodebasePermissionRequest {
|
||||
repo_id: Int64;
|
||||
user_name: string;
|
||||
'X-Jwt-Token': string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface GetUserCodebasePermissionResponse {
|
||||
permissions?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface ListAgentOpenAPIAccountsReq {
|
||||
agentID: Int64;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface ListAgentOpenAPIAccountsResp {
|
||||
accounts?: Array<agent.AgentOpenAPIAccount>;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface ListAgentReleaseRecordRequest {
|
||||
agentID: Int64;
|
||||
/** 渠道 */
|
||||
channels: Array<agent.Channel>;
|
||||
/** 起始为空,滚动传入Response里的NextCursor */
|
||||
cursor?: Int64;
|
||||
pageSize: Int64;
|
||||
}
|
||||
|
||||
export interface ListAgentReleaseRecordResponse {
|
||||
infos?: Array<agent.AgentReleaseInfo>;
|
||||
nextCursor?: Int64;
|
||||
hasMore?: boolean;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface ListAgentsBySpaceReq {
|
||||
spaceID: Int64;
|
||||
/** 根据名称模糊搜索 */
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export interface ListAgentsBySpaceResp {
|
||||
agents?: Array<agent.Agent>;
|
||||
total?: Int64;
|
||||
}
|
||||
|
||||
export interface ListTemplateMetaInfosRequest {
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface ListTemplateMetaInfosResponse {
|
||||
templateMetaInfos?: Array<agent.TemplateMetaInfo>;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface OApiListAgentsBySpaceReq {
|
||||
spaceID: Int64;
|
||||
Authorization: string;
|
||||
}
|
||||
|
||||
export interface OApiListAgentsBySpaceResp {
|
||||
agents?: Array<agent.Agent>;
|
||||
}
|
||||
|
||||
export interface Repo {
|
||||
id?: Int64;
|
||||
externalID?: string;
|
||||
name?: string;
|
||||
gitHTTPURL?: string;
|
||||
gitSSHURL?: string;
|
||||
}
|
||||
|
||||
export interface RepoSearchRequest {
|
||||
query?: string;
|
||||
page?: Int64;
|
||||
perPage?: Int64;
|
||||
'X-Jwt-Token': string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface RepoSearchResponse {
|
||||
repos?: Array<Repo>;
|
||||
total?: Int64;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface UpdateAgentReq {
|
||||
agentID: Int64;
|
||||
name?: string;
|
||||
avatar?: agent.Image;
|
||||
desc?: string;
|
||||
faasInfo?: agent.FaaSInfo;
|
||||
larkInfo?: agent.LarkInfo;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface UpdateAgentResp {
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface UpdateLarkReleaseStatusRequest {
|
||||
appID: string;
|
||||
versionID: string;
|
||||
larkReleaseStatus: agent.LarkReleaseStatus;
|
||||
}
|
||||
|
||||
export interface UpdateLarkReleaseStatusResponse {}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,186 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as app from './app';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface CheckCozeBotPermissionReq {
|
||||
botID: string;
|
||||
}
|
||||
|
||||
export interface CheckCozeBotPermissionResp {
|
||||
hasPermission?: boolean;
|
||||
}
|
||||
|
||||
export interface CreateAppClientReq {
|
||||
appID: string;
|
||||
env: string;
|
||||
cluster: string;
|
||||
}
|
||||
|
||||
export interface CreateAppClientResp {
|
||||
appClientID: string;
|
||||
}
|
||||
|
||||
export interface CreateAppReq {
|
||||
/** PSM, 空间内唯一 */
|
||||
uid: string;
|
||||
spaceID: string;
|
||||
/** 应用类型 */
|
||||
appType: app.AppType;
|
||||
/** 应用名称,默认为 PSM, 可修改 */
|
||||
name?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface CreateAppResp {
|
||||
appID?: string;
|
||||
}
|
||||
|
||||
export interface CreateAppV2Req {
|
||||
spaceID: Int64;
|
||||
type: app.AppV2Type;
|
||||
entityID?: string;
|
||||
/** 应用名称,默认为 PSM, 可修改 */
|
||||
name?: string;
|
||||
description?: string;
|
||||
version?: string;
|
||||
psm?: string;
|
||||
regions?: Array<string>;
|
||||
appEvaluationInfo?: app.AppEvaluationInfo;
|
||||
}
|
||||
|
||||
export interface CreateAppV2Resp {
|
||||
appID?: string;
|
||||
}
|
||||
|
||||
export interface CreateCozeBotAppReq {
|
||||
spaceID: string;
|
||||
/** cozeBot ID */
|
||||
botID: string;
|
||||
/** cozeBot 描述 */
|
||||
desc?: string;
|
||||
}
|
||||
|
||||
export interface CreateCozeBotAppResp {
|
||||
appID?: string;
|
||||
}
|
||||
|
||||
export interface DeleteAppReq {
|
||||
appID: string;
|
||||
}
|
||||
|
||||
export interface DeleteAppResp {}
|
||||
|
||||
export interface GetAppClientReq {
|
||||
clientID: string;
|
||||
}
|
||||
|
||||
export interface GetAppClientResp {
|
||||
client?: app.AppClient;
|
||||
app?: app.App;
|
||||
}
|
||||
|
||||
export interface GetAppV2Req {
|
||||
appID: string;
|
||||
spaceID: string;
|
||||
}
|
||||
|
||||
export interface GetAppV2Resp {
|
||||
app?: app.AppV2;
|
||||
}
|
||||
|
||||
export interface GetClientEvaluationSettingReq {
|
||||
appID: string;
|
||||
clientID: string;
|
||||
}
|
||||
|
||||
export interface GetClientEvaluationSettingResp {
|
||||
setting?: app.ClientEvaluationSetting;
|
||||
}
|
||||
|
||||
export interface ListAppClientsByAppReq {
|
||||
appID: string;
|
||||
/** 根据环境类型筛选 app_client */
|
||||
envType?: app.AppClientEnvType;
|
||||
}
|
||||
|
||||
export interface ListAppClientsByAppResp {
|
||||
appClients?: Array<app.AppClient>;
|
||||
}
|
||||
|
||||
export interface ListAppsBySpaceReq {
|
||||
spaceID: string;
|
||||
appID?: string;
|
||||
uid?: string;
|
||||
name?: string;
|
||||
/** 根据应用类型筛选,不传默认返回 TCE 类型的 APP */
|
||||
appType?: app.AppType;
|
||||
}
|
||||
|
||||
export interface ListAppsBySpaceResp {
|
||||
apps?: Array<app.App>;
|
||||
total?: string;
|
||||
cozeBotAppVisible?: boolean;
|
||||
}
|
||||
|
||||
export interface ListAppsBySpaceV2Req {
|
||||
spaceID: string;
|
||||
/** name前缀或后缀匹配 */
|
||||
keyWord?: string;
|
||||
page: Int64;
|
||||
pageSize: Int64;
|
||||
}
|
||||
|
||||
export interface ListAppsBySpaceV2Resp {
|
||||
apps?: Array<app.AppV2>;
|
||||
total?: number;
|
||||
}
|
||||
|
||||
export interface UpdateAppReq {
|
||||
appID: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface UpdateAppResp {}
|
||||
|
||||
export interface UpdateAppV2Req {
|
||||
appID: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
version?: string;
|
||||
regions?: Array<string>;
|
||||
spaceID: string;
|
||||
appEvaluationInfo?: app.AppEvaluationInfo;
|
||||
}
|
||||
|
||||
export interface UpdateAppV2Resp {}
|
||||
|
||||
export interface UpsertClientEvaluationSettingReq {
|
||||
appID: string;
|
||||
clientID: string;
|
||||
setting: app.ClientEvaluationSetting;
|
||||
}
|
||||
|
||||
export interface UpsertClientEvaluationSettingResp {}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,173 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as auth from './auth';
|
||||
import * as base from './base';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface AuthenticateServiceAccountReq {
|
||||
/** 认证字符串,见 */
|
||||
'Fornax-Auth': string;
|
||||
psm: string;
|
||||
cluster?: string;
|
||||
env?: string;
|
||||
isBOE: boolean;
|
||||
isTCE: boolean;
|
||||
ztiToken?: string;
|
||||
payload: string;
|
||||
/** 部署阶段 */
|
||||
stage?: string;
|
||||
}
|
||||
|
||||
export interface AuthenticateServiceAccountResp {
|
||||
jwtToken: string;
|
||||
}
|
||||
|
||||
export interface CheckConnectorAuthorizationReq {
|
||||
connector: auth.Connector;
|
||||
scope?: string;
|
||||
userID?: string;
|
||||
}
|
||||
|
||||
export interface CheckConnectorAuthorizationResp {
|
||||
hasAuth?: boolean;
|
||||
}
|
||||
|
||||
export interface GenerateServiceAccountReq {
|
||||
spaceID: string;
|
||||
}
|
||||
|
||||
export interface GenerateServiceAccountResp {
|
||||
serviceAccount?: auth.ServiceAccount;
|
||||
}
|
||||
|
||||
export interface GetAccessControlListBySpaceReq {
|
||||
spaceID: string;
|
||||
}
|
||||
|
||||
export interface GetAccessControlListBySpaceResp {
|
||||
/** psm list */
|
||||
L2List?: Array<string>;
|
||||
L3List?: Array<string>;
|
||||
L4List?: Array<string>;
|
||||
}
|
||||
|
||||
export interface GetConnectorOAuthConfigReq {
|
||||
connector: auth.Connector;
|
||||
}
|
||||
|
||||
export interface GetConnectorOAuthConfigResp {
|
||||
config?: auth.OAuthConfig;
|
||||
}
|
||||
|
||||
export interface GetFrontendAssistantAccessTokenRequest {}
|
||||
|
||||
export interface GetFrontendAssistantAccessTokenResp {
|
||||
access_token?: string;
|
||||
expire_in_seconds?: Int64;
|
||||
}
|
||||
|
||||
export interface GetJWTPublicKeyReq {}
|
||||
|
||||
export interface GetJWTPublicKeyResp {
|
||||
publicKey: string;
|
||||
}
|
||||
|
||||
export interface GetSecretKeyByAccountReq {
|
||||
accountID: string;
|
||||
}
|
||||
|
||||
export interface GetSecretKeyByAccountResp {
|
||||
secretKey?: string;
|
||||
}
|
||||
|
||||
export interface GetUploadTokenReq {
|
||||
spaceID: string;
|
||||
scenario?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface GetUploadTokenResp {
|
||||
token?: auth.UploadToken;
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface ImportServiceAccountReq {
|
||||
spaceID: string;
|
||||
accessKey: string;
|
||||
secretKey: string;
|
||||
}
|
||||
|
||||
export interface ImportServiceAccountResp {
|
||||
id: Int64;
|
||||
}
|
||||
|
||||
export interface ListConnectorAuthorizationsReq {}
|
||||
|
||||
export interface ListConnectorAuthorizationsResp {
|
||||
records?: Array<auth.AuthorizationRecord>;
|
||||
}
|
||||
|
||||
export interface ListServiceAccountsBySpaceReq {
|
||||
spaceID: string;
|
||||
}
|
||||
|
||||
export interface ListServiceAccountsBySpaceResp {
|
||||
accounts?: Array<auth.ServiceAccount>;
|
||||
}
|
||||
|
||||
export interface OAuthRedirectReq {
|
||||
code: string;
|
||||
state: string;
|
||||
error_code?: string;
|
||||
error_message?: string;
|
||||
}
|
||||
|
||||
export interface OAuthRedirectResp {}
|
||||
|
||||
export interface OAuthSetStateReq {
|
||||
connector: auth.Connector;
|
||||
referer: string;
|
||||
scope: string;
|
||||
randomStr: string;
|
||||
}
|
||||
|
||||
export interface OAuthSetStateResp {}
|
||||
|
||||
export interface RevokeConnectorAuthorizationReq {
|
||||
connector: auth.Connector;
|
||||
}
|
||||
|
||||
export interface RevokeConnectorAuthorizationResp {}
|
||||
|
||||
export interface SaveAccessControlListReq {
|
||||
spaceID: string;
|
||||
/** psm list */
|
||||
L2List?: Array<string>;
|
||||
L3List?: Array<string>;
|
||||
L4List?: Array<string>;
|
||||
}
|
||||
|
||||
export interface SaveAccessControlListResp {}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,157 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as automation from './automation';
|
||||
import * as flow_devops_fornaxob_fieldfilter from './flow_devops_fornaxob_fieldfilter';
|
||||
import * as flow_devops_fornaxob_common from './flow_devops_fornaxob_common';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface ApplyStatusCallBackReq {
|
||||
workflowID: string;
|
||||
spaceID: string;
|
||||
status: string;
|
||||
'x-jwt-token'?: string;
|
||||
}
|
||||
|
||||
export interface ApplyStatusCallBackResp {
|
||||
code?: Int64;
|
||||
message?: string;
|
||||
}
|
||||
|
||||
export interface CreateTaskReq {
|
||||
space_id: string;
|
||||
task: automation.Task;
|
||||
}
|
||||
|
||||
export interface CreateTaskResp {
|
||||
taskID?: string;
|
||||
}
|
||||
|
||||
export interface DeleteTaskReq {
|
||||
task_id: string;
|
||||
}
|
||||
|
||||
export interface DeleteTaskResp {}
|
||||
|
||||
export interface GetFilterOptionsReq {
|
||||
objectType: automation.ObjectType;
|
||||
/** 该参数未提供或 false 且 builtInFilter 为空时, 返回该对象任意一个 builtinFilter 对应的选项
|
||||
该参数为 true 且 builtInFilter 为空时, 返回支持的 builtinFilter 列表 */
|
||||
apiV2?: boolean;
|
||||
builtInFilter?: automation.BuiltinSpanFilterType;
|
||||
}
|
||||
|
||||
export interface GetFilterOptionsResp {
|
||||
options?: Array<automation.TagFilterOption>;
|
||||
objFilterOptions?: Array<automation.TagFilterOption>;
|
||||
builtInOptions?: Array<automation.BuiltinSpanFilterType>;
|
||||
}
|
||||
|
||||
export interface GetTaskDetailReq {
|
||||
task_id: string;
|
||||
space_id: string;
|
||||
}
|
||||
|
||||
export interface GetTaskDetailResp {
|
||||
task?: automation.Task;
|
||||
}
|
||||
|
||||
export interface GetTaskStatusDetailReq {
|
||||
task_id: string;
|
||||
}
|
||||
|
||||
export interface GetTaskStatusDetailResp {
|
||||
type?: automation.TaskType;
|
||||
spanToDatasetStatus?: automation.SpanToDatasetStat;
|
||||
SpanEvalRunStatus?: automation.SpanEvalStat;
|
||||
batchExecuteCaseStatus?: automation.BatchExecAutoUseCaseStat;
|
||||
}
|
||||
|
||||
export interface ListBPMApproversReq {
|
||||
/** 权限组 key */
|
||||
group_key: string;
|
||||
}
|
||||
|
||||
export interface ListBPMApproversResp {
|
||||
approvers?: Array<string>;
|
||||
code?: Int64;
|
||||
message?: string;
|
||||
}
|
||||
|
||||
export interface ListTasksBySpaceReq {
|
||||
space_id: string;
|
||||
taskID?: string;
|
||||
taskName?: string;
|
||||
taskType?: Array<automation.TaskType>;
|
||||
taskStatuses?: Array<automation.TaskStatusType>;
|
||||
createdBy?: string;
|
||||
/** 起始为空,滚动传入 resp 里的 nextCursor */
|
||||
cursor?: string;
|
||||
/** 默认为 20 */
|
||||
pageSize?: string;
|
||||
/** 默认为 -1,不为0时表示按更新时间倒序返回,否则按创建时间倒序。滚动传入 resp 里的 nextUpdatedAt */
|
||||
updatedAtLTE?: string;
|
||||
}
|
||||
|
||||
export interface ListTasksBySpaceResp {
|
||||
tasks?: Array<automation.Task>;
|
||||
nextCursor?: string;
|
||||
hasMore?: boolean;
|
||||
nextUpdatedAt?: string;
|
||||
}
|
||||
|
||||
export interface Rule2TraceQueryReq {
|
||||
space_id: string;
|
||||
/** 自动化任务的筛选条件,里面的字段不一定都会用到 */
|
||||
rule?: automation.Rule;
|
||||
}
|
||||
|
||||
export interface Rule2TraceQueryResp {
|
||||
filters?: Record<string, flow_devops_fornaxob_fieldfilter.FieldFilter>;
|
||||
platformType?: flow_devops_fornaxob_common.PlatformType;
|
||||
}
|
||||
|
||||
export interface StopTaskReq {
|
||||
task_id: string;
|
||||
}
|
||||
|
||||
export interface StopTaskResp {}
|
||||
|
||||
export interface TaskBatchExecCasesStatus {
|
||||
taskID: string;
|
||||
allCasesDeleted?: boolean;
|
||||
allCasesFinished?: boolean;
|
||||
}
|
||||
|
||||
export interface TaskSpanToDatasetStatus {
|
||||
taskID: string;
|
||||
datasetDeleted?: boolean;
|
||||
datasetLimitHit?: boolean;
|
||||
}
|
||||
|
||||
export interface UpdateTaskReq {
|
||||
task_id: string;
|
||||
task?: automation.Task;
|
||||
}
|
||||
|
||||
export interface UpdateTaskResp {}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,328 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as dp from './dp';
|
||||
import * as model from './model';
|
||||
import * as flow_devops_evaluation_dataset from './flow_devops_evaluation_dataset';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface CheckUserHasAIDPAccountReq {}
|
||||
|
||||
export interface CheckUserHasAIDPAccountResp {
|
||||
hasAIDPAccount?: boolean;
|
||||
}
|
||||
|
||||
export interface CreateAnnotateTaskReq {
|
||||
spaceID: string;
|
||||
name: string;
|
||||
platform: dp.AnnotatePlatform;
|
||||
/** 输入数据集 ID */
|
||||
inputDatasetID: string;
|
||||
/** 输出数据集名称 */
|
||||
outputDatasetName: string;
|
||||
aidpConfig?: dp.AIDPConfig;
|
||||
/** 字段映射配置 */
|
||||
fieldMapConfig?: Array<dp.SendFieldMapping>;
|
||||
}
|
||||
|
||||
export interface CreateAnnotateTaskResp {
|
||||
taskID?: string;
|
||||
}
|
||||
|
||||
export interface CreateDataProcessingTaskReq {
|
||||
/** 任务名称 */
|
||||
name?: string;
|
||||
/** 任务类型 */
|
||||
taskType?: dp.TaskType;
|
||||
/** 输入数据集 */
|
||||
inDatasetID?: string;
|
||||
/** Deprecated. 输出数据集名称,用outDatasetNames代替 */
|
||||
outDatasetName?: string;
|
||||
/** 输出数据集Schema */
|
||||
outDatasetSchema?: Array<dp.FieldInfo>;
|
||||
/** 用户脚本 */
|
||||
userScript?: dp.UserScript;
|
||||
/** 试运行签名 */
|
||||
dryRunID?: string;
|
||||
trainingDatasetType?: model.TrainingDatasetType;
|
||||
/** 输出数据集列表 */
|
||||
outDatasets?: Array<dp.DatasetInfo>;
|
||||
/** 输出到数据集的类型。数据集、评测集、结果集 */
|
||||
datasetType?: dp.DatasetType;
|
||||
/** 空间ID */
|
||||
spaceID?: string;
|
||||
}
|
||||
|
||||
export interface CreateDataProcessingTaskResp {
|
||||
/** 任务ID */
|
||||
taskID?: string;
|
||||
}
|
||||
|
||||
export interface CreateDatasetImportTaskReq {
|
||||
datasetID: string;
|
||||
fileType?: dp.DatasetFileType;
|
||||
dataSource?: dp.DataSource;
|
||||
overwrite?: boolean;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface CreateDatasetImportTaskResp {
|
||||
taskID?: string;
|
||||
}
|
||||
|
||||
export interface DeleteDataProcessingTaskReq {
|
||||
task_id?: string;
|
||||
/** 空间ID */
|
||||
spaceID?: string;
|
||||
}
|
||||
|
||||
export interface DeleteDataProcessingTaskResp {
|
||||
taskID?: string;
|
||||
}
|
||||
|
||||
export interface DryRunDataProcessingTaskReq {
|
||||
/** 输入数据集ID */
|
||||
datasetID?: string;
|
||||
/** 用户脚本 */
|
||||
userScript?: dp.UserScript;
|
||||
/** 样本条数,默认前10条 */
|
||||
sampleCount?: number;
|
||||
trainingDatasetType?: model.TrainingDatasetType;
|
||||
/** 空间ID */
|
||||
spaceID?: string;
|
||||
}
|
||||
|
||||
export interface DryRunDataProcessingTaskResp {
|
||||
/** 运行结果 */
|
||||
results?: Array<dp.ScriptRunResultItem>;
|
||||
/** 签名,在保存任务时需要透传到服务端 */
|
||||
runID?: string;
|
||||
/** 运行结果的Schema */
|
||||
schema?: Array<dp.FieldInfo>;
|
||||
/** 编译错误 */
|
||||
compileError?: string;
|
||||
/** 标准输出 */
|
||||
stdout?: string;
|
||||
/** 标准错误 */
|
||||
stderr?: string;
|
||||
}
|
||||
|
||||
export interface ExportDatasetReq {
|
||||
spaceID: string;
|
||||
datasetID: string;
|
||||
columnMappings?: Array<dp.DatasetColumnMapping>;
|
||||
/** 导出到新的评测集/结果集/标注集时提供 */
|
||||
toDatasetName?: string;
|
||||
toDatasetDesc?: string;
|
||||
toDatasetPublishOption?: flow_devops_evaluation_dataset.PublishOption;
|
||||
/** 创建训练集时必填 */
|
||||
toDatasetType?: flow_devops_evaluation_dataset.DatasetType;
|
||||
toDatasetTagIDs?: Array<Int64>;
|
||||
/** 导出到已有评测集/结果集/标注集时提供 */
|
||||
toDatasetID?: string;
|
||||
/** 为 true 时覆盖更新 */
|
||||
overwrite?: boolean;
|
||||
}
|
||||
|
||||
export interface ExportDatasetResp {
|
||||
taskID?: string;
|
||||
}
|
||||
|
||||
export interface GetAnnotateTaskReq {
|
||||
taskID: string;
|
||||
spaceID: string;
|
||||
}
|
||||
|
||||
export interface GetAnnotateTaskResp {
|
||||
taskDetail?: dp.AnnotateTask;
|
||||
}
|
||||
|
||||
export interface GetDatasetImportTaskReq {
|
||||
task_id?: string;
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface GetDatasetImportTaskResp {
|
||||
task?: dp.DatasetImportTask;
|
||||
}
|
||||
|
||||
export interface GetExportDatasetTaskReq {
|
||||
spaceID: string;
|
||||
taskID: string;
|
||||
}
|
||||
|
||||
export interface GetExportDatasetTaskResp {
|
||||
task: dp.ExportDatasetTask;
|
||||
}
|
||||
|
||||
export interface GetTaskRunLogsReq {
|
||||
run_id?: string;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface GetTaskRunLogsResp {
|
||||
/** 日志源 */
|
||||
runLogSourceType?: dp.RunLogSourceType;
|
||||
/** 日志内容 */
|
||||
content?: string;
|
||||
}
|
||||
|
||||
export interface GetTaskRunsReq {
|
||||
task_id?: string;
|
||||
/** 空间ID */
|
||||
spaceID?: string;
|
||||
}
|
||||
|
||||
export interface GetTaskRunsResp {
|
||||
runs?: Array<dp.TaskRun>;
|
||||
}
|
||||
|
||||
export interface GetUserScriptTemplateConfigReq {
|
||||
trainingDatasetType?: model.TrainingDatasetType;
|
||||
}
|
||||
|
||||
export interface GetUserScriptTemplateConfigResp {
|
||||
configs?: Array<dp.UserScriptTemplateConfig>;
|
||||
}
|
||||
|
||||
export interface ListAnnotateTaskBySpaceReq {
|
||||
spaceID: string;
|
||||
/** 标注平台任务 ID */
|
||||
platformTaskIDs?: Array<string>;
|
||||
/** 输入数据集ID */
|
||||
inputDatasetIDs?: Array<string>;
|
||||
/** 标注平台 */
|
||||
platforms?: Array<dp.AnnotatePlatform>;
|
||||
/** 任务状态 */
|
||||
statuses?: Array<dp.TaskStatus>;
|
||||
/** fornax 标注任务 ID */
|
||||
taskIDs?: Array<string>;
|
||||
/** 任务名称 */
|
||||
name?: string;
|
||||
/** 创建人 */
|
||||
createdBy?: string;
|
||||
/** 起始为空,滚动传入 resp 里的 nextCursor */
|
||||
cursor?: string;
|
||||
/** 默认为 20 */
|
||||
pageSize?: string;
|
||||
}
|
||||
|
||||
export interface ListAnnotateTaskBySpaceResp {
|
||||
tasks?: Array<dp.AnnotateTask>;
|
||||
nextCursor?: string;
|
||||
hasMore?: boolean;
|
||||
}
|
||||
|
||||
export interface ListDataProcessingTasksReq {
|
||||
name?: string;
|
||||
createdBy?: string;
|
||||
taskType?: dp.TaskType;
|
||||
inDatasetIDs?: Array<string>;
|
||||
taskID?: string;
|
||||
space_id?: string;
|
||||
pageSize?: string;
|
||||
nextToken?: string;
|
||||
}
|
||||
|
||||
export interface ListDataProcessingTasksResp {
|
||||
tasks?: Array<dp.DataProcessingTask>;
|
||||
hasMore?: boolean;
|
||||
nextToken?: string;
|
||||
}
|
||||
|
||||
export interface MGetDataProcessingTaskReq {
|
||||
taskIDs?: Array<string>;
|
||||
/** 空间ID */
|
||||
spaceID?: string;
|
||||
}
|
||||
|
||||
export interface MGetDataProcessingTaskResp {
|
||||
tasks?: Array<dp.DataProcessingTask>;
|
||||
}
|
||||
|
||||
export interface ProcessCallbackReq {
|
||||
runID?: Int64;
|
||||
checkpoint?: string;
|
||||
extra?: string;
|
||||
log?: string;
|
||||
'x-fornax-dp-token'?: string;
|
||||
}
|
||||
|
||||
export interface ProcessCallbackResp {}
|
||||
|
||||
export interface ReentryTaskRunReq {
|
||||
task_run_id?: string;
|
||||
forceStart?: boolean;
|
||||
/** 空间ID */
|
||||
spaceID?: string;
|
||||
}
|
||||
|
||||
export interface ReentryTaskRunResp {
|
||||
taskRunID?: string;
|
||||
}
|
||||
|
||||
export interface RefreshAnnotateTaskStatusDetailReq {
|
||||
taskID: string;
|
||||
}
|
||||
|
||||
export interface RefreshAnnotateTaskStatusDetailResp {
|
||||
taskDetail?: dp.AnnotateTask;
|
||||
}
|
||||
|
||||
export interface RunDataProcessingTaskReq {
|
||||
task_id?: string;
|
||||
/** 空间ID */
|
||||
spaceID?: string;
|
||||
}
|
||||
|
||||
export interface RunDataProcessingTaskResp {
|
||||
taskRunID?: string;
|
||||
}
|
||||
|
||||
export interface StopDataProcessingTaskReq {
|
||||
task_id?: string;
|
||||
/** 空间ID */
|
||||
spaceID?: string;
|
||||
}
|
||||
|
||||
export interface StopDataProcessingTaskResp {
|
||||
taskRunID?: string;
|
||||
}
|
||||
|
||||
export interface UpdateDataProcessingTaskReq {
|
||||
task_id?: string;
|
||||
name?: string;
|
||||
userScript?: dp.UserScript;
|
||||
dryRunID?: string;
|
||||
/** 输出数据集Schema */
|
||||
outDatasetSchema?: Array<dp.FieldInfo>;
|
||||
/** 空间ID */
|
||||
spaceID?: string;
|
||||
}
|
||||
|
||||
export interface UpdateDataProcessingTaskResp {
|
||||
/** 任务ID */
|
||||
taskID?: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,253 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as graph from './graph';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum GraphStatus {
|
||||
Undefined = 0,
|
||||
/** 无运行时使用 */
|
||||
Unused = 1,
|
||||
/** 有运行时使用 */
|
||||
InUse = 2,
|
||||
/** 未配置 slot */
|
||||
Unconfigured = 3,
|
||||
}
|
||||
|
||||
export enum IncompatibilityType {
|
||||
Undefined = 0,
|
||||
SlotDeleted = 1,
|
||||
SlotAdded = 2,
|
||||
SlotTypeModified = 3,
|
||||
}
|
||||
|
||||
export interface CheckSlotSetCompatibilityReq {
|
||||
/** 需要校验的 slotSet */
|
||||
slotSetID: string;
|
||||
clientID: string;
|
||||
}
|
||||
|
||||
export interface CheckSlotSetCompatibilityResp {
|
||||
slots?: Array<SlotSetCompatibility>;
|
||||
/** 是否兼容 */
|
||||
compatibility?: boolean;
|
||||
}
|
||||
|
||||
export interface ClearSlotSetOfClientReq {
|
||||
graphID: string;
|
||||
clientID: string;
|
||||
}
|
||||
|
||||
export interface ClearSlotSetOfClientResp {}
|
||||
|
||||
export interface ClientGraph {
|
||||
graphID: string;
|
||||
graphUID: string;
|
||||
graphName: string;
|
||||
graphDesc?: string;
|
||||
slotSetID?: string;
|
||||
/** slotSet 版本号 */
|
||||
slotSetVersion?: string;
|
||||
/** graph状态 */
|
||||
graphStatus?: GraphStatus;
|
||||
createdBy?: string;
|
||||
updatedBy?: string;
|
||||
createdAt?: string;
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export interface CreateGraphReq {
|
||||
appID: string;
|
||||
uid: string;
|
||||
name: string;
|
||||
desc?: string;
|
||||
}
|
||||
|
||||
export interface CreateGraphResp {
|
||||
graphID?: string;
|
||||
}
|
||||
|
||||
export interface CreateSlotSetReq {
|
||||
graphID: string;
|
||||
nodes: Array<Node>;
|
||||
/** 符合 semver2 的版本号 */
|
||||
version: string;
|
||||
commitMessage?: string;
|
||||
}
|
||||
|
||||
export interface CreateSlotSetResp {
|
||||
slotSetID: string;
|
||||
}
|
||||
|
||||
export interface DeleteGraphReq {
|
||||
graphID: string;
|
||||
}
|
||||
|
||||
export interface DeleteGraphResp {}
|
||||
|
||||
export interface GetGraphReq {
|
||||
graphID: string;
|
||||
}
|
||||
|
||||
export interface GetGraphResp {
|
||||
graph?: graph.Graph;
|
||||
}
|
||||
|
||||
export interface GetLatestSlotSetVersionReq {
|
||||
graphID: string;
|
||||
}
|
||||
|
||||
export interface GetLatestSlotSetVersionResp {
|
||||
/** 版本号最大值 */
|
||||
version?: string;
|
||||
}
|
||||
|
||||
export interface GetLatestSlotsOfClientReq {
|
||||
graphID: string;
|
||||
clientID: string;
|
||||
}
|
||||
|
||||
export interface GetLatestSlotsOfClientResp {
|
||||
nodes: Array<Node>;
|
||||
slotSetID?: string;
|
||||
slotSetVersion?: string;
|
||||
/** slot 版本描述 */
|
||||
slotSetMessage?: string;
|
||||
/** slot 发布记录ID */
|
||||
slotReleaseID?: string;
|
||||
}
|
||||
|
||||
export interface GetSlotSetReq {
|
||||
slotSetID: string;
|
||||
/** 为 false 时不返回 slot 列表 */
|
||||
withSlotDetail: boolean;
|
||||
}
|
||||
|
||||
export interface GetSlotSetResp {
|
||||
slotSet?: graph.SlotSet;
|
||||
/** slot 节点列表 */
|
||||
nodes?: Array<Node>;
|
||||
}
|
||||
|
||||
export interface ListGraphsByClientReq {
|
||||
appID: string;
|
||||
clientID: string;
|
||||
}
|
||||
|
||||
export interface ListGraphsByClientResp {
|
||||
clientGraphs?: Array<ClientGraph>;
|
||||
total?: string;
|
||||
}
|
||||
|
||||
export interface ListGraphsBySpaceReq {
|
||||
spaceID: string;
|
||||
}
|
||||
|
||||
export interface ListGraphsBySpaceResp {
|
||||
graphs: Array<graph.Graph>;
|
||||
}
|
||||
|
||||
export interface ListNodeTemplatesReq {}
|
||||
|
||||
export interface ListNodeTemplatesResp {
|
||||
nodeTemplates?: Array<graph.NodeTemplate>;
|
||||
/** 服务端支持的自定义类型 */
|
||||
supportedTypes: Array<graph.TypeDescriptor>;
|
||||
}
|
||||
|
||||
export interface ListSlotSetReleasesOfClientReq {
|
||||
graphID: string;
|
||||
clientID: string;
|
||||
}
|
||||
|
||||
export interface ListSlotSetReleasesOfClientResp {
|
||||
/** 版本列表,按更新时间降序排列 */
|
||||
releases?: Array<SlotSetRelease>;
|
||||
}
|
||||
|
||||
export interface Node {
|
||||
uid: string;
|
||||
type: graph.NodeType;
|
||||
name: string;
|
||||
slots?: Array<Slot>;
|
||||
}
|
||||
|
||||
export interface ReleaseSlotSetReq {
|
||||
slotSetID: string;
|
||||
clients: Array<string>;
|
||||
/** 忽略不兼容 slot,强制发布 */
|
||||
forceRelease: boolean;
|
||||
}
|
||||
|
||||
export interface ReleaseSlotSetResp {}
|
||||
|
||||
/** 用于前端展示的 Slot 结构 */
|
||||
export interface Slot {
|
||||
uid: string;
|
||||
nodeUID?: string;
|
||||
nodeName?: string;
|
||||
/** 对于官方 SlotType, 有定制的前端交互 */
|
||||
officialSlotType?: graph.OfficialSlotType;
|
||||
schema?: graph.FieldDescriptor;
|
||||
/** JSON 编码的值, 与 SlotSchema 中的 valueType 相对应 */
|
||||
value?: string;
|
||||
createdBy?: string;
|
||||
createdAt?: string;
|
||||
updatedBy?: string;
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export interface SlotSetCompatibility {
|
||||
nodeUID: string;
|
||||
slotUID: string;
|
||||
compatibility: boolean;
|
||||
incompatType?: IncompatibilityType;
|
||||
previous?: Slot;
|
||||
current?: Slot;
|
||||
}
|
||||
|
||||
export interface SlotSetRelease {
|
||||
id: string;
|
||||
slotSetID: string;
|
||||
/** 展示的 semver2 版本号 */
|
||||
slotSetVersion?: string;
|
||||
graphID?: string;
|
||||
graphUID?: string;
|
||||
clientID?: string;
|
||||
/** 结构化版本信息; 回滚: is_revert:1; 清空: is_clear:1 */
|
||||
releaseLabels?: Record<string, string>;
|
||||
/** 版本描述 */
|
||||
versionMessage?: string;
|
||||
/** 发布人 */
|
||||
createdBy?: string;
|
||||
/** 发布时间 */
|
||||
createdAt?: string;
|
||||
}
|
||||
|
||||
export interface UpdateGraphReq {
|
||||
graphID: string;
|
||||
name?: string;
|
||||
desc?: string;
|
||||
}
|
||||
|
||||
export interface UpdateGraphResp {}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as base from './base';
|
||||
import * as ide from './ide';
|
||||
import * as model from './model';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum IDELaunchSourceType {
|
||||
Agent = 0,
|
||||
CustomComponent = 1,
|
||||
}
|
||||
|
||||
export interface BindCloudIDESpaceReq {
|
||||
workspaceID: string;
|
||||
agentID?: Int64;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface BindCloudIDESpaceResp {
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface CheckCloudIDESpaceReq {
|
||||
workspaceID?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface CheckCloudIDESpaceResp {
|
||||
/** cloud ide workspace 是否存在 (90d 回收) */
|
||||
exist?: boolean;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface FetchSpacesReq {
|
||||
'X-Jwt-Token': string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface FetchSpacesResp {
|
||||
spaces?: Array<ide.SpaceInfo>;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface GetCloudIDESpaceReq {
|
||||
agentID?: Int64;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface GetCloudIDESpaceResp {
|
||||
workspaceID?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface IDELaunchReq {
|
||||
'X-Jwt-Token': string;
|
||||
/** 从团队空间创建需要携带agentID,从个人空间创建还没有agentid就不需要传 */
|
||||
agentID?: Int64;
|
||||
repoName?: string;
|
||||
branch?: string;
|
||||
agentName?: string;
|
||||
sourceType?: IDELaunchSourceType;
|
||||
}
|
||||
|
||||
export interface IDELaunchResp {
|
||||
location: string;
|
||||
alreadyLaunched?: boolean;
|
||||
hasAuth?: boolean;
|
||||
}
|
||||
|
||||
export interface JWTLoginReq {
|
||||
'X-Jwt-Token': string;
|
||||
session_id?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface JWTLoginResp {
|
||||
sessionID: string;
|
||||
}
|
||||
|
||||
export interface OApiListCommonModelInfoReq {
|
||||
modelName: string;
|
||||
Authorization: string;
|
||||
}
|
||||
|
||||
export interface OApiListCommonModelInfoResp {
|
||||
model?: model.Model;
|
||||
auth?: model.Authorization;
|
||||
}
|
||||
|
||||
export interface UnbindCloudIDESpaceReq {
|
||||
ssoUserName: string;
|
||||
agentID?: Int64;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface UnbindCloudIDESpaceResp {
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as base from './base';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface FileData {
|
||||
bytes?: Int64;
|
||||
file_name?: string;
|
||||
}
|
||||
|
||||
export interface UploadLoopFileRequest {
|
||||
/** 文件类型 */
|
||||
'Content-Type': string;
|
||||
/** 二进制数据 */
|
||||
body: Blob;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface UploadLoopFileResponse {
|
||||
code?: number;
|
||||
msg?: string;
|
||||
data?: FileData;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as modeleval from './modeleval';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface CreateOfflineEvalTaskRequest {
|
||||
task?: modeleval.OfflineEvalTask;
|
||||
userJwtToken?: string;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface CreateOfflineEvalTaskResponse {
|
||||
id?: string;
|
||||
}
|
||||
|
||||
export interface GetOfflineEvalTaskRequest {
|
||||
task_id?: string;
|
||||
userJwtToken?: string;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface GetOfflineEvalTaskResponse {
|
||||
task?: modeleval.OfflineEvalTask;
|
||||
}
|
||||
|
||||
export interface ListOfflineEvalTaskRequest {
|
||||
nameKeyword?: string;
|
||||
id?: string;
|
||||
creatorID?: string;
|
||||
userJwtToken?: string;
|
||||
pageSize?: Int64;
|
||||
pageNum?: Int64;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface ListOfflineEvalTaskResponse {
|
||||
task?: Array<modeleval.OfflineEvalTask>;
|
||||
hasMore?: boolean;
|
||||
total?: Int64;
|
||||
}
|
||||
|
||||
export interface ParseMerlinSeedModelConfigRequest {
|
||||
checkpointHdfsPath?: string;
|
||||
modelSid?: string;
|
||||
trainingJobRunID?: string;
|
||||
userJwtToken?: string;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface ParseMerlinSeedModelConfigResponse {
|
||||
checkPointHdfsPath?: string;
|
||||
networkParamConfigContext?: string;
|
||||
paramConfigType?: string;
|
||||
quantParamConfigContext?: string;
|
||||
tokenizerHdfsPath?: string;
|
||||
xperfParamConfigContext?: string;
|
||||
}
|
||||
|
||||
export interface TerminateOfflineEvalTaskRequest {
|
||||
taskID?: string;
|
||||
userJwtToken?: string;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface TerminateOfflineEvalTaskResponse {}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,692 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as model from './model';
|
||||
import * as flow_devops_evaluation_dataset from './flow_devops_evaluation_dataset';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface AccountFilter {
|
||||
usageScenario?: model.UsageScenario;
|
||||
region?: model.Region;
|
||||
}
|
||||
|
||||
export interface CheckUserHasDeployPermRequest {
|
||||
/** 目前只支持merlin */
|
||||
provider: model.Provider;
|
||||
byteTreeNodeID?: string;
|
||||
/** provider=merlin时必传 */
|
||||
'x-jwt-token'?: string;
|
||||
}
|
||||
|
||||
export interface CheckUserHasDeployPermResponse {
|
||||
hasPerm?: boolean;
|
||||
/** 用户无权限时展示详情 */
|
||||
detail?: string;
|
||||
/** 无权限时展示申请工单链接 */
|
||||
applyTicketURL?: string;
|
||||
}
|
||||
|
||||
export interface CloneTrainingDatasetReq {
|
||||
datasetID?: string;
|
||||
name?: string;
|
||||
desc?: string;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface CloneTrainingDatasetResp {
|
||||
datasetID?: string;
|
||||
}
|
||||
|
||||
export interface CreateProviderAccountRequest {
|
||||
spaceID: string;
|
||||
name: string;
|
||||
provider?: model.Provider;
|
||||
/** [20, 30) provider 账号 */
|
||||
maasAccount?: model.MaasAuth;
|
||||
/** 用于 JwtToken 鉴权 */
|
||||
Authorization?: string;
|
||||
}
|
||||
|
||||
export interface CreateProviderAccountResponse {
|
||||
accountID?: Int64;
|
||||
}
|
||||
|
||||
export interface CreateSftTaskRequest {
|
||||
spaceID?: string;
|
||||
accountID?: string;
|
||||
task?: model.SftTask;
|
||||
/** 创建merlin任务时必传 */
|
||||
jwtToken?: string;
|
||||
}
|
||||
|
||||
export interface CreateSftTaskResponse {
|
||||
taskID?: string;
|
||||
invalidDatasets?: Array<model.InvalidDataSet>;
|
||||
}
|
||||
|
||||
export interface CreateTrainingDataImportTaskReq {
|
||||
datasetID?: string;
|
||||
fileType?: model.TrainingDataFileType;
|
||||
mode?: model.DataImportMode;
|
||||
dataSource?: model.DataSource;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface CreateTrainingDataImportTaskResp {
|
||||
taskID?: string;
|
||||
}
|
||||
|
||||
export interface CreateTrainingDatasetReq {
|
||||
name?: string;
|
||||
type?: model.TrainingDatasetType;
|
||||
desc?: string;
|
||||
/** 空间ID */
|
||||
spaceID?: string;
|
||||
}
|
||||
|
||||
export interface CreateTrainingDatasetResp {
|
||||
datasetID?: string;
|
||||
}
|
||||
|
||||
export interface DeleteModelAndAccountRequest {
|
||||
modelID?: Int64;
|
||||
}
|
||||
|
||||
export interface DeleteModelAndAccountResponse {}
|
||||
|
||||
export interface DeleteProviderAccountRequest {
|
||||
accountID: string;
|
||||
}
|
||||
|
||||
export interface DeleteProviderAccountResponse {}
|
||||
|
||||
export interface DeleteSftTaskRequest {
|
||||
spaceID?: string;
|
||||
accountID?: string;
|
||||
taskID?: Int64;
|
||||
/** 用于 JwtToken 鉴权 */
|
||||
Authorization?: string;
|
||||
}
|
||||
|
||||
export interface DeleteSftTaskResponse {}
|
||||
|
||||
export interface DeleteTrainingDataRowsReq {
|
||||
dataset_id?: string;
|
||||
rowIDs?: Array<string>;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface DeleteTrainingDataRowsResp {
|
||||
rowIDs?: Array<string>;
|
||||
}
|
||||
|
||||
export interface DeleteTrainingDatasetReq {
|
||||
dataset_id?: string;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface DeleteTrainingDatasetResp {
|
||||
datasetID?: string;
|
||||
}
|
||||
|
||||
export interface ExportSftTaskOutputToProviderRequest {
|
||||
/** 必填,本期只支持merlin */
|
||||
provider?: model.Provider;
|
||||
/** 空间ID,必填用于权限校验 */
|
||||
spaceID?: string;
|
||||
/** 任务ID,必填 */
|
||||
taskID?: string;
|
||||
/** 任务产出的名称 */
|
||||
taskOutputName?: string;
|
||||
/** provider=merlin时必传,必须传未过期的用户的token */
|
||||
jwtToken?: string;
|
||||
}
|
||||
|
||||
export interface ExportSftTaskOutputToProviderResponse {
|
||||
/** 任务产出在导出后的属性,此接口已改为异步,这个属性已弃用 */
|
||||
outputAfterExport?: model.SftTaskOutput;
|
||||
}
|
||||
|
||||
export interface GetAccountRelatedResourcesRequest {
|
||||
accountID: string;
|
||||
}
|
||||
|
||||
export interface GetAccountRelatedResourcesResponse {
|
||||
resources?: model.ProviderAccountRelatedResources;
|
||||
}
|
||||
|
||||
export interface GetAccountsRequest {
|
||||
accountIDs?: Array<Int64>;
|
||||
spaceID?: Int64;
|
||||
}
|
||||
|
||||
export interface GetAccountsResponse {
|
||||
accounts?: Array<model.Account>;
|
||||
}
|
||||
|
||||
export interface GetAvailableQuotaByByteTreeNodeRequest {
|
||||
/** 服务树节点ID */
|
||||
byte_tree_node_id: string;
|
||||
/** 单实例资源配置 */
|
||||
resourceOption: model.InstanceResourceOption;
|
||||
'x-jwt-token'?: string;
|
||||
}
|
||||
|
||||
export interface GetAvailableQuotaByByteTreeNodeResponse {
|
||||
quotas?: Partial<Record<model.IDC, Array<model.DeployQuota>>>;
|
||||
}
|
||||
|
||||
export interface GetByteTreeParentNodeByPSMRequest {
|
||||
psm: string;
|
||||
'x-jwt-token': string;
|
||||
}
|
||||
|
||||
export interface GetByteTreeParentNodeByPSMResponse {
|
||||
node?: model.ByteTreeNode;
|
||||
createdInMerlin?: boolean;
|
||||
}
|
||||
|
||||
export interface GetInstanceSpecOptionsRequest {}
|
||||
|
||||
export interface GetInstanceSpecOptionsResponse {
|
||||
instanceResourceOpts?: Array<model.InstanceResourceOption>;
|
||||
}
|
||||
|
||||
export interface GetMaaSRegionConfigsRequest {}
|
||||
|
||||
export interface GetMaaSRegionConfigsResponse {
|
||||
configs?: Array<model.MaaSRegionConfig>;
|
||||
}
|
||||
|
||||
export interface GetMemoryEstimationRequest {
|
||||
spaceID?: string;
|
||||
task: model.SftTask;
|
||||
}
|
||||
|
||||
export interface GetMemoryEstimationResponse {
|
||||
isMemoryInsufficient: boolean;
|
||||
requiredMemoryPerGPU?: string;
|
||||
trueMemoryPerGPU?: string;
|
||||
}
|
||||
|
||||
export interface GetModelRequest {
|
||||
spaceID?: Int64;
|
||||
modelID?: Int64;
|
||||
}
|
||||
|
||||
export interface GetModelResponse {
|
||||
model?: model.Model;
|
||||
}
|
||||
|
||||
export interface GetProviderAccountMaskedDataRequest {
|
||||
accountID: string;
|
||||
provider: model.Provider;
|
||||
accountType: model.ProviderAccountType;
|
||||
}
|
||||
|
||||
export interface GetProviderAccountMaskedDataResponse {
|
||||
maskedData?: model.ProviderAccount;
|
||||
}
|
||||
|
||||
export interface GetSftTaskCustomModelRequest {
|
||||
spaceID?: string;
|
||||
accountID?: string;
|
||||
customModelID?: string;
|
||||
/** 只支持火山方舟 */
|
||||
providerType?: model.Provider;
|
||||
}
|
||||
|
||||
export interface GetSftTaskCustomModelResponse {
|
||||
customModel?: model.SftTaskCustomModel;
|
||||
}
|
||||
|
||||
export interface GetSftTaskFoundationModelConfigRequest {
|
||||
spaceID?: string;
|
||||
accountID?: string;
|
||||
/** Provider为merlin时传空 */
|
||||
modelVersionConfigID?: string;
|
||||
providerType?: model.Provider;
|
||||
/** Provider为merlin时传vendor/model_name */
|
||||
foundationModelName?: string;
|
||||
/** 训练类型 */
|
||||
trainingMethod?: model.SftTaskTrainingMethod;
|
||||
}
|
||||
|
||||
export interface GetSftTaskFoundationModelConfigResponse {
|
||||
hyperParams?: Array<model.SftTaskHyperParam>;
|
||||
presetDatasets?: Array<model.SftTaskPresetDataset>;
|
||||
hyperParamsCategories?: Array<model.SftTaskHyperParamCategory>;
|
||||
}
|
||||
|
||||
export interface GetSFTTaskOutputAbilityRequest {
|
||||
spaceID: string;
|
||||
taskID: string;
|
||||
}
|
||||
|
||||
export interface GetSFTTaskOutputAbilityResponse {
|
||||
ability?: model.Ability;
|
||||
}
|
||||
|
||||
export interface GetSftTaskProgressRequest {
|
||||
/** 必填,暂时只支持merlin */
|
||||
provider?: model.Provider;
|
||||
/** 空间ID,必填用于权限校验 */
|
||||
spaceID?: string;
|
||||
/** 任务ID,必填 */
|
||||
taskID?: string;
|
||||
}
|
||||
|
||||
export interface GetSftTaskProgressResponse {
|
||||
progress?: string;
|
||||
}
|
||||
|
||||
export interface GetSftTaskRequest {
|
||||
spaceID?: string;
|
||||
accountID?: string;
|
||||
taskID?: string;
|
||||
/** 用于JwtToken鉴权,这种情况下spaceID和accountID在鉴权后获得 */
|
||||
Authorization?: string;
|
||||
}
|
||||
|
||||
export interface GetSftTaskResponse {
|
||||
task?: model.SftTask;
|
||||
}
|
||||
|
||||
export interface GetTrainingDataImportTaskReq {
|
||||
task_id?: string;
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface GetTrainingDataImportTaskResp {
|
||||
task?: model.TrainingDataImportTask;
|
||||
}
|
||||
|
||||
export interface GetTrainingFileUploadMaterialReq {
|
||||
fileName?: string;
|
||||
opType?: model.TrainingFileOpType;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface GetTrainingFileUploadMaterialResp {
|
||||
url?: string;
|
||||
signature?: string;
|
||||
}
|
||||
|
||||
export interface GetUserProviderAuthStatusRequest {
|
||||
spaceID?: string;
|
||||
provider?: model.Provider;
|
||||
}
|
||||
|
||||
export interface GetUserProviderAuthStatusResponse {
|
||||
/** 是否已授权,当剩余时长小于一周时,会被置为未授权,此时需要用户再次授权 */
|
||||
isAuthorized?: boolean;
|
||||
/** 授权剩余时长, 单位 s */
|
||||
expiresIn?: Int64;
|
||||
}
|
||||
|
||||
export interface InsertTrainingDataRowsReq {
|
||||
dataset_id?: string;
|
||||
row_groups?: Array<flow_devops_evaluation_dataset.RowGroup>;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface InsertTrainingDataRowsResp {
|
||||
rowIDs?: Array<string>;
|
||||
}
|
||||
|
||||
export interface ListModelAndAccountRequest {
|
||||
spaceID?: Int64;
|
||||
isPublicModel?: boolean;
|
||||
/** 根据模型状态进行过滤, 默认返回所有状态的模型 */
|
||||
modelStatuses?: Array<model.ModelStatus>;
|
||||
}
|
||||
|
||||
export interface ListModelAndAccountResponse {
|
||||
modelAccounts?: Array<ModelAccount>;
|
||||
}
|
||||
|
||||
export interface ListModelRequest {
|
||||
spaceID?: Int64;
|
||||
/** 根据模型状态进行过滤, 默认返回所有状态的模型 */
|
||||
modelStatuses?: Array<model.ModelStatus>;
|
||||
}
|
||||
|
||||
export interface ListModelResponse {
|
||||
models?: Array<model.Model>;
|
||||
}
|
||||
|
||||
export interface ListProviderAccountsBySpaceRequest {
|
||||
spaceID: string;
|
||||
}
|
||||
|
||||
export interface ListProviderAccountsBySpaceResponse {
|
||||
/** 账号列表 notice: 此处不返回 secretKey */
|
||||
accounts?: Array<model.ProviderAccount>;
|
||||
hasOperationPerm?: boolean;
|
||||
}
|
||||
|
||||
export interface ListSftTaskCustomModelsRequest {
|
||||
spaceID?: string;
|
||||
accountID?: string;
|
||||
/** 支持火山方舟/merlin */
|
||||
providerType?: model.Provider;
|
||||
nameKeyword?: string;
|
||||
/** providerType=merlin时必传 */
|
||||
userJwtToken?: string;
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ListSftTaskCustomModelsResponse {
|
||||
models?: Array<model.SftTaskCustomModel>;
|
||||
hasMore?: boolean;
|
||||
}
|
||||
|
||||
export interface ListSftTaskFoundationModelsRequest {
|
||||
spaceID?: string;
|
||||
accountID?: string;
|
||||
providerType?: model.Provider;
|
||||
nameKeyword?: string;
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ListSftTaskFoundationModelsResponse {
|
||||
models?: Array<model.SftTaskFoundationModel>;
|
||||
hasMore?: boolean;
|
||||
}
|
||||
|
||||
export interface ListSftTaskFoundationModelVersionsRequest {
|
||||
spaceID?: string;
|
||||
accountID?: string;
|
||||
modelName?: string;
|
||||
trainingType?: model.SftTaskTrainingType;
|
||||
trainingMethod?: model.SftTaskTrainingMethod;
|
||||
/** 只支持火山方舟 */
|
||||
providerType?: model.Provider;
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ListSftTaskFoundationModelVersionsResponse {
|
||||
models?: Array<model.SftTaskFoundationModel>;
|
||||
hasMore?: boolean;
|
||||
}
|
||||
|
||||
export interface ListSftTaskResourceRequest {
|
||||
/** 必填,本期只支持merlin */
|
||||
provider?: model.Provider;
|
||||
/** 空间ID,必填用于权限校验 */
|
||||
spaceID?: string;
|
||||
/** 用于 JwtToken 鉴权 */
|
||||
Authorization?: string;
|
||||
}
|
||||
|
||||
export interface ListSftTaskResourceResponse {
|
||||
merlinRscClusters?: Array<model.MerlinResourceCluster>;
|
||||
}
|
||||
|
||||
export interface ListSftTasksRequest {
|
||||
spaceID?: string;
|
||||
accountID?: string;
|
||||
creator?: string;
|
||||
taskNameKeyWord?: string;
|
||||
taskID?: string;
|
||||
/** 暂时只支持Completed */
|
||||
status?: model.SftTaskStatusPhase;
|
||||
/** 非必填,支持maas和merlin */
|
||||
provider?: model.Provider;
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
/** 用于JwtToken鉴权 */
|
||||
Authorization?: string;
|
||||
}
|
||||
|
||||
export interface ListSftTasksResponse {
|
||||
tasks?: Array<model.SftTask>;
|
||||
hasMore?: boolean;
|
||||
}
|
||||
|
||||
export interface ListTrainingDataImportTasksReq {
|
||||
datasetID?: string;
|
||||
taskID?: string;
|
||||
withErrLog?: boolean;
|
||||
space_id?: string;
|
||||
pageSize?: string;
|
||||
nextToken?: string;
|
||||
}
|
||||
|
||||
export interface ListTrainingDataImportTasksResp {
|
||||
tasks?: Array<model.TrainingDataImportTask>;
|
||||
hasMore?: boolean;
|
||||
nextToken?: string;
|
||||
}
|
||||
|
||||
export interface ModelAccount {
|
||||
model?: model.Model;
|
||||
accounts?: Array<model.Account>;
|
||||
}
|
||||
|
||||
export interface ModelContextRange {
|
||||
/** 上限,不传代表不设限 */
|
||||
UpperBound?: number;
|
||||
/** 下限,不传代表不设限 */
|
||||
LowerBound?: number;
|
||||
}
|
||||
|
||||
export interface ModelFilter {
|
||||
/** 模型tag过滤项,value中list内部各个元素在过滤时是or关系,各个key之间在过滤时是and关系 */
|
||||
modelFilterTags?: Partial<Record<model.ModelFilterKey, Array<string>>>;
|
||||
/** 模型状态 */
|
||||
modelStatuses?: Array<model.ModelStatus>;
|
||||
/** 模型支持的上下文长度的范围 */
|
||||
modelContextRange?: ModelContextRange;
|
||||
/** 模型厂商 */
|
||||
modelVendors?: Array<string>;
|
||||
/** 名称关键字 */
|
||||
name?: string;
|
||||
/** coze空间id */
|
||||
cozeSpaceID?: Int64;
|
||||
}
|
||||
|
||||
export interface OApiGetSftTaskRequest {
|
||||
spaceID?: string;
|
||||
taskID?: string;
|
||||
Authorization?: string;
|
||||
}
|
||||
|
||||
export interface OApiGetSftTaskResponse {
|
||||
task?: model.SftTask;
|
||||
}
|
||||
|
||||
export interface OApiReportSftTaskEventRequest {
|
||||
spaceID?: string;
|
||||
taskID?: string;
|
||||
Authorization?: string;
|
||||
eventType?: model.SftTaskRunEventType;
|
||||
msg?: string;
|
||||
artifact?: model.SftTaskOutput;
|
||||
urlInfo?: model.SftTaskProviderURLInfo;
|
||||
progress?: model.SftTaskProgress;
|
||||
code?: model.SftTaskErrCode;
|
||||
}
|
||||
|
||||
export interface OApiReportSftTaskEventResponse {}
|
||||
|
||||
export interface OApiUpdateModelStatusRequest {
|
||||
spaceID?: Int64;
|
||||
modelID?: Int64;
|
||||
Authorization?: string;
|
||||
/** SSO用户名 */
|
||||
ssoUsername?: string;
|
||||
status?: model.ModelStatus;
|
||||
}
|
||||
|
||||
export interface OApiUpdateModelStatusResponse {}
|
||||
|
||||
export interface OApiUpsertModelAndAccountRequest {
|
||||
modelAccount?: ModelAccount;
|
||||
Authorization?: string;
|
||||
/** SSO用户名 */
|
||||
ssoUsername?: string;
|
||||
}
|
||||
|
||||
export interface OApiUpsertModelAndAccountResponse {
|
||||
/** 修改后的model和acccount信息 */
|
||||
modelAccount?: ModelAccount;
|
||||
}
|
||||
|
||||
export interface SaaSGetModelFilterParamsRequest {}
|
||||
|
||||
export interface SaaSGetModelFilterParamsResponse {
|
||||
modelFilterTags?: Partial<Record<model.ModelFilterKey, Array<string>>>;
|
||||
modelContextRange?: ModelContextRange;
|
||||
modelVendors?: Array<string>;
|
||||
}
|
||||
|
||||
export interface SaaSListModelRequest {
|
||||
cursorID?: string;
|
||||
limit?: number;
|
||||
/** 筛选项 */
|
||||
Filter?: ModelFilter;
|
||||
/** 因为coze暂时给不了rpc接口,所以后端需要拿到cookie去请求coze的前端接口 */
|
||||
cookie?: string;
|
||||
}
|
||||
|
||||
export interface SaaSListModelResponse {
|
||||
models?: Array<model.Model>;
|
||||
cursorID?: string;
|
||||
hasMore?: boolean;
|
||||
}
|
||||
|
||||
export interface SearchByteTreeNodesRequest {
|
||||
name?: string;
|
||||
/** 英文搜索 */
|
||||
i18nSearch?: string;
|
||||
/** 仅搜索叶子节点 */
|
||||
isLeaf?: boolean;
|
||||
/** 父节点ID */
|
||||
parentID?: Int64;
|
||||
/** 搜索父节点下满足条件的子孙节点 */
|
||||
inherit?: boolean;
|
||||
/** 根据节点包含的 resource provider 过滤,仅叶节点有 provider 信息 */
|
||||
resourceProvider?: Array<model.ByteTreeNodeResourceProvider>;
|
||||
'x-jwt-token'?: string;
|
||||
}
|
||||
|
||||
export interface SearchByteTreeNodesResponse {
|
||||
nodes?: Array<model.ByteTreeNode>;
|
||||
}
|
||||
|
||||
export interface SyncModelStatusRequest {
|
||||
spaceID: Int64;
|
||||
modelID: Int64;
|
||||
}
|
||||
|
||||
export interface SyncModelStatusResponse {}
|
||||
|
||||
export interface SyncTrainingDatasetToVolcanoTOSReq {
|
||||
dataset_id?: string;
|
||||
accountID?: string;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface SyncTrainingDatasetToVolcanoTOSResp {
|
||||
datasetID?: string;
|
||||
file?: model.TOSFile;
|
||||
isCached?: boolean;
|
||||
}
|
||||
|
||||
export interface TerminateSftTaskRequest {
|
||||
spaceID?: string;
|
||||
accountID?: string;
|
||||
taskID?: string;
|
||||
/** 用于 JwtToken 鉴权 */
|
||||
Authorization?: string;
|
||||
}
|
||||
|
||||
export interface TerminateSftTaskResponse {}
|
||||
|
||||
export interface UpdateModelStatusRequest {
|
||||
spaceID?: Int64;
|
||||
modelID?: Int64;
|
||||
status?: model.ModelStatus;
|
||||
}
|
||||
|
||||
export interface UpdateModelStatusResponse {}
|
||||
|
||||
export interface UpdateProviderAccountRequest {
|
||||
spaceID: string;
|
||||
accountID: string;
|
||||
provider?: model.Provider;
|
||||
name?: string;
|
||||
/** [20, 30) provider 账号 */
|
||||
maasAccount?: model.MaasAuth;
|
||||
/** 用于 JwtToken 鉴权 */
|
||||
Authorization?: string;
|
||||
}
|
||||
|
||||
export interface UpdateProviderAccountResponse {}
|
||||
|
||||
export interface UpdateTrainingDataRowsReq {
|
||||
dataset_id?: string;
|
||||
row_group?: flow_devops_evaluation_dataset.RowGroup;
|
||||
/** 空间ID */
|
||||
space_id?: string;
|
||||
}
|
||||
|
||||
export interface UpdateTrainingDataRowsResp {
|
||||
rowID?: string;
|
||||
}
|
||||
|
||||
export interface UpsertModelAndAccountRequest {
|
||||
modelAccount?: ModelAccount;
|
||||
/** 从精调任务新创建 merlin 模型时必传,用于调用 Bernard 服务 */
|
||||
'x-jwt-token'?: string;
|
||||
}
|
||||
|
||||
export interface UpsertModelAndAccountResponse {
|
||||
/** 修改后的model和acccount信息 */
|
||||
modelAccount?: ModelAccount;
|
||||
}
|
||||
|
||||
export interface ValidateProviderAccountRequest {
|
||||
spaceID: string;
|
||||
isUpdate: boolean;
|
||||
provider?: model.Provider;
|
||||
maasAccount?: model.MaasAuth;
|
||||
/** 用于 JwtToken 鉴权 */
|
||||
Authorization?: string;
|
||||
}
|
||||
|
||||
export interface ValidateProviderAccountResponse {
|
||||
isValidate?: boolean;
|
||||
maasValidate?: model.MaaSAccountValidate;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as openapi_graph from './openapi_graph';
|
||||
import * as graph from './graph';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface GetGraphSlotsReq {
|
||||
spaceID: string;
|
||||
graphUID: string;
|
||||
psm: string;
|
||||
isBOE?: boolean;
|
||||
env?: string;
|
||||
cluster?: string;
|
||||
/** FornaxSDK 鉴权 */
|
||||
Authorization?: string;
|
||||
}
|
||||
|
||||
export interface GetGraphSlotsResp {
|
||||
nodeSlots: Array<openapi_graph.NodeWithSlots>;
|
||||
/** 打点, 跟进问题使用 */
|
||||
slotSetVersion?: string;
|
||||
}
|
||||
|
||||
export interface GetNodeSlotsReq {
|
||||
spaceID: string;
|
||||
graphUID: string;
|
||||
nodeUID: string;
|
||||
psm: string;
|
||||
isBOE?: boolean;
|
||||
env?: string;
|
||||
cluster?: string;
|
||||
/** FornaxSDK 鉴权 */
|
||||
Authorization?: string;
|
||||
}
|
||||
|
||||
export interface GetNodeSlotsResp {
|
||||
slots: Array<openapi_graph.Slot>;
|
||||
nodeType: graph.NodeType;
|
||||
/** 打点, 跟进问题使用 */
|
||||
slotSetVersion?: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as resource from './resource';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface GetResourceReq {
|
||||
resourceType: resource.ResourceType;
|
||||
resourceID: string;
|
||||
}
|
||||
|
||||
export interface GetResourceResp {
|
||||
resource?: resource.Resource;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,232 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as space from './space';
|
||||
import * as base from './base';
|
||||
import * as auth from './auth';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface AddSpaceMemberOApiReq {
|
||||
/** 空间ID */
|
||||
space_id?: Int64;
|
||||
/** 添加空间成员 */
|
||||
space_members?: Array<space.SpaceMember>;
|
||||
/** FornaxSDK 鉴权 */
|
||||
Authorization?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface AddSpaceMemberOApiResp {
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface AddSpaceMemberRequest {
|
||||
/** 空间ID */
|
||||
space_id: Int64;
|
||||
/** 添加空间成员 */
|
||||
space_members?: Array<space.SpaceMember>;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface AddSpaceMemberResponse {
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface CreateSpaceRequest {
|
||||
/** 空间名称 */
|
||||
name: string;
|
||||
/** 空间描述 */
|
||||
description?: string;
|
||||
space_type?: space.SpaceType;
|
||||
/** 服务树节点 ID */
|
||||
byte_tree_node_id?: Int64;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface CreateSpaceResponse {
|
||||
/** 创建空间 */
|
||||
space?: space.Space;
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface GetByteTreeNodeByIDRequest {
|
||||
/** 服务树节点ID */
|
||||
node_id: Int64;
|
||||
'x-jwt-token'?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface GetByteTreeNodeByIDResponse {
|
||||
/** 服务树节点信息 */
|
||||
node?: space.ByteTreeNode;
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface GetFeatureConfigBySpaceIDReq {
|
||||
spaceID: string;
|
||||
}
|
||||
|
||||
export interface GetFeatureConfigBySpaceIDResp {
|
||||
cozeBot?: space.CozeBotFeatureConfig;
|
||||
featureSwitchMap?: Record<string, boolean>;
|
||||
IsRelatedToDoubao?: boolean;
|
||||
/** 功能黑名单,该列表代表这些功能要被隐藏 */
|
||||
BlockFeatureList?: Array<string>;
|
||||
}
|
||||
|
||||
export interface GetSpaceRequest {
|
||||
/** 空间ID */
|
||||
space_id: Int64;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface GetSpaceResponse {
|
||||
/** 空间 */
|
||||
space?: space.Space;
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface GetUserSpaceRolesRequest {
|
||||
/** 空间ID */
|
||||
space_id: Int64;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface GetUserSpaceRolesResponse {
|
||||
roles?: Array<auth.AuthRole>;
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface HasPermByteTreeNodeRequest {
|
||||
/** 服务树节点ID */
|
||||
byte_tree_node_id: string;
|
||||
'x-jwt-token'?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface HasPermByteTreeNodeResponse {
|
||||
/** 是否有权限 */
|
||||
has_permission?: boolean;
|
||||
/** 无权限时展示申请工单链接 */
|
||||
applyTicketURL?: string;
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface ListUserSpaceRequest {
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface ListUserSpaceResponse {
|
||||
/** 空间列表 */
|
||||
spaces?: Array<space.Space>;
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface QuerySpaceMemberRequest {
|
||||
/** 空间ID */
|
||||
space_id: Int64;
|
||||
role_type?: space.SpaceRoleType;
|
||||
page?: number;
|
||||
page_size?: number;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface QuerySpaceMemberResponse {
|
||||
/** 空间成员 */
|
||||
space_members?: Array<space.SpaceMember>;
|
||||
total?: number;
|
||||
/** 成员租户分布,去重 */
|
||||
member_tenant?: Array<auth.TenantType>;
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface RemoveSpaceMemberOApiReq {
|
||||
/** 空间ID */
|
||||
space_id: Int64;
|
||||
/** 移除空间成员 */
|
||||
space_members?: Array<space.SpaceMember>;
|
||||
/** FornaxSDK 鉴权 */
|
||||
Authorization?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface RemoveSpaceMemberOApiResp {
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface RemoveSpaceMemberRequest {
|
||||
/** 空间ID */
|
||||
space_id: Int64;
|
||||
/** 移除空间成员 */
|
||||
space_members?: Array<space.SpaceMember>;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface RemoveSpaceMemberResponse {
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface UpdateSpaceRequest {
|
||||
/** 空间ID */
|
||||
space_id: Int64;
|
||||
/** 空间名称 */
|
||||
name?: string;
|
||||
/** 空间描述 */
|
||||
description?: string;
|
||||
/** 发布审批配置 */
|
||||
release_approval_config?: space.ReleaseApprovalConfig;
|
||||
/** 服务树节点ID */
|
||||
byte_tree_node_id?: Int64;
|
||||
/** 具体配置内容 */
|
||||
trace_config?: space.TraceConfig;
|
||||
'x-jwt-token'?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface UpdateSpaceResponse {
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,254 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as base from './base';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
/** 打标目标对象类型 */
|
||||
export enum TagBindTargetObjectType {
|
||||
/** 用例 */
|
||||
Case = 1,
|
||||
/** 任务,用例的执行记录 */
|
||||
Task = 2,
|
||||
/** 数据集 */
|
||||
Dataset = 3,
|
||||
/** 数据集/对话组 */
|
||||
DatasetRowGroup = 4,
|
||||
/** 规则组 */
|
||||
RuleGroup = 5,
|
||||
/** 规则 */
|
||||
Rule = 6,
|
||||
/** 评测报告/对话组 */
|
||||
ReportRowGroup = 7,
|
||||
/** Prompt */
|
||||
Prompt = 8,
|
||||
/** 人工标注项 */
|
||||
ManualAnnotationItem = 9,
|
||||
}
|
||||
|
||||
/** 标签层级 */
|
||||
export enum TagLevel {
|
||||
Primary = 1,
|
||||
Secondary = 2,
|
||||
}
|
||||
|
||||
export enum TagStatus {
|
||||
Valid = 1,
|
||||
InValid = 2,
|
||||
}
|
||||
|
||||
export interface CreateTagRequest {
|
||||
space_id: Int64;
|
||||
UserID?: string;
|
||||
/** tag支持的打标对象类型,指定parent_id创建二级标签时不传 */
|
||||
target_object_types?: Array<TagBindTargetObjectType>;
|
||||
tag: Tag;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface CreateTagResponse {
|
||||
tag?: Tag;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface CreateTagTargetBindRequest {
|
||||
tag_id: Int64;
|
||||
UserID?: string;
|
||||
/** 标签所处空间 */
|
||||
space_id: Int64;
|
||||
target_object_id: Int64;
|
||||
target_object_type: TagBindTargetObjectType;
|
||||
/** 标签的自定义查询索引 */
|
||||
custom_search_key: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface CreateTagTargetBindResponse {
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface GetTagByNameRequest {
|
||||
tag_name?: string;
|
||||
UserID?: string;
|
||||
space_id: Int64;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface GetTagByNameResponse {
|
||||
tag?: Tag;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface ListTagRequest {
|
||||
space_id: Int64;
|
||||
UserID?: string;
|
||||
page?: Int64;
|
||||
page_size?: Int64;
|
||||
/** -- search fields -- */
|
||||
fuzzy_name?: string;
|
||||
creator_id?: Int64;
|
||||
target_object_types?: Array<TagBindTargetObjectType>;
|
||||
/** 标签的自定义查询索引,对于不同的目标对象类型TargetObjectType,自定义查询索引约定为特定的业务id */
|
||||
custom_search_key?: string;
|
||||
/** 忽略已禁用的标签 */
|
||||
ignore_invalid_tag?: boolean;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface ListTagResponse {
|
||||
tags?: Array<Tag>;
|
||||
total?: Int64;
|
||||
Session?: Session;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface MCreateTagTargetBindRequest {
|
||||
tag_ids: Array<Int64>;
|
||||
UserID?: string;
|
||||
/** 标签所处空间 */
|
||||
space_id: Int64;
|
||||
target_object_id: Int64;
|
||||
target_object_type: TagBindTargetObjectType;
|
||||
/** 标签的自定义查询索引 */
|
||||
custom_search_key: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface MCreateTagTargetBindResponse {
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface MGetTagListByTargetIDsRequest {
|
||||
space_id: Int64;
|
||||
UserID?: string;
|
||||
target_ids: Array<Int64>;
|
||||
target_object_type: TagBindTargetObjectType;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface MGetTagListByTargetIDsResponse {
|
||||
tags?: Record<Int64, Array<Tag>>;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface MGetTagsRequest {
|
||||
tag_ids?: Array<Int64>;
|
||||
UserID?: string;
|
||||
space_id: Int64;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface MGetTagsResponse {
|
||||
tags?: Array<Tag>;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface MGetTagTargetBindRequest {
|
||||
tag_ids: Array<Int64>;
|
||||
UserID?: string;
|
||||
/** 标签所处空间 */
|
||||
space_id: Int64;
|
||||
target_object_type: TagBindTargetObjectType;
|
||||
/** 标签的自定义查询索引 */
|
||||
custom_search_key?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface MGetTagTargetBindResponse {
|
||||
target_ids: Record<Int64, Array<Int64>>;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface RemoveTagTargetBindRequest {
|
||||
space_id: Int64;
|
||||
UserID?: string;
|
||||
tag_id: Int64;
|
||||
target_object_type: TagBindTargetObjectType;
|
||||
target_object_id: Int64;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface RemoveTagTargetBindResponse {
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface Session {
|
||||
UserID?: string;
|
||||
}
|
||||
|
||||
export interface Tag {
|
||||
tag_id?: Int64;
|
||||
/** 标签关联对象类型信息 */
|
||||
bind_info?: Array<TagBindInfo>;
|
||||
/** 标签名称 */
|
||||
name: string;
|
||||
/** 标签层级 */
|
||||
level: TagLevel;
|
||||
/** 标签层级 */
|
||||
children?: Array<Tag>;
|
||||
/** 父标签ID,一级标签的父标签就是本身 */
|
||||
parent_tag_id?: Int64;
|
||||
/** 标签生效状态 */
|
||||
status?: TagStatus;
|
||||
/** 创建者 */
|
||||
creator_id?: Int64;
|
||||
/** 创建时间 */
|
||||
create_time?: Int64;
|
||||
/** 更新时间 */
|
||||
update_time?: Int64;
|
||||
}
|
||||
|
||||
export interface TagBindInfo {
|
||||
/** 关联对象类型 */
|
||||
target_object_type: TagBindTargetObjectType;
|
||||
/** 关联对象数量 */
|
||||
count?: Int64;
|
||||
}
|
||||
|
||||
export interface UpdateTagRequest {
|
||||
space_id: Int64;
|
||||
UserID?: string;
|
||||
/** 覆盖当前的关联对象类型列表,可能触发删除关联对象类型 */
|
||||
target_object_types?: Array<TagBindTargetObjectType>;
|
||||
tag: Tag;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface UpdateTagResponse {
|
||||
tag?: Tag;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface UpdateTargetBindTagsRequest {
|
||||
space_id: Int64;
|
||||
UserID?: string;
|
||||
tag_ids: Array<Int64>;
|
||||
target_object_type: TagBindTargetObjectType;
|
||||
target_object_id: Int64;
|
||||
custom_search_key: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface UpdateTargetBindTagsResponse {
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,162 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as base from './base';
|
||||
import * as user from './user';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface AuthComponentSDKRequest {
|
||||
/** 一个随机字符串,由数字、字母组成 */
|
||||
noncestr?: string;
|
||||
/** 时间戳(毫秒) */
|
||||
timestamp?: Int64;
|
||||
/** 组件页面url */
|
||||
url?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface AuthComponentSDKResponse {
|
||||
signature?: string;
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface GetSessionInfoRequest {
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface GetSessionInfoResponse {
|
||||
/** 登录用户信息 */
|
||||
user_info?: user.UserInfoDetail;
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface GetUserInfoRequest {
|
||||
/** 选填用户ID */
|
||||
user_id?: string;
|
||||
/** 选填用户名 */
|
||||
user_name?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface GetUserInfoResponse {
|
||||
/** 用户信息 */
|
||||
user_info?: user.UserInfoDetail;
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface IsUserInGrayData {
|
||||
uid?: string;
|
||||
}
|
||||
|
||||
export interface IsUserInGrayRequest {
|
||||
/** 灰度策略 */
|
||||
strategy?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface IsUserInGrayResponse {
|
||||
data?: IsUserInGrayData;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface KickUserReq {
|
||||
extUserID: string;
|
||||
'Zti-Token': string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface KickUserResp {
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface LoginRequest {
|
||||
/** 登录授权码 */
|
||||
code?: string;
|
||||
/** 登录流程重定向uri */
|
||||
state?: string;
|
||||
/** 指定 sessionID */
|
||||
session_id?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface LoginResponse {
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface LogoutRequest {
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface LogoutResponse {
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface MGetUserInfoRequest {
|
||||
/** fornax UserID列表 */
|
||||
user_ids?: Array<string>;
|
||||
/** SsoUserName列表 */
|
||||
user_names?: Array<string>;
|
||||
/** 飞书UserID列表 */
|
||||
ext_user_ids?: Array<string>;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface MGetUserInfoResponse {
|
||||
/** 用户信息列表 */
|
||||
user_infos?: Array<user.UserInfoDetail>;
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface QueryUserInfoRequest {
|
||||
/** 用户名模糊搜索 */
|
||||
name_like: string;
|
||||
/** 分页大小,默认为20 */
|
||||
page_size?: number;
|
||||
/** 分页Token */
|
||||
page_token?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface QueryUserInfoResponse {
|
||||
/** 用户信息列表 */
|
||||
user_infos?: Array<user.UserInfoDetail>;
|
||||
/** 分页Token */
|
||||
page_token?: string;
|
||||
/** 是否还有下一页 */
|
||||
has_more?: boolean;
|
||||
code?: number;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum EnvType {
|
||||
Online = 0,
|
||||
BOE = 1,
|
||||
/** 废弃 */
|
||||
All = 2,
|
||||
}
|
||||
|
||||
export enum OrderType {
|
||||
Unknown = 1,
|
||||
Desc = 2,
|
||||
Asc = 3,
|
||||
}
|
||||
|
||||
export enum PlatformType {
|
||||
/** 废弃 */
|
||||
Fornax = 0,
|
||||
Coze = 1,
|
||||
PSM = 2,
|
||||
Doubao = 3,
|
||||
Prompt = 4,
|
||||
PSMWithoutDoubao = 5,
|
||||
PromptWithoutDoubao = 6,
|
||||
SaasFornax = 7,
|
||||
SaasPrompt = 8,
|
||||
SaasEvaluator = 9,
|
||||
CozeProject = 10,
|
||||
CozeBot = 11,
|
||||
SaasEvalTarget = 12,
|
||||
SaasAll = 13,
|
||||
}
|
||||
|
||||
export enum QueryOfflineType {
|
||||
ListTraces = 0,
|
||||
GetTrace = 1,
|
||||
GetTraceByLogID = 2,
|
||||
BatchGetTracesAdvanceInfo = 3,
|
||||
GetMetrics = 4,
|
||||
GetTagsOptions = 5,
|
||||
ListThreads = 6,
|
||||
GetThread = 7,
|
||||
GetThreadMeta = 8,
|
||||
ListAllSpans = 9,
|
||||
ListLLMSpans = 10,
|
||||
SearchTraceV3 = 11,
|
||||
}
|
||||
|
||||
export enum SpanListType {
|
||||
RootSpan = 0,
|
||||
AllSpan = 1,
|
||||
LLMSpan = 2,
|
||||
}
|
||||
|
||||
/** ValueType is used to represent any type of attribute value. */
|
||||
export enum ValueType {
|
||||
Unknown = 1,
|
||||
Bool = 2,
|
||||
I32 = 3,
|
||||
I64 = 4,
|
||||
F64 = 5,
|
||||
String = 6,
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,209 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum FieldFilterType {
|
||||
Unknown = 1,
|
||||
/** Equals (=) */
|
||||
Eq = 2,
|
||||
/** Greater Than or Equal (>=) */
|
||||
Gte = 3,
|
||||
/** Less Than or Equal (<=) */
|
||||
Lte = 4,
|
||||
/** Contains All */
|
||||
Containsall = 5,
|
||||
/** In */
|
||||
In = 6,
|
||||
/** Not In */
|
||||
NotIn = 7,
|
||||
}
|
||||
|
||||
/** Syntax:
|
||||
<fieldName>: {
|
||||
"i64": {
|
||||
"gte": <value>,
|
||||
"lte": <value>
|
||||
}
|
||||
} */
|
||||
export interface FieldFilter {
|
||||
bool?: FieldFilterBool;
|
||||
i32?: FieldFilterI32;
|
||||
i64?: FieldFilterI64;
|
||||
f64?: FieldFilterF64;
|
||||
string?: FieldFilterString;
|
||||
}
|
||||
|
||||
/** applied on a bool field
|
||||
|
||||
Syntax:
|
||||
"bool": {
|
||||
"eq": <value>
|
||||
}
|
||||
|
||||
Example:
|
||||
|
||||
"bool": {"eq": true} */
|
||||
export interface FieldFilterBool {
|
||||
/** Equals (=)
|
||||
The eq operator matches records where the value of a field equals the specified value. */
|
||||
eq?: boolean;
|
||||
}
|
||||
|
||||
/** applied on a float64 field
|
||||
|
||||
Syntax:
|
||||
"f64": {
|
||||
"gte": <value>,
|
||||
"lte": <value>
|
||||
}
|
||||
|
||||
Example:
|
||||
|
||||
"f64": {"gte": 100.0, "lte": 500.0} */
|
||||
export interface FieldFilterF64 {
|
||||
/** Greater Than or Equal (>=)
|
||||
It selects those records where the value of the field is greater than or equal to (i.e. >=) the specified value. */
|
||||
gte?: number;
|
||||
/** Less Than or Equal (<=)
|
||||
It selects those records where the value of the field is less than or equal to (i.e. <=) the specified value. */
|
||||
lte?: number;
|
||||
/** In
|
||||
It selects those records where the value of the field is within the specified list of values.
|
||||
The "In" operator is used to compare the field's value against an array of values, and if the field's value
|
||||
is found within that array, the record is included in the result set. */
|
||||
in?: Array<number>;
|
||||
/** Not In
|
||||
It selects those records where the value of the field is not within the specified list of values.
|
||||
The "Not In" operator is used to compare the field's value against an array of values, and if the field's value
|
||||
is not found within that array, the record is included in the result set. */
|
||||
not_in?: Array<number>;
|
||||
is_null?: boolean;
|
||||
not_null?: boolean;
|
||||
gt?: number;
|
||||
lt?: number;
|
||||
eq?: number;
|
||||
}
|
||||
|
||||
/** applied on a int32 field
|
||||
|
||||
Syntax:
|
||||
"i64": {
|
||||
"gte": <value>,
|
||||
"lte": <value>
|
||||
}
|
||||
|
||||
Example:
|
||||
|
||||
"i32": {"gte": 100, "lte": 1000} */
|
||||
export interface FieldFilterI32 {
|
||||
/** Greater Than or Equal (>=)
|
||||
It selects those records where the value of the field is greater than or equal to (i.e. >=) the specified value. */
|
||||
gte?: number;
|
||||
/** Less Than or Equal (<=)
|
||||
It selects those records where the value of the field is less than or equal to (i.e. <=) the specified value. */
|
||||
lte?: number;
|
||||
/** In
|
||||
It selects those records where the value of the field is within the specified list of values.
|
||||
The "In" operator is used to compare the field's value against an array of values, and if the field's value
|
||||
is found within that array, the record is included in the result set. */
|
||||
in?: Array<number>;
|
||||
/** Not In
|
||||
It selects those records where the value of the field is not within the specified list of values.
|
||||
The "Not In" operator is used to compare the field's value against an array of values, and if the field's value
|
||||
is not found within that array, the record is included in the result set. */
|
||||
not_in?: Array<number>;
|
||||
is_null?: boolean;
|
||||
not_null?: boolean;
|
||||
/** Greater than */
|
||||
gt?: number;
|
||||
/** Less than */
|
||||
lt?: number;
|
||||
}
|
||||
|
||||
/** applied on a int64 field
|
||||
|
||||
Syntax:
|
||||
"i64": {
|
||||
"gte": <value>,
|
||||
"lte": <value>
|
||||
}
|
||||
|
||||
Example:
|
||||
|
||||
"i64": {"gte": 100, "lte": 1000} */
|
||||
export interface FieldFilterI64 {
|
||||
/** Greater Than or Equal (>=)
|
||||
It selects those records where the value of the field is greater than or equal to (i.e. >=) the specified value. */
|
||||
gte?: string;
|
||||
/** Less Than or Equal (<=)
|
||||
It selects those records where the value of the field is less than or equal to (i.e. <=) the specified value. */
|
||||
lte?: string;
|
||||
/** In
|
||||
It selects those records where the value of the field is within the specified list of values.
|
||||
The "In" operator is used to compare the field's value against an array of values, and if the field's value
|
||||
is found within that array, the record is included in the result set. */
|
||||
in?: Array<string>;
|
||||
/** Not In
|
||||
It selects those records where the value of the field is not within the specified list of values.
|
||||
The "Not In" operator is used to compare the field's value against an array of values, and if the field's value
|
||||
is not found within that array, the record is included in the result set. */
|
||||
not_in?: Array<string>;
|
||||
is_null?: boolean;
|
||||
not_null?: boolean;
|
||||
/** Greater than */
|
||||
gt?: Int64;
|
||||
/** Less than */
|
||||
lt?: Int64;
|
||||
}
|
||||
|
||||
/** applied on a string field
|
||||
|
||||
Syntax:
|
||||
"string": {
|
||||
"containsall": [<value>]
|
||||
}
|
||||
|
||||
Example:
|
||||
|
||||
"string": {"containsall": ["kid"]}
|
||||
Only one of the following filtering operators can be selected */
|
||||
export interface FieldFilterString {
|
||||
/** Contains All
|
||||
It selects those records where the value of the field contains all of the characters in the specified array. */
|
||||
containsall?: Array<string>;
|
||||
/** In
|
||||
It selects those records where the value of the field is within the specified list of values.
|
||||
The "In" operator is used to compare the field's value against an array of values, and if the field's value
|
||||
is found within that array, the record is included in the result set.
|
||||
If you want to match an empty string, pass in "" in the array and cannot pass in other strings at the same time */
|
||||
in?: Array<string>;
|
||||
/** Not In
|
||||
It selects those records where the value of the field is not within the specified list of values.
|
||||
The "Not In" operator is used to compare the field's value against an array of values, and if the field's value
|
||||
is not found within that array, the record is included in the result set.
|
||||
If you want to match a non empty string, pass in "" in the array and cannot pass in other strings at the same time */
|
||||
not_in?: Array<string>;
|
||||
is_null?: boolean;
|
||||
not_null?: boolean;
|
||||
not_contains?: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,396 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum AnnotateType {
|
||||
/** GSB评估规则场景, 仅包含badcase */
|
||||
BadCase = 1,
|
||||
}
|
||||
|
||||
/** 主体类型 */
|
||||
export enum AuthPrincipalType {
|
||||
Undefined = 0,
|
||||
/** 用户 */
|
||||
User = 1,
|
||||
/** 部门 */
|
||||
Department = 2,
|
||||
}
|
||||
|
||||
export enum ComboType {
|
||||
ComboTypeUndefined = 0,
|
||||
ComboTypeAnd = 1,
|
||||
ComboTypeOr = 2,
|
||||
}
|
||||
|
||||
export enum CompareType {
|
||||
Undefined = 0,
|
||||
/** SP 比较 */
|
||||
SystemPromptCmp = 1,
|
||||
/** 模型比较 */
|
||||
ModelCmp = 2,
|
||||
/** 自由比较 */
|
||||
SelfCmp = 3,
|
||||
}
|
||||
|
||||
export enum ConditionType {
|
||||
ConditionTypeUndefined = 0,
|
||||
ConditionTypeExpr = 1,
|
||||
ConditionTypeCombo = 2,
|
||||
}
|
||||
|
||||
export enum ContentType {
|
||||
Text = 1,
|
||||
Image = 2,
|
||||
Binary = 3,
|
||||
ImageVariable = 4,
|
||||
}
|
||||
|
||||
export enum Env {
|
||||
Undefined = 0,
|
||||
/** boe */
|
||||
BOE = 1,
|
||||
/** onlien */
|
||||
Online = 2,
|
||||
}
|
||||
|
||||
export enum EvalStrategyStrategyEnum {
|
||||
Undefined = 0,
|
||||
/** 一期仅支持AIPaas GSB */
|
||||
AIPassGSB = 1,
|
||||
/** 二期迁移Fornax */
|
||||
FornaxEval = 2,
|
||||
}
|
||||
|
||||
export enum GrayReleaseFieldType {
|
||||
Undefined = 0,
|
||||
Uid = 1,
|
||||
Did = 2,
|
||||
CustomKey = 3,
|
||||
}
|
||||
|
||||
export enum GrayReleaseStrategy {
|
||||
/** 不开启灰度 */
|
||||
None = 0,
|
||||
/** 实例灰度 */
|
||||
InstanceGrayRelease = 1,
|
||||
}
|
||||
|
||||
export enum GSBResult {
|
||||
Undefined = 0,
|
||||
Good = 1,
|
||||
Same = 2,
|
||||
Bad = 3,
|
||||
}
|
||||
|
||||
export enum MessageType {
|
||||
System = 1,
|
||||
User = 2,
|
||||
Assistant = 3,
|
||||
Tool = 4,
|
||||
Placeholder = 20,
|
||||
}
|
||||
|
||||
/** 模型系列,特别指不同模型接入商 */
|
||||
export enum ModelClass {
|
||||
Undefined = 0,
|
||||
/** gpt */
|
||||
GPT = 1,
|
||||
/** 字节 */
|
||||
SEED = 2,
|
||||
/** google */
|
||||
Gemini = 3,
|
||||
/** 亚马逊 */
|
||||
Claude = 4,
|
||||
/** 文心一言 */
|
||||
Ernie = 5,
|
||||
/** 百川 */
|
||||
Baichuan = 6,
|
||||
/** 阿里 */
|
||||
Qwen = 7,
|
||||
/** 智谱 */
|
||||
GML = 8,
|
||||
/** 深度求索 */
|
||||
DeepSeek = 9,
|
||||
}
|
||||
|
||||
export enum OperatorType {
|
||||
OperatorTypeUndefined = 0,
|
||||
OperatorTypeEq = 1,
|
||||
OperatorTypeIn = 2,
|
||||
OperatorTypeNotIn = 3,
|
||||
OperatorTypeNotEq = 4,
|
||||
OperatorTypeGt = 5,
|
||||
OperatorTypeGte = 6,
|
||||
OperatorTypeLt = 7,
|
||||
OperatorTypeLte = 8,
|
||||
OperatorTypeIsNull = 9,
|
||||
OperatorTypeIsNotNull = 10,
|
||||
}
|
||||
|
||||
export enum OptimizeEngine {
|
||||
Undefined = 0,
|
||||
AIPaas_GradientDescent = 1,
|
||||
}
|
||||
|
||||
export enum OptimizeExecutionStatus {
|
||||
Undefined = 0,
|
||||
Init = 1,
|
||||
Running = 2,
|
||||
Canceled = 3,
|
||||
Fail = 4,
|
||||
Completed = 5,
|
||||
}
|
||||
|
||||
export enum OptimizeTargetType {
|
||||
Prompt = 1,
|
||||
}
|
||||
|
||||
export enum OrderField {
|
||||
CreateTime = 1,
|
||||
LastedPublishTime = 2,
|
||||
}
|
||||
|
||||
/** Prompt 加密类型 */
|
||||
export enum PromptEncryptOption {
|
||||
Undefined = 0,
|
||||
/** 加密且返回明文 */
|
||||
EncryptWithPlainText = 1,
|
||||
/** 加密且不返回明文 */
|
||||
EncryptWithoutPlainText = 2,
|
||||
}
|
||||
|
||||
/** 提示词类型 */
|
||||
export enum PromptType {
|
||||
Undefined = 0,
|
||||
/** 补全模式 */
|
||||
Completion = 1,
|
||||
/** 聊天模式 */
|
||||
Chat = 2,
|
||||
/** 补全模式V2 */
|
||||
Completion_V2 = 3,
|
||||
/** Prompt片段 */
|
||||
Segment = 4,
|
||||
}
|
||||
|
||||
/** 发布状态 */
|
||||
export enum PublishStatus {
|
||||
Undefined = 0,
|
||||
/** 未发布 */
|
||||
UnPublish = 1,
|
||||
/** 已发布 */
|
||||
Published = 2,
|
||||
}
|
||||
|
||||
export enum ReleaseStatus {
|
||||
Undefined = 0,
|
||||
/** 在线 */
|
||||
Online = 1,
|
||||
/** 下线 */
|
||||
Offline = 2,
|
||||
/** 灰度中(废弃) */
|
||||
InGray = 3,
|
||||
/** 小流量 */
|
||||
Canary = 4,
|
||||
/** 单机房 */
|
||||
SingleDC = 5,
|
||||
}
|
||||
|
||||
export enum ReleaseSubtaskStatus {
|
||||
/** 未开始 */
|
||||
PendingStart = 1,
|
||||
/** 进行中 */
|
||||
InProgress = 2,
|
||||
/** 执行成功待确认 */
|
||||
ExecuteSuccess = 3,
|
||||
/** 待审批 */
|
||||
PendingApproval = 4,
|
||||
/** 审批通过 */
|
||||
ApprovalPassed = 5,
|
||||
/** 审批驳回 */
|
||||
ApprovalRejected = 6,
|
||||
/** 已完成 */
|
||||
Finished = 7,
|
||||
/** 失败 */
|
||||
Failed = 8,
|
||||
/** 已跳过 */
|
||||
Skipped = 9,
|
||||
/** 已回滚 */
|
||||
Rollbacked = 10,
|
||||
/** 已取消 */
|
||||
Canceled = 11,
|
||||
}
|
||||
|
||||
export enum ReleaseTaskStatus {
|
||||
/** 未开始 */
|
||||
PendingStart = 1,
|
||||
/** 进行中 */
|
||||
Inprogress = 2,
|
||||
/** 待审批 */
|
||||
PendingApproval = 3,
|
||||
/** 审批通过 */
|
||||
ApprovalPass = 4,
|
||||
/** 审批驳回 */
|
||||
ApprovalRejected = 5,
|
||||
/** 灰度发布中 */
|
||||
GrayReleasing = 6,
|
||||
/** 发布完成 */
|
||||
Finished = 7,
|
||||
/** 已取消 */
|
||||
Canceled = 8,
|
||||
/** 已回滚 */
|
||||
Rollbacked = 9,
|
||||
}
|
||||
|
||||
export enum ReleaseType {
|
||||
Undefined = 0,
|
||||
/** 发布 */
|
||||
Release = 1,
|
||||
/** 回滚 */
|
||||
RollBack = 2,
|
||||
/** 下线 */
|
||||
Offline = 3,
|
||||
/** 灰度发布(废弃) */
|
||||
GrayRelease = 4,
|
||||
/** 灰度取消(废弃) */
|
||||
GrayCancel = 5,
|
||||
/** 小流量发布 */
|
||||
CanaryRelease = 6,
|
||||
/** 单机房发布 */
|
||||
SingleDCRelease = 7,
|
||||
}
|
||||
|
||||
export enum ReplyType {
|
||||
/** 最终结果 */
|
||||
ReplyTypeFinalAnswer = 0,
|
||||
/** 工具调用 */
|
||||
ReplyTypeToolCall = 1,
|
||||
}
|
||||
|
||||
export enum ReportEventType {
|
||||
Undefined = 0,
|
||||
/** 调试官方 Prompt */
|
||||
DebugOfficialPrompt = 1,
|
||||
/** 采用官方 Prompt */
|
||||
AdoptOfficialPrompt = 2,
|
||||
}
|
||||
|
||||
/** 资源类型 */
|
||||
export enum ResourceType {
|
||||
Undefined = 0,
|
||||
Space = 1,
|
||||
Prompt = 2,
|
||||
Application = 3,
|
||||
Evaluation = 4,
|
||||
Trace = 5,
|
||||
Agent = 6,
|
||||
}
|
||||
|
||||
/** 密级标签 */
|
||||
export enum SecurityLevel {
|
||||
Undefined = 0,
|
||||
L1 = 1,
|
||||
L2 = 2,
|
||||
L3 = 3,
|
||||
L4 = 4,
|
||||
}
|
||||
|
||||
/** 空间角色类型 */
|
||||
export enum SpaceRoleType {
|
||||
Undefined = 0,
|
||||
/** 负责人 */
|
||||
Owner = 1,
|
||||
/** 开发者 */
|
||||
Developer = 2,
|
||||
/** 测试人员 */
|
||||
Tester = 3,
|
||||
}
|
||||
|
||||
/** 空间类型 */
|
||||
export enum SpaceType {
|
||||
Undefined = 0,
|
||||
Personal = 1,
|
||||
Team = 2,
|
||||
/** 官方空间 */
|
||||
Official = 3,
|
||||
}
|
||||
|
||||
export enum StreamState {
|
||||
/** 非流式 */
|
||||
StreamStateNone = 1,
|
||||
/** 流式传输开始(首包) */
|
||||
StreamStateBegin = 2,
|
||||
/** 流式传输中 */
|
||||
StreamStateStreaming = 3,
|
||||
/** 流失传输结束(尾包) */
|
||||
StreamStateEnd = 4,
|
||||
}
|
||||
|
||||
export enum TenantType {
|
||||
/** 字节 */
|
||||
ByteDance = 0,
|
||||
/** 懂车帝 */
|
||||
Dcar = 1,
|
||||
}
|
||||
|
||||
export enum ToolChoiceType {
|
||||
Auto = 1,
|
||||
None = 2,
|
||||
Specific = 3,
|
||||
}
|
||||
|
||||
export enum ToolType {
|
||||
Function = 1,
|
||||
/** for gemini native tool */
|
||||
GoogleSearch = 2,
|
||||
}
|
||||
|
||||
export enum TriggerOperation {
|
||||
/** 开始 */
|
||||
Start = 1,
|
||||
/** 审批通过 */
|
||||
ApprovalPass = 2,
|
||||
/** 审批驳回 */
|
||||
ApprovalReject = 3,
|
||||
/** 完成 */
|
||||
Finish = 4,
|
||||
/** 重试 */
|
||||
Retry = 5,
|
||||
/** 跳过 */
|
||||
Skip = 6,
|
||||
/** 下一步(目前自动触发,不需要前端触发) */
|
||||
Next = 7,
|
||||
}
|
||||
|
||||
/** 变量类型 */
|
||||
export enum VariableType {
|
||||
Undefined = 0,
|
||||
String = 1,
|
||||
/** 废弃,使用Number 不分区整数和浮点数 */
|
||||
Integer = 2,
|
||||
Boolean = 3,
|
||||
Number = 4,
|
||||
Array = 5,
|
||||
Object = 6,
|
||||
Placeholder = 7,
|
||||
Image = 8,
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum NodeType {
|
||||
Undefined = 0,
|
||||
CustomNodeType = 1,
|
||||
Prompt = 2,
|
||||
Model = 3,
|
||||
}
|
||||
|
||||
export enum OfficialSlotType {
|
||||
Undefined = 0,
|
||||
Prompt = 1,
|
||||
}
|
||||
|
||||
export enum ValueKind {
|
||||
Undefined = 0,
|
||||
Bool = 1,
|
||||
Integer = 2,
|
||||
Double = 3,
|
||||
String = 4,
|
||||
Map = 10,
|
||||
Array = 11,
|
||||
Object = 12,
|
||||
}
|
||||
|
||||
export interface FieldDescriptor {
|
||||
name: string;
|
||||
description?: string;
|
||||
typeDescriptor: TypeDescriptor;
|
||||
constraint?: ValueConstraint;
|
||||
}
|
||||
|
||||
export interface Graph {
|
||||
id?: string;
|
||||
uid?: string;
|
||||
name?: string;
|
||||
/** 空间 ID */
|
||||
spaceID?: string;
|
||||
/** 应用 ID */
|
||||
appID?: string;
|
||||
/** 描述 */
|
||||
description?: string;
|
||||
/** 创建人 */
|
||||
createdBy?: string;
|
||||
/** 创建时间 */
|
||||
createdAt?: Int64;
|
||||
/** 更新人 */
|
||||
updatedBy?: string;
|
||||
/** 更新时间 */
|
||||
updatedAt?: Int64;
|
||||
}
|
||||
|
||||
export interface NodeTemplate {
|
||||
name: string;
|
||||
type: NodeType;
|
||||
slotSchemas?: Array<FieldDescriptor>;
|
||||
}
|
||||
|
||||
export interface SlotSet {
|
||||
id: string;
|
||||
graphID: string;
|
||||
/** slotSet 版本号 */
|
||||
version: string;
|
||||
/** 版本描述 */
|
||||
versionMessage?: string;
|
||||
/** TODO: 暂不包含 slot 相关字段 */
|
||||
createdBy?: string;
|
||||
createdAt?: string;
|
||||
}
|
||||
|
||||
export interface TypeDescriptor {
|
||||
name?: string;
|
||||
kind?: ValueKind;
|
||||
fields?: Array<FieldDescriptor>;
|
||||
key?: TypeDescriptor;
|
||||
value?: TypeDescriptor;
|
||||
}
|
||||
|
||||
export interface ValueConstraint {
|
||||
/** [1,10]: 多类型适用
|
||||
works for string, array, map types */
|
||||
maxLength?: Int64;
|
||||
/** [11,20] integer 适用 */
|
||||
intGT?: Int64;
|
||||
intGTE?: Int64;
|
||||
intLT?: Int64;
|
||||
intLTE?: Int64;
|
||||
/** [21,30] double 适用 */
|
||||
doubleGT?: number;
|
||||
doubleGTE?: number;
|
||||
doubleLT?: number;
|
||||
doubleLTE?: number;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
/** 空间类型 */
|
||||
export enum SpaceType {
|
||||
Undefined = 0,
|
||||
Personal = 1,
|
||||
Team = 2,
|
||||
/** 官方空间 */
|
||||
Official = 3,
|
||||
}
|
||||
|
||||
export interface SpaceInfo {
|
||||
/** 空间id */
|
||||
id: Int64;
|
||||
/** 空间accessKey */
|
||||
accessKey?: string;
|
||||
/** 空间secretKey */
|
||||
secretKey?: string;
|
||||
/** 空间类型 */
|
||||
spaceType?: SpaceType;
|
||||
}
|
||||
/* eslint-enable */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,209 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as flow_devops_evaluation_task from './flow_devops_evaluation_task';
|
||||
import * as flow_devops_evaluation_evaluator from './flow_devops_evaluation_evaluator';
|
||||
import * as model from './model';
|
||||
import * as flow_devops_evaluation_dataset from './flow_devops_evaluation_dataset';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum DatasetPreHandlerType {
|
||||
None = 0,
|
||||
PromptTemplate = 1,
|
||||
}
|
||||
|
||||
export enum InputPreHandlerType {
|
||||
None = 0,
|
||||
URL = 1,
|
||||
}
|
||||
|
||||
export enum MerlinSeedModelType {
|
||||
Unknown = 0,
|
||||
Hdfs = 1,
|
||||
}
|
||||
|
||||
export enum OfflineEvalTaskModelSource {
|
||||
Unknown = 0,
|
||||
MerlinSeed = 1,
|
||||
FornaxSftTask = 2,
|
||||
Opensource = 3,
|
||||
}
|
||||
|
||||
export enum OfflineEvalTaskStatus {
|
||||
Preparing = 0,
|
||||
Launching = 1,
|
||||
Inferring = 2,
|
||||
Evaluating = 3,
|
||||
Success = 4,
|
||||
Failed = 5,
|
||||
Terminating = 6,
|
||||
Terminated = 7,
|
||||
PartialFailed = 8,
|
||||
}
|
||||
|
||||
export interface InferResExportStatus {
|
||||
/** 结果文件的 hdfs 地址 */
|
||||
hdfsPath?: string;
|
||||
/** 当前文件的导出进度 */
|
||||
cursor?: string;
|
||||
/** 是否导出完成 */
|
||||
isExported?: boolean;
|
||||
}
|
||||
|
||||
export interface OfflineEvalProduction {
|
||||
datasetID?: string;
|
||||
resultSetID?: string;
|
||||
caseTaskID?: string;
|
||||
/** 每次读取时需要rpc获得EvalCaseTask(Get和List都需要),写时不应该写到数据库里 */
|
||||
evalCaseTask?: flow_devops_evaluation_task.Task;
|
||||
/** 最后写入的一条数据的 ID */
|
||||
lastOutputCursor?: Int64;
|
||||
}
|
||||
|
||||
export interface OfflineEvalTask {
|
||||
id?: string;
|
||||
name?: string;
|
||||
desc?: string;
|
||||
model?: OfflineEvalTaskModel;
|
||||
datasets?: Array<OfflineEvalTaskDataset>;
|
||||
/** 每次读取时需要rpc获得RuleGroup.Rules(只Get需要,List不需要) */
|
||||
evalRuleGroup?: flow_devops_evaluation_evaluator.RuleGroup;
|
||||
resource?: model.SftTaskResource;
|
||||
ckptConfig?: OfflineEvalTaskCkptConfig;
|
||||
status?: OfflineEvalTaskStatus;
|
||||
provider?: model.Provider;
|
||||
providerTaskID?: string;
|
||||
caseID?: string;
|
||||
ckptResult?: OfflineEvalTaskCkptResult;
|
||||
errCode?: string;
|
||||
errMessage?: string;
|
||||
displayErrMsg?: string;
|
||||
/** 规则组是否已删除 */
|
||||
isRuleGroupDeleted?: boolean;
|
||||
/** Fornax空间ID */
|
||||
spaceID?: string;
|
||||
/** 创建人ID */
|
||||
createdBy?: string;
|
||||
/** 创建时间,秒 */
|
||||
createdAt?: string;
|
||||
/** 更新人ID */
|
||||
updatedBy?: string;
|
||||
/** 更新时间,秒 */
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export interface OfflineEvalTaskCkptConfig {
|
||||
/** key是name */
|
||||
items?: Record<string, OfflineEvalTaskCkptConfigItem>;
|
||||
}
|
||||
|
||||
export interface OfflineEvalTaskCkptConfigItem {
|
||||
name?: string;
|
||||
def?: string;
|
||||
nextCkptName?: string;
|
||||
maxRetryTime?: string;
|
||||
retryIntervalMilliSecond?: string;
|
||||
/** 重试时间间隔的变化方式,支持固定间隔和随时间渐进式变化 */
|
||||
retryIntervalChangeType?: string;
|
||||
/** 每重试x次,重试时间间隔会发生变化 */
|
||||
retryIntervalChangeTimes?: string;
|
||||
/** 每次重试时间间隔变化的步长,单位为ms,可以为负数 */
|
||||
retryIntervalChangeStep?: string;
|
||||
customConfigs?: Record<string, string>;
|
||||
/** 触发下一个checkpoint的时间间隔,单位为ms */
|
||||
triggerNextCkptIntervalMilliSecond?: string;
|
||||
}
|
||||
|
||||
export interface OfflineEvalTaskCkptResult {
|
||||
/** 评测集上传到hdfs的地址 */
|
||||
datasetHdfsAddress?: string;
|
||||
/** 推理结果保存的hdfs地址,可能为文件夹 */
|
||||
inferResultHdfsAddress?: string;
|
||||
/** 推理结果导出进度 */
|
||||
resultExportStatuses?: Array<InferResExportStatus>;
|
||||
/** merlin推理任务状态 */
|
||||
merlinDataProcessingInstanceStatusGroup?: string;
|
||||
/** merlin推理任务状态详情 */
|
||||
merlinDataProcessingInstanceStatus?: string;
|
||||
/** 传入离线推理任务的数据列名 */
|
||||
inferTaskColumnName?: string;
|
||||
/** 离线评测产物 */
|
||||
evalProductions?: Array<OfflineEvalProduction>;
|
||||
/** 结果集是否导出完成 */
|
||||
resultSetExported?: boolean;
|
||||
/** merlin seed离线推理任务实际上就是在merlin任务用例外包了一层,在这里记录这个merlin任务用例id */
|
||||
merlinJobID?: string;
|
||||
/** merlin seed离线推理任务链接 */
|
||||
merlinSeedTaskUrl?: string;
|
||||
/** merlin 任务实例是否终止 */
|
||||
merlinJobTerminated?: boolean;
|
||||
/** 保存除了 plainText 以外的类型的数据的原始信息 */
|
||||
originDataColumnName?: string;
|
||||
}
|
||||
|
||||
export interface OfflineEvalTaskDataset {
|
||||
evalDataset?: flow_devops_evaluation_dataset.DatasetInfo;
|
||||
/** 数据集预处理 */
|
||||
datasetPreHandler?: OfflineEvalTaskDatasetPreHandler;
|
||||
/** 模型输入预处理 */
|
||||
inputPreHandler?: OfflineEvalTaskInputPreHandler;
|
||||
/** 是否已经上传到 hdfs */
|
||||
uploaded?: boolean;
|
||||
/** 上传进度游标 */
|
||||
uploadCursor?: Int64;
|
||||
/** 是否已删除 */
|
||||
isDeleted?: boolean;
|
||||
}
|
||||
|
||||
export interface OfflineEvalTaskDatasetPreHandler {
|
||||
type?: DatasetPreHandlerType;
|
||||
promptKey?: string;
|
||||
promptVersion?: string;
|
||||
inputColumn?: string;
|
||||
promptID?: string;
|
||||
/** prompt是否已删除 */
|
||||
isPromptDeleted?: boolean;
|
||||
}
|
||||
|
||||
export interface OfflineEvalTaskInputPreHandler {
|
||||
type?: InputPreHandlerType;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface OfflineEvalTaskModel {
|
||||
source?: OfflineEvalTaskModelSource;
|
||||
identification?: string;
|
||||
sftTaskID?: string;
|
||||
sftTaskProvider?: model.Provider;
|
||||
merlinSeedModelType?: MerlinSeedModelType;
|
||||
modelAddress?: string;
|
||||
tokenizerAddress?: string;
|
||||
networkConfigContext?: string;
|
||||
quantConfigContext?: string;
|
||||
temperature?: number;
|
||||
topP?: number;
|
||||
topK?: string;
|
||||
maxOutputToken?: string;
|
||||
maxContextToken?: string;
|
||||
batchSize?: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as graph from './graph';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface NodeWithSlots {
|
||||
nodeUID: string;
|
||||
nodeType: graph.NodeType;
|
||||
slots?: Array<Slot>;
|
||||
}
|
||||
|
||||
export interface Slot {
|
||||
graphUID: string;
|
||||
nodeUID: string;
|
||||
slotUID: string;
|
||||
/** JSON 编码的值 */
|
||||
value: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum ResourceType {
|
||||
Undefined = 0,
|
||||
Space = 1,
|
||||
Prompt = 2,
|
||||
Application = 3,
|
||||
Evaluation = 4,
|
||||
Trace = 5,
|
||||
Agent = 6,
|
||||
}
|
||||
|
||||
/** 密级标签 */
|
||||
export enum SecurityLevel {
|
||||
Undefined = 0,
|
||||
L1 = 1,
|
||||
L2 = 2,
|
||||
L3 = 3,
|
||||
L4 = 4,
|
||||
}
|
||||
|
||||
export interface Resource {
|
||||
resourceType?: ResourceType;
|
||||
resourceID?: string;
|
||||
spaceID?: Int64;
|
||||
securityLevel?: SecurityLevel;
|
||||
ownerIDs?: Array<string>;
|
||||
}
|
||||
|
||||
export interface ResourceIdentifier {
|
||||
resourceType?: ResourceType;
|
||||
resourceID?: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as auth from './auth';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum GrayReleaseStrategy {
|
||||
/** 不开启灰度 */
|
||||
None = 0,
|
||||
/** 实例灰度 */
|
||||
InstanceGrayRelease = 1,
|
||||
}
|
||||
|
||||
/** 空间角色类型 */
|
||||
export enum SpaceRoleType {
|
||||
Undefined = 0,
|
||||
/** 负责人 */
|
||||
Owner = 1,
|
||||
/** 开发者 */
|
||||
Developer = 2,
|
||||
/** 测试人员 */
|
||||
Tester = 3,
|
||||
}
|
||||
|
||||
/** 空间类型 */
|
||||
export enum SpaceType {
|
||||
Undefined = 0,
|
||||
Personal = 1,
|
||||
Team = 2,
|
||||
/** 官方空间 */
|
||||
Official = 3,
|
||||
}
|
||||
|
||||
export interface ByteTreeNode {
|
||||
id?: string;
|
||||
name?: string;
|
||||
i18nName?: string;
|
||||
path?: string;
|
||||
i18nPath?: string;
|
||||
levelID?: Int64;
|
||||
isLeaf?: boolean;
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export interface CozeBotFeatureConfig {
|
||||
enabled: boolean;
|
||||
botIDAllowList?: Array<Int64>;
|
||||
}
|
||||
|
||||
/** 空间配置 */
|
||||
export interface FeatureConfig {
|
||||
/** 开启特性的空间ID */
|
||||
EnabledSpaceIDList?: Array<Int64>;
|
||||
/** 是否全量开启 */
|
||||
EnableAll?: boolean;
|
||||
}
|
||||
|
||||
export interface ReleaseApprovalConfig {
|
||||
/** 是否开启审核 */
|
||||
enable?: boolean;
|
||||
/** 灰度策略 */
|
||||
gray_release_strategy?: GrayReleaseStrategy;
|
||||
}
|
||||
|
||||
/** 空间 */
|
||||
export interface Space {
|
||||
/** 空间ID */
|
||||
id?: Int64;
|
||||
/** 空间名称 */
|
||||
name?: string;
|
||||
/** 空间描述 */
|
||||
description?: string;
|
||||
/** 空间类型 */
|
||||
space_type?: SpaceType;
|
||||
/** 空间创建人 */
|
||||
creator?: string;
|
||||
/** 创建时间 */
|
||||
create_tsms?: Int64;
|
||||
/** 更新时间 */
|
||||
update_tsms?: Int64;
|
||||
/** 发布审核配置 */
|
||||
release_approval_config?: ReleaseApprovalConfig;
|
||||
/** 空间来源 */
|
||||
space_origin?: string;
|
||||
/** 服务树节点ID */
|
||||
tree_node_id?: string;
|
||||
/** 具体配置内容 */
|
||||
trace_config?: TraceConfig;
|
||||
}
|
||||
|
||||
/** 空间成员 */
|
||||
export interface SpaceMember {
|
||||
/** 空间ID */
|
||||
space_id?: Int64;
|
||||
/** 成员 */
|
||||
member?: auth.AuthPrincipal;
|
||||
/** 空间角色类型 */
|
||||
space_role_type?: SpaceRoleType;
|
||||
}
|
||||
|
||||
/** 观测配置 */
|
||||
export interface TraceConfig {
|
||||
/** 是否加密trace 默认false */
|
||||
trace_encrypt?: boolean;
|
||||
/** ttl天数 默认7,目前合法值有7/30/90 */
|
||||
ttl?: number;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as auth from './auth';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface UserInfo {
|
||||
ssoUserName?: string;
|
||||
userID?: string;
|
||||
email?: string;
|
||||
tenant?: auth.TenantType;
|
||||
}
|
||||
|
||||
/** UserInfoDetail 用户详细信息,包含姓名、头像等 */
|
||||
export interface UserInfoDetail {
|
||||
/** 姓名 */
|
||||
name?: string;
|
||||
/** 英文名称 */
|
||||
en_name?: string;
|
||||
/** 用户头像url */
|
||||
avatar_url?: string;
|
||||
/** 72 * 72 头像 */
|
||||
avatar_thumb?: string;
|
||||
/** 用户应用内唯一标识 */
|
||||
open_id?: string;
|
||||
/** 用户应用开发商内唯一标识 */
|
||||
union_id?: string;
|
||||
/** 企业标识 */
|
||||
tenant_key?: string;
|
||||
/** 用户在租户内的唯一标识(目前实际返给前端时都转成了fornax UserID) */
|
||||
user_id?: string;
|
||||
/** 用户邮箱 */
|
||||
email?: string;
|
||||
/** 租户 */
|
||||
tenant?: auth.TenantType;
|
||||
/** 飞书UserID */
|
||||
ext_user_id?: string;
|
||||
/** sso_user_name,来自DB,如果是懂车帝租户,会带有__dcar后缀 */
|
||||
sso_user_name?: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
Reference in New Issue
Block a user