chore: migrate fe 250723
This commit is contained in:
parent
3b546369d8
commit
67d9687fb8
|
|
@ -7,13 +7,17 @@
|
||||||
"maintainers": [],
|
"maintainers": [],
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./passport": "./src/idl/passport/passport.ts"
|
"./passport": "./src/idl/passport/passport.ts",
|
||||||
|
"./marketplace": "./src/idl/flow/marketplace/flow_marketplace_product/public_api.ts"
|
||||||
},
|
},
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"typesVersions": {
|
"typesVersions": {
|
||||||
"*": {
|
"*": {
|
||||||
"passport": [
|
"passport": [
|
||||||
"./src/idl/passport/passport.ts"
|
"./src/idl/passport/passport.ts"
|
||||||
|
],
|
||||||
|
"marketplace": [
|
||||||
|
"./src/idl/flow/marketplace/flow_marketplace_product/public_api.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -39,3 +43,4 @@
|
||||||
"vitest": "~3.0.5"
|
"vitest": "~3.0.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
8d3799f9b5eadf7137347d8c1192eb97
|
8b695f6307c85b2b145dd3f621b11c40
|
||||||
|
|
@ -46,8 +46,6 @@ export * from './namespaces/user';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class AppBuilderService<T> {
|
export default class AppBuilderService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('AppBuilderService.request is undefined');
|
throw new Error('AppBuilderService.request is undefined');
|
||||||
|
|
|
||||||
|
|
@ -55,8 +55,6 @@ export * from './namespaces/user_rpc';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class BasicApiService<T> {
|
export default class BasicApiService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('BasicApiService.request is undefined');
|
throw new Error('BasicApiService.request is undefined');
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,48 @@ export enum AuditType {
|
||||||
ProjectUIBuilder = 90,
|
ProjectUIBuilder = 90,
|
||||||
/** 工作流运行时输入 */
|
/** 工作流运行时输入 */
|
||||||
WorkflowRuntimeInput = 100,
|
WorkflowRuntimeInput = 100,
|
||||||
|
/** 语音运行时输入 */
|
||||||
|
AudioRuntimeInput = 101,
|
||||||
|
/** 语音资源 */
|
||||||
|
AudioVoiceResource = 102,
|
||||||
|
/** 模型微调输入 */
|
||||||
|
ModelFinetuneInput = 103,
|
||||||
|
/** OpenAPI图片上传 */
|
||||||
|
OpenAPIImageUpload = 104,
|
||||||
|
/** App (Project) 音频 */
|
||||||
|
AppAudio = 105,
|
||||||
|
/** 企业创建/修改 */
|
||||||
|
EnterpriseModify = 106,
|
||||||
|
CozeLoopPEModify = 107,
|
||||||
|
CozeLoopExptModify = 108,
|
||||||
|
CozeLoopDatasetModify = 109,
|
||||||
|
CozeLoopEvaluatorModify = 110,
|
||||||
|
/** CozeSpace */
|
||||||
|
CozeSpaceQuery = 111,
|
||||||
|
/** CozeSpace 回答 */
|
||||||
|
CozeSpaceAnswer = 112,
|
||||||
|
/** CozeSpace TraeBuilder Query */
|
||||||
|
CozeSpaceTraeBuilderQuery = 113,
|
||||||
|
/** CozeSpace TraeBuilder 回答 */
|
||||||
|
CozeSpaceTraeBuilderAnswer = 114,
|
||||||
|
/** CozeSpace web搜索 Query */
|
||||||
|
CozeSpaceSearchWebQuery = 115,
|
||||||
|
/** CozeSpace web搜索 Answer */
|
||||||
|
CozeSpaceSearchWebAnswer = 116,
|
||||||
|
/** CozeSpace Img搜索 Query */
|
||||||
|
CozeSpaceSearchImgQuery = 117,
|
||||||
|
/** CozeSpace Img搜索 Answer */
|
||||||
|
CozeSpaceSearchImgAnswer = 118,
|
||||||
|
/** CozeSpace 定时任务 Query */
|
||||||
|
CozeSpaceScheduleTaskQuery = 119,
|
||||||
|
/** 声纹创建/修改 */
|
||||||
|
VoicePrintGroup = 120,
|
||||||
|
/** 声纹特征创建/修改 */
|
||||||
|
VoicePrintGroupFeature = 121,
|
||||||
|
/** 视频生成输入 */
|
||||||
|
VideoGenerateInput = 122,
|
||||||
|
/** CozeSpace PPT Agent 修改 */
|
||||||
|
CozeSpacePPTAgentModify = 123,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum QueueType {
|
export enum QueueType {
|
||||||
|
|
|
||||||
|
|
@ -49,8 +49,6 @@ export * from './namespaces/wallet';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class BenefitService<T> {
|
export default class BenefitService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('BenefitService.request is undefined');
|
throw new Error('BenefitService.request is undefined');
|
||||||
|
|
@ -408,5 +406,30 @@ export default class BenefitService<T> {
|
||||||
};
|
};
|
||||||
return this.request({ url, method, data }, options);
|
return this.request({ url, method, data }, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POST /api/marketplace/commerce/benefit/update_subscription_renewal_info
|
||||||
|
*
|
||||||
|
* 修改续费信息
|
||||||
|
*/
|
||||||
|
PublicUpdateSubscriptionRenewalInfo(
|
||||||
|
req?: benefit.PublicUpdateSubscriptionRenewalInfoRequest,
|
||||||
|
options?: T,
|
||||||
|
): Promise<benefit.PublicUpdateSubscriptionRenewalInfoResponse> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL(
|
||||||
|
'/api/marketplace/commerce/benefit/update_subscription_renewal_info',
|
||||||
|
);
|
||||||
|
const method = 'POST';
|
||||||
|
const data = {
|
||||||
|
renewal_type: _req['renewal_type'],
|
||||||
|
renewal_period_times: _req['renewal_period_times'],
|
||||||
|
};
|
||||||
|
const params = {
|
||||||
|
coze_account_id: _req['coze_account_id'],
|
||||||
|
coze_account_type: _req['coze_account_type'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, data, params }, options);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,16 @@ import * as benefit_common from './benefit_common';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
|
export enum SubscriptionRenewalType {
|
||||||
|
Unknown = 0,
|
||||||
|
/** 手动续费 */
|
||||||
|
ManualRenewal = 1,
|
||||||
|
/** 自动续费 */
|
||||||
|
AutoRenewal = 2,
|
||||||
|
/** 到期不续费续费 */
|
||||||
|
DontRenewal = 3,
|
||||||
|
}
|
||||||
|
|
||||||
export interface AddBenefitContent {
|
export interface AddBenefitContent {
|
||||||
AddMessageCreditsBenefit?: AddMessageCreditsBenefitStruct;
|
AddMessageCreditsBenefit?: AddMessageCreditsBenefitStruct;
|
||||||
AddTopUpCreditsBenefit?: AddTopUpCreditsBenefitStruct;
|
AddTopUpCreditsBenefit?: AddTopUpCreditsBenefitStruct;
|
||||||
|
|
@ -63,11 +73,17 @@ export interface BenefitInfo {
|
||||||
export interface BenefitTypeInfo {
|
export interface BenefitTypeInfo {
|
||||||
BasicInfo?: benefit_common.CommonCounter;
|
BasicInfo?: benefit_common.CommonCounter;
|
||||||
ItemInfos?: Array<BenefitTypeInfoItem>;
|
ItemInfos?: Array<BenefitTypeInfoItem>;
|
||||||
|
ResourceID?: string;
|
||||||
|
BenefitType?: benefit_common.BenefitType;
|
||||||
|
/** 实际生效总量 */
|
||||||
|
Effective?: benefit_common.CommonCounter;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BenefitTypeInfoItem {
|
export interface BenefitTypeInfoItem {
|
||||||
ItemID?: string;
|
ItemID?: string;
|
||||||
ItemInfo?: benefit_common.CommonCounter;
|
ItemInfo?: benefit_common.CommonCounter;
|
||||||
|
Status?: benefit_common.EntityBenefitStatus;
|
||||||
|
BenefitID?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ChargeDetail {
|
export interface ChargeDetail {
|
||||||
|
|
@ -79,7 +95,7 @@ export interface ChargeResourceInfo {
|
||||||
ResourceID?: Int64;
|
ResourceID?: Int64;
|
||||||
ResourceType?: benefit_common.ChargeResourceType;
|
ResourceType?: benefit_common.ChargeResourceType;
|
||||||
IsCharge?: boolean;
|
IsCharge?: boolean;
|
||||||
ChargeInfo?: Record<benefit_common.ChargeItemType, ChargeDetail>;
|
ChargeInfo?: Partial<Record<benefit_common.ChargeItemType, ChargeDetail>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateBenefitLimitationData {
|
export interface CreateBenefitLimitationData {
|
||||||
|
|
@ -91,6 +107,22 @@ export interface DenyReason {
|
||||||
Message: string;
|
Message: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface EntityBenefit {
|
||||||
|
benefit_id?: Int64;
|
||||||
|
BenefitType?: benefit_common.BenefitType;
|
||||||
|
status?: benefit_common.EntityBenefitStatus;
|
||||||
|
entity_type?: benefit_common.BenefitEntityType;
|
||||||
|
entity_id?: string;
|
||||||
|
/** 开始时间,秒级别时间戳 */
|
||||||
|
started_at?: Int64;
|
||||||
|
/** 结束时间,秒级别时间戳 */
|
||||||
|
ended_at?: Int64;
|
||||||
|
/** 取消时间,秒级别时间戳 */
|
||||||
|
canceled_at?: Int64;
|
||||||
|
common_counter?: benefit_common.CommonCounter;
|
||||||
|
volc_account_id?: Int64;
|
||||||
|
}
|
||||||
|
|
||||||
export interface HistoryBotInfo {
|
export interface HistoryBotInfo {
|
||||||
BotID?: Int64;
|
BotID?: Int64;
|
||||||
IsDraft?: boolean;
|
IsDraft?: boolean;
|
||||||
|
|
@ -215,26 +247,45 @@ export interface PublicUpdateBenefitLimitationResponse {
|
||||||
msg?: string;
|
msg?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface PublicUpdateSubscriptionRenewalInfoRequest {
|
||||||
|
/** 这里指的是Coze的AccountID */
|
||||||
|
coze_account_id?: string;
|
||||||
|
coze_account_type?: benefit_common.CozeAccountType;
|
||||||
|
/** 续费类型 */
|
||||||
|
renewal_type?: SubscriptionRenewalType;
|
||||||
|
renewal_period_times?: Int64;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PublicUpdateSubscriptionRenewalInfoResponse {
|
||||||
|
code: number;
|
||||||
|
message: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface RefundTopUpCreditInfo {
|
export interface RefundTopUpCreditInfo {
|
||||||
Amount?: number;
|
Amount?: number;
|
||||||
Used?: number;
|
Used?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface SubscriptionRenewalInfo {
|
||||||
|
/** 续费类型 */
|
||||||
|
renewal_type?: SubscriptionRenewalType;
|
||||||
|
/** 单次自动续费的周期数量,比如包月,就是每次自动续费几个月 */
|
||||||
|
renewal_period_times?: Int64;
|
||||||
|
}
|
||||||
|
|
||||||
export interface UserBasicBenefit {
|
export interface UserBasicBenefit {
|
||||||
Status?: benefit_common.AccountStatus;
|
Status?: benefit_common.AccountStatus;
|
||||||
AccountID?: Int64;
|
AccountID?: Int64;
|
||||||
UserBenefitInfo?: Record<
|
UserBenefitInfo?: Partial<
|
||||||
benefit_common.BenefitType,
|
Record<benefit_common.BenefitType, benefit_common.CommonCounter>
|
||||||
benefit_common.CommonCounter
|
|
||||||
>;
|
>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UserBenefitData {
|
export interface UserBenefitData {
|
||||||
/** 用户基本信息 */
|
/** 用户基本信息 */
|
||||||
user_basic_info: benefit_common.PublicUserBasicInfo;
|
user_basic_info: benefit_common.PublicUserBasicInfo;
|
||||||
benefit_type_infos?: Record<
|
benefit_type_infos?: Partial<
|
||||||
benefit_common.BenefitType,
|
Record<benefit_common.BenefitType, benefit_common.CommonCounter>
|
||||||
benefit_common.CommonCounter
|
|
||||||
>;
|
>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -245,9 +296,8 @@ export interface UserBenefitHistory {
|
||||||
ConnectorID?: Int64;
|
ConnectorID?: Int64;
|
||||||
SpaceID?: Int64;
|
SpaceID?: Int64;
|
||||||
EntityInfo?: HistoryEntityInfoV2;
|
EntityInfo?: HistoryEntityInfoV2;
|
||||||
EntityItems?: Record<
|
EntityItems?: Partial<
|
||||||
benefit_common.ConsumeResourceType,
|
Record<benefit_common.ConsumeResourceType, Array<HistoryConsumeItemV2>>
|
||||||
Array<HistoryConsumeItemV2>
|
|
||||||
>;
|
>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -268,9 +318,13 @@ export interface UserBenefitHistroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UserExtraBenefit {
|
export interface UserExtraBenefit {
|
||||||
BenefitType?: benefit_common.BenefitType;
|
benefit_type?: benefit_common.BenefitType;
|
||||||
UUID?: string;
|
uuid?: string;
|
||||||
Counter?: benefit_common.CommonCounter;
|
counter?: benefit_common.CommonCounter;
|
||||||
ResourceID?: string;
|
resource_id?: string;
|
||||||
|
/** 对应 entity_config表才有 */
|
||||||
|
benefit_id?: string;
|
||||||
|
/** 对应EntityBenefitStatus,entity_config表才有 */
|
||||||
|
entity_status?: benefit_common.EntityBenefitStatus;
|
||||||
}
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,17 @@ export enum BenefitEntityType {
|
||||||
EnterpriseSingleDevice = 11,
|
EnterpriseSingleDevice = 11,
|
||||||
/** 单终端主题,由客户自定义 */
|
/** 单终端主题,由客户自定义 */
|
||||||
EnterpriseSingleCustomConsumer = 12,
|
EnterpriseSingleCustomConsumer = 12,
|
||||||
|
/** API */
|
||||||
|
API = 13,
|
||||||
|
/** Plugin */
|
||||||
|
Plugin = 14,
|
||||||
|
/** Voice */
|
||||||
|
Voice = 15,
|
||||||
|
/** Workflow */
|
||||||
|
Workflow = 16,
|
||||||
|
/** 企业配置类
|
||||||
|
企业安心用配置 */
|
||||||
|
EnterpriseConfConfidenceUsing = 51,
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 权益历史记录类型 */
|
/** 权益历史记录类型 */
|
||||||
|
|
@ -101,6 +112,7 @@ export enum BenefitType {
|
||||||
UserFreeChat = 2,
|
UserFreeChat = 2,
|
||||||
TopUpMessageCredit = 3,
|
TopUpMessageCredit = 3,
|
||||||
BonusMessageCredit = 4,
|
BonusMessageCredit = 4,
|
||||||
|
/** 40 -59 免费次数 */
|
||||||
Freetimes = 40,
|
Freetimes = 40,
|
||||||
/** 评测免费次数 */
|
/** 评测免费次数 */
|
||||||
EvaluateFree = 41,
|
EvaluateFree = 41,
|
||||||
|
|
@ -114,7 +126,8 @@ export enum BenefitType {
|
||||||
APIRunFree = 45,
|
APIRunFree = 45,
|
||||||
/** SDK 运行免费次数 */
|
/** SDK 运行免费次数 */
|
||||||
SDKRunFree = 46,
|
SDKRunFree = 46,
|
||||||
/** 模型 RPM 限流 */
|
/** 60 - 99 限流
|
||||||
|
模型 RPM 限流 */
|
||||||
RateLimitModelRPM = 60,
|
RateLimitModelRPM = 60,
|
||||||
/** 模型 Input TPM 限流 */
|
/** 模型 Input TPM 限流 */
|
||||||
RateLimitModelInputTPM = 61,
|
RateLimitModelInputTPM = 61,
|
||||||
|
|
@ -124,7 +137,23 @@ export enum BenefitType {
|
||||||
RateLimitModelInputTPMBasic = 63,
|
RateLimitModelInputTPMBasic = 63,
|
||||||
/** 基础模型 Output TPM 限流 */
|
/** 基础模型 Output TPM 限流 */
|
||||||
RateLimitModelOutputTPMBasic = 64,
|
RateLimitModelOutputTPMBasic = 64,
|
||||||
/** 资源点总量 */
|
/** Plugin 运行 QPS 限流 */
|
||||||
|
PluginRunQPS = 65,
|
||||||
|
/** Plugin 运行并发度限流 */
|
||||||
|
PluginRunParallel = 66,
|
||||||
|
/** 图像节点
|
||||||
|
Workflow 运行 QPS 限流 */
|
||||||
|
WorkflowRunQPS = 67,
|
||||||
|
/** Workflow 运行并发度限流 */
|
||||||
|
WorkflowRunParallel = 68,
|
||||||
|
/** API 运行 QPS 限流 */
|
||||||
|
APIRunQPS = 70,
|
||||||
|
/** 语音 QPS 限流 */
|
||||||
|
VoiceQPS = 71,
|
||||||
|
/** 语音并发度限流 */
|
||||||
|
VoiceParallel = 72,
|
||||||
|
/** 100-109 资源点
|
||||||
|
资源点总量 */
|
||||||
ResourcePoint = 100,
|
ResourcePoint = 100,
|
||||||
/** 免费资源点,废弃 */
|
/** 免费资源点,废弃 */
|
||||||
FreeResourcePoint = 101,
|
FreeResourcePoint = 101,
|
||||||
|
|
@ -132,32 +161,45 @@ export enum BenefitType {
|
||||||
VolcProResourcePoint = 102,
|
VolcProResourcePoint = 102,
|
||||||
/** 周期性资源点 */
|
/** 周期性资源点 */
|
||||||
PeriodicResourcePoint = 103,
|
PeriodicResourcePoint = 103,
|
||||||
/** Trace 用量 */
|
/** 渠道递减资源点 */
|
||||||
|
ChannelResourcePoint = 104,
|
||||||
|
/** 试算资源点 */
|
||||||
|
CutAndTryResourcePoint = 109,
|
||||||
|
/** 110-129 Fornax
|
||||||
|
Trace 用量 */
|
||||||
TraceAmount = 111,
|
TraceAmount = 111,
|
||||||
/** Trace 存储时长 */
|
/** Trace 存储时长 */
|
||||||
TraceStorageDuration = 112,
|
TraceStorageDuration = 112,
|
||||||
/** Space 总量 */
|
/** 130-149 WorkSpace
|
||||||
|
Space 总量 */
|
||||||
SpaceAmount = 131,
|
SpaceAmount = 131,
|
||||||
/** Space 人数 */
|
/** Space 人数 */
|
||||||
SpacePeopleNumber = 132,
|
SpacePeopleNumber = 132,
|
||||||
/** Space 下协作者人数 */
|
/** Space 下协作者人数 */
|
||||||
SpaceCollaboratorNumber = 133,
|
SpaceCollaboratorNumber = 133,
|
||||||
/** 日志存储时长 */
|
/** 150-169 运维
|
||||||
|
日志存储时长 */
|
||||||
LogStorageDuration = 151,
|
LogStorageDuration = 151,
|
||||||
/** 日志导出 */
|
/** 日志导出 */
|
||||||
LogExport = 152,
|
LogExport = 152,
|
||||||
/** 知识库容量 */
|
/** 170-179 知识库
|
||||||
|
知识库容量 */
|
||||||
Capacity = 170,
|
Capacity = 170,
|
||||||
/** 音色克隆总数 */
|
/** 180-199 语音
|
||||||
|
音色克隆总数 */
|
||||||
VoiceCloneNumber = 180,
|
VoiceCloneNumber = 180,
|
||||||
/** 音色克隆基础数量 */
|
/** 音色克隆基础数量 */
|
||||||
VoiceCloneNumberBasic = 181,
|
VoiceCloneNumberBasic = 181,
|
||||||
/** 席位数上限 */
|
/** 200-219 租户相关
|
||||||
|
席位数上限 */
|
||||||
SeatNumberLimit = 200,
|
SeatNumberLimit = 200,
|
||||||
/** 基础席位数 */
|
/** 基础席位数 */
|
||||||
SeatNumberBasic = 201,
|
SeatNumberBasic = 201,
|
||||||
/** 移除水印 */
|
/** 移除水印 */
|
||||||
RemoveWatermark = 220,
|
RemoveWatermark = 220,
|
||||||
|
/** 240-269 配置
|
||||||
|
安心用 */
|
||||||
|
ConfidenceUsing = 240,
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 权益使用模式 */
|
/** 权益使用模式 */
|
||||||
|
|
@ -183,6 +225,9 @@ export enum ChargeItemType {
|
||||||
/** 100-199 语音相关 */
|
/** 100-199 语音相关 */
|
||||||
VoiceClone = 100,
|
VoiceClone = 100,
|
||||||
VoiceStorage = 101,
|
VoiceStorage = 101,
|
||||||
|
/** 200- */
|
||||||
|
PluginRunQPS = 200,
|
||||||
|
PluginRunParallel = 201,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum ChargeResourceType {
|
export enum ChargeResourceType {
|
||||||
|
|
@ -266,6 +311,18 @@ export enum CozeAccountType {
|
||||||
Personal = 2,
|
Personal = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 用户权益套餐状态 */
|
||||||
|
export enum CozeInstanceStaus {
|
||||||
|
/** 运行中 */
|
||||||
|
Running = 1,
|
||||||
|
/** 退订 */
|
||||||
|
Unsubs = 2,
|
||||||
|
/** 到期 */
|
||||||
|
Expired = 3,
|
||||||
|
/** 欠费 */
|
||||||
|
Overdue = 4,
|
||||||
|
}
|
||||||
|
|
||||||
export enum DurationType {
|
export enum DurationType {
|
||||||
Day = 1,
|
Day = 1,
|
||||||
Month = 2,
|
Month = 2,
|
||||||
|
|
@ -277,6 +334,10 @@ export enum EntityBenefitStatus {
|
||||||
Valid = 1,
|
Valid = 1,
|
||||||
/** 冻结使用 */
|
/** 冻结使用 */
|
||||||
Frozen = 3,
|
Frozen = 3,
|
||||||
|
/** 取消 */
|
||||||
|
Cancel = 5,
|
||||||
|
/** 待生效(此枚举通过计算得出,数据库中并无此项数据) */
|
||||||
|
Pending = 6,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum EntityPeriodType {
|
export enum EntityPeriodType {
|
||||||
|
|
@ -355,6 +416,17 @@ export enum OperateType {
|
||||||
TopUpChargeBackReverse = 7,
|
TopUpChargeBackReverse = 7,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum PluginBillType {
|
||||||
|
/** 按次调用计费。适用于大多数插件 */
|
||||||
|
ByCallTime = 0,
|
||||||
|
/** 按时长计费(单位S)。适用于音乐生成、视频编辑等 */
|
||||||
|
ByDuration = 1,
|
||||||
|
/** 按token数计费。适用于视频生成 */
|
||||||
|
ByTotalTokens = 2,
|
||||||
|
/** 插件本身不计费,由下游计费。 */
|
||||||
|
NoneButByDownstream = 11,
|
||||||
|
}
|
||||||
|
|
||||||
/** 资源归属的实体类型 */
|
/** 资源归属的实体类型 */
|
||||||
export enum ResBelongsToEntityType {
|
export enum ResBelongsToEntityType {
|
||||||
/** 未知 */
|
/** 未知 */
|
||||||
|
|
@ -454,6 +526,13 @@ export enum VolcanoUserType {
|
||||||
BasicUser = 2,
|
BasicUser = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum VolcInstanceType {
|
||||||
|
/** 正常版本 */
|
||||||
|
Normal = 1,
|
||||||
|
/** 渠道版本 */
|
||||||
|
Channel = 2,
|
||||||
|
}
|
||||||
|
|
||||||
export enum WorkflowMode {
|
export enum WorkflowMode {
|
||||||
Unknown = 0,
|
Unknown = 0,
|
||||||
TestRun = 1,
|
TestRun = 1,
|
||||||
|
|
@ -535,8 +614,17 @@ export interface ModeleResInfo {
|
||||||
input_tokens?: Int64;
|
input_tokens?: Int64;
|
||||||
/** 输出token数 */
|
/** 输出token数 */
|
||||||
output_tokens?: Int64;
|
output_tokens?: Int64;
|
||||||
/** 模型AK */
|
/** 模型AK类别 */
|
||||||
ak_catalog?: string;
|
ak_catalog?: string;
|
||||||
|
/** 模型AK */
|
||||||
|
model_ak?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PluginRelationInfo {
|
||||||
|
/** 计费类型 */
|
||||||
|
bill_type?: PluginBillType;
|
||||||
|
/** 插件功能名称。只有当一个插件内有多种计费时,该字段才需要填值 */
|
||||||
|
feature_name?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PluginResInfo {
|
export interface PluginResInfo {
|
||||||
|
|
@ -544,6 +632,16 @@ export interface PluginResInfo {
|
||||||
plugin_api_id?: Int64;
|
plugin_api_id?: Int64;
|
||||||
/** 是否是图像流 */
|
/** 是否是图像流 */
|
||||||
is_image_flow?: boolean;
|
is_image_flow?: boolean;
|
||||||
|
/** 工具ID */
|
||||||
|
tool_id?: Int64;
|
||||||
|
/** 工具名称 */
|
||||||
|
tool_name?: string;
|
||||||
|
/** 插件关联信息 */
|
||||||
|
relation_info?: PluginRelationInfo;
|
||||||
|
/** 插件执行时间(单位秒)。默认存在是则优先取该值。适用于通过执行时长计费的插件 */
|
||||||
|
duration?: Int64;
|
||||||
|
/** 输出token数。默认存在是则优先取该值。适用于通过token数计费的插件 */
|
||||||
|
total_tokens?: Int64;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PublicUserBasicInfo {
|
export interface PublicUserBasicInfo {
|
||||||
|
|
@ -670,6 +768,8 @@ export interface VolcAccountInfo {
|
||||||
instance_begin_time?: Int64;
|
instance_begin_time?: Int64;
|
||||||
/** 权益失效时间(秒级) */
|
/** 权益失效时间(秒级) */
|
||||||
instance_end_time?: Int64;
|
instance_end_time?: Int64;
|
||||||
|
/** 套餐对应周期资源包实例Id,如果用户购买的是仅版本,则该字段为空 */
|
||||||
|
period_pack_instance_id?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VolcUserInfo {
|
export interface VolcUserInfo {
|
||||||
|
|
@ -677,5 +777,7 @@ export interface VolcUserInfo {
|
||||||
VolcAuthInstanceID?: string;
|
VolcAuthInstanceID?: string;
|
||||||
/** 火山开通的套餐等级 */
|
/** 火山开通的套餐等级 */
|
||||||
VolcUserLevel?: UserLevel;
|
VolcUserLevel?: UserLevel;
|
||||||
|
/** 火山用户实例版本 */
|
||||||
|
VolcInstanceType?: VolcInstanceType;
|
||||||
}
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ export interface ListBenefitLimitationResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ListBillDownloadTaskRequest {
|
export interface ListBillDownloadTaskRequest {
|
||||||
task_ids?: Array<Int64>;
|
task_ids?: Array<string>;
|
||||||
page_num?: number;
|
page_num?: number;
|
||||||
page_size?: number;
|
page_size?: number;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ export interface PublicGetUserWalletHistoryResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UserBalanceData {
|
export interface UserBalanceData {
|
||||||
balance_map?: Record<BalanceType, Int64>;
|
balance_map?: Partial<Record<BalanceType, Int64>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UserProfitData {
|
export interface UserProfitData {
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,6 @@ export * from './namespaces/bot_connector';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class BotConnectorService<T> {
|
export default class BotConnectorService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('BotConnectorService.request is undefined');
|
throw new Error('BotConnectorService.request is undefined');
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,18 @@ export enum BotTableRWMode {
|
||||||
RWModeMax = 4,
|
RWModeMax = 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum BusinessType {
|
||||||
|
Default = 0,
|
||||||
|
DouyinAvatar = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum CacheType {
|
||||||
|
/** 缓存关闭 */
|
||||||
|
CacheClosed = 0,
|
||||||
|
/** 前缀缓存 */
|
||||||
|
PrefixCache = 1,
|
||||||
|
}
|
||||||
|
|
||||||
/** 上下文允许传输的类型 */
|
/** 上下文允许传输的类型 */
|
||||||
export enum ContextMode {
|
export enum ContextMode {
|
||||||
Chat = 0,
|
Chat = 0,
|
||||||
|
|
@ -94,6 +106,19 @@ export enum ContextMode {
|
||||||
FunctionCall_3 = 3,
|
FunctionCall_3 = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum DefaultUserInputType {
|
||||||
|
/** 没设置 */
|
||||||
|
NotSet = 0,
|
||||||
|
/** 文字 */
|
||||||
|
Text = 1,
|
||||||
|
/** 按住语音 */
|
||||||
|
Voice = 2,
|
||||||
|
/** 语音通话 */
|
||||||
|
Call = 3,
|
||||||
|
/** 视频通话 */
|
||||||
|
VideoCall = 4,
|
||||||
|
}
|
||||||
|
|
||||||
export enum DisablePromptCalling {
|
export enum DisablePromptCalling {
|
||||||
Off = 0,
|
Off = 0,
|
||||||
On = 1,
|
On = 1,
|
||||||
|
|
@ -143,6 +168,16 @@ export enum KnowledgeShowSourceMode {
|
||||||
CardList = 1,
|
CardList = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum KnowledgeType {
|
||||||
|
Coze = 0,
|
||||||
|
Volcano = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum KnowledgeTypeMode {
|
||||||
|
Coze = 0,
|
||||||
|
Volcano = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum MessageFeedbackDetailType {
|
export enum MessageFeedbackDetailType {
|
||||||
UnlikeDefault = 0,
|
UnlikeDefault = 0,
|
||||||
/** 有害信息 */
|
/** 有害信息 */
|
||||||
|
|
@ -188,6 +223,9 @@ export enum ModelFuncConfigType {
|
||||||
MultiAgentRecognize = 18,
|
MultiAgentRecognize = 18,
|
||||||
KnowledgePhoto = 19,
|
KnowledgePhoto = 19,
|
||||||
HookInfo = 20,
|
HookInfo = 20,
|
||||||
|
KnowledgeValcanoUnstructured = 21,
|
||||||
|
KnowledgeValcanoStructured = 22,
|
||||||
|
Model = 23,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum ModelResponseFormat {
|
export enum ModelResponseFormat {
|
||||||
|
|
@ -223,6 +261,12 @@ export enum OnboardingMode {
|
||||||
USE_LLM = 3,
|
USE_LLM = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum PromptMode {
|
||||||
|
Standard = 0,
|
||||||
|
/** 前缀提示词 */
|
||||||
|
PrefixPrompt = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum RecognitionMode {
|
export enum RecognitionMode {
|
||||||
FunctionCall = 1,
|
FunctionCall = 1,
|
||||||
Independent = 2,
|
Independent = 2,
|
||||||
|
|
@ -439,6 +483,11 @@ export interface ChatV3MessageDetail {
|
||||||
section_id?: string;
|
section_id?: string;
|
||||||
created_at?: Int64;
|
created_at?: Int64;
|
||||||
updated_at?: Int64;
|
updated_at?: Int64;
|
||||||
|
reasoning_content?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CompletionUsage {
|
||||||
|
reasoning_tokens?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GradientPosition {
|
export interface GradientPosition {
|
||||||
|
|
@ -497,6 +546,16 @@ export interface ModelInfo {
|
||||||
response_format?: ModelResponseFormat;
|
response_format?: ModelResponseFormat;
|
||||||
/** 用户选择的模型风格 */
|
/** 用户选择的模型风格 */
|
||||||
model_style?: ModelStyle;
|
model_style?: ModelStyle;
|
||||||
|
/** 缓存配置 */
|
||||||
|
cache_type?: CacheType;
|
||||||
|
/** sp拼接当前时间 */
|
||||||
|
sp_current_time?: boolean;
|
||||||
|
/** sp拼接防泄露指令 */
|
||||||
|
sp_anti_leak?: boolean;
|
||||||
|
/** sp拼接声纹信息 */
|
||||||
|
sp_voice_info?: boolean;
|
||||||
|
/** 个性化配置参数 */
|
||||||
|
parameters?: Record<string, string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OnboardingInfo {
|
export interface OnboardingInfo {
|
||||||
|
|
@ -532,9 +591,24 @@ export interface PluginParameter {
|
||||||
sub_type?: string;
|
sub_type?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface PrefixPromptInfo {
|
||||||
|
/** 前缀提示词 */
|
||||||
|
prefix_prompt?: string;
|
||||||
|
/** 不支持前缀提示词部分 */
|
||||||
|
dynamic_prompt?: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface PromptInfo {
|
export interface PromptInfo {
|
||||||
/** 文本prompt */
|
/** 文本prompt */
|
||||||
prompt?: string;
|
prompt?: string;
|
||||||
|
/** 提示词模式 */
|
||||||
|
prompt_mode?: PromptMode;
|
||||||
|
/** 前缀提示词模式下的prompt内容 */
|
||||||
|
prefix_prompt_info?: PrefixPromptInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PromptUsage {
|
||||||
|
cached_tokens?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RequiredAction {
|
export interface RequiredAction {
|
||||||
|
|
@ -568,6 +642,26 @@ export interface Usage {
|
||||||
token_count?: number;
|
token_count?: number;
|
||||||
output_count?: number;
|
output_count?: number;
|
||||||
input_count?: number;
|
input_count?: number;
|
||||||
|
input_tokens_details?: PromptUsage;
|
||||||
|
output_tokens_details?: CompletionUsage;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface VideoCallConfig {
|
||||||
|
/** 是否关闭 */
|
||||||
|
video_call?: boolean;
|
||||||
|
/** 每秒抽取帧数(范围1~24) */
|
||||||
|
frames_per_second?: number;
|
||||||
|
/** 开始说话前抽取秒数(范围0~10s) */
|
||||||
|
pre_speech_seconds?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface VoiceprintRecognitionConfig {
|
||||||
|
/** 是否关闭声纹识别 */
|
||||||
|
close_voice_print_recognition?: boolean;
|
||||||
|
/** 命中阈值 */
|
||||||
|
hit_threshold?: number;
|
||||||
|
/** 空值时是否沿用历史开关 */
|
||||||
|
use_history_if_empty?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** tts Voices */
|
/** tts Voices */
|
||||||
|
|
@ -583,6 +677,12 @@ export interface VoicesInfo {
|
||||||
autoplay_voice?: Record<string, Int64>;
|
autoplay_voice?: Record<string, Int64>;
|
||||||
/** 是否关闭语音通话,true:关闭 false:开启 默认为false */
|
/** 是否关闭语音通话,true:关闭 false:开启 默认为false */
|
||||||
voice_call?: boolean;
|
voice_call?: boolean;
|
||||||
|
/** 默认用户输入类型 */
|
||||||
|
default_user_input_type?: DefaultUserInputType;
|
||||||
|
/** 多语音音色配置, string类型 */
|
||||||
|
i18n_lang_voice_str?: Record<string, string>;
|
||||||
|
video_call_config?: VideoCallConfig;
|
||||||
|
voiceprint_recognition_config?: VoiceprintRecognitionConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface WorkflowInfo {
|
export interface WorkflowInfo {
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,8 @@ export interface BotUserConversation {
|
||||||
SessionName?: string;
|
SessionName?: string;
|
||||||
ConnectorID?: Int64;
|
ConnectorID?: Int64;
|
||||||
ConversationID?: Int64;
|
ConversationID?: Int64;
|
||||||
|
AccountID?: Int64;
|
||||||
|
CreatorID?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CancelChatApiRequest {
|
export interface CancelChatApiRequest {
|
||||||
|
|
@ -154,6 +156,7 @@ export interface ChatMessage {
|
||||||
meta_infos?: Array<MetaInfo>;
|
meta_infos?: Array<MetaInfo>;
|
||||||
query_snap?: string;
|
query_snap?: string;
|
||||||
card_status?: Record<string, string>;
|
card_status?: Record<string, string>;
|
||||||
|
reasoning_content?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ClearConversationApiRequest {
|
export interface ClearConversationApiRequest {
|
||||||
|
|
@ -178,6 +181,7 @@ export interface ConversationData {
|
||||||
creator_d?: string;
|
creator_d?: string;
|
||||||
connector_id?: string;
|
connector_id?: string;
|
||||||
last_section_id?: string;
|
last_section_id?: string;
|
||||||
|
account_id?: Int64;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateConversationApiRequest {
|
export interface CreateConversationApiRequest {
|
||||||
|
|
@ -411,6 +415,7 @@ export interface OpenMessage {
|
||||||
CustomerDataApi?: Record<string, string>;
|
CustomerDataApi?: Record<string, string>;
|
||||||
Type?: number;
|
Type?: number;
|
||||||
SectionID?: Int64;
|
SectionID?: Int64;
|
||||||
|
ReasoningContent?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OpenMessageApi {
|
export interface OpenMessageApi {
|
||||||
|
|
@ -432,6 +437,7 @@ export interface OpenMessageApi {
|
||||||
content_type?: string;
|
content_type?: string;
|
||||||
type?: string;
|
type?: string;
|
||||||
section_id?: string;
|
section_id?: string;
|
||||||
|
reasoning_content?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PlaygroundOriginMessage {
|
export interface PlaygroundOriginMessage {
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,6 @@ export * from './namespaces/bot_open_api';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class BotOpenApiService<T> {
|
export default class BotOpenApiService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('BotOpenApiService.request is undefined');
|
throw new Error('BotOpenApiService.request is undefined');
|
||||||
|
|
@ -316,6 +314,9 @@ export default class BotOpenApiService<T> {
|
||||||
custom_config: _req['custom_config'],
|
custom_config: _req['custom_config'],
|
||||||
extra_params: _req['extra_params'],
|
extra_params: _req['extra_params'],
|
||||||
connector_id: _req['connector_id'],
|
connector_id: _req['connector_id'],
|
||||||
|
shortcut_command: _req['shortcut_command'],
|
||||||
|
parameters: _req['parameters'],
|
||||||
|
enable_card: _req['enable_card'],
|
||||||
};
|
};
|
||||||
const params = { conversation_id: _req['conversation_id'] };
|
const params = { conversation_id: _req['conversation_id'] };
|
||||||
return this.request({ url, method, data, params }, options);
|
return this.request({ url, method, data, params }, options);
|
||||||
|
|
@ -329,7 +330,11 @@ export default class BotOpenApiService<T> {
|
||||||
const _req = req;
|
const _req = req;
|
||||||
const url = this.genBaseURL('/v3/chat/submit_tool_outputs');
|
const url = this.genBaseURL('/v3/chat/submit_tool_outputs');
|
||||||
const method = 'POST';
|
const method = 'POST';
|
||||||
const data = { stream: _req['stream'], tool_outputs: _req['tool_outputs'] };
|
const data = {
|
||||||
|
stream: _req['stream'],
|
||||||
|
tool_outputs: _req['tool_outputs'],
|
||||||
|
connector_id: _req['connector_id'],
|
||||||
|
};
|
||||||
const params = {
|
const params = {
|
||||||
conversation_id: _req['conversation_id'],
|
conversation_id: _req['conversation_id'],
|
||||||
chat_id: _req['chat_id'],
|
chat_id: _req['chat_id'],
|
||||||
|
|
@ -355,6 +360,9 @@ export default class BotOpenApiService<T> {
|
||||||
onboarding_info: _req['onboarding_info'],
|
onboarding_info: _req['onboarding_info'],
|
||||||
voice_ids: _req['voice_ids'],
|
voice_ids: _req['voice_ids'],
|
||||||
knowledge: _req['knowledge'],
|
knowledge: _req['knowledge'],
|
||||||
|
workflow_id_list: _req['workflow_id_list'],
|
||||||
|
model_info_config: _req['model_info_config'],
|
||||||
|
suggest_reply_info: _req['suggest_reply_info'],
|
||||||
};
|
};
|
||||||
return this.request({ url, method, data }, options);
|
return this.request({ url, method, data }, options);
|
||||||
}
|
}
|
||||||
|
|
@ -390,6 +398,9 @@ export default class BotOpenApiService<T> {
|
||||||
plugin_id_list: _req['plugin_id_list'],
|
plugin_id_list: _req['plugin_id_list'],
|
||||||
onboarding_info: _req['onboarding_info'],
|
onboarding_info: _req['onboarding_info'],
|
||||||
voice_ids: _req['voice_ids'],
|
voice_ids: _req['voice_ids'],
|
||||||
|
workflow_id_list: _req['workflow_id_list'],
|
||||||
|
model_info_config: _req['model_info_config'],
|
||||||
|
suggest_reply_info: _req['suggest_reply_info'],
|
||||||
};
|
};
|
||||||
return this.request({ url, method, data }, options);
|
return this.request({ url, method, data }, options);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,18 @@ export enum BotTableRWMode {
|
||||||
RWModeMax = 4,
|
RWModeMax = 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum BusinessType {
|
||||||
|
Default = 0,
|
||||||
|
DouyinAvatar = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum CacheType {
|
||||||
|
/** 缓存关闭 */
|
||||||
|
CacheClosed = 0,
|
||||||
|
/** 前缀缓存 */
|
||||||
|
PrefixCache = 1,
|
||||||
|
}
|
||||||
|
|
||||||
/** 上下文允许传输的类型 */
|
/** 上下文允许传输的类型 */
|
||||||
export enum ContextMode {
|
export enum ContextMode {
|
||||||
Chat = 0,
|
Chat = 0,
|
||||||
|
|
@ -94,6 +106,19 @@ export enum ContextMode {
|
||||||
FunctionCall_3 = 3,
|
FunctionCall_3 = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum DefaultUserInputType {
|
||||||
|
/** 没设置 */
|
||||||
|
NotSet = 0,
|
||||||
|
/** 文字 */
|
||||||
|
Text = 1,
|
||||||
|
/** 按住语音 */
|
||||||
|
Voice = 2,
|
||||||
|
/** 语音通话 */
|
||||||
|
Call = 3,
|
||||||
|
/** 视频通话 */
|
||||||
|
VideoCall = 4,
|
||||||
|
}
|
||||||
|
|
||||||
export enum DisablePromptCalling {
|
export enum DisablePromptCalling {
|
||||||
Off = 0,
|
Off = 0,
|
||||||
On = 1,
|
On = 1,
|
||||||
|
|
@ -143,6 +168,16 @@ export enum KnowledgeShowSourceMode {
|
||||||
CardList = 1,
|
CardList = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum KnowledgeType {
|
||||||
|
Coze = 0,
|
||||||
|
Volcano = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum KnowledgeTypeMode {
|
||||||
|
Coze = 0,
|
||||||
|
Volcano = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum MessageFeedbackDetailType {
|
export enum MessageFeedbackDetailType {
|
||||||
UnlikeDefault = 0,
|
UnlikeDefault = 0,
|
||||||
/** 有害信息 */
|
/** 有害信息 */
|
||||||
|
|
@ -188,6 +223,9 @@ export enum ModelFuncConfigType {
|
||||||
MultiAgentRecognize = 18,
|
MultiAgentRecognize = 18,
|
||||||
KnowledgePhoto = 19,
|
KnowledgePhoto = 19,
|
||||||
HookInfo = 20,
|
HookInfo = 20,
|
||||||
|
KnowledgeValcanoUnstructured = 21,
|
||||||
|
KnowledgeValcanoStructured = 22,
|
||||||
|
Model = 23,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum ModelResponseFormat {
|
export enum ModelResponseFormat {
|
||||||
|
|
@ -223,6 +261,12 @@ export enum OnboardingMode {
|
||||||
USE_LLM = 3,
|
USE_LLM = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum PromptMode {
|
||||||
|
Standard = 0,
|
||||||
|
/** 前缀提示词 */
|
||||||
|
PrefixPrompt = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum RecognitionMode {
|
export enum RecognitionMode {
|
||||||
FunctionCall = 1,
|
FunctionCall = 1,
|
||||||
Independent = 2,
|
Independent = 2,
|
||||||
|
|
@ -346,6 +390,10 @@ export interface ChatV3ChatDetail {
|
||||||
section_id?: string;
|
section_id?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface CompletionUsage {
|
||||||
|
reasoning_tokens?: number;
|
||||||
|
}
|
||||||
|
|
||||||
export interface InterruptFunction {
|
export interface InterruptFunction {
|
||||||
name?: string;
|
name?: string;
|
||||||
arguments?: string;
|
arguments?: string;
|
||||||
|
|
@ -367,6 +415,10 @@ export interface LastError {
|
||||||
msg: string;
|
msg: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface PromptUsage {
|
||||||
|
cached_tokens?: number;
|
||||||
|
}
|
||||||
|
|
||||||
export interface RequiredAction {
|
export interface RequiredAction {
|
||||||
type?: string;
|
type?: string;
|
||||||
submit_tool_outputs?: SubmitToolOutputs;
|
submit_tool_outputs?: SubmitToolOutputs;
|
||||||
|
|
@ -380,5 +432,7 @@ export interface Usage {
|
||||||
token_count?: number;
|
token_count?: number;
|
||||||
output_count?: number;
|
output_count?: number;
|
||||||
input_count?: number;
|
input_count?: number;
|
||||||
|
input_tokens_details?: PromptUsage;
|
||||||
|
output_tokens_details?: CompletionUsage;
|
||||||
}
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,23 @@ export interface ApiInfo {
|
||||||
description?: string;
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface BackgroundImageDetail {
|
||||||
|
origin_image_url?: string;
|
||||||
|
image_url?: string;
|
||||||
|
theme_color?: string;
|
||||||
|
/** 渐变位置 */
|
||||||
|
gradient_position?: GradientPosition;
|
||||||
|
/** 裁剪画布位置 */
|
||||||
|
canvas_position?: CanvasPosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface BackgroundImageInfo {
|
||||||
|
/** web端背景图 */
|
||||||
|
web_background_image?: BackgroundImageDetail;
|
||||||
|
/** 移动端背景图 */
|
||||||
|
mobile_background_image?: BackgroundImageDetail;
|
||||||
|
}
|
||||||
|
|
||||||
export interface BotConfig {
|
export interface BotConfig {
|
||||||
character_name?: string;
|
character_name?: string;
|
||||||
propmt?: string;
|
propmt?: string;
|
||||||
|
|
@ -75,6 +92,22 @@ export interface BotInfo {
|
||||||
plugin_info_list?: Array<PluginInfo>;
|
plugin_info_list?: Array<PluginInfo>;
|
||||||
/** 知识库信息 */
|
/** 知识库信息 */
|
||||||
knowledge?: CommonKnowledge;
|
knowledge?: CommonKnowledge;
|
||||||
|
/** workflow信息列表 */
|
||||||
|
workflow_info_list?: Array<WorkflowInfo>;
|
||||||
|
/** 快捷指令信息列表 */
|
||||||
|
shortcut_commands?: Array<ShortcutCommandInfo>;
|
||||||
|
/** 音色配置 */
|
||||||
|
voice_info_list?: Array<Voice>;
|
||||||
|
/** 默认用户输入类型 */
|
||||||
|
default_user_input_type?: string;
|
||||||
|
/** 用户问题建议 */
|
||||||
|
suggest_reply_info?: SuggestReplyInfo;
|
||||||
|
/** 背景图片 */
|
||||||
|
background_image_info?: BackgroundImageInfo;
|
||||||
|
/** 变量列表 */
|
||||||
|
variables?: Array<Variable>;
|
||||||
|
/** owner_id */
|
||||||
|
owner_user_id?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BotOnboardingReq {
|
export interface BotOnboardingReq {
|
||||||
|
|
@ -90,6 +123,13 @@ export interface BotOnboardingResp {
|
||||||
sender_info?: SenderInfo;
|
sender_info?: SenderInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface CanvasPosition {
|
||||||
|
width?: number;
|
||||||
|
height?: number;
|
||||||
|
left?: number;
|
||||||
|
top?: number;
|
||||||
|
}
|
||||||
|
|
||||||
export interface ChatMessage {
|
export interface ChatMessage {
|
||||||
role?: string;
|
role?: string;
|
||||||
type?: string;
|
type?: string;
|
||||||
|
|
@ -105,6 +145,8 @@ export interface ChatMessage {
|
||||||
broken_pos?: number;
|
broken_pos?: number;
|
||||||
meta_data?: MetaData;
|
meta_data?: MetaData;
|
||||||
name?: string;
|
name?: string;
|
||||||
|
/** 思考内容 */
|
||||||
|
reasoning_content?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ChatV1Req {
|
export interface ChatV1Req {
|
||||||
|
|
@ -173,6 +215,11 @@ export interface ChatV3Request {
|
||||||
extra_params?: Record<string, string>;
|
extra_params?: Record<string, string>;
|
||||||
/** 手动指定渠道 id 聊天。目前仅支持 websdk(=999) */
|
/** 手动指定渠道 id 聊天。目前仅支持 websdk(=999) */
|
||||||
connector_id?: string;
|
connector_id?: string;
|
||||||
|
/** 指定快捷指令 */
|
||||||
|
shortcut_command?: ShortcutCommandDetail;
|
||||||
|
/** key=参数名 value=值 传递给 workflows parameters 参数 */
|
||||||
|
parameters?: string;
|
||||||
|
enable_card?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ChatV3Response {
|
export interface ChatV3Response {
|
||||||
|
|
@ -200,6 +247,9 @@ export interface CreateDraftBotRequest {
|
||||||
plugin_id_list?: PluginIdList;
|
plugin_id_list?: PluginIdList;
|
||||||
onboarding_info?: OnboardingInfo;
|
onboarding_info?: OnboardingInfo;
|
||||||
voice_ids?: Array<string>;
|
voice_ids?: Array<string>;
|
||||||
|
workflow_id_list?: WorkflowIdList;
|
||||||
|
model_info_config?: ModelInfoConfig;
|
||||||
|
suggest_reply_info?: SuggestReplyInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateDraftBotResponse {
|
export interface CreateDraftBotResponse {
|
||||||
|
|
@ -299,6 +349,11 @@ export interface GetVoiceListResp {
|
||||||
voice_data_list?: Array<VoiceData>;
|
voice_data_list?: Array<VoiceData>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface GradientPosition {
|
||||||
|
left?: number;
|
||||||
|
right?: number;
|
||||||
|
}
|
||||||
|
|
||||||
export interface Image {
|
export interface Image {
|
||||||
url: string;
|
url: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
|
|
@ -334,6 +389,59 @@ export interface ModelInfo {
|
||||||
model_id?: string;
|
model_id?: string;
|
||||||
/** 模型名称 */
|
/** 模型名称 */
|
||||||
model_name?: string;
|
model_name?: string;
|
||||||
|
/** 生成随机性 没配置不返回 */
|
||||||
|
temperature?: number;
|
||||||
|
/** top p 没配置不返回 */
|
||||||
|
top_p?: number;
|
||||||
|
/** 频率惩罚 没配置不返回 */
|
||||||
|
frequency_penalty?: number;
|
||||||
|
/** 存在惩罚 没配置不返回 */
|
||||||
|
presence_penalty?: number;
|
||||||
|
/** 生成时,采样候选集的大小 没配置不返回 */
|
||||||
|
top_k?: number;
|
||||||
|
/** 携带上下文轮数 */
|
||||||
|
context_round?: number;
|
||||||
|
/** 最大回复长度 */
|
||||||
|
max_tokens?: number;
|
||||||
|
/** 输出格式 text、markdown、json */
|
||||||
|
response_format?: string;
|
||||||
|
/** 缓存配置 */
|
||||||
|
cache_type?: string;
|
||||||
|
/** sp拼接当前时间 */
|
||||||
|
sp_current_time?: boolean;
|
||||||
|
/** sp拼接防泄露指令 */
|
||||||
|
sp_anti_leak?: boolean;
|
||||||
|
/** 模型个性化配置参数 */
|
||||||
|
parameters?: Record<string, string>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ModelInfoConfig {
|
||||||
|
/** 模型id */
|
||||||
|
model_id: string;
|
||||||
|
/** 生成随机性 */
|
||||||
|
temperature?: number;
|
||||||
|
/** top p */
|
||||||
|
top_p?: number;
|
||||||
|
/** 频率惩罚 */
|
||||||
|
frequency_penalty?: number;
|
||||||
|
/** 存在惩罚 */
|
||||||
|
presence_penalty?: number;
|
||||||
|
/** 生成时,采样候选集的大小 */
|
||||||
|
top_k?: number;
|
||||||
|
/** 携带上下文轮数 */
|
||||||
|
context_round?: number;
|
||||||
|
/** 最大回复长度 */
|
||||||
|
max_tokens?: number;
|
||||||
|
/** 输出格式 text、markdown、json */
|
||||||
|
response_format?: string;
|
||||||
|
/** 缓存配置 */
|
||||||
|
cache_type?: string;
|
||||||
|
/** sp拼接当前时间 */
|
||||||
|
sp_current_time?: boolean;
|
||||||
|
/** sp拼接防泄露指令 */
|
||||||
|
sp_anti_leak?: boolean;
|
||||||
|
/** 模型个性化配置参数 */
|
||||||
|
parameters?: Record<string, string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OauthAuthorizationCodeReq {
|
export interface OauthAuthorizationCodeReq {
|
||||||
|
|
@ -415,10 +523,21 @@ export interface PluginInfo {
|
||||||
api_info_list?: Array<ApiInfo>;
|
api_info_list?: Array<ApiInfo>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface PrefixPromptInfo {
|
||||||
|
/** 前缀提示词 */
|
||||||
|
prefix_prompt?: string;
|
||||||
|
/** 不支持前缀提示词部分 */
|
||||||
|
dynamic_prompt?: string;
|
||||||
|
}
|
||||||
|
|
||||||
/** bot管理 */
|
/** bot管理 */
|
||||||
export interface PromptInfo {
|
export interface PromptInfo {
|
||||||
/** 文本prompt */
|
/** 文本prompt */
|
||||||
prompt?: string;
|
prompt?: string;
|
||||||
|
/** 提示词模式 */
|
||||||
|
prompt_mode?: string;
|
||||||
|
/** 前缀提示词模式下的prompt内容 */
|
||||||
|
prefix_prompt_info?: PrefixPromptInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PublishDraftBotData {
|
export interface PublishDraftBotData {
|
||||||
|
|
@ -442,6 +561,75 @@ export interface SenderInfo {
|
||||||
icon_url: string;
|
icon_url: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ShortcutCommandComponent {
|
||||||
|
/** panel参数
|
||||||
|
参数名字 */
|
||||||
|
name?: string;
|
||||||
|
/** 参数描述 */
|
||||||
|
description?: string;
|
||||||
|
/** 输入类型 text、select、file */
|
||||||
|
type?: string;
|
||||||
|
/** 请求工具时,参数的key 对应tool的参数名称,没有则为不返回 */
|
||||||
|
tool_parameter?: string;
|
||||||
|
/** type为select时的可选项列表 or type为file时,支持哪些类型 image、doc、table、audio、video、zip、code、txt、ppt */
|
||||||
|
options?: Array<string>;
|
||||||
|
/** 默认值 没配置时不返回 */
|
||||||
|
default_value?: string;
|
||||||
|
/** 是否隐藏不展示 线上bot tool类型的快捷指令不返回hide=true的component */
|
||||||
|
is_hide?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ShortcutCommandDetail {
|
||||||
|
command_id: string;
|
||||||
|
/** key=参数名 value=值 object_string object 数组序列化之后的 JSON String */
|
||||||
|
parameters?: Record<string, string>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ShortcutCommandInfo {
|
||||||
|
/** 快捷指令id */
|
||||||
|
id?: string;
|
||||||
|
/** 快捷指令按钮名称 */
|
||||||
|
name?: string;
|
||||||
|
/** 快捷指令 */
|
||||||
|
command?: string;
|
||||||
|
/** 快捷指令描述 */
|
||||||
|
description?: string;
|
||||||
|
/** 指令query模版 */
|
||||||
|
query_template?: string;
|
||||||
|
/** 快捷指令icon */
|
||||||
|
icon_url?: string;
|
||||||
|
/** 组件列表(参数列表) */
|
||||||
|
components?: Array<ShortcutCommandComponent>;
|
||||||
|
/** tool信息 */
|
||||||
|
tool?: ShortcutCommandToolInfo;
|
||||||
|
/** multi的指令时,该指令由哪个节点执行 没配置不返回 */
|
||||||
|
agent_id?: string;
|
||||||
|
/** chatsdk 使用 */
|
||||||
|
send_type?: string;
|
||||||
|
/** chatsdk 使用,表单的schema */
|
||||||
|
card_schema?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ShortcutCommandToolInfo {
|
||||||
|
name?: string;
|
||||||
|
/** tool类型 workflow plugin */
|
||||||
|
type?: string;
|
||||||
|
plugin_id?: string;
|
||||||
|
plugin_api_name?: string;
|
||||||
|
workflow_id?: string;
|
||||||
|
params?: Array<ShortcutToolParam>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ShortcutToolParam {
|
||||||
|
name?: string;
|
||||||
|
is_required?: boolean;
|
||||||
|
description?: string;
|
||||||
|
type?: string;
|
||||||
|
default_value?: string;
|
||||||
|
/** 是否是panel参数 */
|
||||||
|
is_refer_component?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
export interface SpacePublishedBots {
|
export interface SpacePublishedBots {
|
||||||
bot_id?: string;
|
bot_id?: string;
|
||||||
bot_name?: string;
|
bot_name?: string;
|
||||||
|
|
@ -460,6 +648,14 @@ export interface SubmitToolOutputsRequest {
|
||||||
chat_id: string;
|
chat_id: string;
|
||||||
stream?: boolean;
|
stream?: boolean;
|
||||||
tool_outputs: Array<ToolOutput>;
|
tool_outputs: Array<ToolOutput>;
|
||||||
|
connector_id?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface SuggestReplyInfo {
|
||||||
|
/** 回复模式 */
|
||||||
|
reply_mode?: string;
|
||||||
|
/** custom 模式下的自定义 prompt */
|
||||||
|
customized_prompt?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 对齐 platform,传递 tools */
|
/** 对齐 platform,传递 tools */
|
||||||
|
|
@ -485,6 +681,9 @@ export interface UpdateDraftBotRequest {
|
||||||
onboarding_info?: OnboardingInfo;
|
onboarding_info?: OnboardingInfo;
|
||||||
voice_ids?: Array<string>;
|
voice_ids?: Array<string>;
|
||||||
knowledge?: Knowledge;
|
knowledge?: Knowledge;
|
||||||
|
workflow_id_list?: WorkflowIdList;
|
||||||
|
model_info_config?: ModelInfoConfig;
|
||||||
|
suggest_reply_info?: SuggestReplyInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UpdateDraftBotResponse {
|
export interface UpdateDraftBotResponse {
|
||||||
|
|
@ -503,6 +702,30 @@ export interface UploadResp {
|
||||||
file_data?: FileData;
|
file_data?: FileData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Variable {
|
||||||
|
/** 变量名 */
|
||||||
|
keyword?: string;
|
||||||
|
/** 默认值 */
|
||||||
|
default_value?: string;
|
||||||
|
/** 变量类型 */
|
||||||
|
variable_type?: string;
|
||||||
|
/** 变量来源 */
|
||||||
|
channel?: string;
|
||||||
|
/** 变量描述 */
|
||||||
|
description?: string;
|
||||||
|
/** 是否启用 */
|
||||||
|
enable?: boolean;
|
||||||
|
/** 变量默认支持在Prompt中访问,取消勾选后将不支持在Prompt中访问(仅能在Workflow中访问 */
|
||||||
|
prompt_enable?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Voice {
|
||||||
|
/** 唯一id */
|
||||||
|
voice_id?: string;
|
||||||
|
/** 音色语种code */
|
||||||
|
language_code?: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface VoiceData {
|
export interface VoiceData {
|
||||||
/** 唯一id */
|
/** 唯一id */
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
@ -519,4 +742,23 @@ export interface VoiceData {
|
||||||
/** 预览音色内容 */
|
/** 预览音色内容 */
|
||||||
preview_audio?: string;
|
preview_audio?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface WorkflowIdInfo {
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface WorkflowIdList {
|
||||||
|
ids?: Array<WorkflowIdInfo>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface WorkflowInfo {
|
||||||
|
/** workflow_id */
|
||||||
|
id?: string;
|
||||||
|
/** workflow名称 */
|
||||||
|
name?: string;
|
||||||
|
/** workflow描述 */
|
||||||
|
description?: string;
|
||||||
|
/** workflow图片url */
|
||||||
|
icon_url?: string;
|
||||||
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -49,8 +49,6 @@ export * from './namespaces/shortcut_command';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class CardService<T> {
|
export default class CardService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('CardService.request is undefined');
|
throw new Error('CardService.request is undefined');
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,13 @@ export enum BusinessType {
|
||||||
DouyinAvatar = 1,
|
DouyinAvatar = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum CacheType {
|
||||||
|
/** 缓存关闭 */
|
||||||
|
CacheClosed = 0,
|
||||||
|
/** 前缀缓存 */
|
||||||
|
PrefixCache = 1,
|
||||||
|
}
|
||||||
|
|
||||||
/** 上下文允许传输的类型 */
|
/** 上下文允许传输的类型 */
|
||||||
export enum ContextMode {
|
export enum ContextMode {
|
||||||
Chat = 0,
|
Chat = 0,
|
||||||
|
|
@ -108,6 +115,8 @@ export enum DefaultUserInputType {
|
||||||
Voice = 2,
|
Voice = 2,
|
||||||
/** 语音通话 */
|
/** 语音通话 */
|
||||||
Call = 3,
|
Call = 3,
|
||||||
|
/** 视频通话 */
|
||||||
|
VideoCall = 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum DisablePromptCalling {
|
export enum DisablePromptCalling {
|
||||||
|
|
@ -159,6 +168,16 @@ export enum KnowledgeShowSourceMode {
|
||||||
CardList = 1,
|
CardList = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum KnowledgeType {
|
||||||
|
Coze = 0,
|
||||||
|
Volcano = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum KnowledgeTypeMode {
|
||||||
|
Coze = 0,
|
||||||
|
Volcano = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum MessageFeedbackDetailType {
|
export enum MessageFeedbackDetailType {
|
||||||
UnlikeDefault = 0,
|
UnlikeDefault = 0,
|
||||||
/** 有害信息 */
|
/** 有害信息 */
|
||||||
|
|
@ -204,6 +223,9 @@ export enum ModelFuncConfigType {
|
||||||
MultiAgentRecognize = 18,
|
MultiAgentRecognize = 18,
|
||||||
KnowledgePhoto = 19,
|
KnowledgePhoto = 19,
|
||||||
HookInfo = 20,
|
HookInfo = 20,
|
||||||
|
KnowledgeValcanoUnstructured = 21,
|
||||||
|
KnowledgeValcanoStructured = 22,
|
||||||
|
Model = 23,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum ModelResponseFormat {
|
export enum ModelResponseFormat {
|
||||||
|
|
@ -239,6 +261,12 @@ export enum OnboardingMode {
|
||||||
USE_LLM = 3,
|
USE_LLM = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum PromptMode {
|
||||||
|
Standard = 0,
|
||||||
|
/** 前缀提示词 */
|
||||||
|
PrefixPrompt = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum RecognitionMode {
|
export enum RecognitionMode {
|
||||||
FunctionCall = 1,
|
FunctionCall = 1,
|
||||||
Independent = 2,
|
Independent = 2,
|
||||||
|
|
|
||||||
|
|
@ -687,7 +687,7 @@ export interface CheckCardLengthRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CheckCardLengthResponse {
|
export interface CheckCardLengthResponse {
|
||||||
is_over_length?: Record<ChannelType, boolean>;
|
is_over_length?: Partial<Record<ChannelType, boolean>>;
|
||||||
code?: Int64;
|
code?: Int64;
|
||||||
msg?: string;
|
msg?: string;
|
||||||
BaseResp?: base.BaseResp;
|
BaseResp?: base.BaseResp;
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,28 @@ export enum CopilotContentType {
|
||||||
OutputSearchResult = 200,
|
OutputSearchResult = 200,
|
||||||
OutputMultiStream = 201,
|
OutputMultiStream = 201,
|
||||||
SearchIntentionResult = 300,
|
SearchIntentionResult = 300,
|
||||||
|
/** 深入研究卡片 */
|
||||||
|
DeepResearchCard = 400,
|
||||||
|
/** 文档 */
|
||||||
|
Artifact = 401,
|
||||||
|
/** 深入研究报告 */
|
||||||
|
DeepResearchReport = 402,
|
||||||
|
/** 深入思考 */
|
||||||
|
Thinking = 500,
|
||||||
|
/** 搜索query */
|
||||||
|
SearchQuery = 501,
|
||||||
|
/** 搜索结果 */
|
||||||
|
SearchResult = 502,
|
||||||
|
/** 搜索结果 query可被替换版本 */
|
||||||
|
SearchQueryResult = 503,
|
||||||
|
/** 路径规划 */
|
||||||
|
RoutePlan = 504,
|
||||||
|
/** 图片分析 */
|
||||||
|
ImageAnalysis = 505,
|
||||||
|
/** LinkReader */
|
||||||
|
LinkReader = 506,
|
||||||
|
/** 本地生活 */
|
||||||
|
LocalLife = 507,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum CopilotResult {
|
export enum CopilotResult {
|
||||||
|
|
@ -140,6 +162,7 @@ export enum FileType {
|
||||||
/** 豆包OCR需求 */
|
/** 豆包OCR需求 */
|
||||||
IMAGE = 2,
|
IMAGE = 2,
|
||||||
AUDIO = 3,
|
AUDIO = 3,
|
||||||
|
VIDEO = 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum FinReason {
|
export enum FinReason {
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,6 @@ export * from './namespaces/open_api';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class ConnectorApiService<T> {
|
export default class ConnectorApiService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('ConnectorApiService.request is undefined');
|
throw new Error('ConnectorApiService.request is undefined');
|
||||||
|
|
@ -371,5 +369,54 @@ export default class ConnectorApiService<T> {
|
||||||
};
|
};
|
||||||
return this.request({ url, method, params }, options);
|
return this.request({ url, method, params }, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** GET /api/connector/list_mini_program_domain */
|
||||||
|
ListMiniProgramDomain(
|
||||||
|
req?: connector.ListMiniProgramDomainRequest,
|
||||||
|
options?: T,
|
||||||
|
): Promise<connector.ListMiniProgramDomainResponse> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL('/api/connector/list_mini_program_domain');
|
||||||
|
const method = 'GET';
|
||||||
|
const params = {
|
||||||
|
enterprise_id: _req['enterprise_id'],
|
||||||
|
connector_id: _req['connector_id'],
|
||||||
|
search_word: _req['search_word'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, params }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POST /api/connector/set_mini_program_domain
|
||||||
|
*
|
||||||
|
* 小程序域名管理
|
||||||
|
*/
|
||||||
|
SetMiniProgramDomain(
|
||||||
|
req?: connector.SetMiniProgramDomainRequest,
|
||||||
|
options?: T,
|
||||||
|
): Promise<connector.SetMiniProgramDomainResponse> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL('/api/connector/set_mini_program_domain');
|
||||||
|
const method = 'POST';
|
||||||
|
const data = {
|
||||||
|
enterprise_id: _req['enterprise_id'],
|
||||||
|
domain_list: _req['domain_list'],
|
||||||
|
action: _req['action'],
|
||||||
|
connector_id: _req['connector_id'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, data }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** POST /api/connector/update_mini_program_domain */
|
||||||
|
UpdateMiniProgramDomain(
|
||||||
|
req: connector.UpdateMiniProgramDomainRequest,
|
||||||
|
options?: T,
|
||||||
|
): Promise<connector.UpdateMiniProgramDomainResponse> {
|
||||||
|
const _req = req;
|
||||||
|
const url = this.genBaseURL('/api/connector/update_mini_program_domain');
|
||||||
|
const method = 'POST';
|
||||||
|
const data = { id: _req['id'], domain: _req['domain'] };
|
||||||
|
return this.request({ url, method, data }, options);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,13 @@ export enum ManageAccountConnectorAction {
|
||||||
Remove = 1,
|
Remove = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum MiniProgramDomainAction {
|
||||||
|
/** 添加域名 */
|
||||||
|
Add = 0,
|
||||||
|
/** 移除域名 */
|
||||||
|
Remove = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum SpaceConnectorType {
|
export enum SpaceConnectorType {
|
||||||
/** 团队内自定义渠道 */
|
/** 团队内自定义渠道 */
|
||||||
Team = 1,
|
Team = 1,
|
||||||
|
|
@ -246,7 +253,7 @@ export interface GetPreviewConnectorRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GetPreviewConnectorResponse {
|
export interface GetPreviewConnectorResponse {
|
||||||
connector_list?: Array<Int64>;
|
connector_list?: Array<string>;
|
||||||
BaseResp?: base.BaseResp;
|
BaseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -278,6 +285,21 @@ export interface ListConnectorResponse {
|
||||||
msg?: string;
|
msg?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ListMiniProgramDomainRequest {
|
||||||
|
/** 企业ID */
|
||||||
|
enterprise_id?: string;
|
||||||
|
/** 渠道ID */
|
||||||
|
connector_id?: string;
|
||||||
|
/** 搜索词 */
|
||||||
|
search_word?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ListMiniProgramDomainResponse {
|
||||||
|
data?: Array<MiniProgramDomain>;
|
||||||
|
code?: number;
|
||||||
|
msg?: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface ListSpaceConnectorRequest {
|
export interface ListSpaceConnectorRequest {
|
||||||
page_token?: string;
|
page_token?: string;
|
||||||
page_size?: number;
|
page_size?: number;
|
||||||
|
|
@ -308,6 +330,12 @@ export interface ManageAccountConnectorResponse {
|
||||||
msg?: string;
|
msg?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface MiniProgramDomain {
|
||||||
|
id?: string;
|
||||||
|
domain?: string;
|
||||||
|
status?: number;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OauthSchema {
|
export interface OauthSchema {
|
||||||
schema_area?: SchemaAreaInfo;
|
schema_area?: SchemaAreaInfo;
|
||||||
copy_link_area?: CopyLinkAreaInfo;
|
copy_link_area?: CopyLinkAreaInfo;
|
||||||
|
|
@ -330,6 +358,20 @@ export interface SchemaAreaInfo {
|
||||||
step_order?: Int64;
|
step_order?: Int64;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface SetMiniProgramDomainRequest {
|
||||||
|
/** 企业ID */
|
||||||
|
enterprise_id?: string;
|
||||||
|
domain_list?: Array<string>;
|
||||||
|
action?: MiniProgramDomainAction;
|
||||||
|
/** 渠道ID */
|
||||||
|
connector_id?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface SetMiniProgramDomainResponse {
|
||||||
|
code?: number;
|
||||||
|
msg?: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface SpaceConnector {
|
export interface SpaceConnector {
|
||||||
/** 发布平台 connector_id */
|
/** 发布平台 connector_id */
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
@ -370,6 +412,16 @@ export interface UpdateConnectorResponse {
|
||||||
callback_token?: string;
|
callback_token?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface UpdateMiniProgramDomainRequest {
|
||||||
|
id: string;
|
||||||
|
domain: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UpdateMiniProgramDomainResponse {
|
||||||
|
code?: number;
|
||||||
|
msg?: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface UpdateOauthConfigRequest {
|
export interface UpdateOauthConfigRequest {
|
||||||
/** 渠道 ID */
|
/** 渠道 ID */
|
||||||
connector_id?: string;
|
connector_id?: string;
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,6 @@ export * from './namespaces/testcase';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class DebuggerApiService<T> {
|
export default class DebuggerApiService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('DebuggerApiService.request is undefined');
|
throw new Error('DebuggerApiService.request is undefined');
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,7 @@ export interface Image {
|
||||||
url?: string;
|
url?: string;
|
||||||
uri?: string;
|
uri?: string;
|
||||||
thumb_url?: string;
|
thumb_url?: string;
|
||||||
|
original_url?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ImageInfo {
|
export interface ImageInfo {
|
||||||
|
|
|
||||||
|
|
@ -82,8 +82,6 @@ export * from './namespaces/table';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class DeveloperApiService<T> {
|
export default class DeveloperApiService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('DeveloperApiService.request is undefined');
|
throw new Error('DeveloperApiService.request is undefined');
|
||||||
|
|
@ -1775,6 +1773,7 @@ export default class DeveloperApiService<T> {
|
||||||
create_from: _req['create_from'],
|
create_from: _req['create_from'],
|
||||||
app_id: _req['app_id'],
|
app_id: _req['app_id'],
|
||||||
business_type: _req['business_type'],
|
business_type: _req['business_type'],
|
||||||
|
folder_id: _req['folder_id'],
|
||||||
};
|
};
|
||||||
return this.request({ url, method, data }, options);
|
return this.request({ url, method, data }, options);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,13 @@ export enum BusinessType {
|
||||||
DouyinAvatar = 1,
|
DouyinAvatar = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum CacheType {
|
||||||
|
/** 缓存关闭 */
|
||||||
|
CacheClosed = 0,
|
||||||
|
/** 前缀缓存 */
|
||||||
|
PrefixCache = 1,
|
||||||
|
}
|
||||||
|
|
||||||
/** 上下文允许传输的类型 */
|
/** 上下文允许传输的类型 */
|
||||||
export enum ContextMode {
|
export enum ContextMode {
|
||||||
Chat = 0,
|
Chat = 0,
|
||||||
|
|
@ -108,6 +115,8 @@ export enum DefaultUserInputType {
|
||||||
Voice = 2,
|
Voice = 2,
|
||||||
/** 语音通话 */
|
/** 语音通话 */
|
||||||
Call = 3,
|
Call = 3,
|
||||||
|
/** 视频通话 */
|
||||||
|
VideoCall = 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum DisablePromptCalling {
|
export enum DisablePromptCalling {
|
||||||
|
|
@ -159,6 +168,16 @@ export enum KnowledgeShowSourceMode {
|
||||||
CardList = 1,
|
CardList = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum KnowledgeType {
|
||||||
|
Coze = 0,
|
||||||
|
Volcano = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum KnowledgeTypeMode {
|
||||||
|
Coze = 0,
|
||||||
|
Volcano = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum MessageFeedbackDetailType {
|
export enum MessageFeedbackDetailType {
|
||||||
UnlikeDefault = 0,
|
UnlikeDefault = 0,
|
||||||
/** 有害信息 */
|
/** 有害信息 */
|
||||||
|
|
@ -204,6 +223,9 @@ export enum ModelFuncConfigType {
|
||||||
MultiAgentRecognize = 18,
|
MultiAgentRecognize = 18,
|
||||||
KnowledgePhoto = 19,
|
KnowledgePhoto = 19,
|
||||||
HookInfo = 20,
|
HookInfo = 20,
|
||||||
|
KnowledgeValcanoUnstructured = 21,
|
||||||
|
KnowledgeValcanoStructured = 22,
|
||||||
|
Model = 23,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum ModelResponseFormat {
|
export enum ModelResponseFormat {
|
||||||
|
|
@ -239,6 +261,12 @@ export enum OnboardingMode {
|
||||||
USE_LLM = 3,
|
USE_LLM = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum PromptMode {
|
||||||
|
Standard = 0,
|
||||||
|
/** 前缀提示词 */
|
||||||
|
PrefixPrompt = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum RecognitionMode {
|
export enum RecognitionMode {
|
||||||
FunctionCall = 1,
|
FunctionCall = 1,
|
||||||
Independent = 2,
|
Independent = 2,
|
||||||
|
|
@ -347,6 +375,20 @@ export enum WorkflowMode {
|
||||||
All = 100,
|
All = 100,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface EmotionConfig {
|
||||||
|
/** 1. 情感类别 */
|
||||||
|
emotion?: string;
|
||||||
|
/** 3. 情感值 */
|
||||||
|
emotion_value?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface I18nLangVoiceParameterConfig {
|
||||||
|
/** 音色id */
|
||||||
|
video_id?: string;
|
||||||
|
/** 情感配置 */
|
||||||
|
emotion_config?: EmotionConfig;
|
||||||
|
}
|
||||||
|
|
||||||
export interface MessageFeedback {
|
export interface MessageFeedback {
|
||||||
/** 反馈类型 */
|
/** 反馈类型 */
|
||||||
feedback_type?: MessageFeedbackType;
|
feedback_type?: MessageFeedbackType;
|
||||||
|
|
@ -363,4 +405,22 @@ export interface UserLabel {
|
||||||
icon_url?: string;
|
icon_url?: string;
|
||||||
jump_link?: string;
|
jump_link?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface VideoCallConfig {
|
||||||
|
/** 是否关闭 */
|
||||||
|
video_call?: boolean;
|
||||||
|
/** 每秒抽取帧数(范围1~24) */
|
||||||
|
frames_per_second?: number;
|
||||||
|
/** 开始说话前抽取秒数(范围0~10s) */
|
||||||
|
pre_speech_seconds?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface VoiceprintRecognitionConfig {
|
||||||
|
/** 是否关闭声纹识别 */
|
||||||
|
close_voice_print_recognition?: boolean;
|
||||||
|
/** 命中阈值 */
|
||||||
|
hit_threshold?: number;
|
||||||
|
/** 空值时是否沿用历史开关 */
|
||||||
|
use_history_if_empty?: boolean;
|
||||||
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,13 @@ export enum ManageAccountConnectorAction {
|
||||||
Remove = 1,
|
Remove = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum MiniProgramDomainAction {
|
||||||
|
/** 添加域名 */
|
||||||
|
Add = 0,
|
||||||
|
/** 移除域名 */
|
||||||
|
Remove = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum OperateType {
|
export enum OperateType {
|
||||||
/** 1 属性修改 2-4 状态修改 */
|
/** 1 属性修改 2-4 状态修改 */
|
||||||
Update = 1,
|
Update = 1,
|
||||||
|
|
|
||||||
|
|
@ -215,6 +215,13 @@ export enum Branch {
|
||||||
Publish = 3,
|
Publish = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum CacheType {
|
||||||
|
/** 缓存关闭 */
|
||||||
|
CacheClosed = 0,
|
||||||
|
/** 前缀缓存 */
|
||||||
|
PrefixCache = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum CardBizType {
|
export enum CardBizType {
|
||||||
Plugin = 1,
|
Plugin = 1,
|
||||||
Workflow = 2,
|
Workflow = 2,
|
||||||
|
|
@ -698,6 +705,9 @@ export enum ModelTagClass {
|
||||||
ModelUserRight = 2,
|
ModelUserRight = 2,
|
||||||
ModelFeature = 3,
|
ModelFeature = 3,
|
||||||
ModelFunction = 4,
|
ModelFunction = 4,
|
||||||
|
ModelPaid = 15,
|
||||||
|
/** 模型运行时能力 */
|
||||||
|
ModelAbility = 16,
|
||||||
/** 本期不做 */
|
/** 本期不做 */
|
||||||
Custom = 20,
|
Custom = 20,
|
||||||
Others = 100,
|
Others = 100,
|
||||||
|
|
@ -2717,6 +2727,7 @@ export interface DraftBotCreateRequest {
|
||||||
/** 关联的抖音分身应用id */
|
/** 关联的抖音分身应用id */
|
||||||
app_id?: string;
|
app_id?: string;
|
||||||
business_type?: bot_common.BusinessType;
|
business_type?: bot_common.BusinessType;
|
||||||
|
folder_id?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DraftBotCreateResponse {
|
export interface DraftBotCreateResponse {
|
||||||
|
|
@ -3804,6 +3815,8 @@ export interface GetTypeListData {
|
||||||
model_list?: Array<Model>;
|
model_list?: Array<Model>;
|
||||||
voice_list?: Array<VoiceType>;
|
voice_list?: Array<VoiceType>;
|
||||||
raw_model_list?: Array<Model>;
|
raw_model_list?: Array<Model>;
|
||||||
|
model_show_family_list?: Array<ModelShowFamily>;
|
||||||
|
default_model_id?: Int64;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GetTypeListRequest {
|
export interface GetTypeListRequest {
|
||||||
|
|
@ -4089,6 +4102,13 @@ export interface InitVoicesInfo {
|
||||||
autoplay?: boolean;
|
autoplay?: boolean;
|
||||||
/** 是否关闭语音通话,true:关闭 false:开启 默认为false */
|
/** 是否关闭语音通话,true:关闭 false:开启 默认为false */
|
||||||
close_voice_call?: boolean;
|
close_voice_call?: boolean;
|
||||||
|
video_call_config?: bot_common.VideoCallConfig;
|
||||||
|
voiceprint_recognition_config?: bot_common.VoiceprintRecognitionConfig;
|
||||||
|
/** key: lang value: voiceConfig */
|
||||||
|
i18nlang_voice_parameter_config?: Record<
|
||||||
|
string,
|
||||||
|
bot_common.I18nLangVoiceParameterConfig
|
||||||
|
>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Intent {
|
export interface Intent {
|
||||||
|
|
@ -4420,9 +4440,8 @@ export interface Model {
|
||||||
model_params?: Array<ModelParameter>;
|
model_params?: Array<ModelParameter>;
|
||||||
model_desc?: Array<ModelDescGroup>;
|
model_desc?: Array<ModelDescGroup>;
|
||||||
/** 模型功能配置 */
|
/** 模型功能配置 */
|
||||||
func_config?: Record<
|
func_config?: Partial<
|
||||||
bot_common.ModelFuncConfigType,
|
Record<bot_common.ModelFuncConfigType, bot_common.ModelFuncConfigStatus>
|
||||||
bot_common.ModelFuncConfigStatus
|
|
||||||
>;
|
>;
|
||||||
/** 方舟模型节点名称 */
|
/** 方舟模型节点名称 */
|
||||||
endpoint_name?: string;
|
endpoint_name?: string;
|
||||||
|
|
@ -4438,6 +4457,13 @@ export interface Model {
|
||||||
model_status_details?: ModelStatusDetails;
|
model_status_details?: ModelStatusDetails;
|
||||||
/** 模型能力 */
|
/** 模型能力 */
|
||||||
model_ability?: ModelAbility;
|
model_ability?: ModelAbility;
|
||||||
|
model_show_family_id?: string;
|
||||||
|
hot_flag?: number;
|
||||||
|
hot_ranking?: number;
|
||||||
|
online_time?: Int64;
|
||||||
|
/** 0-用户可见 1-用户不可见 */
|
||||||
|
config_type?: number;
|
||||||
|
offline_time?: Int64;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ModelAbility {
|
export interface ModelAbility {
|
||||||
|
|
@ -4449,6 +4475,12 @@ export interface ModelAbility {
|
||||||
image_understanding?: boolean;
|
image_understanding?: boolean;
|
||||||
/** 是否支持视频理解 */
|
/** 是否支持视频理解 */
|
||||||
video_understanding?: boolean;
|
video_understanding?: boolean;
|
||||||
|
/** 是否支持音频理解 */
|
||||||
|
audio_understanding?: boolean;
|
||||||
|
/** 是否支持多模态 */
|
||||||
|
support_multi_modal?: boolean;
|
||||||
|
/** 是否支持续写 */
|
||||||
|
prefill_resp?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ModelDescGroup {
|
export interface ModelDescGroup {
|
||||||
|
|
@ -4474,6 +4506,13 @@ export interface ModelInfo {
|
||||||
response_format?: bot_common.ModelResponseFormat;
|
response_format?: bot_common.ModelResponseFormat;
|
||||||
/** 用户选择的模型风格 */
|
/** 用户选择的模型风格 */
|
||||||
model_style?: bot_common.ModelStyle;
|
model_style?: bot_common.ModelStyle;
|
||||||
|
cache_type?: bot_common.CacheType;
|
||||||
|
/** sp拼接当前时间 */
|
||||||
|
sp_current_time?: boolean;
|
||||||
|
/** sp拼接防泄露指令 */
|
||||||
|
sp_anti_leak?: boolean;
|
||||||
|
/** sp拼接声纹信息 */
|
||||||
|
sp_voice_info?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ModelParamClass {
|
export interface ModelParamClass {
|
||||||
|
|
@ -4510,6 +4549,7 @@ export interface ModelParameter {
|
||||||
options?: Array<Option>;
|
options?: Array<Option>;
|
||||||
/** 参数分类,"Generation diversity", "Input and output length", "Output format" */
|
/** 参数分类,"Generation diversity", "Input and output length", "Output format" */
|
||||||
param_class?: ModelParamClass;
|
param_class?: ModelParamClass;
|
||||||
|
custom_flag?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ModelQuota {
|
export interface ModelQuota {
|
||||||
|
|
@ -4546,6 +4586,14 @@ export interface ModelSeriesInfo {
|
||||||
model_tips?: string;
|
model_tips?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ModelShowFamily {
|
||||||
|
id?: Int64;
|
||||||
|
icon?: string;
|
||||||
|
iconUrl?: string;
|
||||||
|
name?: string;
|
||||||
|
ranking?: number;
|
||||||
|
}
|
||||||
|
|
||||||
export interface ModelStatusDetails {
|
export interface ModelStatusDetails {
|
||||||
/** 是否为新模型 */
|
/** 是否为新模型 */
|
||||||
is_new_model?: boolean;
|
is_new_model?: boolean;
|
||||||
|
|
@ -4929,7 +4977,7 @@ export interface PluginInfo {
|
||||||
/** 插件统计数据 */
|
/** 插件统计数据 */
|
||||||
statistic_data?: PluginStatisticData;
|
statistic_data?: PluginStatisticData;
|
||||||
/** 公共参数列表 */
|
/** 公共参数列表 */
|
||||||
common_params?: Record<ParameterLocation, Array<commonParamSchema>>;
|
common_params?: Partial<Record<ParameterLocation, Array<commonParamSchema>>>;
|
||||||
/** plugin的商品上下架状态 */
|
/** plugin的商品上下架状态 */
|
||||||
plugin_product_list_status?: product_common.ProductStatus;
|
plugin_product_list_status?: product_common.ProductStatus;
|
||||||
/** plugin的商品状态(组合状态) */
|
/** plugin的商品状态(组合状态) */
|
||||||
|
|
@ -4961,7 +5009,7 @@ export interface PluginInfoForPlayground {
|
||||||
space_id?: string;
|
space_id?: string;
|
||||||
/** 插件统计数据 */
|
/** 插件统计数据 */
|
||||||
statistic_data?: PluginStatisticData;
|
statistic_data?: PluginStatisticData;
|
||||||
common_params?: Record<ParameterLocation, Array<commonParamSchema>>;
|
common_params?: Partial<Record<ParameterLocation, Array<commonParamSchema>>>;
|
||||||
/** plugin的商品状态 */
|
/** plugin的商品状态 */
|
||||||
plugin_product_status?: product_common.ProductStatus;
|
plugin_product_status?: product_common.ProductStatus;
|
||||||
/** plugin商品下架类型 */
|
/** plugin商品下架类型 */
|
||||||
|
|
@ -4984,7 +5032,7 @@ export interface PluginMetaInfo {
|
||||||
service_token?: string;
|
service_token?: string;
|
||||||
/** json序列化 */
|
/** json序列化 */
|
||||||
oauth_info?: string;
|
oauth_info?: string;
|
||||||
common_params?: Record<ParameterLocation, Array<commonParamSchema>>;
|
common_params?: Partial<Record<ParameterLocation, Array<commonParamSchema>>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PluginParameter {
|
export interface PluginParameter {
|
||||||
|
|
@ -5113,6 +5161,8 @@ export interface PublishConnectorInfo {
|
||||||
auth_status?: bot_user_auth.UserAuthStatus;
|
auth_status?: bot_user_auth.UserAuthStatus;
|
||||||
/** 补全信息按钮的 url */
|
/** 补全信息按钮的 url */
|
||||||
to_complete_info_url?: string;
|
to_complete_info_url?: string;
|
||||||
|
/** 渠道发布提示 */
|
||||||
|
connector_tips?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PublishConnectorListRequest {
|
export interface PublishConnectorListRequest {
|
||||||
|
|
@ -5348,7 +5398,7 @@ export interface RegisterPluginMetaRequest {
|
||||||
oauth_info?: string;
|
oauth_info?: string;
|
||||||
space_id: string;
|
space_id: string;
|
||||||
/** 公共参数列表 */
|
/** 公共参数列表 */
|
||||||
common_params?: Record<ParameterLocation, Array<commonParamSchema>>;
|
common_params?: Partial<Record<ParameterLocation, Array<commonParamSchema>>>;
|
||||||
/** 默认0 默认原来表单创建方式,1 coze ide创建方式 */
|
/** 默认0 默认原来表单创建方式,1 coze ide创建方式 */
|
||||||
creation_method?: CreationMethod;
|
creation_method?: CreationMethod;
|
||||||
/** ide创建下的代码编程语言 */
|
/** ide创建下的代码编程语言 */
|
||||||
|
|
@ -5950,6 +6000,9 @@ export interface TabDisplayItems {
|
||||||
knowledge_photo_tab_status?: TabStatus;
|
knowledge_photo_tab_status?: TabStatus;
|
||||||
hook_info_tab_status?: TabStatus;
|
hook_info_tab_status?: TabStatus;
|
||||||
default_user_input_tab_status?: TabStatus;
|
default_user_input_tab_status?: TabStatus;
|
||||||
|
knowledge_volcano_unstructured_tab_status?: TabStatus;
|
||||||
|
knowledge_volcano_structured_tab_status?: TabStatus;
|
||||||
|
model_tab_status?: TabStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** deprecated */
|
/** deprecated */
|
||||||
|
|
@ -6286,7 +6339,7 @@ export interface UpdatePluginMetaRequest {
|
||||||
service_token?: string;
|
service_token?: string;
|
||||||
/** json序列化 */
|
/** json序列化 */
|
||||||
oauth_info?: string;
|
oauth_info?: string;
|
||||||
common_params?: Record<ParameterLocation, Array<commonParamSchema>>;
|
common_params?: Partial<Record<ParameterLocation, Array<commonParamSchema>>>;
|
||||||
creation_method?: CreationMethod;
|
creation_method?: CreationMethod;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,16 +20,20 @@
|
||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
|
|
||||||
import * as base from './namespaces/base';
|
import * as base from './namespaces/base';
|
||||||
|
import * as benefit_common from './namespaces/benefit_common';
|
||||||
|
import * as copilot_common from './namespaces/copilot_common';
|
||||||
|
import * as oapi from './namespaces/oapi';
|
||||||
import * as open_api from './namespaces/open_api';
|
import * as open_api from './namespaces/open_api';
|
||||||
|
|
||||||
export { base, open_api };
|
export { base, benefit_common, copilot_common, oapi, open_api };
|
||||||
export * from './namespaces/base';
|
export * from './namespaces/base';
|
||||||
|
export * from './namespaces/benefit_common';
|
||||||
|
export * from './namespaces/copilot_common';
|
||||||
|
export * from './namespaces/oapi';
|
||||||
export * from './namespaces/open_api';
|
export * from './namespaces/open_api';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class DeveloperBackendService<T> {
|
export default class DeveloperBackendService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('DeveloperBackendService.request is undefined');
|
throw new Error('DeveloperBackendService.request is undefined');
|
||||||
|
|
@ -178,7 +182,11 @@ export default class DeveloperBackendService<T> {
|
||||||
const _req = req;
|
const _req = req;
|
||||||
const url = this.genBaseURL('/api/open/playground/api_info');
|
const url = this.genBaseURL('/api/open/playground/api_info');
|
||||||
const method = 'GET';
|
const method = 'GET';
|
||||||
const params = { url_key: _req['url_key'], Base: _req['Base'] };
|
const params = {
|
||||||
|
url_key: _req['url_key'],
|
||||||
|
workflow_id: _req['workflow_id'],
|
||||||
|
Base: _req['Base'],
|
||||||
|
};
|
||||||
return this.request({ url, method, params }, options);
|
return this.request({ url, method, params }, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -201,6 +209,8 @@ export default class DeveloperBackendService<T> {
|
||||||
/**
|
/**
|
||||||
* POST /api/developer_backend/playground/sync_from_apihub
|
* POST /api/developer_backend/playground/sync_from_apihub
|
||||||
*
|
*
|
||||||
|
* openapi 用的 api
|
||||||
|
*
|
||||||
* 内网接口,从 apihub 同步 openapi swagger
|
* 内网接口,从 apihub 同步 openapi swagger
|
||||||
*
|
*
|
||||||
* 从 apihub 同步最新的 openapi 接口与描述
|
* 从 apihub 同步最新的 openapi 接口与描述
|
||||||
|
|
@ -240,6 +250,20 @@ export default class DeveloperBackendService<T> {
|
||||||
return this.request({ url, method, data, headers }, options);
|
return this.request({ url, method, data, headers }, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** GET /api/developer_backend/playground/all_api_info */
|
||||||
|
GetPlaygroundAllApiInfo(
|
||||||
|
req?: open_api.GetPlaygroundAllApiInfoReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.GetPlaygroundAllApiInfoResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL(
|
||||||
|
'/api/developer_backend/playground/all_api_info',
|
||||||
|
);
|
||||||
|
const method = 'GET';
|
||||||
|
const params = { Base: _req['Base'] };
|
||||||
|
return this.request({ url, method, params }, options);
|
||||||
|
}
|
||||||
|
|
||||||
/** GET /api/open/permission/oauth_quickstart_config */
|
/** GET /api/open/permission/oauth_quickstart_config */
|
||||||
OauthQuickstartConfig(
|
OauthQuickstartConfig(
|
||||||
req?: open_api.OauthQuickstartConfigReq,
|
req?: open_api.OauthQuickstartConfigReq,
|
||||||
|
|
@ -251,5 +275,330 @@ export default class DeveloperBackendService<T> {
|
||||||
const params = { client_type: _req['client_type'], Base: _req['Base'] };
|
const params = { client_type: _req['client_type'], Base: _req['Base'] };
|
||||||
return this.request({ url, method, params }, options);
|
return this.request({ url, method, params }, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POST /api/open/api_apps/update
|
||||||
|
*
|
||||||
|
* 4. 更新回调
|
||||||
|
*/
|
||||||
|
UpdateApiApp(
|
||||||
|
req: open_api.UpdateApiAppReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.UpdateApiAppResp> {
|
||||||
|
const _req = req;
|
||||||
|
const url = this.genBaseURL('/api/open/api_apps/update');
|
||||||
|
const method = 'POST';
|
||||||
|
const data = {
|
||||||
|
id: _req['id'],
|
||||||
|
callback_url: _req['callback_url'],
|
||||||
|
name: _req['name'],
|
||||||
|
Base: _req['Base'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, data }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POST /api/open/api_apps/delete
|
||||||
|
*
|
||||||
|
* 5. 删除回调
|
||||||
|
*/
|
||||||
|
DeleteApiApp(
|
||||||
|
req: open_api.DeleteApiAppReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.DeleteApiAppResp> {
|
||||||
|
const _req = req;
|
||||||
|
const url = this.genBaseURL('/api/open/api_apps/delete');
|
||||||
|
const method = 'POST';
|
||||||
|
const data = { id: _req['id'], Base: _req['Base'] };
|
||||||
|
return this.request({ url, method, data }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GET /api/open/api_apps/list_normal
|
||||||
|
*
|
||||||
|
* --- API 回调能力 ---
|
||||||
|
*
|
||||||
|
* 技术方案:
|
||||||
|
*
|
||||||
|
* 网页上用的 api
|
||||||
|
*
|
||||||
|
* 1. 获取普通回调列表
|
||||||
|
*/
|
||||||
|
GetNormalApiAppList(
|
||||||
|
req?: open_api.GetNormalApiAppListReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.GetNormalApiAppListResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL('/api/open/api_apps/list_normal');
|
||||||
|
const method = 'GET';
|
||||||
|
const params = {
|
||||||
|
org_id: _req['org_id'],
|
||||||
|
page_token: _req['page_token'],
|
||||||
|
page_size: _req['page_size'],
|
||||||
|
Base: _req['Base'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, params }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POST /api/open/api_apps/create
|
||||||
|
*
|
||||||
|
* 3. 创建回调
|
||||||
|
*/
|
||||||
|
CreateApiApp(
|
||||||
|
req: open_api.CreateApiAppReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.CreateApiAppResp> {
|
||||||
|
const _req = req;
|
||||||
|
const url = this.genBaseURL('/api/open/api_apps/create');
|
||||||
|
const method = 'POST';
|
||||||
|
const data = {
|
||||||
|
org_id: _req['org_id'],
|
||||||
|
app_type: _req['app_type'],
|
||||||
|
name: _req['name'],
|
||||||
|
connector_id: _req['connector_id'],
|
||||||
|
callback_url: _req['callback_url'],
|
||||||
|
verify_token: _req['verify_token'],
|
||||||
|
Base: _req['Base'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, data }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GET /api/open/api_apps/list_connector
|
||||||
|
*
|
||||||
|
* 2. 获取渠道回调列表
|
||||||
|
*/
|
||||||
|
GetConnectorApiAppList(
|
||||||
|
req?: open_api.GetConnectorApiAppListReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.GetConnectorApiAppListResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL('/api/open/api_apps/list_connector');
|
||||||
|
const method = 'GET';
|
||||||
|
const params = {
|
||||||
|
org_id: _req['org_id'],
|
||||||
|
page_token: _req['page_token'],
|
||||||
|
page_size: _req['page_size'],
|
||||||
|
Base: _req['Base'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, params }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POST /api/open/api_apps/unsubscribe
|
||||||
|
*
|
||||||
|
* 7. 取消订阅事件
|
||||||
|
*/
|
||||||
|
UnsubscribeApiAppEvent(
|
||||||
|
req: open_api.UnsubscribeApiAppEventReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.UnsubscribeApiAppEventResp> {
|
||||||
|
const _req = req;
|
||||||
|
const url = this.genBaseURL('/api/open/api_apps/unsubscribe');
|
||||||
|
const method = 'POST';
|
||||||
|
const data = {
|
||||||
|
id: _req['id'],
|
||||||
|
event_type: _req['event_type'],
|
||||||
|
Base: _req['Base'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, data }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POST /api/open/api_apps/subscribe
|
||||||
|
*
|
||||||
|
* 6. 订阅事件
|
||||||
|
*/
|
||||||
|
SubscribeApiAppEvent(
|
||||||
|
req: open_api.SubscribeApiAppEventReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.SubscribeApiAppEventResp> {
|
||||||
|
const _req = req;
|
||||||
|
const url = this.genBaseURL('/api/open/api_apps/subscribe');
|
||||||
|
const method = 'POST';
|
||||||
|
const data = {
|
||||||
|
id: _req['id'],
|
||||||
|
event_type: _req['event_type'],
|
||||||
|
Base: _req['Base'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, data }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GET /v1/api_apps
|
||||||
|
*
|
||||||
|
* --- API 回调能力 ---
|
||||||
|
*
|
||||||
|
* 技术方案:
|
||||||
|
*
|
||||||
|
* openapi
|
||||||
|
*
|
||||||
|
* 1. 获取普通回调列表
|
||||||
|
*/
|
||||||
|
GetApiAppListOpen(
|
||||||
|
req?: open_api.GetApiAppListOpenReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.GetApiAppListOpenResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL('/v1/api_apps');
|
||||||
|
const method = 'GET';
|
||||||
|
const params = {
|
||||||
|
page_token: _req['page_token'],
|
||||||
|
page_size: _req['page_size'],
|
||||||
|
app_type: _req['app_type'],
|
||||||
|
Base: _req['Base'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, params }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POST /v1/api_apps
|
||||||
|
*
|
||||||
|
* 2. 创建回调
|
||||||
|
*/
|
||||||
|
CreateApiAppOpen(
|
||||||
|
req?: open_api.CreateApiAppOpenReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.CreateApiAppOpenResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL('/v1/api_apps');
|
||||||
|
const method = 'POST';
|
||||||
|
const data = {
|
||||||
|
app_type: _req['app_type'],
|
||||||
|
name: _req['name'],
|
||||||
|
connector_id: _req['connector_id'],
|
||||||
|
Base: _req['Base'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, data }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POST /api/open/playground/save_run_history
|
||||||
|
*
|
||||||
|
* 调试页面,保存/获取运行记录
|
||||||
|
*/
|
||||||
|
SavePlaygroundRunHistory(
|
||||||
|
req?: open_api.SavePlaygroundRunHistoryReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.SavePlaygroundRunHistoryResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL('/api/open/playground/save_run_history');
|
||||||
|
const method = 'POST';
|
||||||
|
const data = {
|
||||||
|
path: _req['path'],
|
||||||
|
method: _req['method'],
|
||||||
|
record: _req['record'],
|
||||||
|
org_id: _req['org_id'],
|
||||||
|
Base: _req['Base'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, data }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** GET /api/open/playground/run_histroty */
|
||||||
|
GetPlaygroundRunHistory(
|
||||||
|
req?: open_api.GetPlaygroundRunHistoryReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.GetPlaygroundRunHistoryResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL('/api/open/playground/run_histroty');
|
||||||
|
const method = 'GET';
|
||||||
|
const params = {
|
||||||
|
path: _req['path'],
|
||||||
|
method: _req['method'],
|
||||||
|
org_id: _req['org_id'],
|
||||||
|
Base: _req['Base'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, params }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DELETE /v1/api_apps/:api_app_id/events
|
||||||
|
*
|
||||||
|
* 6. 取消订阅事件
|
||||||
|
*/
|
||||||
|
UnsubscribeApiAppEventOpen(
|
||||||
|
req?: open_api.UnsubscribeApiAppEventOpenReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.UnsubscribeApiAppEventOpenResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL(`/v1/api_apps/${_req['api_app_id']}/events`);
|
||||||
|
const method = 'DELETE';
|
||||||
|
const data = { event_types: _req['event_types'] };
|
||||||
|
const params = { Base: _req['Base'] };
|
||||||
|
return this.request({ url, method, data, params }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PUT /v1/api_apps/:api_app_id
|
||||||
|
*
|
||||||
|
* 3. 更新回调
|
||||||
|
*/
|
||||||
|
UpdateApiAppOpen(
|
||||||
|
req?: open_api.UpdateApiAppOpenReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.UpdateApiAppOpenResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL(`/v1/api_apps/${_req['api_app_id']}`);
|
||||||
|
const method = 'PUT';
|
||||||
|
const data = {
|
||||||
|
name: _req['name'],
|
||||||
|
callback_url: _req['callback_url'],
|
||||||
|
Base: _req['Base'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, data }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DELETE /v1/api_apps/:api_app_id
|
||||||
|
*
|
||||||
|
* 4. 删除回调
|
||||||
|
*/
|
||||||
|
DeleteApiAppOpen(
|
||||||
|
req?: open_api.DeleteApiAppOpenReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.DeleteApiAppOpenResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL(`/v1/api_apps/${_req['api_app_id']}`);
|
||||||
|
const method = 'DELETE';
|
||||||
|
const params = { Base: _req['Base'] };
|
||||||
|
return this.request({ url, method, params }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POST /v1/api_apps/:api_app_id/events
|
||||||
|
*
|
||||||
|
* 5. 订阅事件
|
||||||
|
*/
|
||||||
|
SubscribeApiAppEventOpen(
|
||||||
|
req?: open_api.SubscribeApiAppEventOpenReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.SubscribeApiAppEventOpenResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL(`/v1/api_apps/${_req['api_app_id']}/events`);
|
||||||
|
const method = 'POST';
|
||||||
|
const data = { event_types: _req['event_types'], Base: _req['Base'] };
|
||||||
|
return this.request({ url, method, data }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GET /v1/api_apps/:api_app_id/events
|
||||||
|
*
|
||||||
|
* 7. 获取订阅事件
|
||||||
|
*/
|
||||||
|
ListSubscribedApiAppEventOpen(
|
||||||
|
req?: open_api.ListSubscribedApiAppEventOpenReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<open_api.ListSubscribedApiAppEventOpenResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL(`/v1/api_apps/${_req['api_app_id']}/events`);
|
||||||
|
const method = 'GET';
|
||||||
|
const params = {
|
||||||
|
page_token: _req['page_token'],
|
||||||
|
page_size: _req['page_size'],
|
||||||
|
Base: _req['Base'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, params }, options);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
|
|
||||||
import * as base from './base';
|
import * as base from './base';
|
||||||
|
import * as benefit_common from './benefit_common';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
|
|
@ -32,11 +33,26 @@ export enum AggregateDimension {
|
||||||
Yearly = 5,
|
Yearly = 5,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum ApiAppEventStatus {
|
||||||
|
Unsubscribed = 1,
|
||||||
|
Subscribed = 2,
|
||||||
|
}
|
||||||
|
|
||||||
export enum APISource {
|
export enum APISource {
|
||||||
OpenAPI = 1,
|
OpenAPI = 1,
|
||||||
Coze = 2,
|
Coze = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum AppType {
|
||||||
|
Normal = 1,
|
||||||
|
Connector = 2,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum ConnectorApiAppStatus {
|
||||||
|
NotConfigured = 1,
|
||||||
|
Configured = 2,
|
||||||
|
}
|
||||||
|
|
||||||
export enum CozeVersion {
|
export enum CozeVersion {
|
||||||
Inhouse = 1,
|
Inhouse = 1,
|
||||||
Release = 2,
|
Release = 2,
|
||||||
|
|
@ -63,6 +79,7 @@ export enum MeticsType {
|
||||||
export enum PermissionScope {
|
export enum PermissionScope {
|
||||||
Workspace = 0,
|
Workspace = 0,
|
||||||
Account = 1,
|
Account = 1,
|
||||||
|
Enterprise = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum PermissionType {
|
export enum PermissionType {
|
||||||
|
|
@ -78,11 +95,27 @@ export enum PlaygroundItemType {
|
||||||
RTCSDK = 3,
|
RTCSDK = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 新需求 上线后
|
||||||
|
所有限流对象都在 path 维度下 */
|
||||||
export enum PrincipleType {
|
export enum PrincipleType {
|
||||||
|
/** 默认限流
|
||||||
|
deprecated, 没有什么作用. 没有什么场景一个 pat 共享所有 path 的限流的 */
|
||||||
PAT = 1,
|
PAT = 1,
|
||||||
|
/** global rate limit. 整个 path 的限流,保证服务稳定性,是一个服务能力的上限 */
|
||||||
API = 2,
|
API = 2,
|
||||||
|
/** per user rate limit. 每个 user 的限流,用来资源分配的 */
|
||||||
PATAndAPI = 3,
|
PATAndAPI = 3,
|
||||||
|
/** deprecated, 没有什么用 */
|
||||||
BotIDAndAPI = 4,
|
BotIDAndAPI = 4,
|
||||||
|
/** 对空间(space_id)的限流,将来从 record 迁移过来 */
|
||||||
|
PerWorkspace = 5,
|
||||||
|
/** 特殊限流, 优先级高于默认限流(会覆盖除 global rate limit(API=2) 之外的限流)
|
||||||
|
针对特定 user_id 的特殊限流配置 */
|
||||||
|
SpecialUser = 100,
|
||||||
|
/** 针对特定 space_id 的特殊限流配置 */
|
||||||
|
SpecialWorkspace = 101,
|
||||||
|
/** 针对特定企业 enterprise_id 的特殊限流配置 */
|
||||||
|
SpecialEnterprise = 102,
|
||||||
}
|
}
|
||||||
|
|
||||||
/** --- API 数据页展示 ---
|
/** --- API 数据页展示 ---
|
||||||
|
|
@ -98,11 +131,34 @@ export enum QueryRange {
|
||||||
Today = 4,
|
Today = 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum RateLimitEntityType {
|
||||||
|
/** 给 RateLimitType=1(Global) 预留的, 实际上 entity id 为空,没有啥用 */
|
||||||
|
Global = 1,
|
||||||
|
/** 给 RateLimitType=2(Base) 用的,entity type 有三种 free/professional/enterprise */
|
||||||
|
BenefitLevel = 2,
|
||||||
|
CozeUID = 3,
|
||||||
|
EnterpriseID = 4,
|
||||||
|
/** 目前仅 chat 接口可以 */
|
||||||
|
SpaceID = 5,
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 限流 */
|
||||||
|
export enum RateLimitType {
|
||||||
|
/** 全局限流,用户无关 */
|
||||||
|
Global = 1,
|
||||||
|
/** 全局限流,用户无关,权益等级相关(分 free/professional/enterprise 3 挡) */
|
||||||
|
Base = 2,
|
||||||
|
/** 扩容限流,用户相关 */
|
||||||
|
Expand = 3,
|
||||||
|
}
|
||||||
|
|
||||||
export enum TrafficType {
|
export enum TrafficType {
|
||||||
/** 默认流量 */
|
/** 默认流量: 普通版(个人免费) */
|
||||||
Default = 0,
|
Default = 0,
|
||||||
/** 专业版 */
|
/** 专业版(个人付费) */
|
||||||
Professional = 1,
|
Professional = 1,
|
||||||
|
/** 企业版 */
|
||||||
|
Enterprise = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum VisibleStatus {
|
export enum VisibleStatus {
|
||||||
|
|
@ -131,6 +187,39 @@ export interface APIAnalyticsResp {
|
||||||
BaseResp?: base.BaseResp;
|
BaseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ApiAppEvent {
|
||||||
|
event_type: string;
|
||||||
|
name: string;
|
||||||
|
status: ApiAppEventStatus;
|
||||||
|
desc?: string;
|
||||||
|
doc?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ApiAppEventOpen {
|
||||||
|
name?: string;
|
||||||
|
description?: string;
|
||||||
|
event_type?: string;
|
||||||
|
api_app_id?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ApiAppOpen {
|
||||||
|
id: string;
|
||||||
|
type: string;
|
||||||
|
connector_id?: string;
|
||||||
|
verify_token: string;
|
||||||
|
callback_url?: string;
|
||||||
|
events?: Record<string, ApiAppEventOpen>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ApiAppOpenV2 {
|
||||||
|
id: string;
|
||||||
|
app_type: string;
|
||||||
|
name?: string;
|
||||||
|
connector_id?: string;
|
||||||
|
verify_token: string;
|
||||||
|
callback_url?: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface APIDetailsData {
|
export interface APIDetailsData {
|
||||||
rows: Array<DetailRow>;
|
rows: Array<DetailRow>;
|
||||||
}
|
}
|
||||||
|
|
@ -155,6 +244,108 @@ export interface APIFileterInfo {
|
||||||
version?: string;
|
version?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface CheckVPCListReq {
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CheckVPCListResp {
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ConnectorApiApp {
|
||||||
|
id: string;
|
||||||
|
connector_id: string;
|
||||||
|
connector_name: string;
|
||||||
|
connector_icon_url?: string;
|
||||||
|
status: ConnectorApiAppStatus;
|
||||||
|
/** 如果没有配置过,这个就没有 */
|
||||||
|
verify_token?: string;
|
||||||
|
callback_url?: string;
|
||||||
|
events?: Array<ApiAppEvent>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ConsumeBenefitChangeReq {
|
||||||
|
VolcResPushEvent?: VolcResPushEvent;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ConsumeBenefitChangeResp {
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 创建回调应用 */
|
||||||
|
export interface CreateApiAppOpenReq {
|
||||||
|
/** 必填 */
|
||||||
|
app_type?: string;
|
||||||
|
/** 回调应用的名称, app_type=normal 时必传 */
|
||||||
|
name?: string;
|
||||||
|
/** app_type=connector 时必传 */
|
||||||
|
connector_id?: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CreateApiAppOpenResp {
|
||||||
|
code?: Int64;
|
||||||
|
msg?: string;
|
||||||
|
data?: ApiAppOpenV2;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CreateApiAppReq {
|
||||||
|
org_id?: string;
|
||||||
|
app_type: AppType;
|
||||||
|
name: string;
|
||||||
|
/** app_type=connector 时必传 */
|
||||||
|
connector_id?: string;
|
||||||
|
/** app_type=normal 时必传 */
|
||||||
|
callback_url?: string;
|
||||||
|
/** app_type=normal 时必传 64 位字符 [a-zA-Z0-9] */
|
||||||
|
verify_token?: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CreateApiAppResp {
|
||||||
|
id?: string;
|
||||||
|
verify_token?: string;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 创建限流规则 */
|
||||||
|
export interface CreateRateLimitReq {
|
||||||
|
/** id 不用传 */
|
||||||
|
rate_limit: RateLimitConf;
|
||||||
|
/** 幂等 key, 如果有重复的,不会报错,会返回已经创建成功的 id,但不会创建多个 */
|
||||||
|
uniq_key?: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CreateRateLimitResp {
|
||||||
|
/** 创建的限流规则的 id */
|
||||||
|
id?: Int64;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 删除回调配置 */
|
||||||
|
export interface DeleteApiAppOpenReq {
|
||||||
|
api_app_id?: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeleteApiAppOpenResp {
|
||||||
|
code?: Int64;
|
||||||
|
msg?: string;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeleteApiAppReq {
|
||||||
|
id: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeleteApiAppResp {
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
export interface DetailRow {
|
export interface DetailRow {
|
||||||
total_token: string;
|
total_token: string;
|
||||||
single_token: string;
|
single_token: string;
|
||||||
|
|
@ -165,10 +356,50 @@ export interface DetailRow {
|
||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface GetApiAppByConnectorIDReq {
|
||||||
|
ConnectorID: Int64;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiAppByConnectorIDResp {
|
||||||
|
ApiApp?: ApiAppOpen;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** --- API 回调能力 ---
|
||||||
|
技术方案:
|
||||||
|
openapi
|
||||||
|
获取列表 */
|
||||||
|
export interface GetApiAppListOpenReq {
|
||||||
|
/** 页码 */
|
||||||
|
page_token?: string;
|
||||||
|
/** 每页大小 */
|
||||||
|
page_size?: number;
|
||||||
|
/** 不传的话就都返回 */
|
||||||
|
app_type?: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiAppListOpenResp {
|
||||||
|
code?: Int64;
|
||||||
|
msg?: string;
|
||||||
|
data?: GetApiAppListOpenRespData;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiAppListOpenRespData {
|
||||||
|
items?: Array<ApiAppOpenV2>;
|
||||||
|
/** 分页 token, 第一页传空,下一页通过上一个返回的 next_page_token */
|
||||||
|
next_page_token?: string;
|
||||||
|
/** 是否还有更多数据 */
|
||||||
|
has_more?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
export interface GetAPIVisibilityRequest {
|
export interface GetAPIVisibilityRequest {
|
||||||
path?: string;
|
path?: string;
|
||||||
source?: APISource;
|
source?: APISource;
|
||||||
version?: string;
|
version?: string;
|
||||||
|
http_method?: string;
|
||||||
Base?: base.Base;
|
Base?: base.Base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -178,6 +409,42 @@ export interface GetAPIVisibilityResponse {
|
||||||
BaseResp?: base.BaseResp;
|
BaseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface GetConnectorApiAppListReq {
|
||||||
|
org_id?: string;
|
||||||
|
page_token?: string;
|
||||||
|
/** 每页大小 */
|
||||||
|
page_size?: number;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetConnectorApiAppListResp {
|
||||||
|
api_apps?: Array<ConnectorApiApp>;
|
||||||
|
next_page_token?: string;
|
||||||
|
/** 是否还有更多数据 */
|
||||||
|
has_more?: boolean;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** --- API 回调能力 ---
|
||||||
|
技术方案:
|
||||||
|
网页上用的 api */
|
||||||
|
export interface GetNormalApiAppListReq {
|
||||||
|
org_id?: string;
|
||||||
|
/** 分页 token, 第一页传空,下一页通过上一个返回的 next_page_token */
|
||||||
|
page_token?: string;
|
||||||
|
/** 每页大小 */
|
||||||
|
page_size?: number;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetNormalApiAppListResp {
|
||||||
|
api_apps?: Array<NormalApiApp>;
|
||||||
|
next_page_token?: string;
|
||||||
|
/** 是否还有更多数据 */
|
||||||
|
has_more?: boolean;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
/** 获取 path 不同鉴权身份的鉴权点 */
|
/** 获取 path 不同鉴权身份的鉴权点 */
|
||||||
export interface GetPermissionByPathReq {
|
export interface GetPermissionByPathReq {
|
||||||
path?: string;
|
path?: string;
|
||||||
|
|
@ -200,7 +467,7 @@ export interface GetPermissionListReq {
|
||||||
key_list?: Array<string>;
|
key_list?: Array<string>;
|
||||||
/** 可以用id来精准匹配 */
|
/** 可以用id来精准匹配 */
|
||||||
permission_id_list?: Array<string>;
|
permission_id_list?: Array<string>;
|
||||||
/** 可以选择传入 “release” “inhouse” 来选择版本 */
|
/** 可以选择传入 "release" "inhouse" 来选择版本 */
|
||||||
version?: CozeVersion;
|
version?: CozeVersion;
|
||||||
permission_type?: PermissionType;
|
permission_type?: PermissionType;
|
||||||
/** 完整 permission key 匹配. 格式 Bog::chat,并同时会把分组节点查询出来。 key_list 用于 v1 版本查询 */
|
/** 完整 permission key 匹配. 格式 Bog::chat,并同时会把分组节点查询出来。 key_list 用于 v1 版本查询 */
|
||||||
|
|
@ -214,7 +481,7 @@ export interface GetPermissionListReqV2 {
|
||||||
key_list?: Array<string>;
|
key_list?: Array<string>;
|
||||||
/** 可以用id来精准匹配 */
|
/** 可以用id来精准匹配 */
|
||||||
permission_id_list?: Array<string>;
|
permission_id_list?: Array<string>;
|
||||||
/** 可以选择传入 “release” “inhouse” 来选择版本 */
|
/** 可以选择传入 "release" "inhouse" 来选择版本 */
|
||||||
version?: CozeVersion;
|
version?: CozeVersion;
|
||||||
permission_type?: PermissionType;
|
permission_type?: PermissionType;
|
||||||
Base?: base.Base;
|
Base?: base.Base;
|
||||||
|
|
@ -234,8 +501,20 @@ export interface GetPermissionListRespV2 {
|
||||||
BaseResp?: base.BaseResp;
|
BaseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface GetPlaygroundAllApiInfoReq {
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetPlaygroundAllApiInfoResp {
|
||||||
|
/** swagger openapi specification. 目前是 3.0.3 */
|
||||||
|
swagger_openapi_spec: string;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
export interface GetPlaygroundApiInfoReq {
|
export interface GetPlaygroundApiInfoReq {
|
||||||
url_key: string;
|
url_key: string;
|
||||||
|
/** 工作流/对话流执行:返回上一次试运行的参数;对话流模式的智能体:返回对话流开始节点的参数 */
|
||||||
|
workflow_id?: string;
|
||||||
Base?: base.Base;
|
Base?: base.Base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -254,6 +533,10 @@ export interface GetPlaygroundApiInfoResp {
|
||||||
code_example?: Array<PlaygroundCodeExample>;
|
code_example?: Array<PlaygroundCodeExample>;
|
||||||
/** stream/blob 前端需要在执行请求之前知道 response type,所以这里要返回 */
|
/** stream/blob 前端需要在执行请求之前知道 response type,所以这里要返回 */
|
||||||
response_type?: string;
|
response_type?: string;
|
||||||
|
/** 工作流/对话流执行接口,如果传参包括 worfklow 则会返回:包括参数以及对应的值,json 格式 */
|
||||||
|
param_content?: string;
|
||||||
|
/** true:需要保存运行结果 */
|
||||||
|
need_save_run_history?: boolean;
|
||||||
BaseResp?: base.BaseResp;
|
BaseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -266,6 +549,21 @@ export interface GetPlaygroundItemListResp {
|
||||||
BaseResp?: base.BaseResp;
|
BaseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface GetPlaygroundRunHistoryReq {
|
||||||
|
/** 接口路径 */
|
||||||
|
path?: string;
|
||||||
|
/** 接口方法:POST/GET/... */
|
||||||
|
method?: string;
|
||||||
|
/** 组织账号ID */
|
||||||
|
org_id?: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetPlaygroundRunHistoryResp {
|
||||||
|
records?: Array<PlaygroundRunHistory>;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
export interface GetPlaygroundWebSdkInfoReq {
|
export interface GetPlaygroundWebSdkInfoReq {
|
||||||
version?: string;
|
version?: string;
|
||||||
Base?: base.Base;
|
Base?: base.Base;
|
||||||
|
|
@ -276,9 +574,71 @@ export interface GetPlaygroundWebSdkInfoResp {
|
||||||
sample: Array<PlaygroundWebSdkCodeSample>;
|
sample: Array<PlaygroundWebSdkCodeSample>;
|
||||||
/** 所有的版本 */
|
/** 所有的版本 */
|
||||||
version_list?: Array<string>;
|
version_list?: Array<string>;
|
||||||
|
/** swagger specification, 主要返回可配置的参数信息 */
|
||||||
|
swagger_spec?: string;
|
||||||
BaseResp?: base.BaseResp;
|
BaseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface GetRateLimitReq {
|
||||||
|
path: string;
|
||||||
|
http_method: string;
|
||||||
|
/** filters 之间是或的关系 */
|
||||||
|
filters?: Array<RateLimitEntityFilter>;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetRateLimitResp {
|
||||||
|
rate_limit_list?: Array<RateLimitConf>;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetSubscribedApiAppListReq {
|
||||||
|
event_type: string;
|
||||||
|
/** 以下三选一
|
||||||
|
coze 账户 ID */
|
||||||
|
coze_account_id?: Int64;
|
||||||
|
/** 渠道 ID */
|
||||||
|
connector_id?: Int64;
|
||||||
|
/** 火山账户 id */
|
||||||
|
volcano_account_id?: Int64;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetSubscribedApiAppListResp {
|
||||||
|
items?: Array<ApiAppOpen>;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 订阅列表 */
|
||||||
|
export interface ListSubscribedApiAppEventOpenReq {
|
||||||
|
api_app_id?: string;
|
||||||
|
page_token?: string;
|
||||||
|
/** 每页大小 */
|
||||||
|
page_size?: number;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ListSubscribedApiAppEventOpenResp {
|
||||||
|
code?: Int64;
|
||||||
|
msg?: string;
|
||||||
|
data?: ListSubscribedApiAppEventOpenRespData;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ListSubscribedApiAppEventOpenRespData {
|
||||||
|
items?: Array<ApiAppEventOpen>;
|
||||||
|
next_page_token?: string;
|
||||||
|
has_more?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface NormalApiApp {
|
||||||
|
id: string;
|
||||||
|
verify_token: string;
|
||||||
|
name: string;
|
||||||
|
callback_url?: string;
|
||||||
|
events?: Array<ApiAppEvent>;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OauthQuickstartConfigReq {
|
export interface OauthQuickstartConfigReq {
|
||||||
client_type?: string;
|
client_type?: string;
|
||||||
Base?: base.Base;
|
Base?: base.Base;
|
||||||
|
|
@ -294,10 +654,23 @@ export interface OauthQuickstartLangConfig {
|
||||||
lang?: string;
|
lang?: string;
|
||||||
/** 使用指引 */
|
/** 使用指引 */
|
||||||
instruction?: string;
|
instruction?: string;
|
||||||
/** 下载链接(tos) */
|
/** 下载链接(tos) */
|
||||||
download_url?: string;
|
download_url?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 覆盖写入限流规则(临时接口,给运营平台兼容用) */
|
||||||
|
export interface OverwriteRateLimitReq {
|
||||||
|
method: string;
|
||||||
|
path: string;
|
||||||
|
/** 限流规则列表,会覆盖写入 */
|
||||||
|
rate_limit_list: Array<RateLimitConf>;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OverwriteRateLimitResp {
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
export interface PermissionInfo {
|
export interface PermissionInfo {
|
||||||
permission_id?: string;
|
permission_id?: string;
|
||||||
key?: string;
|
key?: string;
|
||||||
|
|
@ -339,6 +712,8 @@ export interface PlaygroundCategory {
|
||||||
title: string;
|
title: string;
|
||||||
icon_url: string;
|
icon_url: string;
|
||||||
items: Array<PlaygroundItem>;
|
items: Array<PlaygroundItem>;
|
||||||
|
/** 模块描述 */
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PlaygroundCodeExample {
|
export interface PlaygroundCodeExample {
|
||||||
|
|
@ -371,12 +746,71 @@ export interface PlaygroundOpenApiDocResp {
|
||||||
BaseResp?: base.BaseResp;
|
BaseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** playground */
|
||||||
|
export interface PlaygroundRunHistory {
|
||||||
|
log_id?: string;
|
||||||
|
/** 运行结果状态码 */
|
||||||
|
status_code?: number;
|
||||||
|
/** 运行参数,JSON */
|
||||||
|
request?: string;
|
||||||
|
/** 运行结果,JSON */
|
||||||
|
reponse?: string;
|
||||||
|
/** 运行时间 */
|
||||||
|
create_at?: Int64;
|
||||||
|
}
|
||||||
|
|
||||||
export interface PlaygroundWebSdkCodeSample {
|
export interface PlaygroundWebSdkCodeSample {
|
||||||
file_name: string;
|
file_name: string;
|
||||||
/** 纯文本 */
|
/** 纯文本 */
|
||||||
content: string;
|
content: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface RateLimitConf {
|
||||||
|
id?: Int64;
|
||||||
|
path: string;
|
||||||
|
http_method: string;
|
||||||
|
limit_type: RateLimitType;
|
||||||
|
entity_type: RateLimitEntityType;
|
||||||
|
entity_id?: string;
|
||||||
|
/** 间隔时间 单位s */
|
||||||
|
duration?: number;
|
||||||
|
/** 限制次数, 对于entity_type=附加限流, limit count 可以是负数 */
|
||||||
|
limit_count?: number;
|
||||||
|
/** 生效的时间戳(秒) */
|
||||||
|
valid_time_start_unix?: Int64;
|
||||||
|
/** 失效的时间戳(秒) */
|
||||||
|
valid_time_end_unix?: Int64;
|
||||||
|
/** 创建时必传 */
|
||||||
|
source: string;
|
||||||
|
/** 备注信息, 可以写一写关键信息,例如飞书联系人,群号等 */
|
||||||
|
remark?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RateLimitEntityFilter {
|
||||||
|
limit_type: RateLimitType;
|
||||||
|
/** 不传就不过滤 */
|
||||||
|
entity_type?: RateLimitEntityType;
|
||||||
|
/** 不传就不过滤 */
|
||||||
|
entity_id?: string;
|
||||||
|
/** 不传就不过滤 */
|
||||||
|
source?: string;
|
||||||
|
/** 仅对 entity type=2(BenefitLevel) 有效 */
|
||||||
|
user_level?: benefit_common.UserLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 删除限流规则 */
|
||||||
|
export interface RemoveRateLimitReq {
|
||||||
|
/** create 拿到的 id */
|
||||||
|
id: Int64;
|
||||||
|
/** 校验 source 是否一致,不一致就报错 */
|
||||||
|
source: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RemoveRateLimitResp {
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
export interface RequestLimitRule {
|
export interface RequestLimitRule {
|
||||||
/** 主体类型 */
|
/** 主体类型 */
|
||||||
type?: PrincipleType;
|
type?: PrincipleType;
|
||||||
|
|
@ -384,8 +818,55 @@ export interface RequestLimitRule {
|
||||||
duration?: number;
|
duration?: number;
|
||||||
/** 限制次数 */
|
/** 限制次数 */
|
||||||
limit_count?: number;
|
limit_count?: number;
|
||||||
/** 专业版标识 */
|
/** 普通版/专业版/企业版标识 */
|
||||||
traffic_type?: TrafficType;
|
traffic_type?: TrafficType;
|
||||||
|
/** 当 PrincipleType 为特殊限流时,需要传入的特殊限流 id(对应 user_id, space_id, org_id) */
|
||||||
|
special_id?: string;
|
||||||
|
/** 开始时间(仅对特殊限流有效,单位: 秒) */
|
||||||
|
start_time_unix?: Int64;
|
||||||
|
/** 结束时间(仅对特殊限流有效,单位: 秒) */
|
||||||
|
end_time_unix?: Int64;
|
||||||
|
/** 备注信息, 可以写一写关键信息,例如飞书联系人,群号等 */
|
||||||
|
remark?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface SavePlaygroundRunHistoryReq {
|
||||||
|
/** 接口路径 */
|
||||||
|
path?: string;
|
||||||
|
/** 接口方法 */
|
||||||
|
method?: string;
|
||||||
|
/** 调试记录 */
|
||||||
|
record?: PlaygroundRunHistory;
|
||||||
|
/** 组织账号ID */
|
||||||
|
org_id?: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface SavePlaygroundRunHistoryResp {
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 订阅 */
|
||||||
|
export interface SubscribeApiAppEventOpenReq {
|
||||||
|
api_app_id?: string;
|
||||||
|
event_types?: Array<string>;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface SubscribeApiAppEventOpenResp {
|
||||||
|
code?: Int64;
|
||||||
|
msg?: string;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface SubscribeApiAppEventReq {
|
||||||
|
id: string;
|
||||||
|
event_type: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface SubscribeApiAppEventResp {
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 从 apihub 同步最新的 openapi 定义与接口描述
|
/** 从 apihub 同步最新的 openapi 定义与接口描述
|
||||||
|
|
@ -398,4 +879,86 @@ export interface SyncFromApiHubReq {
|
||||||
export interface SyncFromApiHubResp {
|
export interface SyncFromApiHubResp {
|
||||||
BaseResp?: base.BaseResp;
|
BaseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 取消订阅 */
|
||||||
|
export interface UnsubscribeApiAppEventOpenReq {
|
||||||
|
api_app_id?: string;
|
||||||
|
event_types?: Array<string>;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UnsubscribeApiAppEventOpenResp {
|
||||||
|
code?: Int64;
|
||||||
|
msg?: string;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UnsubscribeApiAppEventReq {
|
||||||
|
id: string;
|
||||||
|
event_type: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UnsubscribeApiAppEventResp {
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 更新回调应用 */
|
||||||
|
export interface UpdateApiAppOpenReq {
|
||||||
|
api_app_id?: string;
|
||||||
|
name?: string;
|
||||||
|
callback_url?: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UpdateApiAppOpenResp {
|
||||||
|
code?: Int64;
|
||||||
|
msg?: string;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UpdateApiAppReq {
|
||||||
|
id: string;
|
||||||
|
callback_url?: string;
|
||||||
|
name?: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UpdateApiAppResp {
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 更新限流规则 */
|
||||||
|
export interface UpdateRateLimitReq {
|
||||||
|
id: Int64;
|
||||||
|
/** 间隔时间 单位s */
|
||||||
|
duration?: number;
|
||||||
|
/** 限制次数 */
|
||||||
|
limit_count?: number;
|
||||||
|
/** 生效的时间戳(秒) */
|
||||||
|
valid_time_start_unix?: Int64;
|
||||||
|
/** 失效的时间戳(秒) */
|
||||||
|
valid_time_end_unix?: Int64;
|
||||||
|
/** 校验 source 是否一致,不一致就报错 */
|
||||||
|
source: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UpdateRateLimitResp {
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UserBenefitDetail {
|
||||||
|
VolcAccountID?: Int64;
|
||||||
|
/** 对应 " 包中 UserLevel */
|
||||||
|
UserLevel?: Int64;
|
||||||
|
/** 对应 " 包中 InstanceStatus */
|
||||||
|
InstanceStatus?: Int64;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface VolcResPushEvent {
|
||||||
|
/** 1: header.EventHeader EventHeader , // 必选字段,且序号固定为 1 todo */
|
||||||
|
OldUserBenefit?: UserBenefitDetail;
|
||||||
|
NewUserBenefit?: UserBenefitDetail;
|
||||||
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -82,8 +82,6 @@ export * from './namespaces/model';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class DevopsEvaluationService<T> {
|
export default class DevopsEvaluationService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('DevopsEvaluationService.request is undefined');
|
throw new Error('DevopsEvaluationService.request is undefined');
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,8 @@ export enum FilterCmpOp {
|
||||||
NotLike = 10,
|
NotLike = 10,
|
||||||
/** 有该 tag */
|
/** 有该 tag */
|
||||||
Exists = 11,
|
Exists = 11,
|
||||||
|
/** 没有该 tag */
|
||||||
|
NotExists = 12,
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 逻辑算子 */
|
/** 逻辑算子 */
|
||||||
|
|
@ -111,6 +113,7 @@ export enum TaskStatusType {
|
||||||
Succeeded = 3,
|
Succeeded = 3,
|
||||||
Failed = 4,
|
Failed = 4,
|
||||||
Pending = 5,
|
Pending = 5,
|
||||||
|
Stopped = 6,
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Task */
|
/** Task */
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,7 @@ export interface Image {
|
||||||
url?: string;
|
url?: string;
|
||||||
uri?: string;
|
uri?: string;
|
||||||
thumb_url?: string;
|
thumb_url?: string;
|
||||||
|
original_url?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ImageInfo {
|
export interface ImageInfo {
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,15 @@ export enum OrderField {
|
||||||
LastedPublishTime = 2,
|
LastedPublishTime = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Prompt 加密类型 */
|
||||||
|
export enum PromptEncryptOption {
|
||||||
|
Undefined = 0,
|
||||||
|
/** 加密且返回明文 */
|
||||||
|
EncryptWithPlainText = 1,
|
||||||
|
/** 加密且不返回明文 */
|
||||||
|
EncryptWithoutPlainText = 2,
|
||||||
|
}
|
||||||
|
|
||||||
/** 提示词类型 */
|
/** 提示词类型 */
|
||||||
export enum PromptType {
|
export enum PromptType {
|
||||||
Undefined = 0,
|
Undefined = 0,
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,8 @@ export enum IDC {
|
||||||
export enum MerlinFramework {
|
export enum MerlinFramework {
|
||||||
LLMServerPublic = 1,
|
LLMServerPublic = 1,
|
||||||
Laplace = 2,
|
Laplace = 2,
|
||||||
|
/** 电商团队专用协议,详见 */
|
||||||
|
Mixinfer = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum MerlinLLMInterface {
|
export enum MerlinLLMInterface {
|
||||||
|
|
@ -107,6 +109,12 @@ export enum MerlinQuotaPoolType {
|
||||||
ALI = 3,
|
ALI = 3,
|
||||||
/** 第三方资源hw */
|
/** 第三方资源hw */
|
||||||
HW = 4,
|
HW = 4,
|
||||||
|
/** hw arm */
|
||||||
|
HWARM = 5,
|
||||||
|
/** 弹性售卖资源,随时可能被抢占 */
|
||||||
|
Spot = 6,
|
||||||
|
/** 可抢占的稳定资源 */
|
||||||
|
Preemptible = 20,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum ModelFilterKey {
|
export enum ModelFilterKey {
|
||||||
|
|
@ -258,6 +266,10 @@ export enum SftTaskOutputStatus {
|
||||||
ExportFailed = 5,
|
ExportFailed = 5,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum SftTaskResourceMerlinVersion {
|
||||||
|
RemoveAnyGPU = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum SftTaskRunEventType {
|
export enum SftTaskRunEventType {
|
||||||
Undefined = 0,
|
Undefined = 0,
|
||||||
ErrorOccured = 1,
|
ErrorOccured = 1,
|
||||||
|
|
@ -336,6 +348,10 @@ export enum UsageScenario {
|
||||||
PromptAsAService = 3,
|
PromptAsAService = 3,
|
||||||
/** AI打标 */
|
/** AI打标 */
|
||||||
AIAnnotate = 4,
|
AIAnnotate = 4,
|
||||||
|
/** 质量分 */
|
||||||
|
AIScore = 5,
|
||||||
|
/** 数据标签 */
|
||||||
|
AITag = 6,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum ValidateStatus {
|
export enum ValidateStatus {
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,6 @@ export * from './namespaces/rule';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class DpManageService<T> {
|
export default class DpManageService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('DpManageService.request is undefined');
|
throw new Error('DpManageService.request is undefined');
|
||||||
|
|
|
||||||
|
|
@ -545,7 +545,7 @@ export interface GetMultiVersionLatestParamsRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GetMultiVersionLatestParamsResponse {
|
export interface GetMultiVersionLatestParamsResponse {
|
||||||
params_map?: Record<multi_version.VersionType, string>;
|
params_map?: Partial<Record<multi_version.VersionType, string>>;
|
||||||
code: number;
|
code: number;
|
||||||
msg: string;
|
msg: string;
|
||||||
BaseResp?: base.BaseResp;
|
BaseResp?: base.BaseResp;
|
||||||
|
|
|
||||||
|
|
@ -108,9 +108,8 @@ export interface ArenaLeaderboard {
|
||||||
模型信息 */
|
模型信息 */
|
||||||
models?: Array<ArenaModel>;
|
models?: Array<ArenaModel>;
|
||||||
/** 排行榜详情 */
|
/** 排行榜详情 */
|
||||||
leaderboard_details?: Record<
|
leaderboard_details?: Partial<
|
||||||
PKScene,
|
Record<PKScene, Partial<Record<LeaderboardIntention, LeaderboardDetail>>>
|
||||||
Record<LeaderboardIntention, LeaderboardDetail>
|
|
||||||
>;
|
>;
|
||||||
/** pk的总次数 */
|
/** pk的总次数 */
|
||||||
pk_count?: number;
|
pk_count?: number;
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -91,6 +91,7 @@ export enum PaperStatus {
|
||||||
Disbled = 1,
|
Disbled = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 题目选项正确状态 */
|
||||||
export enum QuestionOptionCorrectStatus {
|
export enum QuestionOptionCorrectStatus {
|
||||||
/** 错误 */
|
/** 错误 */
|
||||||
Incorrect = 0,
|
Incorrect = 0,
|
||||||
|
|
@ -98,6 +99,48 @@ export enum QuestionOptionCorrectStatus {
|
||||||
Correct = 1,
|
Correct = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum RemindType {
|
||||||
|
/** 未知 */
|
||||||
|
Unknown = 0,
|
||||||
|
/** 测试通知 */
|
||||||
|
Test = 1,
|
||||||
|
/** 正式通知 */
|
||||||
|
Formal = 2,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum TeamExamCategory {
|
||||||
|
/** 测试 */
|
||||||
|
Test = 0,
|
||||||
|
/** 团队考试 */
|
||||||
|
TeamExam = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 团队考试批改类型 */
|
||||||
|
export enum TeamExamCheckType {
|
||||||
|
/** 机器批改 */
|
||||||
|
DeprecatedMachine = 0,
|
||||||
|
/** 人工批改 */
|
||||||
|
DeprecatedManual = 1,
|
||||||
|
/** 人工AI */
|
||||||
|
Manual = 2,
|
||||||
|
/** 机器AI */
|
||||||
|
Machine = 3,
|
||||||
|
/** 统一考试(人工批改) */
|
||||||
|
UnifiedManual = 4,
|
||||||
|
/** 统一考试(机器批改) */
|
||||||
|
UnifiedMachine = 5,
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 团队考试状态 */
|
||||||
|
export enum TeamExamStatus {
|
||||||
|
/** 进行中 */
|
||||||
|
InProgress = 0,
|
||||||
|
/** 未开始 */
|
||||||
|
Pending = 1,
|
||||||
|
/** 已完成 */
|
||||||
|
Finished = 2,
|
||||||
|
}
|
||||||
|
|
||||||
export interface CreatePaperExamParams {
|
export interface CreatePaperExamParams {
|
||||||
/** 录入用户名 */
|
/** 录入用户名 */
|
||||||
username?: string;
|
username?: string;
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -84,8 +84,6 @@ export type Int64 = string | number;
|
||||||
|
|
||||||
type RW<T> = T & { code?: number; msg?: string };
|
type RW<T> = T & { code?: number; msg?: string };
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class EvaluationApiService<T> {
|
export default class EvaluationApiService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('EvaluationApiService.request is undefined');
|
throw new Error('EvaluationApiService.request is undefined');
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,8 @@ export enum FilterCmpOp {
|
||||||
NotLike = 10,
|
NotLike = 10,
|
||||||
/** 有该 tag */
|
/** 有该 tag */
|
||||||
Exists = 11,
|
Exists = 11,
|
||||||
|
/** 没有该 tag */
|
||||||
|
NotExists = 12,
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 逻辑算子 */
|
/** 逻辑算子 */
|
||||||
|
|
@ -111,6 +113,7 @@ export enum TaskStatusType {
|
||||||
Succeeded = 3,
|
Succeeded = 3,
|
||||||
Failed = 4,
|
Failed = 4,
|
||||||
Pending = 5,
|
Pending = 5,
|
||||||
|
Stopped = 6,
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Task */
|
/** Task */
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,7 @@ export interface Image {
|
||||||
url?: string;
|
url?: string;
|
||||||
uri?: string;
|
uri?: string;
|
||||||
thumb_url?: string;
|
thumb_url?: string;
|
||||||
|
original_url?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ImageInfo {
|
export interface ImageInfo {
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,15 @@ export enum OrderField {
|
||||||
LastedPublishTime = 2,
|
LastedPublishTime = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Prompt 加密类型 */
|
||||||
|
export enum PromptEncryptOption {
|
||||||
|
Undefined = 0,
|
||||||
|
/** 加密且返回明文 */
|
||||||
|
EncryptWithPlainText = 1,
|
||||||
|
/** 加密且不返回明文 */
|
||||||
|
EncryptWithoutPlainText = 2,
|
||||||
|
}
|
||||||
|
|
||||||
/** 提示词类型 */
|
/** 提示词类型 */
|
||||||
export enum PromptType {
|
export enum PromptType {
|
||||||
Undefined = 0,
|
Undefined = 0,
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,8 @@ export enum IDC {
|
||||||
export enum MerlinFramework {
|
export enum MerlinFramework {
|
||||||
LLMServerPublic = 1,
|
LLMServerPublic = 1,
|
||||||
Laplace = 2,
|
Laplace = 2,
|
||||||
|
/** 电商团队专用协议,详见 */
|
||||||
|
Mixinfer = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum MerlinLLMInterface {
|
export enum MerlinLLMInterface {
|
||||||
|
|
@ -107,6 +109,12 @@ export enum MerlinQuotaPoolType {
|
||||||
ALI = 3,
|
ALI = 3,
|
||||||
/** 第三方资源hw */
|
/** 第三方资源hw */
|
||||||
HW = 4,
|
HW = 4,
|
||||||
|
/** hw arm */
|
||||||
|
HWARM = 5,
|
||||||
|
/** 弹性售卖资源,随时可能被抢占 */
|
||||||
|
Spot = 6,
|
||||||
|
/** 可抢占的稳定资源 */
|
||||||
|
Preemptible = 20,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum ModelFilterKey {
|
export enum ModelFilterKey {
|
||||||
|
|
@ -258,6 +266,10 @@ export enum SftTaskOutputStatus {
|
||||||
ExportFailed = 5,
|
ExportFailed = 5,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum SftTaskResourceMerlinVersion {
|
||||||
|
RemoveAnyGPU = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum SftTaskRunEventType {
|
export enum SftTaskRunEventType {
|
||||||
Undefined = 0,
|
Undefined = 0,
|
||||||
ErrorOccured = 1,
|
ErrorOccured = 1,
|
||||||
|
|
@ -336,6 +348,10 @@ export enum UsageScenario {
|
||||||
PromptAsAService = 3,
|
PromptAsAService = 3,
|
||||||
/** AI打标 */
|
/** AI打标 */
|
||||||
AIAnnotate = 4,
|
AIAnnotate = 4,
|
||||||
|
/** 质量分 */
|
||||||
|
AIScore = 5,
|
||||||
|
/** 数据标签 */
|
||||||
|
AITag = 6,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum ValidateStatus {
|
export enum ValidateStatus {
|
||||||
|
|
|
||||||
|
|
@ -76,8 +76,6 @@ export * from './namespaces/user';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class EvaluationLiteService<T> {
|
export default class EvaluationLiteService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('EvaluationLiteService.request is undefined');
|
throw new Error('EvaluationLiteService.request is undefined');
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,7 @@ export interface Image {
|
||||||
url?: string;
|
url?: string;
|
||||||
uri?: string;
|
uri?: string;
|
||||||
thumb_url?: string;
|
thumb_url?: string;
|
||||||
|
original_url?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ImageInfo {
|
export interface ImageInfo {
|
||||||
|
|
|
||||||
|
|
@ -153,6 +153,8 @@ export interface DatasetInfo {
|
||||||
row_group_capacity?: Int64;
|
row_group_capacity?: Int64;
|
||||||
/** Cell 中文本内容的 bytes 数限制, 默认为 3,2000 */
|
/** Cell 中文本内容的 bytes 数限制, 默认为 3,2000 */
|
||||||
max_cell_content_length?: Int64;
|
max_cell_content_length?: Int64;
|
||||||
|
/** 是否允许导出 */
|
||||||
|
not_allow_export?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ############# ROW GROUP ############## */
|
/** ############# ROW GROUP ############## */
|
||||||
|
|
|
||||||
|
|
@ -666,6 +666,7 @@ export interface Task {
|
||||||
/** 评估器整体 token 消耗 */
|
/** 评估器整体 token 消耗 */
|
||||||
evaluator_token_usage?: TokenUsage;
|
evaluator_token_usage?: TokenUsage;
|
||||||
credit_cost?: number;
|
credit_cost?: number;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TaskManualStats {
|
export interface TaskManualStats {
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,6 @@ export * from './namespaces/rpc_model';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class FileboxService<T> {
|
export default class FileboxService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('FileboxService.request is undefined');
|
throw new Error('FileboxService.request is undefined');
|
||||||
|
|
|
||||||
|
|
@ -26,12 +26,16 @@ import * as auth from './namespaces/auth';
|
||||||
import * as bam_api from './namespaces/bam_api';
|
import * as bam_api from './namespaces/bam_api';
|
||||||
import * as banner from './namespaces/banner';
|
import * as banner from './namespaces/banner';
|
||||||
import * as base from './namespaces/base';
|
import * as base from './namespaces/base';
|
||||||
|
import * as benefit_common from './namespaces/benefit_common';
|
||||||
import * as byte_tree from './namespaces/byte_tree';
|
import * as byte_tree from './namespaces/byte_tree';
|
||||||
import * as common from './namespaces/common';
|
import * as common from './namespaces/common';
|
||||||
|
import * as copilot_common from './namespaces/copilot_common';
|
||||||
import * as home_banner from './namespaces/home_banner';
|
import * as home_banner from './namespaces/home_banner';
|
||||||
import * as menu from './namespaces/menu';
|
import * as menu from './namespaces/menu';
|
||||||
import * as model from './namespaces/model';
|
import * as model from './namespaces/model';
|
||||||
|
import * as oapi from './namespaces/oapi';
|
||||||
import * as op_bot from './namespaces/op_bot';
|
import * as op_bot from './namespaces/op_bot';
|
||||||
|
import * as open_api from './namespaces/open_api';
|
||||||
import * as prompt from './namespaces/prompt';
|
import * as prompt from './namespaces/prompt';
|
||||||
import * as punish from './namespaces/punish';
|
import * as punish from './namespaces/punish';
|
||||||
import * as voice from './namespaces/voice';
|
import * as voice from './namespaces/voice';
|
||||||
|
|
@ -45,12 +49,16 @@ export {
|
||||||
bam_api,
|
bam_api,
|
||||||
banner,
|
banner,
|
||||||
base,
|
base,
|
||||||
|
benefit_common,
|
||||||
byte_tree,
|
byte_tree,
|
||||||
common,
|
common,
|
||||||
|
copilot_common,
|
||||||
home_banner,
|
home_banner,
|
||||||
menu,
|
menu,
|
||||||
model,
|
model,
|
||||||
|
oapi,
|
||||||
op_bot,
|
op_bot,
|
||||||
|
open_api,
|
||||||
prompt,
|
prompt,
|
||||||
punish,
|
punish,
|
||||||
voice,
|
voice,
|
||||||
|
|
@ -63,12 +71,16 @@ export * from './namespaces/auth';
|
||||||
export * from './namespaces/bam_api';
|
export * from './namespaces/bam_api';
|
||||||
export * from './namespaces/banner';
|
export * from './namespaces/banner';
|
||||||
export * from './namespaces/base';
|
export * from './namespaces/base';
|
||||||
|
export * from './namespaces/benefit_common';
|
||||||
export * from './namespaces/byte_tree';
|
export * from './namespaces/byte_tree';
|
||||||
export * from './namespaces/common';
|
export * from './namespaces/common';
|
||||||
|
export * from './namespaces/copilot_common';
|
||||||
export * from './namespaces/home_banner';
|
export * from './namespaces/home_banner';
|
||||||
export * from './namespaces/menu';
|
export * from './namespaces/menu';
|
||||||
export * from './namespaces/model';
|
export * from './namespaces/model';
|
||||||
|
export * from './namespaces/oapi';
|
||||||
export * from './namespaces/op_bot';
|
export * from './namespaces/op_bot';
|
||||||
|
export * from './namespaces/open_api';
|
||||||
export * from './namespaces/prompt';
|
export * from './namespaces/prompt';
|
||||||
export * from './namespaces/punish';
|
export * from './namespaces/punish';
|
||||||
export * from './namespaces/voice';
|
export * from './namespaces/voice';
|
||||||
|
|
@ -76,8 +88,6 @@ export * from './namespaces/workspace';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class FlowBotOperationService<T> {
|
export default class FlowBotOperationService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('FlowBotOperationService.request is undefined');
|
throw new Error('FlowBotOperationService.request is undefined');
|
||||||
|
|
@ -1044,5 +1054,69 @@ export default class FlowBotOperationService<T> {
|
||||||
};
|
};
|
||||||
return this.request({ url, method, data }, options);
|
return this.request({ url, method, data }, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GET /api/bot/api_manage/ratelimit/get
|
||||||
|
*
|
||||||
|
* openapi 限流
|
||||||
|
*/
|
||||||
|
GetRateLimitOperation(
|
||||||
|
req: api_manage.GetRateLimitOperationReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<api_manage.GetRateLimitOperationResp> {
|
||||||
|
const _req = req;
|
||||||
|
const url = this.genBaseURL('/api/bot/api_manage/ratelimit/get');
|
||||||
|
const method = 'GET';
|
||||||
|
const params = {
|
||||||
|
path: _req['path'],
|
||||||
|
http_method: _req['http_method'],
|
||||||
|
Base: _req['Base'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, params }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** POST /api/bot/api_manage/ratelimit/create */
|
||||||
|
CreateRateLimitOperation(
|
||||||
|
req: api_manage.CreateRateLimitOperationReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<api_manage.CreateRateLimitOperationResp> {
|
||||||
|
const _req = req;
|
||||||
|
const url = this.genBaseURL('/api/bot/api_manage/ratelimit/create');
|
||||||
|
const method = 'POST';
|
||||||
|
const data = { rate_limit: _req['rate_limit'], Base: _req['Base'] };
|
||||||
|
return this.request({ url, method, data }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** POST /api/bot/api_manage/ratelimit/update */
|
||||||
|
UpdateRateLimitOperation(
|
||||||
|
req: api_manage.UpdateRateLimitOperationReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<api_manage.UpdateRateLimitOperationResp> {
|
||||||
|
const _req = req;
|
||||||
|
const url = this.genBaseURL('/api/bot/api_manage/ratelimit/update');
|
||||||
|
const method = 'POST';
|
||||||
|
const data = {
|
||||||
|
id: _req['id'],
|
||||||
|
duration: _req['duration'],
|
||||||
|
limit_count: _req['limit_count'],
|
||||||
|
valid_time_start_unix: _req['valid_time_start_unix'],
|
||||||
|
valid_time_end_unix: _req['valid_time_end_unix'],
|
||||||
|
remark: _req['remark'],
|
||||||
|
Base: _req['Base'],
|
||||||
|
};
|
||||||
|
return this.request({ url, method, data }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** POST /api/bot/api_manage/ratelimit/remove */
|
||||||
|
RemoveRateLimitOperation(
|
||||||
|
req: api_manage.RemoveRateLimitOperationReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<api_manage.RemoveRateLimitOperationResp> {
|
||||||
|
const _req = req;
|
||||||
|
const url = this.genBaseURL('/api/bot/api_manage/ratelimit/remove');
|
||||||
|
const method = 'POST';
|
||||||
|
const data = { id: _req['id'], Base: _req['Base'] };
|
||||||
|
return this.request({ url, method, data }, options);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
import * as base from './base';
|
import * as base from './base';
|
||||||
import * as common from './common';
|
import * as common from './common';
|
||||||
|
import * as open_api from './open_api';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
|
|
@ -64,6 +65,7 @@ export enum OpenAPISource {
|
||||||
export enum PermissionScope {
|
export enum PermissionScope {
|
||||||
Workspace = 0,
|
Workspace = 0,
|
||||||
Account = 1,
|
Account = 1,
|
||||||
|
Enterprise = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum PermissionType {
|
export enum PermissionType {
|
||||||
|
|
@ -227,6 +229,16 @@ export interface CreatePSMResponse {
|
||||||
BaseResp?: base.BaseResp;
|
BaseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 创建限流规则-运营后台api */
|
||||||
|
export interface CreateRateLimitOperationReq {
|
||||||
|
rate_limit: open_api.RateLimitConf;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CreateRateLimitOperationResp {
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
export interface DeletePermissionReq {
|
export interface DeletePermissionReq {
|
||||||
permission_info: PermissionInfo;
|
permission_info: PermissionInfo;
|
||||||
Base?: base.Base;
|
Base?: base.Base;
|
||||||
|
|
@ -328,6 +340,24 @@ export interface GetPermissionListResp {
|
||||||
BaseResp?: base.BaseResp;
|
BaseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 限流-运营后台 api
|
||||||
|
只会返回运营后台配置的限流, 由权益提升的限流配置不会返回 */
|
||||||
|
export interface GetRateLimitOperationReq {
|
||||||
|
path: string;
|
||||||
|
http_method: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetRateLimitOperationResp {
|
||||||
|
/** 全局限流 */
|
||||||
|
global_limit_list?: Array<open_api.RateLimitConf>;
|
||||||
|
/** 基础限流 */
|
||||||
|
base_limit_list?: Array<open_api.RateLimitConf>;
|
||||||
|
/** 扩容的限流 */
|
||||||
|
expand_limit_list?: Array<open_api.RateLimitConf>;
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
export interface InitAttributeInfoData {
|
export interface InitAttributeInfoData {
|
||||||
data?: Array<AttributeSchemaInfo>;
|
data?: Array<AttributeSchemaInfo>;
|
||||||
}
|
}
|
||||||
|
|
@ -368,6 +398,17 @@ export interface PermissionInfo {
|
||||||
full_permission_key?: string;
|
full_permission_key?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 删除限流规则-运营后台api */
|
||||||
|
export interface RemoveRateLimitOperationReq {
|
||||||
|
/** create 拿到的 id */
|
||||||
|
id: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RemoveRateLimitOperationResp {
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
export interface RequestLimitRule {
|
export interface RequestLimitRule {
|
||||||
/** 主体类型 */
|
/** 主体类型 */
|
||||||
type?: PrincipleType;
|
type?: PrincipleType;
|
||||||
|
|
@ -463,6 +504,26 @@ export interface UpdateAPIVisibleResponse {
|
||||||
BaseResp?: base.BaseResp;
|
BaseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 更新限流规则-运营后台api
|
||||||
|
entity id 就不让改了,如果想改的话就在平台上新建一条,然后删掉这一条 */
|
||||||
|
export interface UpdateRateLimitOperationReq {
|
||||||
|
id: string;
|
||||||
|
/** 间隔时间 单位s */
|
||||||
|
duration?: number;
|
||||||
|
/** 限制次数 */
|
||||||
|
limit_count?: number;
|
||||||
|
/** 生效的时间戳(秒) */
|
||||||
|
valid_time_start_unix?: Int64;
|
||||||
|
/** 失效的时间戳(秒) */
|
||||||
|
valid_time_end_unix?: Int64;
|
||||||
|
remark?: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UpdateRateLimitOperationResp {
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
export interface UpsertPermissionReq {
|
export interface UpsertPermissionReq {
|
||||||
permission_info: PermissionInfo;
|
permission_info: PermissionInfo;
|
||||||
Base?: base.Base;
|
Base?: base.Base;
|
||||||
|
|
|
||||||
|
|
@ -151,8 +151,6 @@ export * from './namespaces/user';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class FornaxApiService<T> {
|
export default class FornaxApiService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('FornaxApiService.request is undefined');
|
throw new Error('FornaxApiService.request is undefined');
|
||||||
|
|
@ -3354,6 +3352,7 @@ export default class FornaxApiService<T> {
|
||||||
description: _req['description'],
|
description: _req['description'],
|
||||||
release_approval_config: _req['release_approval_config'],
|
release_approval_config: _req['release_approval_config'],
|
||||||
byte_tree_node_id: _req['byte_tree_node_id'],
|
byte_tree_node_id: _req['byte_tree_node_id'],
|
||||||
|
trace_config: _req['trace_config'],
|
||||||
Base: _req['Base'],
|
Base: _req['Base'],
|
||||||
};
|
};
|
||||||
const headers = { 'x-jwt-token': _req['x-jwt-token'] };
|
const headers = { 'x-jwt-token': _req['x-jwt-token'] };
|
||||||
|
|
@ -3821,7 +3820,11 @@ export default class FornaxApiService<T> {
|
||||||
`/api/model_manage/v1/spaces/${_req['space_id']}/create_offline_eval_task`,
|
`/api/model_manage/v1/spaces/${_req['space_id']}/create_offline_eval_task`,
|
||||||
);
|
);
|
||||||
const method = 'POST';
|
const method = 'POST';
|
||||||
const data = { task: _req['task'], userJwtToken: _req['userJwtToken'] };
|
const data = {
|
||||||
|
task: _req['task'],
|
||||||
|
userJwtToken: _req['userJwtToken'],
|
||||||
|
accountID: _req['accountID'],
|
||||||
|
};
|
||||||
return this.request({ url, method, data }, options);
|
return this.request({ url, method, data }, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -4026,5 +4029,58 @@ export default class FornaxApiService<T> {
|
||||||
const method = 'GET';
|
const method = 'GET';
|
||||||
return this.request({ url, method }, options);
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POST /api/model_manage/v1/spaces/:space_id/model_supported_methods
|
||||||
|
*
|
||||||
|
* 获得指定模型的能力,如是否支持离线评测
|
||||||
|
*/
|
||||||
|
ModelSupportedMethods(
|
||||||
|
req?: flow_devops_fornax_modelevalservice.ModelSupportedMethodsRequest,
|
||||||
|
options?: T,
|
||||||
|
): Promise<flow_devops_fornax_modelevalservice.ModelSupportedMethodsResponse> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL(
|
||||||
|
`/api/model_manage/v1/spaces/${_req['space_id']}/model_supported_methods`,
|
||||||
|
);
|
||||||
|
const method = 'POST';
|
||||||
|
const data = { model: _req['model'], accountID: _req['accountID'] };
|
||||||
|
return this.request({ url, method, data }, options);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,8 @@ export enum FilterCmpOp {
|
||||||
NotLike = 10,
|
NotLike = 10,
|
||||||
/** 有该 tag */
|
/** 有该 tag */
|
||||||
Exists = 11,
|
Exists = 11,
|
||||||
|
/** 没有该 tag */
|
||||||
|
NotExists = 12,
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 逻辑算子 */
|
/** 逻辑算子 */
|
||||||
|
|
@ -113,6 +115,7 @@ export enum TaskStatusType {
|
||||||
Succeeded = 3,
|
Succeeded = 3,
|
||||||
Failed = 4,
|
Failed = 4,
|
||||||
Pending = 5,
|
Pending = 5,
|
||||||
|
Stopped = 6,
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Task */
|
/** Task */
|
||||||
|
|
@ -150,6 +153,15 @@ export interface ApplyTicket {
|
||||||
invalidateAt?: string;
|
invalidateAt?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface BackfillStat {
|
||||||
|
/** 已从观测检索到 span 数量 */
|
||||||
|
retrievedSpanCount?: string;
|
||||||
|
/** 已写入到数据集中 span 数量 */
|
||||||
|
backfilledSpanCount?: string;
|
||||||
|
/** 回填状态 */
|
||||||
|
backfillStatus?: TaskStatusType;
|
||||||
|
}
|
||||||
|
|
||||||
export interface BatchExecAutoUseCaseStat {
|
export interface BatchExecAutoUseCaseStat {
|
||||||
common?: StatusDetailCommon;
|
common?: StatusDetailCommon;
|
||||||
/** 各用例执行情况 */
|
/** 各用例执行情况 */
|
||||||
|
|
@ -170,6 +182,9 @@ export interface DatasetConfig {
|
||||||
datasetName?: string;
|
datasetName?: string;
|
||||||
/** 默认将 span 的 input&output tag 写入 dataset 同名列中, 通过 extraColumns 定义其他列的回流 */
|
/** 默认将 span 的 input&output tag 写入 dataset 同名列中, 通过 extraColumns 定义其他列的回流 */
|
||||||
extraColumns?: Array<Span2ColumnConfig>;
|
extraColumns?: Array<Span2ColumnConfig>;
|
||||||
|
/** omitDefaultColumns=true 时,不写入默认的 input、output 列 */
|
||||||
|
omitDefaultColumns?: boolean;
|
||||||
|
datasetDesc?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Deprecated */
|
/** Deprecated */
|
||||||
|
|
@ -230,7 +245,7 @@ export interface Rule {
|
||||||
sampler?: Sampler;
|
sampler?: Sampler;
|
||||||
/** 筛选条件 */
|
/** 筛选条件 */
|
||||||
spanFilter?: SpanFilter;
|
spanFilter?: SpanFilter;
|
||||||
/** 定时触发时效配置 */
|
/** Deprecated, typo, 换用 triggerTime(13) 字段 */
|
||||||
tiggerTime?: TriggerTime;
|
tiggerTime?: TriggerTime;
|
||||||
/** 生效时间窗口 */
|
/** 生效时间窗口 */
|
||||||
effectiveTime?: EffectiveTime;
|
effectiveTime?: EffectiveTime;
|
||||||
|
|
@ -238,6 +253,10 @@ export interface Rule {
|
||||||
objectID?: Int64;
|
objectID?: Int64;
|
||||||
/** 内置过滤器, 包含服务端定义的复杂过滤逻辑. 用于页面的"数据类型"字段过滤 */
|
/** 内置过滤器, 包含服务端定义的复杂过滤逻辑. 用于页面的"数据类型"字段过滤 */
|
||||||
builtinFilter?: BuiltinSpanFilterType;
|
builtinFilter?: BuiltinSpanFilterType;
|
||||||
|
/** 回流历史数据 */
|
||||||
|
effectiveTimeFromPast?: EffectiveTime;
|
||||||
|
/** 定时触发时效配置 */
|
||||||
|
triggerTime?: TriggerTime;
|
||||||
/** Processor Config
|
/** Processor Config
|
||||||
数据集 */
|
数据集 */
|
||||||
dataset?: DatasetConfig;
|
dataset?: DatasetConfig;
|
||||||
|
|
@ -261,6 +280,8 @@ export interface Span2ColumnConfig {
|
||||||
sourceType: Span2ColumnSourceType;
|
sourceType: Span2ColumnSourceType;
|
||||||
/** 根据 sourceType 不同, 其值为 span 属性, prompt 变量的 key 等 */
|
/** 根据 sourceType 不同, 其值为 span 属性, prompt 变量的 key 等 */
|
||||||
sourceField: string;
|
sourceField: string;
|
||||||
|
/** 指定 sourceField 的 JSON 提取路径 */
|
||||||
|
sourceFieldJSONPath?: string;
|
||||||
/** dataset column 名 */
|
/** dataset column 名 */
|
||||||
datasetColumn: string;
|
datasetColumn: string;
|
||||||
}
|
}
|
||||||
|
|
@ -376,6 +397,8 @@ export interface Task {
|
||||||
spanEvalStat?: SpanEvalStat;
|
spanEvalStat?: SpanEvalStat;
|
||||||
/** 批量评测状态详情 */
|
/** 批量评测状态详情 */
|
||||||
batchExecAutoUseCaseStat?: BatchExecAutoUseCaseStat;
|
batchExecAutoUseCaseStat?: BatchExecAutoUseCaseStat;
|
||||||
|
/** 回填历史数据详情 */
|
||||||
|
backfillStat?: BackfillStat;
|
||||||
/** 创建者 */
|
/** 创建者 */
|
||||||
createdBy?: string;
|
createdBy?: string;
|
||||||
/** 更新者 */
|
/** 更新者 */
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,7 @@ export interface Image {
|
||||||
url?: string;
|
url?: string;
|
||||||
uri?: string;
|
uri?: string;
|
||||||
thumb_url?: string;
|
thumb_url?: string;
|
||||||
|
original_url?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ImageInfo {
|
export interface ImageInfo {
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,12 @@ export interface Rule2TraceQueryResp {
|
||||||
platformType?: flow_devops_fornaxob_common.PlatformType;
|
platformType?: flow_devops_fornaxob_common.PlatformType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface StopTaskReq {
|
||||||
|
task_id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface StopTaskResp {}
|
||||||
|
|
||||||
export interface TaskBatchExecCasesStatus {
|
export interface TaskBatchExecCasesStatus {
|
||||||
taskID: string;
|
taskID: string;
|
||||||
allCasesDeleted?: boolean;
|
allCasesDeleted?: boolean;
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@ export type Int64 = string | number;
|
||||||
export interface CreateOfflineEvalTaskRequest {
|
export interface CreateOfflineEvalTaskRequest {
|
||||||
task?: modeleval.OfflineEvalTask;
|
task?: modeleval.OfflineEvalTask;
|
||||||
userJwtToken?: string;
|
userJwtToken?: string;
|
||||||
|
/** 此托管的方舟账号的id */
|
||||||
|
accountID?: string;
|
||||||
/** 空间ID */
|
/** 空间ID */
|
||||||
space_id?: string;
|
space_id?: string;
|
||||||
}
|
}
|
||||||
|
|
@ -62,6 +64,18 @@ export interface ListOfflineEvalTaskResponse {
|
||||||
total?: Int64;
|
total?: Int64;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ModelSupportedMethodsRequest {
|
||||||
|
model?: modeleval.OfflineEvalTaskModel;
|
||||||
|
/** 如果是方舟,还需要传accountID */
|
||||||
|
accountID?: string;
|
||||||
|
/** 空间ID */
|
||||||
|
space_id?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ModelSupportedMethodsResponse {
|
||||||
|
supportOfflineEval?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
export interface ParseMerlinSeedModelConfigRequest {
|
export interface ParseMerlinSeedModelConfigRequest {
|
||||||
checkpointHdfsPath?: string;
|
checkpointHdfsPath?: string;
|
||||||
modelSid?: string;
|
modelSid?: string;
|
||||||
|
|
|
||||||
|
|
@ -196,7 +196,7 @@ export interface GetAvailableQuotaByByteTreeNodeRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GetAvailableQuotaByByteTreeNodeResponse {
|
export interface GetAvailableQuotaByByteTreeNodeResponse {
|
||||||
quotas?: Record<model.IDC, Array<model.DeployQuota>>;
|
quotas?: Partial<Record<model.IDC, Array<model.DeployQuota>>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GetByteTreeParentNodeByPSMRequest {
|
export interface GetByteTreeParentNodeByPSMRequest {
|
||||||
|
|
@ -501,7 +501,7 @@ export interface ModelContextRange {
|
||||||
|
|
||||||
export interface ModelFilter {
|
export interface ModelFilter {
|
||||||
/** 模型tag过滤项,value中list内部各个元素在过滤时是or关系,各个key之间在过滤时是and关系 */
|
/** 模型tag过滤项,value中list内部各个元素在过滤时是or关系,各个key之间在过滤时是and关系 */
|
||||||
modelFilterTags?: Record<model.ModelFilterKey, Array<string>>;
|
modelFilterTags?: Partial<Record<model.ModelFilterKey, Array<string>>>;
|
||||||
/** 模型状态 */
|
/** 模型状态 */
|
||||||
modelStatuses?: Array<model.ModelStatus>;
|
modelStatuses?: Array<model.ModelStatus>;
|
||||||
/** 模型支持的上下文长度的范围 */
|
/** 模型支持的上下文长度的范围 */
|
||||||
|
|
@ -564,7 +564,7 @@ export interface OApiUpsertModelAndAccountResponse {
|
||||||
export interface SaaSGetModelFilterParamsRequest {}
|
export interface SaaSGetModelFilterParamsRequest {}
|
||||||
|
|
||||||
export interface SaaSGetModelFilterParamsResponse {
|
export interface SaaSGetModelFilterParamsResponse {
|
||||||
modelFilterTags?: Record<model.ModelFilterKey, Array<string>>;
|
modelFilterTags?: Partial<Record<model.ModelFilterKey, Array<string>>>;
|
||||||
modelContextRange?: ModelContextRange;
|
modelContextRange?: ModelContextRange;
|
||||||
modelVendors?: Array<string>;
|
modelVendors?: Array<string>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -218,6 +218,8 @@ export interface UpdateSpaceRequest {
|
||||||
release_approval_config?: space.ReleaseApprovalConfig;
|
release_approval_config?: space.ReleaseApprovalConfig;
|
||||||
/** 服务树节点ID */
|
/** 服务树节点ID */
|
||||||
byte_tree_node_id?: Int64;
|
byte_tree_node_id?: Int64;
|
||||||
|
/** 具体配置内容 */
|
||||||
|
trace_config?: space.TraceConfig;
|
||||||
'x-jwt-token'?: string;
|
'x-jwt-token'?: string;
|
||||||
Base?: base.Base;
|
Base?: base.Base;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,21 @@ export interface GetUserInfoResponse {
|
||||||
BaseResp?: base.BaseResp;
|
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 {
|
export interface KickUserReq {
|
||||||
extUserID: string;
|
extUserID: string;
|
||||||
'Zti-Token': string;
|
'Zti-Token': string;
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ export enum EnvType {
|
||||||
export enum OrderType {
|
export enum OrderType {
|
||||||
Unknown = 1,
|
Unknown = 1,
|
||||||
Desc = 2,
|
Desc = 2,
|
||||||
|
Asc = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum PlatformType {
|
export enum PlatformType {
|
||||||
|
|
@ -48,6 +49,7 @@ export enum PlatformType {
|
||||||
CozeProject = 10,
|
CozeProject = 10,
|
||||||
CozeBot = 11,
|
CozeBot = 11,
|
||||||
SaasEvalTarget = 12,
|
SaasEvalTarget = 12,
|
||||||
|
SaasAll = 13,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum QueryOfflineType {
|
export enum QueryOfflineType {
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,9 @@ is not found within that array, the record is included in the result set. */
|
||||||
not_in?: Array<number>;
|
not_in?: Array<number>;
|
||||||
is_null?: boolean;
|
is_null?: boolean;
|
||||||
not_null?: boolean;
|
not_null?: boolean;
|
||||||
|
gt?: number;
|
||||||
|
lt?: number;
|
||||||
|
eq?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** applied on a int32 field
|
/** 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>;
|
not_in?: Array<number>;
|
||||||
is_null?: boolean;
|
is_null?: boolean;
|
||||||
not_null?: boolean;
|
not_null?: boolean;
|
||||||
|
/** Greater than */
|
||||||
|
gt?: number;
|
||||||
|
/** Less than */
|
||||||
|
lt?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** applied on a int64 field
|
/** 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>;
|
not_in?: Array<string>;
|
||||||
is_null?: boolean;
|
is_null?: boolean;
|
||||||
not_null?: boolean;
|
not_null?: boolean;
|
||||||
|
/** Greater than */
|
||||||
|
gt?: Int64;
|
||||||
|
/** Less than */
|
||||||
|
lt?: Int64;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** applied on a string field
|
/** 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>;
|
not_in?: Array<string>;
|
||||||
is_null?: boolean;
|
is_null?: boolean;
|
||||||
not_null?: boolean;
|
not_null?: boolean;
|
||||||
|
not_contains?: string;
|
||||||
}
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,15 @@ export enum OrderField {
|
||||||
LastedPublishTime = 2,
|
LastedPublishTime = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Prompt 加密类型 */
|
||||||
|
export enum PromptEncryptOption {
|
||||||
|
Undefined = 0,
|
||||||
|
/** 加密且返回明文 */
|
||||||
|
EncryptWithPlainText = 1,
|
||||||
|
/** 加密且不返回明文 */
|
||||||
|
EncryptWithoutPlainText = 2,
|
||||||
|
}
|
||||||
|
|
||||||
/** 提示词类型 */
|
/** 提示词类型 */
|
||||||
export enum PromptType {
|
export enum PromptType {
|
||||||
Undefined = 0,
|
Undefined = 0,
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,8 @@ export enum IDC {
|
||||||
export enum MerlinFramework {
|
export enum MerlinFramework {
|
||||||
LLMServerPublic = 1,
|
LLMServerPublic = 1,
|
||||||
Laplace = 2,
|
Laplace = 2,
|
||||||
|
/** 电商团队专用协议,详见 */
|
||||||
|
Mixinfer = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum MerlinLLMInterface {
|
export enum MerlinLLMInterface {
|
||||||
|
|
@ -346,6 +348,10 @@ export enum UsageScenario {
|
||||||
PromptAsAService = 3,
|
PromptAsAService = 3,
|
||||||
/** AI打标 */
|
/** AI打标 */
|
||||||
AIAnnotate = 4,
|
AIAnnotate = 4,
|
||||||
|
/** 质量分 */
|
||||||
|
AIScore = 5,
|
||||||
|
/** 数据标签 */
|
||||||
|
AITag = 6,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum ValidateStatus {
|
export enum ValidateStatus {
|
||||||
|
|
@ -534,7 +540,7 @@ export interface MerlinInfo {
|
||||||
framework?: MerlinFramework;
|
framework?: MerlinFramework;
|
||||||
instanceResourceOption?: InstanceResourceOption;
|
instanceResourceOption?: InstanceResourceOption;
|
||||||
/** 资源配置 */
|
/** 资源配置 */
|
||||||
deployDetailM?: Record<IDC, IDCDeployDetail>;
|
deployDetailM?: Partial<Record<IDC, IDCDeployDetail>>;
|
||||||
/** 服务节点id */
|
/** 服务节点id */
|
||||||
byteTreeNodeID?: Int64;
|
byteTreeNodeID?: Int64;
|
||||||
/** 服务树路径 */
|
/** 服务树路径 */
|
||||||
|
|
@ -800,6 +806,10 @@ export interface SftTaskCustomModel {
|
||||||
hyperParams?: Array<SftTaskHyperParam>;
|
hyperParams?: Array<SftTaskHyperParam>;
|
||||||
/** 此定制模型是通过哪个基础模型训练得到 */
|
/** 此定制模型是通过哪个基础模型训练得到 */
|
||||||
foundationModel?: SftTaskFoundationModel;
|
foundationModel?: SftTaskFoundationModel;
|
||||||
|
/** merlin模型仓库版本 */
|
||||||
|
version?: string;
|
||||||
|
/** merlin模型文件保存的地址 */
|
||||||
|
hdfsPath?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SftTaskDataset {
|
export interface SftTaskDataset {
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,8 @@ export enum OfflineEvalTaskModelSource {
|
||||||
Unknown = 0,
|
Unknown = 0,
|
||||||
MerlinSeed = 1,
|
MerlinSeed = 1,
|
||||||
FornaxSftTask = 2,
|
FornaxSftTask = 2,
|
||||||
Opensource = 3,
|
/** 基座模型 */
|
||||||
|
FoundationModel = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum OfflineEvalTaskStatus {
|
export enum OfflineEvalTaskStatus {
|
||||||
|
|
@ -136,7 +137,7 @@ export interface OfflineEvalTaskCkptConfigItem {
|
||||||
export interface OfflineEvalTaskCkptResult {
|
export interface OfflineEvalTaskCkptResult {
|
||||||
/** 评测集上传到hdfs的地址 */
|
/** 评测集上传到hdfs的地址 */
|
||||||
datasetHdfsAddress?: string;
|
datasetHdfsAddress?: string;
|
||||||
/** 推理结果保存的hdfs地址,可能为文件夹 */
|
/** 推理结果保存的hdfs地址,可能为文件夹(开源模型必须时文件而非文件夹) */
|
||||||
inferResultHdfsAddress?: string;
|
inferResultHdfsAddress?: string;
|
||||||
/** 推理结果导出进度 */
|
/** 推理结果导出进度 */
|
||||||
resultExportStatuses?: Array<InferResExportStatus>;
|
resultExportStatuses?: Array<InferResExportStatus>;
|
||||||
|
|
@ -158,6 +159,28 @@ export interface OfflineEvalTaskCkptResult {
|
||||||
merlinJobTerminated?: boolean;
|
merlinJobTerminated?: boolean;
|
||||||
/** 保存除了 plainText 以外的类型的数据的原始信息 */
|
/** 保存除了 plainText 以外的类型的数据的原始信息 */
|
||||||
originDataColumnName?: string;
|
originDataColumnName?: string;
|
||||||
|
/** 批量推理结果的列名,老数据可能为空,为空时该值取output(parquet中的列名。如果是jsonl,格式是方舟固定的) */
|
||||||
|
outputColumnName?: string;
|
||||||
|
/** 原始批量推理结果的列名(parquet中的列名) */
|
||||||
|
originOutputColumnName?: string;
|
||||||
|
/** 批量推理任务的id */
|
||||||
|
batchInferTaskID?: Int64;
|
||||||
|
/** 批量推理任务的状态 */
|
||||||
|
batchInferTaskStatus?: string;
|
||||||
|
/** 批量推理输入数据的其中一列列名,这列记录了数据中每一行的唯一id */
|
||||||
|
itemIDColumnName?: string;
|
||||||
|
/** 评测集上传到tos的桶名 */
|
||||||
|
datasetTosBucketName?: string;
|
||||||
|
/** 评测集上传到tos后的文件路径 */
|
||||||
|
datasetTosObjectKey?: string;
|
||||||
|
/** 推理结果保存到tos的桶名 */
|
||||||
|
inferResultTosBucketName?: string;
|
||||||
|
/** 推理结果保存到tos后的文件夹路径 */
|
||||||
|
inferResultTosObjectKey?: string;
|
||||||
|
/** 火山项目名,用于记录用户托管的字节云方舟账号的项目名称 */
|
||||||
|
volcEngineProjectName?: string;
|
||||||
|
/** 评测集中的图片上传到hdfs的地址(文件夹) */
|
||||||
|
datasetImageHdfsAddress?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OfflineEvalTaskDataset {
|
export interface OfflineEvalTaskDataset {
|
||||||
|
|
@ -191,10 +214,19 @@ export interface OfflineEvalTaskInputPreHandler {
|
||||||
|
|
||||||
export interface OfflineEvalTaskModel {
|
export interface OfflineEvalTaskModel {
|
||||||
source?: OfflineEvalTaskModelSource;
|
source?: OfflineEvalTaskModelSource;
|
||||||
|
/** 被评测的模型(当source是OpenSource/Ark基础模型时,模型信息写在这里) */
|
||||||
|
foundationModel?: model.SftTaskFoundationModel;
|
||||||
|
/** 被评测的模型的标识(此时模型是sft产物,identification是方舟custom_id / model_version,且会记录foundation model) */
|
||||||
identification?: string;
|
identification?: string;
|
||||||
sftTaskID?: string;
|
sftTaskID?: string;
|
||||||
sftTaskProvider?: model.Provider;
|
sftTaskProvider?: model.Provider;
|
||||||
|
merlinModelName?: string;
|
||||||
|
merlinModelVersion?: string;
|
||||||
|
trainingType?: model.SftTaskTrainingType;
|
||||||
|
trainingMethod?: model.SftTaskTrainingMethod;
|
||||||
|
sftTask?: model.SftTask;
|
||||||
merlinSeedModelType?: MerlinSeedModelType;
|
merlinSeedModelType?: MerlinSeedModelType;
|
||||||
|
/** 被评测的模型文件的hdfs地址(当source是seed/sft/OpenSource时,模型hdfs地址写在这里) */
|
||||||
modelAddress?: string;
|
modelAddress?: string;
|
||||||
tokenizerAddress?: string;
|
tokenizerAddress?: string;
|
||||||
networkConfigContext?: string;
|
networkConfigContext?: string;
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,10 @@ export interface Space {
|
||||||
space_origin?: string;
|
space_origin?: string;
|
||||||
/** 服务树节点ID */
|
/** 服务树节点ID */
|
||||||
tree_node_id?: string;
|
tree_node_id?: string;
|
||||||
|
/** 具体配置内容 */
|
||||||
|
trace_config?: TraceConfig;
|
||||||
|
/** 空间下的服务账号列表 */
|
||||||
|
accounts?: Array<auth.ServiceAccount>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 空间成员 */
|
/** 空间成员 */
|
||||||
|
|
@ -114,4 +118,12 @@ export interface SpaceMember {
|
||||||
/** 空间角色类型 */
|
/** 空间角色类型 */
|
||||||
space_role_type?: SpaceRoleType;
|
space_role_type?: SpaceRoleType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 观测配置 */
|
||||||
|
export interface TraceConfig {
|
||||||
|
/** 是否加密trace 默认false */
|
||||||
|
trace_encrypt?: boolean;
|
||||||
|
/** ttl天数 默认7,目前合法值有7/30/90 */
|
||||||
|
ttl?: number;
|
||||||
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -109,8 +109,6 @@ export {
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class FornaxApi2Service<T> {
|
export default class FornaxApi2Service<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('FornaxApi2Service.request is undefined');
|
throw new Error('FornaxApi2Service.request is undefined');
|
||||||
|
|
@ -3312,6 +3310,7 @@ export default class FornaxApi2Service<T> {
|
||||||
description: _req['description'],
|
description: _req['description'],
|
||||||
release_approval_config: _req['release_approval_config'],
|
release_approval_config: _req['release_approval_config'],
|
||||||
byte_tree_node_id: _req['byte_tree_node_id'],
|
byte_tree_node_id: _req['byte_tree_node_id'],
|
||||||
|
trace_config: _req['trace_config'],
|
||||||
Base: _req['Base'],
|
Base: _req['Base'],
|
||||||
};
|
};
|
||||||
const headers = { 'x-jwt-token': _req['x-jwt-token'] };
|
const headers = { 'x-jwt-token': _req['x-jwt-token'] };
|
||||||
|
|
@ -3984,5 +3983,40 @@ export default class FornaxApi2Service<T> {
|
||||||
const method = 'GET';
|
const method = 'GET';
|
||||||
return this.request({ url, method }, options);
|
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 */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,8 @@ export enum FilterCmpOp {
|
||||||
NotLike = 10,
|
NotLike = 10,
|
||||||
/** 有该 tag */
|
/** 有该 tag */
|
||||||
Exists = 11,
|
Exists = 11,
|
||||||
|
/** 没有该 tag */
|
||||||
|
NotExists = 12,
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 逻辑算子 */
|
/** 逻辑算子 */
|
||||||
|
|
@ -113,6 +115,7 @@ export enum TaskStatusType {
|
||||||
Succeeded = 3,
|
Succeeded = 3,
|
||||||
Failed = 4,
|
Failed = 4,
|
||||||
Pending = 5,
|
Pending = 5,
|
||||||
|
Stopped = 6,
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Task */
|
/** Task */
|
||||||
|
|
@ -150,6 +153,15 @@ export interface ApplyTicket {
|
||||||
invalidateAt?: string;
|
invalidateAt?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface BackfillStat {
|
||||||
|
/** 已从观测检索到 span 数量 */
|
||||||
|
retrievedSpanCount?: string;
|
||||||
|
/** 已写入到数据集中 span 数量 */
|
||||||
|
backfilledSpanCount?: string;
|
||||||
|
/** 回填状态 */
|
||||||
|
backfillStatus?: TaskStatusType;
|
||||||
|
}
|
||||||
|
|
||||||
export interface BatchExecAutoUseCaseStat {
|
export interface BatchExecAutoUseCaseStat {
|
||||||
common?: StatusDetailCommon;
|
common?: StatusDetailCommon;
|
||||||
/** 各用例执行情况 */
|
/** 各用例执行情况 */
|
||||||
|
|
@ -170,6 +182,9 @@ export interface DatasetConfig {
|
||||||
datasetName?: string;
|
datasetName?: string;
|
||||||
/** 默认将 span 的 input&output tag 写入 dataset 同名列中, 通过 extraColumns 定义其他列的回流 */
|
/** 默认将 span 的 input&output tag 写入 dataset 同名列中, 通过 extraColumns 定义其他列的回流 */
|
||||||
extraColumns?: Array<Span2ColumnConfig>;
|
extraColumns?: Array<Span2ColumnConfig>;
|
||||||
|
/** omitDefaultColumns=true 时,不写入默认的 input、output 列 */
|
||||||
|
omitDefaultColumns?: boolean;
|
||||||
|
datasetDesc?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Deprecated */
|
/** Deprecated */
|
||||||
|
|
@ -230,7 +245,7 @@ export interface Rule {
|
||||||
sampler?: Sampler;
|
sampler?: Sampler;
|
||||||
/** 筛选条件 */
|
/** 筛选条件 */
|
||||||
spanFilter?: SpanFilter;
|
spanFilter?: SpanFilter;
|
||||||
/** 定时触发时效配置 */
|
/** Deprecated, typo, 换用 triggerTime(13) 字段 */
|
||||||
tiggerTime?: TriggerTime;
|
tiggerTime?: TriggerTime;
|
||||||
/** 生效时间窗口 */
|
/** 生效时间窗口 */
|
||||||
effectiveTime?: EffectiveTime;
|
effectiveTime?: EffectiveTime;
|
||||||
|
|
@ -238,6 +253,10 @@ export interface Rule {
|
||||||
objectID?: Int64;
|
objectID?: Int64;
|
||||||
/** 内置过滤器, 包含服务端定义的复杂过滤逻辑. 用于页面的"数据类型"字段过滤 */
|
/** 内置过滤器, 包含服务端定义的复杂过滤逻辑. 用于页面的"数据类型"字段过滤 */
|
||||||
builtinFilter?: BuiltinSpanFilterType;
|
builtinFilter?: BuiltinSpanFilterType;
|
||||||
|
/** 回流历史数据 */
|
||||||
|
effectiveTimeFromPast?: EffectiveTime;
|
||||||
|
/** 定时触发时效配置 */
|
||||||
|
triggerTime?: TriggerTime;
|
||||||
/** Processor Config
|
/** Processor Config
|
||||||
数据集 */
|
数据集 */
|
||||||
dataset?: DatasetConfig;
|
dataset?: DatasetConfig;
|
||||||
|
|
@ -261,6 +280,8 @@ export interface Span2ColumnConfig {
|
||||||
sourceType: Span2ColumnSourceType;
|
sourceType: Span2ColumnSourceType;
|
||||||
/** 根据 sourceType 不同, 其值为 span 属性, prompt 变量的 key 等 */
|
/** 根据 sourceType 不同, 其值为 span 属性, prompt 变量的 key 等 */
|
||||||
sourceField: string;
|
sourceField: string;
|
||||||
|
/** 指定 sourceField 的 JSON 提取路径 */
|
||||||
|
sourceFieldJSONPath?: string;
|
||||||
/** dataset column 名 */
|
/** dataset column 名 */
|
||||||
datasetColumn: string;
|
datasetColumn: string;
|
||||||
}
|
}
|
||||||
|
|
@ -376,6 +397,8 @@ export interface Task {
|
||||||
spanEvalStat?: SpanEvalStat;
|
spanEvalStat?: SpanEvalStat;
|
||||||
/** 批量评测状态详情 */
|
/** 批量评测状态详情 */
|
||||||
batchExecAutoUseCaseStat?: BatchExecAutoUseCaseStat;
|
batchExecAutoUseCaseStat?: BatchExecAutoUseCaseStat;
|
||||||
|
/** 回填历史数据详情 */
|
||||||
|
backfillStat?: BackfillStat;
|
||||||
/** 创建者 */
|
/** 创建者 */
|
||||||
createdBy?: string;
|
createdBy?: string;
|
||||||
/** 更新者 */
|
/** 更新者 */
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,7 @@ export interface Image {
|
||||||
url?: string;
|
url?: string;
|
||||||
uri?: string;
|
uri?: string;
|
||||||
thumb_url?: string;
|
thumb_url?: string;
|
||||||
|
original_url?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ImageInfo {
|
export interface ImageInfo {
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,12 @@ export interface Rule2TraceQueryResp {
|
||||||
platformType?: flow_devops_fornaxob_common.PlatformType;
|
platformType?: flow_devops_fornaxob_common.PlatformType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface StopTaskReq {
|
||||||
|
task_id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface StopTaskResp {}
|
||||||
|
|
||||||
export interface TaskBatchExecCasesStatus {
|
export interface TaskBatchExecCasesStatus {
|
||||||
taskID: string;
|
taskID: string;
|
||||||
allCasesDeleted?: boolean;
|
allCasesDeleted?: boolean;
|
||||||
|
|
|
||||||
|
|
@ -196,7 +196,7 @@ export interface GetAvailableQuotaByByteTreeNodeRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GetAvailableQuotaByByteTreeNodeResponse {
|
export interface GetAvailableQuotaByByteTreeNodeResponse {
|
||||||
quotas?: Record<model.IDC, Array<model.DeployQuota>>;
|
quotas?: Partial<Record<model.IDC, Array<model.DeployQuota>>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GetByteTreeParentNodeByPSMRequest {
|
export interface GetByteTreeParentNodeByPSMRequest {
|
||||||
|
|
@ -501,7 +501,7 @@ export interface ModelContextRange {
|
||||||
|
|
||||||
export interface ModelFilter {
|
export interface ModelFilter {
|
||||||
/** 模型tag过滤项,value中list内部各个元素在过滤时是or关系,各个key之间在过滤时是and关系 */
|
/** 模型tag过滤项,value中list内部各个元素在过滤时是or关系,各个key之间在过滤时是and关系 */
|
||||||
modelFilterTags?: Record<model.ModelFilterKey, Array<string>>;
|
modelFilterTags?: Partial<Record<model.ModelFilterKey, Array<string>>>;
|
||||||
/** 模型状态 */
|
/** 模型状态 */
|
||||||
modelStatuses?: Array<model.ModelStatus>;
|
modelStatuses?: Array<model.ModelStatus>;
|
||||||
/** 模型支持的上下文长度的范围 */
|
/** 模型支持的上下文长度的范围 */
|
||||||
|
|
@ -564,7 +564,7 @@ export interface OApiUpsertModelAndAccountResponse {
|
||||||
export interface SaaSGetModelFilterParamsRequest {}
|
export interface SaaSGetModelFilterParamsRequest {}
|
||||||
|
|
||||||
export interface SaaSGetModelFilterParamsResponse {
|
export interface SaaSGetModelFilterParamsResponse {
|
||||||
modelFilterTags?: Record<model.ModelFilterKey, Array<string>>;
|
modelFilterTags?: Partial<Record<model.ModelFilterKey, Array<string>>>;
|
||||||
modelContextRange?: ModelContextRange;
|
modelContextRange?: ModelContextRange;
|
||||||
modelVendors?: Array<string>;
|
modelVendors?: Array<string>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -218,6 +218,8 @@ export interface UpdateSpaceRequest {
|
||||||
release_approval_config?: space.ReleaseApprovalConfig;
|
release_approval_config?: space.ReleaseApprovalConfig;
|
||||||
/** 服务树节点ID */
|
/** 服务树节点ID */
|
||||||
byte_tree_node_id?: Int64;
|
byte_tree_node_id?: Int64;
|
||||||
|
/** 具体配置内容 */
|
||||||
|
trace_config?: space.TraceConfig;
|
||||||
'x-jwt-token'?: string;
|
'x-jwt-token'?: string;
|
||||||
Base?: base.Base;
|
Base?: base.Base;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,21 @@ export interface GetUserInfoResponse {
|
||||||
BaseResp?: base.BaseResp;
|
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 {
|
export interface KickUserReq {
|
||||||
extUserID: string;
|
extUserID: string;
|
||||||
'Zti-Token': string;
|
'Zti-Token': string;
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ export enum EnvType {
|
||||||
export enum OrderType {
|
export enum OrderType {
|
||||||
Unknown = 1,
|
Unknown = 1,
|
||||||
Desc = 2,
|
Desc = 2,
|
||||||
|
Asc = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum PlatformType {
|
export enum PlatformType {
|
||||||
|
|
@ -48,6 +49,7 @@ export enum PlatformType {
|
||||||
CozeProject = 10,
|
CozeProject = 10,
|
||||||
CozeBot = 11,
|
CozeBot = 11,
|
||||||
SaasEvalTarget = 12,
|
SaasEvalTarget = 12,
|
||||||
|
SaasAll = 13,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum QueryOfflineType {
|
export enum QueryOfflineType {
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,9 @@ is not found within that array, the record is included in the result set. */
|
||||||
not_in?: Array<number>;
|
not_in?: Array<number>;
|
||||||
is_null?: boolean;
|
is_null?: boolean;
|
||||||
not_null?: boolean;
|
not_null?: boolean;
|
||||||
|
gt?: number;
|
||||||
|
lt?: number;
|
||||||
|
eq?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** applied on a int32 field
|
/** 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>;
|
not_in?: Array<number>;
|
||||||
is_null?: boolean;
|
is_null?: boolean;
|
||||||
not_null?: boolean;
|
not_null?: boolean;
|
||||||
|
/** Greater than */
|
||||||
|
gt?: number;
|
||||||
|
/** Less than */
|
||||||
|
lt?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** applied on a int64 field
|
/** 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>;
|
not_in?: Array<string>;
|
||||||
is_null?: boolean;
|
is_null?: boolean;
|
||||||
not_null?: boolean;
|
not_null?: boolean;
|
||||||
|
/** Greater than */
|
||||||
|
gt?: Int64;
|
||||||
|
/** Less than */
|
||||||
|
lt?: Int64;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** applied on a string field
|
/** 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>;
|
not_in?: Array<string>;
|
||||||
is_null?: boolean;
|
is_null?: boolean;
|
||||||
not_null?: boolean;
|
not_null?: boolean;
|
||||||
|
not_contains?: string;
|
||||||
}
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,15 @@ export enum OrderField {
|
||||||
LastedPublishTime = 2,
|
LastedPublishTime = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Prompt 加密类型 */
|
||||||
|
export enum PromptEncryptOption {
|
||||||
|
Undefined = 0,
|
||||||
|
/** 加密且返回明文 */
|
||||||
|
EncryptWithPlainText = 1,
|
||||||
|
/** 加密且不返回明文 */
|
||||||
|
EncryptWithoutPlainText = 2,
|
||||||
|
}
|
||||||
|
|
||||||
/** 提示词类型 */
|
/** 提示词类型 */
|
||||||
export enum PromptType {
|
export enum PromptType {
|
||||||
Undefined = 0,
|
Undefined = 0,
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,8 @@ export enum IDC {
|
||||||
export enum MerlinFramework {
|
export enum MerlinFramework {
|
||||||
LLMServerPublic = 1,
|
LLMServerPublic = 1,
|
||||||
Laplace = 2,
|
Laplace = 2,
|
||||||
|
/** 电商团队专用协议,详见 */
|
||||||
|
Mixinfer = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum MerlinLLMInterface {
|
export enum MerlinLLMInterface {
|
||||||
|
|
@ -107,6 +109,12 @@ export enum MerlinQuotaPoolType {
|
||||||
ALI = 3,
|
ALI = 3,
|
||||||
/** 第三方资源hw */
|
/** 第三方资源hw */
|
||||||
HW = 4,
|
HW = 4,
|
||||||
|
/** hw arm */
|
||||||
|
HWARM = 5,
|
||||||
|
/** 弹性售卖资源,随时可能被抢占 */
|
||||||
|
Spot = 6,
|
||||||
|
/** 可抢占的稳定资源 */
|
||||||
|
Preemptible = 20,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum ModelFilterKey {
|
export enum ModelFilterKey {
|
||||||
|
|
@ -258,6 +266,10 @@ export enum SftTaskOutputStatus {
|
||||||
ExportFailed = 5,
|
ExportFailed = 5,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum SftTaskResourceMerlinVersion {
|
||||||
|
RemoveAnyGPU = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum SftTaskRunEventType {
|
export enum SftTaskRunEventType {
|
||||||
Undefined = 0,
|
Undefined = 0,
|
||||||
ErrorOccured = 1,
|
ErrorOccured = 1,
|
||||||
|
|
@ -336,6 +348,10 @@ export enum UsageScenario {
|
||||||
PromptAsAService = 3,
|
PromptAsAService = 3,
|
||||||
/** AI打标 */
|
/** AI打标 */
|
||||||
AIAnnotate = 4,
|
AIAnnotate = 4,
|
||||||
|
/** 质量分 */
|
||||||
|
AIScore = 5,
|
||||||
|
/** 数据标签 */
|
||||||
|
AITag = 6,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum ValidateStatus {
|
export enum ValidateStatus {
|
||||||
|
|
@ -364,9 +380,9 @@ export interface Ability {
|
||||||
functionCallEnabled?: boolean;
|
functionCallEnabled?: boolean;
|
||||||
/** 是否支持JSON模式 */
|
/** 是否支持JSON模式 */
|
||||||
jsonModeEnabled?: boolean;
|
jsonModeEnabled?: boolean;
|
||||||
/** 是否支持多模态 */
|
/** 是否支持多模态(模型输入) */
|
||||||
multiModalEnabled?: boolean;
|
multiModalEnabled?: boolean;
|
||||||
/** 多模态能力配置 */
|
/** 多模态能力配置(模型输入) */
|
||||||
multiModalAbility?: MultiModalAbility;
|
multiModalAbility?: MultiModalAbility;
|
||||||
/** 消息预处理hook */
|
/** 消息预处理hook */
|
||||||
messagePreHandleHook?: RuntimeHook;
|
messagePreHandleHook?: RuntimeHook;
|
||||||
|
|
@ -376,6 +392,8 @@ export interface Ability {
|
||||||
thinkingSwitchEnabled?: boolean;
|
thinkingSwitchEnabled?: boolean;
|
||||||
/** 思考能力配置 */
|
/** 思考能力配置 */
|
||||||
thinkingAbility?: ThinkingAbility;
|
thinkingAbility?: ThinkingAbility;
|
||||||
|
/** 是否支持多模态(模型输出) */
|
||||||
|
multiModalOutputEnabled?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Account {
|
export interface Account {
|
||||||
|
|
@ -522,7 +540,7 @@ export interface MerlinInfo {
|
||||||
framework?: MerlinFramework;
|
framework?: MerlinFramework;
|
||||||
instanceResourceOption?: InstanceResourceOption;
|
instanceResourceOption?: InstanceResourceOption;
|
||||||
/** 资源配置 */
|
/** 资源配置 */
|
||||||
deployDetailM?: Record<IDC, IDCDeployDetail>;
|
deployDetailM?: Partial<Record<IDC, IDCDeployDetail>>;
|
||||||
/** 服务节点id */
|
/** 服务节点id */
|
||||||
byteTreeNodeID?: Int64;
|
byteTreeNodeID?: Int64;
|
||||||
/** 服务树路径 */
|
/** 服务树路径 */
|
||||||
|
|
@ -945,6 +963,8 @@ export interface SftTaskResourceMerlin {
|
||||||
groupNames?: Record<Int64, string>;
|
groupNames?: Record<Int64, string>;
|
||||||
/** 集群名称 */
|
/** 集群名称 */
|
||||||
clusterName?: string;
|
clusterName?: string;
|
||||||
|
/** merlin资源格式的版本,目前唯一作用:由于资源格式不向前兼容,只有指定版本号的资源才能在复制精调任务时被写入到新任务中 */
|
||||||
|
version?: SftTaskResourceMerlinVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SftTaskResourceMerlinRole {
|
export interface SftTaskResourceMerlinRole {
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ export interface Space {
|
||||||
space_origin?: string;
|
space_origin?: string;
|
||||||
/** 服务树节点ID */
|
/** 服务树节点ID */
|
||||||
tree_node_id?: string;
|
tree_node_id?: string;
|
||||||
|
/** 具体配置内容 */
|
||||||
|
trace_config?: TraceConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 空间成员 */
|
/** 空间成员 */
|
||||||
|
|
@ -114,4 +116,12 @@ export interface SpaceMember {
|
||||||
/** 空间角色类型 */
|
/** 空间角色类型 */
|
||||||
space_role_type?: SpaceRoleType;
|
space_role_type?: SpaceRoleType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 观测配置 */
|
||||||
|
export interface TraceConfig {
|
||||||
|
/** 是否加密trace 默认false */
|
||||||
|
trace_encrypt?: boolean;
|
||||||
|
/** ttl天数 默认7,目前合法值有7/30/90 */
|
||||||
|
ttl?: number;
|
||||||
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,6 @@ export * from './namespaces/flow_devops_eino_app_debug';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class FornaxEinoApiService<T> {
|
export default class FornaxEinoApiService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('FornaxEinoApiService.request is undefined');
|
throw new Error('FornaxEinoApiService.request is undefined');
|
||||||
|
|
@ -204,5 +202,15 @@ export default class FornaxEinoApiService<T> {
|
||||||
const method = 'GET';
|
const method = 'GET';
|
||||||
return this.request({ url, method }, options);
|
return this.request({ url, method }, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** GET /eino/devops/version */
|
||||||
|
Version(
|
||||||
|
req?: flow_devops_eino_app.VersionReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<flow_devops_eino_app.VersionResp> {
|
||||||
|
const url = this.genBaseURL('/eino/devops/version');
|
||||||
|
const method = 'GET';
|
||||||
|
return this.request({ url, method }, options);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,43 @@ import * as flow_devops_eino_app_debug from './flow_devops_eino_app_debug';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
|
/** Code Doc */
|
||||||
|
export enum ErrCode {
|
||||||
|
InvalidConfig = 100,
|
||||||
|
DownloadEinoTool = 110,
|
||||||
|
CreateToolWindows = 120,
|
||||||
|
ComandExecute = 130,
|
||||||
|
DebugTestRun = 140,
|
||||||
|
DebugTestAbort = 150,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum SubErrCode {
|
||||||
|
CommonErrOfInvalidConfig = 100001,
|
||||||
|
NotFoundPropertiesErrOfInvalidConfig = 100002,
|
||||||
|
CommonErrOfDownloadEinoTool = 110001,
|
||||||
|
HTTPRequestTimeoutErrOfDownloadEinoTool = 110002,
|
||||||
|
HTTPRequestFailedErrOfDownloadEinoTool = 110003,
|
||||||
|
NotFoundMD5SignatureErrOfDownloadEinoTool = 110004,
|
||||||
|
MD5CheckFailedErrOfDownloadEinoTool = 110005,
|
||||||
|
WriteFileIOExceptionErrOfDownloadEinoTool = 110006,
|
||||||
|
AddPermissionExceptionErrOfDownloadEinoTool = 110007,
|
||||||
|
EinoToolDownloadEventErrOfDownloadEinoTool = 110008,
|
||||||
|
CommonErrOfCreateToolWindows = 120001,
|
||||||
|
OpenLinkFailedErrOfCreateToolWindows = 120002,
|
||||||
|
GetPageDataFailedErrOfCreateToolWindows = 120003,
|
||||||
|
InvaildEntryURLErrOfCreateToolWindows = 120004,
|
||||||
|
CommonErrOfComandExecute = 130001,
|
||||||
|
CommandVersionErrOfComandExecute = 130002,
|
||||||
|
CommandGetGenPathErrOfComandExecute = 130003,
|
||||||
|
CommandGenCodeErrOfComandExecute = 130004,
|
||||||
|
CommonErrOfDebugTestRun = 140001,
|
||||||
|
HTTPRequestTimeoutErrOfDebugTestRun = 140002,
|
||||||
|
HTTPRequestFailedErrOfDebugTestRun = 140003,
|
||||||
|
CommonErrOfDebugTestAbort = 150001,
|
||||||
|
HTTPRequestTimeoutErrOfDebugTestAbort = 150002,
|
||||||
|
HTTPRequestFailedErrOfDebugTestAbort = 150003,
|
||||||
|
}
|
||||||
|
|
||||||
export interface ComponentItem {
|
export interface ComponentItem {
|
||||||
/** 列表项名称 */
|
/** 列表项名称 */
|
||||||
name?: string;
|
name?: string;
|
||||||
|
|
@ -55,14 +92,7 @@ export interface DisplayReq {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DisplayResp {
|
export interface DisplayResp {
|
||||||
code?: Int64;
|
canvas_info?: flow_devops_eino_app_canvas.CanvasInfo;
|
||||||
msg?: string;
|
|
||||||
data?: GraphSchemaData;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface GenCodeResultData {
|
|
||||||
gen_path?: string;
|
|
||||||
fdl_schema?: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GetCanvasInfoData {
|
export interface GetCanvasInfoData {
|
||||||
|
|
@ -92,9 +122,8 @@ export interface GraphGenCodeReq {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GraphGenCodeResp {
|
export interface GraphGenCodeResp {
|
||||||
code?: Int64;
|
gen_path?: string;
|
||||||
msg?: string;
|
fdl_schema?: string;
|
||||||
data?: GenCodeResultData;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GraphMeta {
|
export interface GraphMeta {
|
||||||
|
|
@ -102,25 +131,15 @@ export interface GraphMeta {
|
||||||
name?: string;
|
name?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GraphSchemaData {
|
export interface ListComponentsRequest {}
|
||||||
canvas_info?: flow_devops_eino_app_canvas.CanvasInfo;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ListComponentsData {
|
export interface ListComponentsResp {
|
||||||
/** 官方组件 */
|
/** 官方组件 */
|
||||||
official_components?: Array<ComponentItem>;
|
official_components?: Array<ComponentItem>;
|
||||||
/** 自定义组件 */
|
/** 自定义组件 */
|
||||||
custom_components?: Array<ComponentItem>;
|
custom_components?: Array<ComponentItem>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ListComponentsRequest {}
|
|
||||||
|
|
||||||
export interface ListComponentsResp {
|
|
||||||
code: number;
|
|
||||||
msg: string;
|
|
||||||
data?: ListComponentsData;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ListGraphData {
|
export interface ListGraphData {
|
||||||
graphs?: Array<GraphMeta>;
|
graphs?: Array<GraphMeta>;
|
||||||
}
|
}
|
||||||
|
|
@ -169,4 +188,12 @@ export interface StreamDebugRunResp {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StreamLogReq {}
|
export interface StreamLogReq {}
|
||||||
|
|
||||||
|
export interface VersionReq {}
|
||||||
|
|
||||||
|
export interface VersionResp {
|
||||||
|
data: string;
|
||||||
|
code: Int64;
|
||||||
|
msg: string;
|
||||||
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,6 @@ export * from './namespaces/flow_devops_knowledge_runtime';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
|
|
||||||
export default class FornaxKnowledgeService<T> {
|
export default class FornaxKnowledgeService<T> {
|
||||||
private request: any = () => {
|
private request: any = () => {
|
||||||
throw new Error('FornaxKnowledgeService.request is undefined');
|
throw new Error('FornaxKnowledgeService.request is undefined');
|
||||||
|
|
@ -232,6 +230,7 @@ export default class FornaxKnowledgeService<T> {
|
||||||
channels: _req['channels'],
|
channels: _req['channels'],
|
||||||
top_k: _req['top_k'],
|
top_k: _req['top_k'],
|
||||||
rank: _req['rank'],
|
rank: _req['rank'],
|
||||||
|
options: _req['options'],
|
||||||
base: _req['base'],
|
base: _req['base'],
|
||||||
};
|
};
|
||||||
const headers = { Authorization: _req['Authorization'] };
|
const headers = { Authorization: _req['Authorization'] };
|
||||||
|
|
@ -466,7 +465,7 @@ export default class FornaxKnowledgeService<T> {
|
||||||
/**
|
/**
|
||||||
* POST /open-apis/knowledge/v1/data/import_table_entry
|
* POST /open-apis/knowledge/v1/data/import_table_entry
|
||||||
*
|
*
|
||||||
* ============== 数据导入接口 ==============
|
* ============== OpenAPI接口 ==============
|
||||||
*/
|
*/
|
||||||
ImportKnowledgeTableData(
|
ImportKnowledgeTableData(
|
||||||
req?: flow_devops_knowledge_runtime.ImportKnowledgeTableDataReq,
|
req?: flow_devops_knowledge_runtime.ImportKnowledgeTableDataReq,
|
||||||
|
|
@ -480,6 +479,7 @@ export default class FornaxKnowledgeService<T> {
|
||||||
const data = {
|
const data = {
|
||||||
document_id: _req['document_id'],
|
document_id: _req['document_id'],
|
||||||
entries: _req['entries'],
|
entries: _req['entries'],
|
||||||
|
unique_entries: _req['unique_entries'],
|
||||||
base: _req['base'],
|
base: _req['base'],
|
||||||
};
|
};
|
||||||
const headers = { Authorization: _req['Authorization'] };
|
const headers = { Authorization: _req['Authorization'] };
|
||||||
|
|
@ -544,5 +544,85 @@ export default class FornaxKnowledgeService<T> {
|
||||||
const data = { number: _req['number'], base: _req['base'] };
|
const data = { number: _req['number'], base: _req['base'] };
|
||||||
return this.request({ url, method, data }, options);
|
return this.request({ url, method, data }, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** POST /open-apis/knowledge/v1/embedding */
|
||||||
|
OApiStartEmbedding(
|
||||||
|
req?: flow_devops_knowledge_runtime.StartEmbeddingReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<flow_devops_knowledge_runtime.StartEmbeddingResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL('/open-apis/knowledge/v1/embedding');
|
||||||
|
const method = 'POST';
|
||||||
|
const data = {
|
||||||
|
knowledge_document_id: _req['knowledge_document_id'],
|
||||||
|
chunk_rule: _req['chunk_rule'],
|
||||||
|
base: _req['base'],
|
||||||
|
};
|
||||||
|
const headers = { Authorization: _req['Authorization'] };
|
||||||
|
return this.request({ url, method, data, headers }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** POST /open-apis/knowledge/v1/knowledge_shelf_doc/mget */
|
||||||
|
OApiMGetKnowledgeShelfDocument(
|
||||||
|
req?: flow_devops_knowledge_runtime.MGetKnowledgeShelfDocumentReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<flow_devops_knowledge_runtime.MGetKnowledgeShelfDocumentResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL(
|
||||||
|
'/open-apis/knowledge/v1/knowledge_shelf_doc/mget',
|
||||||
|
);
|
||||||
|
const method = 'POST';
|
||||||
|
const data = {
|
||||||
|
knowledge_id: _req['knowledge_id'],
|
||||||
|
knowledge_shelf_document_id: _req['knowledge_shelf_document_id'],
|
||||||
|
type: _req['type'],
|
||||||
|
offset: _req['offset'],
|
||||||
|
limit: _req['limit'],
|
||||||
|
base: _req['base'],
|
||||||
|
};
|
||||||
|
const headers = { Authorization: _req['Authorization'] };
|
||||||
|
return this.request({ url, method, data, headers }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** POST /open-apis/knowledge/v1/knowledge_doc_entry/mget */
|
||||||
|
OApiMGetKnowledgeDocumentEntry(
|
||||||
|
req?: flow_devops_knowledge_runtime.MGetKnowledgeDocumentEntryReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<flow_devops_knowledge_runtime.MGetKnowledgeDocumentEntryResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL(
|
||||||
|
'/open-apis/knowledge/v1/knowledge_doc_entry/mget',
|
||||||
|
);
|
||||||
|
const method = 'POST';
|
||||||
|
const data = {
|
||||||
|
knowledge_shelf_document_id: _req['knowledge_shelf_document_id'],
|
||||||
|
knowledge_document_id: _req['knowledge_document_id'],
|
||||||
|
resource_type: _req['resource_type'],
|
||||||
|
offset: _req['offset'],
|
||||||
|
limit: _req['limit'],
|
||||||
|
base: _req['base'],
|
||||||
|
};
|
||||||
|
const headers = { Authorization: _req['Authorization'] };
|
||||||
|
return this.request({ url, method, data, headers }, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** POST /open-apis/knowledge/v1/knowledge_doc_entry/batch_delete */
|
||||||
|
OApiBatchDeleteKnowledgeDocumentEntry(
|
||||||
|
req?: flow_devops_knowledge_runtime.BatchDeleteKnowledgeDocumentEntryReq,
|
||||||
|
options?: T,
|
||||||
|
): Promise<flow_devops_knowledge_runtime.BatchDeleteKnowledgeDocumentEntryResp> {
|
||||||
|
const _req = req || {};
|
||||||
|
const url = this.genBaseURL(
|
||||||
|
'/open-apis/knowledge/v1/knowledge_doc_entry/batch_delete',
|
||||||
|
);
|
||||||
|
const method = 'POST';
|
||||||
|
const data = {
|
||||||
|
knowledge_document_id: _req['knowledge_document_id'],
|
||||||
|
knowledge_document_entry_ids: _req['knowledge_document_entry_ids'],
|
||||||
|
base: _req['base'],
|
||||||
|
};
|
||||||
|
const headers = { Authorization: _req['Authorization'] };
|
||||||
|
return this.request({ url, method, data, headers }, options);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,10 @@ export interface RetrieveChannel {
|
||||||
score?: number;
|
score?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface RetrieveOptions {
|
||||||
|
parse_table_values?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
export interface RetrieveReq {
|
export interface RetrieveReq {
|
||||||
Authorization?: string;
|
Authorization?: string;
|
||||||
knowledge_keys?: Array<string>;
|
knowledge_keys?: Array<string>;
|
||||||
|
|
@ -73,6 +77,7 @@ export interface RetrieveReq {
|
||||||
channels?: Array<Channel>;
|
channels?: Array<Channel>;
|
||||||
top_k?: number;
|
top_k?: number;
|
||||||
rank?: Ranker;
|
rank?: Ranker;
|
||||||
|
options?: RetrieveOptions;
|
||||||
base?: base.Base;
|
base?: base.Base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,17 +20,91 @@
|
||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
|
|
||||||
import * as base from './base';
|
import * as base from './base';
|
||||||
|
import * as flow_devops_knowledge_common from './flow_devops_knowledge_common';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
|
export interface BatchDeleteKnowledgeDocumentEntryReq {
|
||||||
|
Authorization?: string;
|
||||||
|
knowledge_document_id?: Int64;
|
||||||
|
knowledge_document_entry_ids?: Array<Int64>;
|
||||||
|
base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface BatchDeleteKnowledgeDocumentEntryResp {
|
||||||
|
code?: number;
|
||||||
|
msg?: string;
|
||||||
|
base_resp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
export interface ImportKnowledgeTableDataReq {
|
export interface ImportKnowledgeTableDataReq {
|
||||||
Authorization?: string;
|
Authorization?: string;
|
||||||
document_id?: Int64;
|
document_id?: Int64;
|
||||||
entries?: Array<Record<string, string>>;
|
entries?: Array<Record<string, string>>;
|
||||||
|
unique_entries?: Array<UniqueEntry>;
|
||||||
base?: base.Base;
|
base?: base.Base;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ImportKnowledgeTableDataResp {
|
export interface ImportKnowledgeTableDataResp {
|
||||||
|
code?: number;
|
||||||
|
msg?: string;
|
||||||
base_resp?: base.BaseResp;
|
base_resp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface MGetKnowledgeDocumentEntryReq {
|
||||||
|
Authorization?: string;
|
||||||
|
knowledge_shelf_document_id?: Int64;
|
||||||
|
knowledge_document_id?: Int64;
|
||||||
|
/** 数据来源 */
|
||||||
|
resource_type?: flow_devops_knowledge_common.ResourceType;
|
||||||
|
offset?: number;
|
||||||
|
limit?: number;
|
||||||
|
base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface MGetKnowledgeDocumentEntryResp {
|
||||||
|
knowledge_document_entries?: Array<flow_devops_knowledge_common.KnowledgeDocumentEntry>;
|
||||||
|
total?: number;
|
||||||
|
code?: number;
|
||||||
|
msg?: string;
|
||||||
|
base_resp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface MGetKnowledgeShelfDocumentReq {
|
||||||
|
Authorization?: string;
|
||||||
|
knowledge_id?: Int64;
|
||||||
|
knowledge_shelf_document_id?: Int64;
|
||||||
|
type?: flow_devops_knowledge_common.KnowledgeShelfDocumentType;
|
||||||
|
offset?: number;
|
||||||
|
limit?: number;
|
||||||
|
base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface MGetKnowledgeShelfDocumentResp {
|
||||||
|
knowledge_shelf_documents?: Array<flow_devops_knowledge_common.KnowledgeShelfDocument>;
|
||||||
|
total?: number;
|
||||||
|
code?: number;
|
||||||
|
msg?: string;
|
||||||
|
base_resp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface StartEmbeddingReq {
|
||||||
|
Authorization?: string;
|
||||||
|
knowledge_document_id?: Int64;
|
||||||
|
chunk_rule?: flow_devops_knowledge_common.ChunkRule;
|
||||||
|
base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface StartEmbeddingResp {
|
||||||
|
code?: number;
|
||||||
|
msg?: string;
|
||||||
|
base_resp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** --------------------------------------- 知识库OpenAPI -------------------------------------------
|
||||||
|
OpenAPI的设计不允许以SpaceID为粒度进行CRUD,最粗粒度限制为KnowledgeID粒度。 */
|
||||||
|
export interface UniqueEntry {
|
||||||
|
unique_id?: Int64;
|
||||||
|
entry?: Record<string, string>;
|
||||||
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -79,6 +79,9 @@ export interface AIAnnotateTask {
|
||||||
userPromptColumnName?: string;
|
userPromptColumnName?: string;
|
||||||
promptVariables?: Array<PromptVariable>;
|
promptVariables?: Array<PromptVariable>;
|
||||||
latestTaskRunID?: string;
|
latestTaskRunID?: string;
|
||||||
|
/** 打标并发度 */
|
||||||
|
executeConcurrency?: number;
|
||||||
|
spaceID?: string;
|
||||||
/** 创建人ID */
|
/** 创建人ID */
|
||||||
createdBy?: string;
|
createdBy?: string;
|
||||||
/** 创建时间,ms */
|
/** 创建时间,ms */
|
||||||
|
|
|
||||||
|
|
@ -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 */
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
|
|
||||||
|
import * as filter from './filter';
|
||||||
import * as flow_devops_prompt_common from './flow_devops_prompt_common';
|
import * as flow_devops_prompt_common from './flow_devops_prompt_common';
|
||||||
import * as batch_infer from './batch_infer';
|
import * as batch_infer from './batch_infer';
|
||||||
|
|
||||||
|
|
@ -40,11 +41,39 @@ export enum AnnotationType {
|
||||||
Manual = 3,
|
Manual = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum CrowdsourcingAnnotateJobStatus {
|
||||||
|
Undefined = 0,
|
||||||
|
Sending = 1,
|
||||||
|
In_Progress = 2,
|
||||||
|
Abnormal = 3,
|
||||||
|
Completed = 4,
|
||||||
|
Terminated = 5,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum CrowdsourcingAnnotationPlatform {
|
||||||
|
Undefined = 0,
|
||||||
|
AIDP = 1,
|
||||||
|
AIDP_Lite = 2,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum DataSelectScope {
|
||||||
|
Undefined = 0,
|
||||||
|
All = 1,
|
||||||
|
Filtered = 2,
|
||||||
|
Manually_Selected = 3,
|
||||||
|
}
|
||||||
|
|
||||||
export enum RuleAnnotatorCategory {
|
export enum RuleAnnotatorCategory {
|
||||||
/** python */
|
/** python */
|
||||||
Python = 1,
|
Python = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum ThinkingOutputBehavior {
|
||||||
|
UNSPECIFIED = 0,
|
||||||
|
WithoutThinking = 1,
|
||||||
|
ThinkingToSpecifiedColumn = 2,
|
||||||
|
}
|
||||||
|
|
||||||
export interface AIAnnotator {
|
export interface AIAnnotator {
|
||||||
/** 该字段和内层的PromptCategory含义不同,代表是否关联已有评估器,当前没有用到该字段 */
|
/** 该字段和内层的PromptCategory含义不同,代表是否关联已有评估器,当前没有用到该字段 */
|
||||||
category?: AIAnnotatorCategory;
|
category?: AIAnnotatorCategory;
|
||||||
|
|
@ -52,6 +81,57 @@ export interface AIAnnotator {
|
||||||
offlineAIAnnotator?: OfflineAIAnnotator;
|
offlineAIAnnotator?: OfflineAIAnnotator;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface AIDPConfig {
|
||||||
|
/** AIDP 用户 ID */
|
||||||
|
userID: string;
|
||||||
|
/** AIDP 任务 ID */
|
||||||
|
taskID: string;
|
||||||
|
/** 任务名称 */
|
||||||
|
taskName: string;
|
||||||
|
/** 任务详情链接,返回字段 */
|
||||||
|
taskURL?: string;
|
||||||
|
answerSchema?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AIDPField {
|
||||||
|
key?: string;
|
||||||
|
name?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AIDPFlowNode {
|
||||||
|
nodeID?: string;
|
||||||
|
name?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AIDPTaskFlowConfig {
|
||||||
|
nodes?: Array<AIDPFlowNode>;
|
||||||
|
requiredFields?: Array<AIDPField>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AIDPTaskSummary {
|
||||||
|
/** 任务ID */
|
||||||
|
taskID?: string;
|
||||||
|
/** 任务名称 */
|
||||||
|
title?: string;
|
||||||
|
/** 项目名称 */
|
||||||
|
projectName?: string;
|
||||||
|
/** 回调配置 */
|
||||||
|
callbackOpts?: CallbackOpts;
|
||||||
|
/** 答案模板ID */
|
||||||
|
templateID?: string;
|
||||||
|
/** 任务链接 */
|
||||||
|
taskURL?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AnnotateStatusDetail {
|
||||||
|
/** 总数据量 */
|
||||||
|
inputSize?: string;
|
||||||
|
/** 已送标数据量 */
|
||||||
|
sent?: string;
|
||||||
|
/** 已取标数据量 */
|
||||||
|
received?: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface AnnotationConfig {
|
export interface AnnotationConfig {
|
||||||
/** 标注任务类型 */
|
/** 标注任务类型 */
|
||||||
annotationType?: AnnotationType;
|
annotationType?: AnnotationType;
|
||||||
|
|
@ -121,6 +201,78 @@ export interface Annotator {
|
||||||
manualAnnotator?: ManualAnnotator;
|
manualAnnotator?: ManualAnnotator;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface CallbackOpts {
|
||||||
|
CallbackType?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CrowdsourcingAnnotateInputConfig {
|
||||||
|
/** 输入数据集ID */
|
||||||
|
inputDatasetID: string;
|
||||||
|
/** 输入数据集名 */
|
||||||
|
inputDatasetName: string;
|
||||||
|
/** 输入数据集版本 */
|
||||||
|
inputDatasetVersionNum: string;
|
||||||
|
/** 输入数据集Veriosn主键 */
|
||||||
|
inputDatasetVersionID: string;
|
||||||
|
/** 三段式版本号返回字段 */
|
||||||
|
inputDatasetVersion?: string;
|
||||||
|
/** 需要标注数据的itemID */
|
||||||
|
itemIDs?: Array<Int64>;
|
||||||
|
/** 数据筛选条件,待定看标签的具体实现 */
|
||||||
|
filter?: filter.Filter;
|
||||||
|
/** 返回字段 */
|
||||||
|
fieldMeta?: filter.FieldMetaInfoData;
|
||||||
|
/** 返回字段 */
|
||||||
|
total?: number;
|
||||||
|
/** 发送字段映射配置 */
|
||||||
|
inputMappings: Array<InputMapping>;
|
||||||
|
/** 数据范围 */
|
||||||
|
dataSelectScope?: DataSelectScope;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CrowdsourcingAnnotateJob {
|
||||||
|
/** 主键 */
|
||||||
|
id?: string;
|
||||||
|
name?: string;
|
||||||
|
description?: string;
|
||||||
|
platform?: CrowdsourcingAnnotationPlatform;
|
||||||
|
/** AIDP 配置 */
|
||||||
|
aidpConfig?: AIDPConfig;
|
||||||
|
/** 送标配置 */
|
||||||
|
inputConfig?: CrowdsourcingAnnotateInputConfig;
|
||||||
|
/** 取标配置 */
|
||||||
|
outputConfig?: CrowdsourcingAnnotateOutputConfig;
|
||||||
|
/** 数据详情存储的数据集ID */
|
||||||
|
InternalDatasetID?: string;
|
||||||
|
/** 任务状态 */
|
||||||
|
status?: CrowdsourcingAnnotateJobStatus;
|
||||||
|
/** 失败的原因 */
|
||||||
|
terminateReason?: string;
|
||||||
|
/** 任务进展 */
|
||||||
|
statusDetail?: AnnotateStatusDetail;
|
||||||
|
/** 创建时间 */
|
||||||
|
createdAt?: string;
|
||||||
|
/** 更新时间/结束时间 */
|
||||||
|
updatedAt?: string;
|
||||||
|
/** 创建人 */
|
||||||
|
createdBy?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CrowdsourcingAnnotateOutputConfig {
|
||||||
|
/** 是否自动取标 */
|
||||||
|
isAutoFetchRes: boolean;
|
||||||
|
/** 是否自动输出到新数据集 */
|
||||||
|
isAutoExportToNewDataset: boolean;
|
||||||
|
/** 输出数据集名称 */
|
||||||
|
outputDatasetName?: string;
|
||||||
|
/** 输出数据集ID 返回字段 */
|
||||||
|
outputDatasetID?: string;
|
||||||
|
/** 是否拆解标注结果 */
|
||||||
|
isParseAnnotateRes: boolean;
|
||||||
|
/** 输出映射 */
|
||||||
|
outputMappings?: Array<OutputMapping>;
|
||||||
|
}
|
||||||
|
|
||||||
export interface InputMapping {
|
export interface InputMapping {
|
||||||
/** 输入类型: 固定值fixed、关联字段use_column、之前输入former_model_input、之前输出former_model_output */
|
/** 输入类型: 固定值fixed、关联字段use_column、之前输入former_model_input、之前输出former_model_output */
|
||||||
sourceType?: string;
|
sourceType?: string;
|
||||||
|
|
@ -130,6 +282,8 @@ export interface InputMapping {
|
||||||
targetType?: string;
|
targetType?: string;
|
||||||
/** 输出值 */
|
/** 输出值 */
|
||||||
targetValue?: string;
|
targetValue?: string;
|
||||||
|
/** 如果是列这个字段可以存储name */
|
||||||
|
sourceName?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ManualAnnotator {
|
export interface ManualAnnotator {
|
||||||
|
|
@ -148,6 +302,8 @@ export interface ManualAnnotator {
|
||||||
inputMappings?: Array<InputMapping>;
|
inputMappings?: Array<InputMapping>;
|
||||||
/** 输出映射 */
|
/** 输出映射 */
|
||||||
outputMappings?: Array<OutputMapping>;
|
outputMappings?: Array<OutputMapping>;
|
||||||
|
/** thinking输出映射,当ThinkingOutputBehavior=ThinkingToSpecifiedColumn时使用 */
|
||||||
|
thinkingOutputMapping?: OutputMapping;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OfflineAIAnnotator {
|
export interface OfflineAIAnnotator {
|
||||||
|
|
@ -197,6 +353,8 @@ export interface OnlineAIAnnotator {
|
||||||
autoUpdate?: boolean;
|
autoUpdate?: boolean;
|
||||||
/** 打标并发度 */
|
/** 打标并发度 */
|
||||||
executeConcurrency?: number;
|
executeConcurrency?: number;
|
||||||
|
/** 输出模型thinking过程的策略 */
|
||||||
|
thinkingOutputBehavior?: ThinkingOutputBehavior;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OutputMapping {
|
export interface OutputMapping {
|
||||||
|
|
@ -208,6 +366,10 @@ export interface OutputMapping {
|
||||||
targetType?: string;
|
targetType?: string;
|
||||||
/** 输出值 */
|
/** 输出值 */
|
||||||
targetValue?: string;
|
targetValue?: string;
|
||||||
|
/** targetType是use_column时标识是否是新建列 */
|
||||||
|
isNewColumn?: boolean;
|
||||||
|
/** 输入值的标签/name */
|
||||||
|
sourceName?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PassKTask {
|
export interface PassKTask {
|
||||||
|
|
@ -282,4 +444,15 @@ export interface RuleAnnotator {
|
||||||
/** 仅为失败项打标 */
|
/** 仅为失败项打标 */
|
||||||
onlyForFailed?: boolean;
|
onlyForFailed?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface SearchConfig {
|
||||||
|
/** 数据集ID */
|
||||||
|
datasetID?: string;
|
||||||
|
/** 搜索的任务名称 */
|
||||||
|
jobName?: string;
|
||||||
|
/** 搜索的任务ID */
|
||||||
|
jobID?: string;
|
||||||
|
/** 搜索的创建人 */
|
||||||
|
createdBy?: Array<string>;
|
||||||
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,12 @@ import * as datasetv2job from './datasetv2job';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
|
export enum BatchInferDatasetType {
|
||||||
|
DatasetV2 = 0,
|
||||||
|
HDFS = 1,
|
||||||
|
TOS = 2,
|
||||||
|
}
|
||||||
|
|
||||||
export enum BatchInferTaskStatus {
|
export enum BatchInferTaskStatus {
|
||||||
Preparing = 0,
|
Preparing = 0,
|
||||||
Launching = 1,
|
Launching = 1,
|
||||||
|
|
@ -75,17 +81,56 @@ export enum OutputConfigType {
|
||||||
|
|
||||||
export enum Provider {
|
export enum Provider {
|
||||||
/** GPTOpenAPI = 1 // GPT OpenAPI平台
|
/** GPTOpenAPI = 1 // GPT OpenAPI平台
|
||||||
Maas = 2 // 火山方舟
|
火山方舟 */
|
||||||
BotEngine = 3 // 暂时特指seed从bot_engine接入
|
Maas = 2,
|
||||||
Merlin = 4 // merlin平台
|
/** BotEngine = 3 // 暂时特指seed从bot_engine接入
|
||||||
merlin-seed平台 */
|
merlin平台 */
|
||||||
|
Merlin = 4,
|
||||||
|
/** merlin-seed平台 */
|
||||||
MerlinSeed = 5,
|
MerlinSeed = 5,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum TrainingMethod {
|
||||||
|
LoRA = 1,
|
||||||
|
Full = 2,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum TrainingType {
|
||||||
|
SftFineTuning = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ArkModel {
|
||||||
|
foundationModelName?: string;
|
||||||
|
foundationModelVersion?: string;
|
||||||
|
/** 如果是精调后的模型,这个id非空 */
|
||||||
|
customModelID?: string;
|
||||||
|
sftTaskID?: string;
|
||||||
|
/** 训练类型 */
|
||||||
|
trainingType?: TrainingType;
|
||||||
|
/** 训练方法 */
|
||||||
|
trainingMethod?: TrainingMethod;
|
||||||
|
}
|
||||||
|
|
||||||
export interface BatchInferDataset {
|
export interface BatchInferDataset {
|
||||||
datasetID?: string;
|
datasetID?: string;
|
||||||
inputConfig?: InputConfig;
|
inputConfig?: InputConfig;
|
||||||
outputConfig?: OutputConfig;
|
outputConfig?: OutputConfig;
|
||||||
|
/** 默认是数据集v2,本期新增hdfs和tos */
|
||||||
|
datasetType?: BatchInferDatasetType;
|
||||||
|
/** 待推理的数据集hdfs路径 */
|
||||||
|
hdfsPath?: string;
|
||||||
|
/** 待推理的图片存储的文件夹路径 */
|
||||||
|
imageHdfsPath?: string;
|
||||||
|
/** 输出结果保存的hdfs路径 */
|
||||||
|
outputHdfsPath?: string;
|
||||||
|
/** 待推理的数据集的tos桶名 */
|
||||||
|
tosBucketName?: string;
|
||||||
|
/** 待推理的数据集的tos对象名称 */
|
||||||
|
tosObjKey?: string;
|
||||||
|
/** 输出结果保存的tos桶名 */
|
||||||
|
outputTosBucketName?: string;
|
||||||
|
/** 输出结果保存的tos对象名称 */
|
||||||
|
outputTosObjKey?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BatchInferParam {
|
export interface BatchInferParam {
|
||||||
|
|
@ -96,6 +141,8 @@ export interface BatchInferParam {
|
||||||
maxContextToken?: string;
|
maxContextToken?: string;
|
||||||
/** 推理次数 */
|
/** 推理次数 */
|
||||||
inferTimes?: string;
|
inferTimes?: string;
|
||||||
|
/** 推理批次大小 */
|
||||||
|
batchSize?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BatchInferTask {
|
export interface BatchInferTask {
|
||||||
|
|
@ -152,6 +199,10 @@ export interface CkptExecResult {
|
||||||
itemIDColumnName?: string;
|
itemIDColumnName?: string;
|
||||||
/** dataset id 所在的列名 */
|
/** dataset id 所在的列名 */
|
||||||
datasetIDColumnName?: string;
|
datasetIDColumnName?: string;
|
||||||
|
/** 数据集上传到 tos 的 bucket */
|
||||||
|
datasetTosBucket?: string;
|
||||||
|
/** 数据集上传到 tos 的object key */
|
||||||
|
datasetTosObjectKey?: string;
|
||||||
/** 创建推理任务 [10,20)
|
/** 创建推理任务 [10,20)
|
||||||
merlin seed离线推理任务实际上就是在merlin任务用例外包了一层,在这里记录这个merlin任务用例id */
|
merlin seed离线推理任务实际上就是在merlin任务用例外包了一层,在这里记录这个merlin任务用例id */
|
||||||
merlinJobID?: string;
|
merlinJobID?: string;
|
||||||
|
|
@ -166,6 +217,18 @@ merlin推理任务状态 */
|
||||||
merlinDataProcessInstanceStatus?: string;
|
merlinDataProcessInstanceStatus?: string;
|
||||||
/** merlin 任务实例是否终止 */
|
/** merlin 任务实例是否终止 */
|
||||||
merlinJobTerminated?: boolean;
|
merlinJobTerminated?: boolean;
|
||||||
|
/** merlin 任务实例状态 */
|
||||||
|
merlinJobStatus?: string;
|
||||||
|
/** merlin 任务实例错误信息 */
|
||||||
|
merlinJobErrMsg?: string;
|
||||||
|
/** 有merlin 任务实例上报的错误信息 */
|
||||||
|
merlinJobUploadedErrMsg?: string;
|
||||||
|
/** 方舟任务状态 */
|
||||||
|
arkJobStatus?: string;
|
||||||
|
/** 方舟任务状态说明 */
|
||||||
|
arkJobDetail?: string;
|
||||||
|
/** 方舟任务状态更新时间 */
|
||||||
|
arkJobStatusUpdateTimeMs?: Int64;
|
||||||
/** 导出推理结果 [30,40)
|
/** 导出推理结果 [30,40)
|
||||||
推理结果输出的列名 */
|
推理结果输出的列名 */
|
||||||
inferResultColumnName?: string;
|
inferResultColumnName?: string;
|
||||||
|
|
@ -222,6 +285,30 @@ export interface InputConfig {
|
||||||
type?: InputConfigType;
|
type?: InputConfigType;
|
||||||
/** 作为输入的数据集列名 */
|
/** 作为输入的数据集列名 */
|
||||||
rawInput?: string;
|
rawInput?: string;
|
||||||
|
/** 每行数据的唯一标识的列名 */
|
||||||
|
itemID?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface MerlinModel {
|
||||||
|
/** 多记录一些额外信息,比如是基座模型还是训练后的模型,如果是训练后的模型,那么还需要记录训练任务的id
|
||||||
|
模型文件保存地址 */
|
||||||
|
hdfsPath?: string;
|
||||||
|
/** 基座模型名称 */
|
||||||
|
foundationModelName?: string;
|
||||||
|
/** 3: optional string foundationModelFamily // 基座模型家族
|
||||||
|
4: optional string foundationModelVendor // 基座模型厂商
|
||||||
|
5: optional string foundationModelDisplayName // 基座模型显示名称
|
||||||
|
6: optional i64 foundationModelVersionUpdateTimeInMs // 基座模型版本更新时间
|
||||||
|
训练任务id,当训练任务非0时,说明此次批量推理使用的模型是训练后的产物 */
|
||||||
|
sftTaskID?: string;
|
||||||
|
/** 训练产物的名称(此时要求该产物已经导出到merlin的模型仓库中,因此这个name就是merlin的某个模型仓库名称) */
|
||||||
|
merlinModelName?: string;
|
||||||
|
/** merlin的某个模型仓库的版本 */
|
||||||
|
merlinModelVersion?: string;
|
||||||
|
/** 训练类型 */
|
||||||
|
trainingType?: TrainingType;
|
||||||
|
/** 训练方法 */
|
||||||
|
trainingMethod?: TrainingMethod;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MerlinResource {
|
export interface MerlinResource {
|
||||||
|
|
@ -273,6 +360,8 @@ export interface OutputConfig {
|
||||||
type?: OutputConfigType;
|
type?: OutputConfigType;
|
||||||
/** 输出会保存在这个数据集列名 */
|
/** 输出会保存在这个数据集列名 */
|
||||||
rawOutput?: string;
|
rawOutput?: string;
|
||||||
|
/** 完整输出会保存在这个数据集列名(目前只支持方舟/开源模型/训练后的开源模型) */
|
||||||
|
completeOutput?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProviderInfo {
|
export interface ProviderInfo {
|
||||||
|
|
@ -281,5 +370,11 @@ export interface ProviderInfo {
|
||||||
merlinResource?: MerlinResource;
|
merlinResource?: MerlinResource;
|
||||||
merlinCustomEnvs?: Record<string, string>;
|
merlinCustomEnvs?: Record<string, string>;
|
||||||
merlinSeedDataProcessType?: MerlinSeedDataProcessType;
|
merlinSeedDataProcessType?: MerlinSeedDataProcessType;
|
||||||
|
/** open source model */
|
||||||
|
merlinModel?: MerlinModel;
|
||||||
|
/** 方舟model */
|
||||||
|
arkModel?: ArkModel;
|
||||||
|
/** 方舟项目名称 */
|
||||||
|
arkProjectName?: string;
|
||||||
}
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
|
|
||||||
import * as datasetv2similarity from './datasetv2similarity';
|
import * as datasetv2similarity from './datasetv2similarity';
|
||||||
|
import * as tag from './tag';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
|
|
@ -44,6 +45,12 @@ export enum DatasetCategory {
|
||||||
Evaluation = 4,
|
Evaluation = 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum DatasetLockReason {
|
||||||
|
Undefined = 0,
|
||||||
|
/** 众包标注任务正在运行 */
|
||||||
|
CrowdsourcingAnnotateJobRunning = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum DatasetStatus {
|
export enum DatasetStatus {
|
||||||
Available = 1,
|
Available = 1,
|
||||||
Deleted = 2,
|
Deleted = 2,
|
||||||
|
|
@ -68,6 +75,7 @@ export enum FieldDisplayFormat {
|
||||||
JSON = 3,
|
JSON = 3,
|
||||||
YAML = 4,
|
YAML = 4,
|
||||||
Code = 5,
|
Code = 5,
|
||||||
|
SingleOption = 6,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum FieldStatus {
|
export enum FieldStatus {
|
||||||
|
|
@ -75,6 +83,11 @@ export enum FieldStatus {
|
||||||
Deleted = 2,
|
Deleted = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum FieldTransformationType {
|
||||||
|
/** 移除未在当前列的 jsonSchema 中定义的字段(包括 properties 和 patternProperties),仅在列类型为 struct 时有效 */
|
||||||
|
RemoveExtraFields = 1,
|
||||||
|
}
|
||||||
|
|
||||||
export enum ItemErrorType {
|
export enum ItemErrorType {
|
||||||
/** schema 不匹配 */
|
/** schema 不匹配 */
|
||||||
MismatchSchema = 1,
|
MismatchSchema = 1,
|
||||||
|
|
@ -88,10 +101,18 @@ export enum ItemErrorType {
|
||||||
MalformedFile = 5,
|
MalformedFile = 5,
|
||||||
/** 包含非法内容 */
|
/** 包含非法内容 */
|
||||||
IllegalContent = 6,
|
IllegalContent = 6,
|
||||||
|
/** 缺少必填字段 */
|
||||||
|
MissingRequiredField = 7,
|
||||||
|
/** 数据嵌套层数超限 */
|
||||||
|
ExceedMaxNestedDepth = 8,
|
||||||
|
/** 数据转换失败 */
|
||||||
|
TransformItemFailed = 9,
|
||||||
/** system error */
|
/** system error */
|
||||||
InternalError = 100,
|
InternalError = 100,
|
||||||
/** 清空数据集失败 */
|
/** 清空数据集失败 */
|
||||||
ClearDatasetFailed = 101,
|
ClearDatasetFailed = 101,
|
||||||
|
/** 读写文件失败 */
|
||||||
|
RWFileFailed = 102,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum SchemaKey {
|
export enum SchemaKey {
|
||||||
|
|
@ -100,6 +121,8 @@ export enum SchemaKey {
|
||||||
Float = 3,
|
Float = 3,
|
||||||
Bool = 4,
|
Bool = 4,
|
||||||
Message = 5,
|
Message = 5,
|
||||||
|
/** 单选 */
|
||||||
|
SingleChoice = 6,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum SecurityLevel {
|
export enum SecurityLevel {
|
||||||
|
|
@ -165,6 +188,8 @@ export interface Dataset {
|
||||||
/** DTO 专用字段
|
/** DTO 专用字段
|
||||||
是否有未提交的修改 */
|
是否有未提交的修改 */
|
||||||
changeUncommitted?: boolean;
|
changeUncommitted?: boolean;
|
||||||
|
/** 数据集锁定信息 */
|
||||||
|
lockInfo?: Array<DatasetLockInfo>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DatasetFeatures {
|
export interface DatasetFeatures {
|
||||||
|
|
@ -206,6 +231,12 @@ export interface DatasetItem {
|
||||||
dataOmitted?: boolean;
|
dataOmitted?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface DatasetLockInfo {
|
||||||
|
reason?: DatasetLockReason;
|
||||||
|
/** 众包标注任务ID */
|
||||||
|
crowdsourcingAnnotateJobID?: string;
|
||||||
|
}
|
||||||
|
|
||||||
/** DatasetSchema 数据集 Schema,包含数据集列的类型限制等信息 */
|
/** DatasetSchema 数据集 Schema,包含数据集列的类型限制等信息 */
|
||||||
export interface DatasetSchema {
|
export interface DatasetSchema {
|
||||||
/** 主键 ID,创建时可以不传 */
|
/** 主键 ID,创建时可以不传 */
|
||||||
|
|
@ -235,6 +266,8 @@ export interface DatasetSpec {
|
||||||
maxFieldCount?: number;
|
maxFieldCount?: number;
|
||||||
/** 单条数据字数上限 */
|
/** 单条数据字数上限 */
|
||||||
maxItemSize?: string;
|
maxItemSize?: string;
|
||||||
|
/** 单条 array/struct 数据嵌套上限 */
|
||||||
|
maxItemDataNestedDepth?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** DatasetVersion 数据集版本元信息,不包含数据本身 */
|
/** DatasetVersion 数据集版本元信息,不包含数据本身 */
|
||||||
|
|
@ -277,6 +310,12 @@ export interface FieldData {
|
||||||
format?: FieldDisplayFormat;
|
format?: FieldDisplayFormat;
|
||||||
/** 图文混排时,图文内容 */
|
/** 图文混排时,图文内容 */
|
||||||
parts?: Array<FieldData>;
|
parts?: Array<FieldData>;
|
||||||
|
/** 这条数据生成traceID */
|
||||||
|
traceID?: string;
|
||||||
|
/** 是否生成失败 */
|
||||||
|
genFail?: boolean;
|
||||||
|
/** 标签回流失败后的展示名称 */
|
||||||
|
fallbackDisplayName?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FieldSchema {
|
export interface FieldSchema {
|
||||||
|
|
@ -297,12 +336,27 @@ export interface FieldSchema {
|
||||||
textSchema?: string;
|
textSchema?: string;
|
||||||
/** 多模态规格限制 */
|
/** 多模态规格限制 */
|
||||||
multiModelSpec?: MultiModalSpec;
|
multiModelSpec?: MultiModalSpec;
|
||||||
|
/** 当前列的数据是否必填,不填则会报错 */
|
||||||
|
isRequired?: boolean;
|
||||||
/** 用户是否不可见 */
|
/** 用户是否不可见 */
|
||||||
hidden?: boolean;
|
hidden?: boolean;
|
||||||
/** 当前列的状态,创建/更新时可以不传 */
|
/** 当前列的状态,创建/更新时可以不传 */
|
||||||
status?: FieldStatus;
|
status?: FieldStatus;
|
||||||
/** 是否开启相似度索引 */
|
/** 是否开启相似度索引 */
|
||||||
similaritySearchConfig?: SimilaritySearchConfig;
|
similaritySearchConfig?: SimilaritySearchConfig;
|
||||||
|
/** 质量分配置 */
|
||||||
|
qualityScoreConfig?: QualityScoreConfig;
|
||||||
|
/** 标签字段配置 */
|
||||||
|
tagFieldConfig?: TagFieldConfig;
|
||||||
|
/** 默认的预置转换配置,目前在数据校验后执行 */
|
||||||
|
defaultTransformations?: Array<FieldTransformationConfig>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FieldTransformationConfig {
|
||||||
|
/** 预置的转换类型 */
|
||||||
|
transType?: FieldTransformationType;
|
||||||
|
/** 当前转换配置在这一列上的数据及其嵌套的子结构上均生效 */
|
||||||
|
global?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FileUploadToken {
|
export interface FileUploadToken {
|
||||||
|
|
@ -325,6 +379,8 @@ export interface ItemErrorDetail {
|
||||||
/** [startIndex, endIndex] 表示区间错误范围, 如 ExceedDatasetCapacity 错误时 */
|
/** [startIndex, endIndex] 表示区间错误范围, 如 ExceedDatasetCapacity 错误时 */
|
||||||
startIndex?: number;
|
startIndex?: number;
|
||||||
endIndex?: number;
|
endIndex?: number;
|
||||||
|
/** ItemErrorType=MismatchSchema, key 为 FieldSchema.name, value 为错误信息 */
|
||||||
|
messagesByField?: Record<string, string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ItemErrorGroup {
|
export interface ItemErrorGroup {
|
||||||
|
|
@ -360,6 +416,12 @@ export interface OrderBy {
|
||||||
isAsc?: boolean;
|
isAsc?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 质量分配置 */
|
||||||
|
export interface QualityScoreConfig {
|
||||||
|
/** 列是否为质量分 */
|
||||||
|
enabled?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
/** 相似度算法的配置 */
|
/** 相似度算法的配置 */
|
||||||
export interface SimilaritySearchConfig {
|
export interface SimilaritySearchConfig {
|
||||||
/** 是否开启相似度索引 */
|
/** 是否开启相似度索引 */
|
||||||
|
|
@ -369,4 +431,9 @@ export interface SimilaritySearchConfig {
|
||||||
/** 所使用的相似度模型 */
|
/** 所使用的相似度模型 */
|
||||||
embeddingType?: datasetv2similarity.EmbeddingModel;
|
embeddingType?: datasetv2similarity.EmbeddingModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface TagFieldConfig {
|
||||||
|
/** tag配置 */
|
||||||
|
tagInfo?: tag.TagInfo;
|
||||||
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -120,9 +120,9 @@ export interface DatasetIOJob {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DatasetIOJobOption {
|
export interface DatasetIOJobOption {
|
||||||
/** 覆盖数据集 */
|
/** 覆盖数据集,仅在导入任务中生效 */
|
||||||
overwriteDataset?: boolean;
|
overwriteDataset?: boolean;
|
||||||
/** 需要按照手动打标的taskID结果导入,被确认无需导入的不会被导入 */
|
/** 需要按照手动打标的taskID结果导入,被确认无需导入的不会被导入,仅在导入任务中生效 */
|
||||||
jobID?: Int64;
|
jobID?: Int64;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -135,6 +135,8 @@ export interface DatasetIOJobProgress {
|
||||||
added?: Int64;
|
added?: Int64;
|
||||||
/** 已跳过的数量 */
|
/** 已跳过的数量 */
|
||||||
skipped?: Int64;
|
skipped?: Int64;
|
||||||
|
/** 下一个扫描的游标,在数据源为数据集时生效 */
|
||||||
|
cursor?: string;
|
||||||
/** 子任务
|
/** 子任务
|
||||||
可空, 表示子任务的名称 */
|
可空, 表示子任务的名称 */
|
||||||
name?: string;
|
name?: string;
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,8 @@ export enum LineageSourceType {
|
||||||
/** 暂无 */
|
/** 暂无 */
|
||||||
DataGenerate = 7,
|
DataGenerate = 7,
|
||||||
OpenAPI = 8,
|
OpenAPI = 8,
|
||||||
|
/** 众包标注任务 */
|
||||||
|
CrowdsourcingAnnotation = 9,
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum TrackedJobType {
|
export enum TrackedJobType {
|
||||||
|
|
@ -51,6 +53,8 @@ export enum TrackedJobType {
|
||||||
DataProcessing = 4,
|
DataProcessing = 4,
|
||||||
/** 数据生成任务 */
|
/** 数据生成任务 */
|
||||||
DataGenerate = 5,
|
DataGenerate = 5,
|
||||||
|
/** 众包标注任务 */
|
||||||
|
CrowdsourcingAnnotation = 6,
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ItemSource {
|
export interface ItemSource {
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,31 @@
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
|
export interface FieldMeta {
|
||||||
|
/** 字段类型 */
|
||||||
|
field_type: string;
|
||||||
|
/** 当前字段支持的操作类型 */
|
||||||
|
query_types: Array<string>;
|
||||||
|
display_name: string;
|
||||||
|
/** 支持的可选项 */
|
||||||
|
field_options?: FieldOptions;
|
||||||
|
/** 当前字段在schema中是否存在 */
|
||||||
|
exist?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FieldMetaInfoData {
|
||||||
|
/** 字段元信息 */
|
||||||
|
field_metas: Record<string, FieldMeta>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FieldOptions {
|
||||||
|
i32?: Array<number>;
|
||||||
|
i64?: Array<string>;
|
||||||
|
f64?: Array<number>;
|
||||||
|
string?: Array<string>;
|
||||||
|
obj?: Array<ObjectFieldOption>;
|
||||||
|
}
|
||||||
|
|
||||||
export interface Filter {
|
export interface Filter {
|
||||||
queryAndOr?: string;
|
queryAndOr?: string;
|
||||||
filterFields: Array<FilterField>;
|
filterFields: Array<FilterField>;
|
||||||
|
|
@ -34,4 +59,9 @@ export interface FilterField {
|
||||||
query_and_or?: string;
|
query_and_or?: string;
|
||||||
sub_filter?: Filter;
|
sub_filter?: Filter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ObjectFieldOption {
|
||||||
|
id: Int64;
|
||||||
|
displayName: string;
|
||||||
|
}
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,7 @@ export interface Image {
|
||||||
url?: string;
|
url?: string;
|
||||||
uri?: string;
|
uri?: string;
|
||||||
thumb_url?: string;
|
thumb_url?: string;
|
||||||
|
original_url?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ImageInfo {
|
export interface ImageInfo {
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,8 @@ export interface CreateAIAnnotateTaskReq {
|
||||||
promptVersion?: string;
|
promptVersion?: string;
|
||||||
userPromptColumnName?: string;
|
userPromptColumnName?: string;
|
||||||
promptVariables?: Array<ai_annotate.PromptVariable>;
|
promptVariables?: Array<ai_annotate.PromptVariable>;
|
||||||
|
/** 打标并发度 */
|
||||||
|
executeConcurrency?: number;
|
||||||
space_id?: string;
|
space_id?: string;
|
||||||
base?: base.Base;
|
base?: base.Base;
|
||||||
}
|
}
|
||||||
|
|
@ -133,6 +135,8 @@ export interface UpdateAIAnnotateTaskReq {
|
||||||
promptVersion?: string;
|
promptVersion?: string;
|
||||||
userPromptColumnName?: string;
|
userPromptColumnName?: string;
|
||||||
promptVariables?: Array<ai_annotate.PromptVariable>;
|
promptVariables?: Array<ai_annotate.PromptVariable>;
|
||||||
|
/** 打标并发度 */
|
||||||
|
executeConcurrency?: number;
|
||||||
space_id?: string;
|
space_id?: string;
|
||||||
base?: base.Base;
|
base?: base.Base;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,19 @@ import * as batch_infer from './batch_infer';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
|
export interface GetBatchInferTaskReq {
|
||||||
|
task_id?: string;
|
||||||
|
userJwtToken?: string;
|
||||||
|
/** 空间ID */
|
||||||
|
space_id?: string;
|
||||||
|
base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetBatchInferTaskResp {
|
||||||
|
batchInferTask?: batch_infer.BatchInferTask;
|
||||||
|
baseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
export interface GetRecommendResourceReq {
|
export interface GetRecommendResourceReq {
|
||||||
modelCardID?: string;
|
modelCardID?: string;
|
||||||
userJwtToken?: string;
|
userJwtToken?: string;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,133 @@
|
||||||
|
/*
|
||||||
|
* 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 annotation_job from './annotation_job';
|
||||||
|
import * as base from './base';
|
||||||
|
|
||||||
|
export type Int64 = string | number;
|
||||||
|
|
||||||
|
export interface CreateCrowdsourcingAnnotateJobReq {
|
||||||
|
spaceID: string;
|
||||||
|
/** 任务名称 */
|
||||||
|
name: string;
|
||||||
|
/** 任务描述 */
|
||||||
|
description?: string;
|
||||||
|
/** 标注任务平台 */
|
||||||
|
platform: annotation_job.CrowdsourcingAnnotationPlatform;
|
||||||
|
/** AIDP相关配置 */
|
||||||
|
aidpConfig?: annotation_job.AIDPConfig;
|
||||||
|
/** 送标配置 */
|
||||||
|
inputConfig?: annotation_job.CrowdsourcingAnnotateInputConfig;
|
||||||
|
/** 取标配置 */
|
||||||
|
outputConfig?: annotation_job.CrowdsourcingAnnotateOutputConfig;
|
||||||
|
base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CreateCrowdsourcingAnnotateJobResp {
|
||||||
|
jobID?: string;
|
||||||
|
baseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeleteCrowdsourcingAnnotateJobReq {
|
||||||
|
spaceID: string;
|
||||||
|
datasetID: string;
|
||||||
|
jobID: string;
|
||||||
|
base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeleteCrowdsourcingAnnotateJobResp {
|
||||||
|
baseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetAIDPTaskConfigReq {
|
||||||
|
spaceID: string;
|
||||||
|
taskID: string;
|
||||||
|
platform: annotation_job.CrowdsourcingAnnotationPlatform;
|
||||||
|
base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetAIDPTaskConfigResp {
|
||||||
|
flowConfig?: annotation_job.AIDPTaskFlowConfig;
|
||||||
|
baseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetAnswerSchemaReq {
|
||||||
|
spaceID: string;
|
||||||
|
templateID: string;
|
||||||
|
platform: annotation_job.CrowdsourcingAnnotationPlatform;
|
||||||
|
base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetAnswerSchemaResp {
|
||||||
|
schema?: string;
|
||||||
|
baseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ListAuthorizedAIDPTasksReq {
|
||||||
|
spaceID: string;
|
||||||
|
platform: annotation_job.CrowdsourcingAnnotationPlatform;
|
||||||
|
/** 搜索关键字 */
|
||||||
|
keyword?: string;
|
||||||
|
base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ListAuthorizedAIDPTasksResp {
|
||||||
|
taskSummaries?: Array<annotation_job.AIDPTaskSummary>;
|
||||||
|
aidpUserID?: string;
|
||||||
|
baseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ListCrowdsourcingAnnotateJobReq {
|
||||||
|
spaceID: string;
|
||||||
|
searchConfig?: annotation_job.SearchConfig;
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
|
base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ListCrowdsourcingAnnotateJobResp {
|
||||||
|
tasks?: Array<annotation_job.CrowdsourcingAnnotateJob>;
|
||||||
|
total?: number;
|
||||||
|
baseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RefreshCrowdsourcingAnnotateJobReq {
|
||||||
|
spaceID: string;
|
||||||
|
jobID: string;
|
||||||
|
base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RefreshCrowdsourcingAnnotateJobResp {
|
||||||
|
job?: annotation_job.CrowdsourcingAnnotateJob;
|
||||||
|
baseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface TerminateCrowdsourcingAnnotateJobReq {
|
||||||
|
spaceID: string;
|
||||||
|
datasetID: string;
|
||||||
|
jobID: string;
|
||||||
|
base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface TerminateCrowdsourcingAnnotateJobResp {
|
||||||
|
baseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
/* eslint-enable */
|
||||||
|
|
@ -24,6 +24,7 @@ import * as base from './base';
|
||||||
import * as datasetv2job from './datasetv2job';
|
import * as datasetv2job from './datasetv2job';
|
||||||
import * as datasetv2similarity from './datasetv2similarity';
|
import * as datasetv2similarity from './datasetv2similarity';
|
||||||
import * as datasetv2lineage from './datasetv2lineage';
|
import * as datasetv2lineage from './datasetv2lineage';
|
||||||
|
import * as filter from './filter';
|
||||||
|
|
||||||
export type Int64 = string | number;
|
export type Int64 = string | number;
|
||||||
|
|
||||||
|
|
@ -117,6 +118,16 @@ export interface CancelDatasetIOJobResp {
|
||||||
baseResp?: base.BaseResp;
|
baseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ClearDatasetItemRequest {
|
||||||
|
spaceID?: string;
|
||||||
|
dataset_id: string;
|
||||||
|
Base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ClearDatasetItemResponse {
|
||||||
|
BaseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
export interface ConfirmItemDeduplicateReq {
|
export interface ConfirmItemDeduplicateReq {
|
||||||
spaceID?: string;
|
spaceID?: string;
|
||||||
jobID: string;
|
jobID: string;
|
||||||
|
|
@ -132,8 +143,15 @@ export interface ConfirmItemDeduplicateResp {
|
||||||
|
|
||||||
export interface ConfirmItemPair {
|
export interface ConfirmItemPair {
|
||||||
/** 新导入的条目主键 */
|
/** 新导入的条目主键 */
|
||||||
newItemsUniqKey?: string;
|
newItemsUniqKey: string;
|
||||||
importConfirmType?: datasetv2job.ImportConfirmType;
|
importConfirmType: datasetv2job.ImportConfirmType;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ConflictField {
|
||||||
|
/** 存在冲突的列名 */
|
||||||
|
fieldName?: string;
|
||||||
|
/** 冲突详情。key: 文件名,val:该文件中包含的类型 */
|
||||||
|
detailM?: Record<string, datasetv2.FieldSchema>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateDatasetItemReq {
|
export interface CreateDatasetItemReq {
|
||||||
|
|
@ -170,6 +188,7 @@ export interface CreateDatasetReq {
|
||||||
visibility?: datasetv2.DatasetVisibility;
|
visibility?: datasetv2.DatasetVisibility;
|
||||||
spec?: datasetv2.DatasetSpec;
|
spec?: datasetv2.DatasetSpec;
|
||||||
features?: datasetv2.DatasetFeatures;
|
features?: datasetv2.DatasetFeatures;
|
||||||
|
userID?: string;
|
||||||
base?: base.Base;
|
base?: base.Base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -235,7 +254,7 @@ export interface CreateItemDeduplicateJobReq {
|
||||||
|
|
||||||
export interface CreateItemDeduplicateJobResp {
|
export interface CreateItemDeduplicateJobResp {
|
||||||
/** 任务id,前端后续用这个id去获取 待确认列表 */
|
/** 任务id,前端后续用这个id去获取 待确认列表 */
|
||||||
jobID?: string;
|
jobID: string;
|
||||||
baseResp?: base.BaseResp;
|
baseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -260,6 +279,49 @@ export interface DeleteDatasetResp {
|
||||||
baseResp?: base.BaseResp;
|
baseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ExportDatasetReq {
|
||||||
|
spaceID: string;
|
||||||
|
datasetID: string;
|
||||||
|
/** 需要导出的数据集版本 id,为 0 表示导出草稿版本 */
|
||||||
|
versionID?: string;
|
||||||
|
targetType: datasetv2job.SourceType;
|
||||||
|
/** 此处填写一个文件夹,会将对应的文件生成到该文件夹下 */
|
||||||
|
target: datasetv2job.DatasetIOEndpoint;
|
||||||
|
/** base */
|
||||||
|
base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ExportDatasetResp {
|
||||||
|
jobID?: string;
|
||||||
|
/** base */
|
||||||
|
baseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FieldMeta {
|
||||||
|
/** 字段类型 */
|
||||||
|
field_type: string;
|
||||||
|
/** 当前字段支持的操作类型 */
|
||||||
|
query_types: Array<string>;
|
||||||
|
display_name: string;
|
||||||
|
/** 支持的可选项 */
|
||||||
|
field_options?: FieldOptions;
|
||||||
|
/** 当前字段在schema中是否存在 */
|
||||||
|
exist?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FieldMetaInfoData {
|
||||||
|
/** 字段元信息 */
|
||||||
|
field_metas: Record<string, FieldMeta>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FieldOptions {
|
||||||
|
i32?: Array<number>;
|
||||||
|
i64?: Array<string>;
|
||||||
|
f64?: Array<number>;
|
||||||
|
string?: Array<string>;
|
||||||
|
obj?: Array<ObjectFieldOption>;
|
||||||
|
}
|
||||||
|
|
||||||
export interface GetDatasetIOJobReq {
|
export interface GetDatasetIOJobReq {
|
||||||
spaceID?: string;
|
spaceID?: string;
|
||||||
jobID: string;
|
jobID: string;
|
||||||
|
|
@ -350,6 +412,15 @@ export interface GetDatasetVersionResp {
|
||||||
baseResp?: base.BaseResp;
|
baseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface GetFieldsMetaInfoRequest {
|
||||||
|
spaceID: Int64;
|
||||||
|
datasetID: Int64;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetFieldsMetaInfoResponse {
|
||||||
|
data: FieldMetaInfoData;
|
||||||
|
}
|
||||||
|
|
||||||
export interface GetItemDeduplicateJobReq {
|
export interface GetItemDeduplicateJobReq {
|
||||||
spaceID?: string;
|
spaceID?: string;
|
||||||
jobID: string;
|
jobID: string;
|
||||||
|
|
@ -404,6 +475,7 @@ export interface ListDatasetItemsByVersionReq {
|
||||||
/** 与 page 同时提供时,优先使用 cursor */
|
/** 与 page 同时提供时,优先使用 cursor */
|
||||||
cursor?: string;
|
cursor?: string;
|
||||||
orderBy?: datasetv2.OrderBy;
|
orderBy?: datasetv2.OrderBy;
|
||||||
|
filter?: filter.Filter;
|
||||||
base?: base.Base;
|
base?: base.Base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -412,6 +484,7 @@ export interface ListDatasetItemsByVersionResp {
|
||||||
/** pagination */
|
/** pagination */
|
||||||
nextCursor?: string;
|
nextCursor?: string;
|
||||||
total?: Int64;
|
total?: Int64;
|
||||||
|
filterTotal?: Int64;
|
||||||
baseResp?: base.BaseResp;
|
baseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -425,6 +498,7 @@ export interface ListDatasetItemsReq {
|
||||||
/** 与 page 同时提供时,优先使用 cursor */
|
/** 与 page 同时提供时,优先使用 cursor */
|
||||||
cursor?: string;
|
cursor?: string;
|
||||||
orderBy?: datasetv2.OrderBy;
|
orderBy?: datasetv2.OrderBy;
|
||||||
|
filter?: filter.Filter;
|
||||||
base?: base.Base;
|
base?: base.Base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -433,6 +507,7 @@ export interface ListDatasetItemsResp {
|
||||||
/** pagination */
|
/** pagination */
|
||||||
nextCursor?: string;
|
nextCursor?: string;
|
||||||
total?: string;
|
total?: string;
|
||||||
|
filterTotal?: string;
|
||||||
baseResp?: base.BaseResp;
|
baseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -459,6 +534,32 @@ export interface ListDatasetVersionsResp {
|
||||||
baseResp?: base.BaseResp;
|
baseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ObjectFieldOption {
|
||||||
|
id: Int64;
|
||||||
|
displayName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ParseImportSourceFileReq {
|
||||||
|
spaceID: string;
|
||||||
|
/** 如果 path 为文件夹,此处只默认解析当前路径级别下所有指定类型的文件,不嵌套解析 */
|
||||||
|
file?: datasetv2job.DatasetIOFile;
|
||||||
|
/** base */
|
||||||
|
base?: base.Base;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ParseImportSourceFileResp {
|
||||||
|
/** 文件大小,单位为 byte */
|
||||||
|
bytes?: string;
|
||||||
|
/** 列名和类型,有多文件的话会取并集返回。如果文件中的列定义存在冲突,此处不返回解析结果,具体冲突详情通过 conflicts 返回 */
|
||||||
|
fields?: Array<datasetv2.FieldSchema>;
|
||||||
|
/** 冲突详情。key: 列名,val:冲突详情 */
|
||||||
|
conflicts?: Array<ConflictField>;
|
||||||
|
/** 存在列定义不明确的文件(即一个列被定义为多个类型),当前仅 jsonl 文件会出现该状况 */
|
||||||
|
filesWithAmbiguousColumn?: Array<string>;
|
||||||
|
/** base */
|
||||||
|
baseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
export interface SearchDatasetIOJobsOfDatasetReq {
|
export interface SearchDatasetIOJobsOfDatasetReq {
|
||||||
spaceID?: string;
|
spaceID?: string;
|
||||||
datasetID: string;
|
datasetID: string;
|
||||||
|
|
@ -483,6 +584,7 @@ export interface SearchDatasetItemsByVersionReq {
|
||||||
/** 与 page 同时提供时,优先使用 cursor */
|
/** 与 page 同时提供时,优先使用 cursor */
|
||||||
cursor?: string;
|
cursor?: string;
|
||||||
orderBy?: datasetv2.OrderBy;
|
orderBy?: datasetv2.OrderBy;
|
||||||
|
filter?: filter.Filter;
|
||||||
base?: base.Base;
|
base?: base.Base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -491,6 +593,7 @@ export interface SearchDatasetItemsByVersionResp {
|
||||||
/** pagination */
|
/** pagination */
|
||||||
nextCursor?: string;
|
nextCursor?: string;
|
||||||
total?: Int64;
|
total?: Int64;
|
||||||
|
filterTotal?: Int64;
|
||||||
baseResp?: base.BaseResp;
|
baseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -504,6 +607,7 @@ export interface SearchDatasetItemsReq {
|
||||||
/** 与 page 同时提供时,优先使用 cursor */
|
/** 与 page 同时提供时,优先使用 cursor */
|
||||||
cursor?: string;
|
cursor?: string;
|
||||||
orderBy?: datasetv2.OrderBy;
|
orderBy?: datasetv2.OrderBy;
|
||||||
|
filter?: filter.Filter;
|
||||||
base?: base.Base;
|
base?: base.Base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -512,6 +616,7 @@ export interface SearchDatasetItemsResp {
|
||||||
/** pagination */
|
/** pagination */
|
||||||
nextCursor?: string;
|
nextCursor?: string;
|
||||||
total?: string;
|
total?: string;
|
||||||
|
filterTotal?: string;
|
||||||
baseResp?: base.BaseResp;
|
baseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -522,6 +627,7 @@ export interface SearchDatasetsReq {
|
||||||
/** 支持模糊搜索 */
|
/** 支持模糊搜索 */
|
||||||
name?: string;
|
name?: string;
|
||||||
createdBys?: Array<string>;
|
createdBys?: Array<string>;
|
||||||
|
bizCategories?: Array<string>;
|
||||||
/** pagination */
|
/** pagination */
|
||||||
page?: number;
|
page?: number;
|
||||||
/** 分页大小(0, 200],默认为 20 */
|
/** 分页大小(0, 200],默认为 20 */
|
||||||
|
|
@ -632,6 +738,27 @@ export interface UpdateDatasetVersionResp {
|
||||||
baseResp?: base.BaseResp;
|
baseResp?: base.BaseResp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ValidateDatasetItemsReq {
|
||||||
|
spaceID?: string;
|
||||||
|
items?: Array<datasetv2.DatasetItem>;
|
||||||
|
/** 添加到已有数据集时提供 */
|
||||||
|
datasetID?: string;
|
||||||
|
/** 新建数据集并添加数据时提供 */
|
||||||
|
datasetCategory?: datasetv2.DatasetCategory;
|
||||||
|
/** 新建数据集并添加数据时,必须提供;添加到已有数据集时,如非空,则覆盖已有 schema 用于校验 */
|
||||||
|
datasetFields?: Array<datasetv2.FieldSchema>;
|
||||||
|
/** 添加到已有数据集时,现有数据条数,做容量校验时不做考虑,仅考虑提供 items 数量是否超限 */
|
||||||
|
ignoreCurrentItemCount?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ValidateDatasetItemsResp {
|
||||||
|
/** 合法的 item 索引,与 ValidateCreateDatasetItemsReq.items 中的索引对应 */
|
||||||
|
validItemIndices?: Array<number>;
|
||||||
|
errors?: Array<datasetv2.ItemErrorGroup>;
|
||||||
|
/** base */
|
||||||
|
baseResp?: base.BaseResp;
|
||||||
|
}
|
||||||
|
|
||||||
export interface VersionedDataset {
|
export interface VersionedDataset {
|
||||||
version?: datasetv2.DatasetVersion;
|
version?: datasetv2.DatasetVersion;
|
||||||
dataset?: datasetv2.Dataset;
|
dataset?: datasetv2.Dataset;
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue