chore: migrate fe 250723

This commit is contained in:
tecvan
2025-07-23 22:09:52 +08:00
parent 3b546369d8
commit 67d9687fb8
264 changed files with 19646 additions and 8816 deletions

View File

@@ -109,8 +109,6 @@ export {
export type Int64 = string | number;
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
export default class FornaxApi2Service<T> {
private request: any = () => {
throw new Error('FornaxApi2Service.request is undefined');
@@ -3312,6 +3310,7 @@ export default class FornaxApi2Service<T> {
description: _req['description'],
release_approval_config: _req['release_approval_config'],
byte_tree_node_id: _req['byte_tree_node_id'],
trace_config: _req['trace_config'],
Base: _req['Base'],
};
const headers = { 'x-jwt-token': _req['x-jwt-token'] };
@@ -3984,5 +3983,40 @@ export default class FornaxApi2Service<T> {
const method = 'GET';
return this.request({ url, method }, options);
}
/**
* POST /api/automation/v1/tasks/:task_id/stop
*
* 停止任务
*/
StopTask(
req: flow_devops_fornax_automationservice.StopTaskReq,
options?: T,
): Promise<flow_devops_fornax_automationservice.StopTaskResp> {
const _req = req;
const url = this.genBaseURL(
`/api/automation/v1/tasks/${_req['task_id']}/stop`,
);
const method = 'POST';
return this.request({ url, method }, options);
}
/**
* GET /api/infra/user/v1/users/is_user_in_gray/:strategy
*
* 判断用户是否在灰度中(
*/
IsUserInGray(
req?: flow_devops_fornax_userservice.IsUserInGrayRequest,
options?: T,
): Promise<flow_devops_fornax_userservice.IsUserInGrayResponse> {
const _req = req || {};
const url = this.genBaseURL(
`/api/infra/user/v1/users/is_user_in_gray/${_req['strategy']}`,
);
const method = 'GET';
const params = { Base: _req['Base'] };
return this.request({ url, method, params }, options);
}
}
/* eslint-enable */

View File

@@ -76,6 +76,8 @@ export enum FilterCmpOp {
NotLike = 10,
/** 有该 tag */
Exists = 11,
/** 没有该 tag */
NotExists = 12,
}
/** 逻辑算子 */
@@ -113,6 +115,7 @@ export enum TaskStatusType {
Succeeded = 3,
Failed = 4,
Pending = 5,
Stopped = 6,
}
/** Task */
@@ -150,6 +153,15 @@ export interface ApplyTicket {
invalidateAt?: string;
}
export interface BackfillStat {
/** 已从观测检索到 span 数量 */
retrievedSpanCount?: string;
/** 已写入到数据集中 span 数量 */
backfilledSpanCount?: string;
/** 回填状态 */
backfillStatus?: TaskStatusType;
}
export interface BatchExecAutoUseCaseStat {
common?: StatusDetailCommon;
/** 各用例执行情况 */
@@ -170,6 +182,9 @@ export interface DatasetConfig {
datasetName?: string;
/** 默认将 span 的 input&output tag 写入 dataset 同名列中, 通过 extraColumns 定义其他列的回流 */
extraColumns?: Array<Span2ColumnConfig>;
/** omitDefaultColumns=true 时,不写入默认的 input、output 列 */
omitDefaultColumns?: boolean;
datasetDesc?: string;
}
/** Deprecated */
@@ -230,7 +245,7 @@ export interface Rule {
sampler?: Sampler;
/** 筛选条件 */
spanFilter?: SpanFilter;
/** 定时触发时效配置 */
/** Deprecated, typo, 换用 triggerTime(13) 字段 */
tiggerTime?: TriggerTime;
/** 生效时间窗口 */
effectiveTime?: EffectiveTime;
@@ -238,6 +253,10 @@ export interface Rule {
objectID?: Int64;
/** 内置过滤器, 包含服务端定义的复杂过滤逻辑. 用于页面的"数据类型"字段过滤 */
builtinFilter?: BuiltinSpanFilterType;
/** 回流历史数据 */
effectiveTimeFromPast?: EffectiveTime;
/** 定时触发时效配置 */
triggerTime?: TriggerTime;
/** Processor Config
数据集 */
dataset?: DatasetConfig;
@@ -261,6 +280,8 @@ export interface Span2ColumnConfig {
sourceType: Span2ColumnSourceType;
/** 根据 sourceType 不同, 其值为 span 属性, prompt 变量的 key 等 */
sourceField: string;
/** 指定 sourceField 的 JSON 提取路径 */
sourceFieldJSONPath?: string;
/** dataset column 名 */
datasetColumn: string;
}
@@ -376,6 +397,8 @@ export interface Task {
spanEvalStat?: SpanEvalStat;
/** 批量评测状态详情 */
batchExecAutoUseCaseStat?: BatchExecAutoUseCaseStat;
/** 回填历史数据详情 */
backfillStat?: BackfillStat;
/** 创建者 */
createdBy?: string;
/** 更新者 */

View File

@@ -96,6 +96,7 @@ export interface Image {
url?: string;
uri?: string;
thumb_url?: string;
original_url?: string;
}
export interface ImageInfo {

View File

@@ -130,6 +130,12 @@ export interface Rule2TraceQueryResp {
platformType?: flow_devops_fornaxob_common.PlatformType;
}
export interface StopTaskReq {
task_id: string;
}
export interface StopTaskResp {}
export interface TaskBatchExecCasesStatus {
taskID: string;
allCasesDeleted?: boolean;

View File

@@ -196,7 +196,7 @@ export interface GetAvailableQuotaByByteTreeNodeRequest {
}
export interface GetAvailableQuotaByByteTreeNodeResponse {
quotas?: Record<model.IDC, Array<model.DeployQuota>>;
quotas?: Partial<Record<model.IDC, Array<model.DeployQuota>>>;
}
export interface GetByteTreeParentNodeByPSMRequest {
@@ -501,7 +501,7 @@ export interface ModelContextRange {
export interface ModelFilter {
/** 模型tag过滤项value中list内部各个元素在过滤时是or关系各个key之间在过滤时是and关系 */
modelFilterTags?: Record<model.ModelFilterKey, Array<string>>;
modelFilterTags?: Partial<Record<model.ModelFilterKey, Array<string>>>;
/** 模型状态 */
modelStatuses?: Array<model.ModelStatus>;
/** 模型支持的上下文长度的范围 */
@@ -564,7 +564,7 @@ export interface OApiUpsertModelAndAccountResponse {
export interface SaaSGetModelFilterParamsRequest {}
export interface SaaSGetModelFilterParamsResponse {
modelFilterTags?: Record<model.ModelFilterKey, Array<string>>;
modelFilterTags?: Partial<Record<model.ModelFilterKey, Array<string>>>;
modelContextRange?: ModelContextRange;
modelVendors?: Array<string>;
}

View File

@@ -218,6 +218,8 @@ export interface UpdateSpaceRequest {
release_approval_config?: space.ReleaseApprovalConfig;
/** 服务树节点ID */
byte_tree_node_id?: Int64;
/** 具体配置内容 */
trace_config?: space.TraceConfig;
'x-jwt-token'?: string;
Base?: base.Base;
}

View File

@@ -69,6 +69,21 @@ export interface GetUserInfoResponse {
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;

View File

@@ -31,6 +31,7 @@ export enum EnvType {
export enum OrderType {
Unknown = 1,
Desc = 2,
Asc = 3,
}
export enum PlatformType {
@@ -48,6 +49,7 @@ export enum PlatformType {
CozeProject = 10,
CozeBot = 11,
SaasEvalTarget = 12,
SaasAll = 13,
}
export enum QueryOfflineType {

View File

@@ -98,6 +98,9 @@ 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
@@ -130,6 +133,10 @@ 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
@@ -162,6 +169,10 @@ 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
@@ -193,5 +204,6 @@ If you want to match a non empty string, pass in "" in the array and cannot pass
not_in?: Array<string>;
is_null?: boolean;
not_null?: boolean;
not_contains?: string;
}
/* eslint-enable */

View File

@@ -169,6 +169,15 @@ export enum OrderField {
LastedPublishTime = 2,
}
/** Prompt 加密类型 */
export enum PromptEncryptOption {
Undefined = 0,
/** 加密且返回明文 */
EncryptWithPlainText = 1,
/** 加密且不返回明文 */
EncryptWithoutPlainText = 2,
}
/** 提示词类型 */
export enum PromptType {
Undefined = 0,

View File

@@ -90,6 +90,8 @@ export enum IDC {
export enum MerlinFramework {
LLMServerPublic = 1,
Laplace = 2,
/** 电商团队专用协议,详见 */
Mixinfer = 3,
}
export enum MerlinLLMInterface {
@@ -107,6 +109,12 @@ export enum MerlinQuotaPoolType {
ALI = 3,
/** 第三方资源hw */
HW = 4,
/** hw arm */
HWARM = 5,
/** 弹性售卖资源,随时可能被抢占 */
Spot = 6,
/** 可抢占的稳定资源 */
Preemptible = 20,
}
export enum ModelFilterKey {
@@ -258,6 +266,10 @@ export enum SftTaskOutputStatus {
ExportFailed = 5,
}
export enum SftTaskResourceMerlinVersion {
RemoveAnyGPU = 1,
}
export enum SftTaskRunEventType {
Undefined = 0,
ErrorOccured = 1,
@@ -336,6 +348,10 @@ export enum UsageScenario {
PromptAsAService = 3,
/** AI打标 */
AIAnnotate = 4,
/** 质量分 */
AIScore = 5,
/** 数据标签 */
AITag = 6,
}
export enum ValidateStatus {
@@ -364,9 +380,9 @@ export interface Ability {
functionCallEnabled?: boolean;
/** 是否支持JSON模式 */
jsonModeEnabled?: boolean;
/** 是否支持多模态 */
/** 是否支持多模态(模型输入) */
multiModalEnabled?: boolean;
/** 多模态能力配置 */
/** 多模态能力配置(模型输入) */
multiModalAbility?: MultiModalAbility;
/** 消息预处理hook */
messagePreHandleHook?: RuntimeHook;
@@ -376,6 +392,8 @@ export interface Ability {
thinkingSwitchEnabled?: boolean;
/** 思考能力配置 */
thinkingAbility?: ThinkingAbility;
/** 是否支持多模态(模型输出) */
multiModalOutputEnabled?: boolean;
}
export interface Account {
@@ -522,7 +540,7 @@ export interface MerlinInfo {
framework?: MerlinFramework;
instanceResourceOption?: InstanceResourceOption;
/** 资源配置 */
deployDetailM?: Record<IDC, IDCDeployDetail>;
deployDetailM?: Partial<Record<IDC, IDCDeployDetail>>;
/** 服务节点id */
byteTreeNodeID?: Int64;
/** 服务树路径 */
@@ -945,6 +963,8 @@ export interface SftTaskResourceMerlin {
groupNames?: Record<Int64, string>;
/** 集群名称 */
clusterName?: string;
/** merlin资源格式的版本目前唯一作用由于资源格式不向前兼容只有指定版本号的资源才能在复制精调任务时被写入到新任务中 */
version?: SftTaskResourceMerlinVersion;
}
export interface SftTaskResourceMerlinRole {

View File

@@ -103,6 +103,8 @@ export interface Space {
space_origin?: string;
/** 服务树节点ID */
tree_node_id?: string;
/** 具体配置内容 */
trace_config?: TraceConfig;
}
/** 空间成员 */
@@ -114,4 +116,12 @@ export interface SpaceMember {
/** 空间角色类型 */
space_role_type?: SpaceRoleType;
}
/** 观测配置 */
export interface TraceConfig {
/** 是否加密trace 默认false */
trace_encrypt?: boolean;
/** ttl天数 默认7目前合法值有7/30/90 */
ttl?: number;
}
/* eslint-enable */