chore: migrate fe 250722
This commit is contained in:
parent
b46a0c6c12
commit
60d42100f0
|
|
@ -117,6 +117,13 @@ const mergedConfig = defineConfig({
|
|||
version: 'legacy',
|
||||
},
|
||||
},
|
||||
performance: {
|
||||
chunkSplit: {
|
||||
strategy: 'split-by-size',
|
||||
minSize: 3_000_000,
|
||||
maxSize: 6_000_000,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export default mergedConfig;
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ export const PublishResult = ({
|
|||
type: IntelligenceType.Bot,
|
||||
spaceId: String(spaceId),
|
||||
intelligenceId: String(botId),
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
enable: FLAGS['bot.studio.publish_management'] && !IS_OPEN_SOURCE,
|
||||
});
|
||||
|
||||
|
|
@ -213,7 +213,7 @@ export const PublishResult = ({
|
|||
? `⚠️ ${I18n.t('publish_result_all_failed')}`
|
||||
: `🎉 ${I18n.t('publish_success')}`}
|
||||
</div>
|
||||
{/* 社区版暂不支持该功能 */}
|
||||
{/* 开源版暂不支持该功能 */}
|
||||
{IS_OVERSEA && !publishResult?.monetizeConfigSuccess ? (
|
||||
<div className="mt-[12px] flex items-center gap-[8px] coz-fg-primary">
|
||||
<IconCozInfoCircleFill className="coz-fg-hglt-yellow" />
|
||||
|
|
@ -222,7 +222,7 @@ export const PublishResult = ({
|
|||
</span>
|
||||
</div>
|
||||
) : null}
|
||||
{/* 社区版暂不支持该功能 */}
|
||||
{/* 开源版暂不支持该功能 */}
|
||||
{FLAGS['bot.studio.publish_management'] && !IS_OPEN_SOURCE ? (
|
||||
<div className="coz-fg-dim text-[12px]">
|
||||
{I18n.t('release_management_detail1', {
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ const ToolHeader: FC<ToolHeaderProps> = ({
|
|||
/>
|
||||
<span className={s.title}>{I18n.t('plugin_edit_tool_title')}</span>
|
||||
<OauthButtonAction />
|
||||
{/* 社区版暂不支持该功能 */}
|
||||
{/* 开源版暂不支持该功能 */}
|
||||
{FLAGS['bot.devops.plugin_mockset'] ? (
|
||||
<Tooltip
|
||||
style={{ display: mocksetDisabled ? 'block' : 'none' }}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import { createContext, useContext } from 'react';
|
|||
|
||||
export enum BotCreatorScene {
|
||||
Bot = 'bot',
|
||||
/** 社区版暂不支持该功能 */
|
||||
/** 开源版暂不支持该功能 */
|
||||
DouyinBot = 'douyin-bot',
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ export const MoreMenuButton: FC = () => {
|
|||
spaceId,
|
||||
enable:
|
||||
showPublishManageMenu &&
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
FLAGS['bot.studio.publish_management'] &&
|
||||
!IS_OPEN_SOURCE,
|
||||
});
|
||||
|
|
@ -172,7 +172,7 @@ export const MoreMenuButton: FC = () => {
|
|||
<Dropdown
|
||||
render={
|
||||
<Dropdown.Menu mode="menu">
|
||||
{/* 社区版暂不支持该功能 */}
|
||||
{/* 开源版暂不支持该功能 */}
|
||||
{showPublishManageMenu &&
|
||||
FLAGS['bot.studio.publish_management'] &&
|
||||
!IS_OPEN_SOURCE
|
||||
|
|
@ -196,7 +196,7 @@ export const MoreMenuButton: FC = () => {
|
|||
: null}
|
||||
{hideOpenIn ? null : (
|
||||
<>
|
||||
{/* 社区版暂不支持该功能 */}
|
||||
{/* 开源版暂不支持该功能 */}
|
||||
{showPublishManageMenu &&
|
||||
FLAGS['bot.studio.publish_management'] &&
|
||||
!IS_OPEN_SOURCE ? (
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ export function ModelOption({
|
|||
?.filter(t => t.tag_class === ModelTagClass.ModelFunction && t.tag_name)
|
||||
.map(t => t.tag_name);
|
||||
|
||||
// 付费墙,社区版不支持该功能
|
||||
// 付费墙,开源版不支持该功能
|
||||
const isProModel =
|
||||
model.model_status_details?.is_new_model ||
|
||||
model.model_status_details?.is_advanced_model;
|
||||
|
|
@ -154,7 +154,7 @@ export function ModelOption({
|
|||
{model.name}
|
||||
</Typography.Title>
|
||||
<div className="shrink-0 flex gap-[6px]">
|
||||
{/* 抖音分身场景下不展示改 tag,社区版暂不支持该功能 */}
|
||||
{/* 抖音分身场景下不展示改 tag,开源版暂不支持该功能 */}
|
||||
{model.model_status_details?.is_free_model &&
|
||||
scene !== BotCreatorScene.DouyinBot ? (
|
||||
<Tag size="mini" color="primary" className="!coz-mg-plus">
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export const useGetModelList = () => {
|
|||
const res = await SpaceApi.GetTypeList({
|
||||
cur_model_ids: expectedIdList,
|
||||
model: true,
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
...(scene === BotCreatorScene.DouyinBot && {
|
||||
model_scene: ModelScene.Douyin,
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ const useAgentSkillPluginSettingModalController = (
|
|||
},
|
||||
{
|
||||
refreshDeps: [commonParams],
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
ready: visible && FLAGS['bot.devops.plugin_mockset'],
|
||||
},
|
||||
);
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ const usePartMainController = (pluginInfo: PluginInfoForPlayground) => {
|
|||
value: PARA.toLowerCase(),
|
||||
},
|
||||
];
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
if (FLAGS['bot.devops.plugin_mockset']) {
|
||||
keyOptions.unshift({
|
||||
label: I18n.t('bot_ide_plugin_setting_modal_mockset_tab'),
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ const AgentIdePrompt = (props: AgentIdePromptProps) => {
|
|||
librarys={libraryList}
|
||||
onAddLibrary={addLibrary}
|
||||
spaceId={space_id}
|
||||
// Agent IDE 在抖音分身场景下,需要传入分身id进行判断当前资源是否存在 社区版暂不支持该功能
|
||||
// Agent IDE 在抖音分身场景下,需要传入分身id进行判断当前资源是否存在 开源版暂不支持该功能
|
||||
avatarBotId={
|
||||
businessType === BusinessType.DouyinAvatar ? botId : undefined
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ export function ChangeButton({
|
|||
}: ChangeButtonProps) {
|
||||
const [FLAGS] = useFlags();
|
||||
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
const showText = modeInfo?.showText || FLAGS['bot.studio.prompt_diff'];
|
||||
const ToolTipFragment = tooltip ? Tooltip : React.Fragment;
|
||||
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ export const OnboardingMessage = forwardRef<
|
|||
initValues={onboardingContent}
|
||||
isReadonly={isReadonly}
|
||||
isGenerating={isLoading}
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
plainText={scene === BotCreatorScene.DouyinBot}
|
||||
onChange={submitEditor}
|
||||
onBlur={() => {
|
||||
|
|
|
|||
|
|
@ -98,6 +98,6 @@ export interface PublisherBotInfo {
|
|||
hasPublished?: boolean;
|
||||
// 收费插件列表
|
||||
pluginPricingRules?: Array<PluginPricingRule>;
|
||||
// 业务类型 DouyinAvatar=1 抖音分身 社区版暂不支持该功能
|
||||
// 业务类型 DouyinAvatar=1 抖音分身 开源版暂不支持该功能
|
||||
businessType?: BusinessType;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,18 +23,18 @@ export interface TRouteConfigGlobal {
|
|||
/**
|
||||
* 展示小助手
|
||||
* @default true
|
||||
* @import 社区版不支持该字段
|
||||
* @import 开源版不支持该字段
|
||||
*/
|
||||
showAssistant?: boolean;
|
||||
/**
|
||||
* 展示小助手引导提示
|
||||
* @default false
|
||||
* @import 社区版不支持该字段
|
||||
* @import 开源版不支持该字段
|
||||
*/
|
||||
showAssistantGuideTip?: boolean;
|
||||
/**
|
||||
* 当企业ID发生变化时的回调函数。
|
||||
* @import 社区版不支持该字段
|
||||
* @import 开源版不支持该字段
|
||||
* @param enterpriseId - 变化后的企业ID。
|
||||
* @param params - 包含导航函数和当前路径名的对象。
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
0ffc9936aeed1a26a88156ee2802d306
|
||||
8d3799f9b5eadf7137347d8c1192eb97
|
||||
|
|
@ -46,6 +46,8 @@ export * from './namespaces/user';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class AppBuilderService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('AppBuilderService.request is undefined');
|
||||
|
|
|
|||
|
|
@ -55,6 +55,8 @@ export * from './namespaces/user_rpc';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class BasicApiService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('BasicApiService.request is undefined');
|
||||
|
|
|
|||
|
|
@ -99,48 +99,6 @@ export enum AuditType {
|
|||
ProjectUIBuilder = 90,
|
||||
/** 工作流运行时输入 */
|
||||
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 {
|
||||
|
|
|
|||
|
|
@ -49,6 +49,8 @@ export * from './namespaces/wallet';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class BenefitService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('BenefitService.request is undefined');
|
||||
|
|
@ -406,30 +408,5 @@ export default class BenefitService<T> {
|
|||
};
|
||||
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 */
|
||||
|
|
|
|||
|
|
@ -23,16 +23,6 @@ import * as benefit_common from './benefit_common';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum SubscriptionRenewalType {
|
||||
Unknown = 0,
|
||||
/** 手动续费 */
|
||||
ManualRenewal = 1,
|
||||
/** 自动续费 */
|
||||
AutoRenewal = 2,
|
||||
/** 到期不续费续费 */
|
||||
DontRenewal = 3,
|
||||
}
|
||||
|
||||
export interface AddBenefitContent {
|
||||
AddMessageCreditsBenefit?: AddMessageCreditsBenefitStruct;
|
||||
AddTopUpCreditsBenefit?: AddTopUpCreditsBenefitStruct;
|
||||
|
|
@ -73,17 +63,11 @@ export interface BenefitInfo {
|
|||
export interface BenefitTypeInfo {
|
||||
BasicInfo?: benefit_common.CommonCounter;
|
||||
ItemInfos?: Array<BenefitTypeInfoItem>;
|
||||
ResourceID?: string;
|
||||
BenefitType?: benefit_common.BenefitType;
|
||||
/** 实际生效总量 */
|
||||
Effective?: benefit_common.CommonCounter;
|
||||
}
|
||||
|
||||
export interface BenefitTypeInfoItem {
|
||||
ItemID?: string;
|
||||
ItemInfo?: benefit_common.CommonCounter;
|
||||
Status?: benefit_common.EntityBenefitStatus;
|
||||
BenefitID?: string;
|
||||
}
|
||||
|
||||
export interface ChargeDetail {
|
||||
|
|
@ -95,7 +79,7 @@ export interface ChargeResourceInfo {
|
|||
ResourceID?: Int64;
|
||||
ResourceType?: benefit_common.ChargeResourceType;
|
||||
IsCharge?: boolean;
|
||||
ChargeInfo?: Partial<Record<benefit_common.ChargeItemType, ChargeDetail>>;
|
||||
ChargeInfo?: Record<benefit_common.ChargeItemType, ChargeDetail>;
|
||||
}
|
||||
|
||||
export interface CreateBenefitLimitationData {
|
||||
|
|
@ -107,22 +91,6 @@ export interface DenyReason {
|
|||
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 {
|
||||
BotID?: Int64;
|
||||
IsDraft?: boolean;
|
||||
|
|
@ -247,45 +215,26 @@ export interface PublicUpdateBenefitLimitationResponse {
|
|||
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 {
|
||||
Amount?: number;
|
||||
Used?: number;
|
||||
}
|
||||
|
||||
export interface SubscriptionRenewalInfo {
|
||||
/** 续费类型 */
|
||||
renewal_type?: SubscriptionRenewalType;
|
||||
/** 单次自动续费的周期数量,比如包月,就是每次自动续费几个月 */
|
||||
renewal_period_times?: Int64;
|
||||
}
|
||||
|
||||
export interface UserBasicBenefit {
|
||||
Status?: benefit_common.AccountStatus;
|
||||
AccountID?: Int64;
|
||||
UserBenefitInfo?: Partial<
|
||||
Record<benefit_common.BenefitType, benefit_common.CommonCounter>
|
||||
UserBenefitInfo?: Record<
|
||||
benefit_common.BenefitType,
|
||||
benefit_common.CommonCounter
|
||||
>;
|
||||
}
|
||||
|
||||
export interface UserBenefitData {
|
||||
/** 用户基本信息 */
|
||||
user_basic_info: benefit_common.PublicUserBasicInfo;
|
||||
benefit_type_infos?: Partial<
|
||||
Record<benefit_common.BenefitType, benefit_common.CommonCounter>
|
||||
benefit_type_infos?: Record<
|
||||
benefit_common.BenefitType,
|
||||
benefit_common.CommonCounter
|
||||
>;
|
||||
}
|
||||
|
||||
|
|
@ -296,8 +245,9 @@ export interface UserBenefitHistory {
|
|||
ConnectorID?: Int64;
|
||||
SpaceID?: Int64;
|
||||
EntityInfo?: HistoryEntityInfoV2;
|
||||
EntityItems?: Partial<
|
||||
Record<benefit_common.ConsumeResourceType, Array<HistoryConsumeItemV2>>
|
||||
EntityItems?: Record<
|
||||
benefit_common.ConsumeResourceType,
|
||||
Array<HistoryConsumeItemV2>
|
||||
>;
|
||||
}
|
||||
|
||||
|
|
@ -318,13 +268,9 @@ export interface UserBenefitHistroy {
|
|||
}
|
||||
|
||||
export interface UserExtraBenefit {
|
||||
benefit_type?: benefit_common.BenefitType;
|
||||
uuid?: string;
|
||||
counter?: benefit_common.CommonCounter;
|
||||
resource_id?: string;
|
||||
/** 对应 entity_config表才有 */
|
||||
benefit_id?: string;
|
||||
/** 对应EntityBenefitStatus,entity_config表才有 */
|
||||
entity_status?: benefit_common.EntityBenefitStatus;
|
||||
BenefitType?: benefit_common.BenefitType;
|
||||
UUID?: string;
|
||||
Counter?: benefit_common.CommonCounter;
|
||||
ResourceID?: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
|
|
|||
|
|
@ -47,17 +47,6 @@ export enum BenefitEntityType {
|
|||
EnterpriseSingleDevice = 11,
|
||||
/** 单终端主题,由客户自定义 */
|
||||
EnterpriseSingleCustomConsumer = 12,
|
||||
/** API */
|
||||
API = 13,
|
||||
/** Plugin */
|
||||
Plugin = 14,
|
||||
/** Voice */
|
||||
Voice = 15,
|
||||
/** Workflow */
|
||||
Workflow = 16,
|
||||
/** 企业配置类
|
||||
企业安心用配置 */
|
||||
EnterpriseConfConfidenceUsing = 51,
|
||||
}
|
||||
|
||||
/** 权益历史记录类型 */
|
||||
|
|
@ -112,7 +101,6 @@ export enum BenefitType {
|
|||
UserFreeChat = 2,
|
||||
TopUpMessageCredit = 3,
|
||||
BonusMessageCredit = 4,
|
||||
/** 40 -59 免费次数 */
|
||||
Freetimes = 40,
|
||||
/** 评测免费次数 */
|
||||
EvaluateFree = 41,
|
||||
|
|
@ -126,8 +114,7 @@ export enum BenefitType {
|
|||
APIRunFree = 45,
|
||||
/** SDK 运行免费次数 */
|
||||
SDKRunFree = 46,
|
||||
/** 60 - 99 限流
|
||||
模型 RPM 限流 */
|
||||
/** 模型 RPM 限流 */
|
||||
RateLimitModelRPM = 60,
|
||||
/** 模型 Input TPM 限流 */
|
||||
RateLimitModelInputTPM = 61,
|
||||
|
|
@ -137,23 +124,7 @@ export enum BenefitType {
|
|||
RateLimitModelInputTPMBasic = 63,
|
||||
/** 基础模型 Output TPM 限流 */
|
||||
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,
|
||||
/** 免费资源点,废弃 */
|
||||
FreeResourcePoint = 101,
|
||||
|
|
@ -161,45 +132,32 @@ Workflow 运行 QPS 限流 */
|
|||
VolcProResourcePoint = 102,
|
||||
/** 周期性资源点 */
|
||||
PeriodicResourcePoint = 103,
|
||||
/** 渠道递减资源点 */
|
||||
ChannelResourcePoint = 104,
|
||||
/** 试算资源点 */
|
||||
CutAndTryResourcePoint = 109,
|
||||
/** 110-129 Fornax
|
||||
Trace 用量 */
|
||||
/** Trace 用量 */
|
||||
TraceAmount = 111,
|
||||
/** Trace 存储时长 */
|
||||
TraceStorageDuration = 112,
|
||||
/** 130-149 WorkSpace
|
||||
Space 总量 */
|
||||
/** Space 总量 */
|
||||
SpaceAmount = 131,
|
||||
/** Space 人数 */
|
||||
SpacePeopleNumber = 132,
|
||||
/** Space 下协作者人数 */
|
||||
SpaceCollaboratorNumber = 133,
|
||||
/** 150-169 运维
|
||||
日志存储时长 */
|
||||
/** 日志存储时长 */
|
||||
LogStorageDuration = 151,
|
||||
/** 日志导出 */
|
||||
LogExport = 152,
|
||||
/** 170-179 知识库
|
||||
知识库容量 */
|
||||
/** 知识库容量 */
|
||||
Capacity = 170,
|
||||
/** 180-199 语音
|
||||
音色克隆总数 */
|
||||
/** 音色克隆总数 */
|
||||
VoiceCloneNumber = 180,
|
||||
/** 音色克隆基础数量 */
|
||||
VoiceCloneNumberBasic = 181,
|
||||
/** 200-219 租户相关
|
||||
席位数上限 */
|
||||
/** 席位数上限 */
|
||||
SeatNumberLimit = 200,
|
||||
/** 基础席位数 */
|
||||
SeatNumberBasic = 201,
|
||||
/** 移除水印 */
|
||||
RemoveWatermark = 220,
|
||||
/** 240-269 配置
|
||||
安心用 */
|
||||
ConfidenceUsing = 240,
|
||||
}
|
||||
|
||||
/** 权益使用模式 */
|
||||
|
|
@ -225,9 +183,6 @@ export enum ChargeItemType {
|
|||
/** 100-199 语音相关 */
|
||||
VoiceClone = 100,
|
||||
VoiceStorage = 101,
|
||||
/** 200- */
|
||||
PluginRunQPS = 200,
|
||||
PluginRunParallel = 201,
|
||||
}
|
||||
|
||||
export enum ChargeResourceType {
|
||||
|
|
@ -311,18 +266,6 @@ export enum CozeAccountType {
|
|||
Personal = 2,
|
||||
}
|
||||
|
||||
/** 用户权益套餐状态 */
|
||||
export enum CozeInstanceStaus {
|
||||
/** 运行中 */
|
||||
Running = 1,
|
||||
/** 退订 */
|
||||
Unsubs = 2,
|
||||
/** 到期 */
|
||||
Expired = 3,
|
||||
/** 欠费 */
|
||||
Overdue = 4,
|
||||
}
|
||||
|
||||
export enum DurationType {
|
||||
Day = 1,
|
||||
Month = 2,
|
||||
|
|
@ -334,10 +277,6 @@ export enum EntityBenefitStatus {
|
|||
Valid = 1,
|
||||
/** 冻结使用 */
|
||||
Frozen = 3,
|
||||
/** 取消 */
|
||||
Cancel = 5,
|
||||
/** 待生效(此枚举通过计算得出,数据库中并无此项数据) */
|
||||
Pending = 6,
|
||||
}
|
||||
|
||||
export enum EntityPeriodType {
|
||||
|
|
@ -416,17 +355,6 @@ export enum OperateType {
|
|||
TopUpChargeBackReverse = 7,
|
||||
}
|
||||
|
||||
export enum PluginBillType {
|
||||
/** 按次调用计费。适用于大多数插件 */
|
||||
ByCallTime = 0,
|
||||
/** 按时长计费(单位S)。适用于音乐生成、视频编辑等 */
|
||||
ByDuration = 1,
|
||||
/** 按token数计费。适用于视频生成 */
|
||||
ByTotalTokens = 2,
|
||||
/** 插件本身不计费,由下游计费。 */
|
||||
NoneButByDownstream = 11,
|
||||
}
|
||||
|
||||
/** 资源归属的实体类型 */
|
||||
export enum ResBelongsToEntityType {
|
||||
/** 未知 */
|
||||
|
|
@ -526,13 +454,6 @@ export enum VolcanoUserType {
|
|||
BasicUser = 2,
|
||||
}
|
||||
|
||||
export enum VolcInstanceType {
|
||||
/** 正常版本 */
|
||||
Normal = 1,
|
||||
/** 渠道版本 */
|
||||
Channel = 2,
|
||||
}
|
||||
|
||||
export enum WorkflowMode {
|
||||
Unknown = 0,
|
||||
TestRun = 1,
|
||||
|
|
@ -614,17 +535,8 @@ export interface ModeleResInfo {
|
|||
input_tokens?: Int64;
|
||||
/** 输出token数 */
|
||||
output_tokens?: Int64;
|
||||
/** 模型AK类别 */
|
||||
ak_catalog?: string;
|
||||
/** 模型AK */
|
||||
model_ak?: string;
|
||||
}
|
||||
|
||||
export interface PluginRelationInfo {
|
||||
/** 计费类型 */
|
||||
bill_type?: PluginBillType;
|
||||
/** 插件功能名称。只有当一个插件内有多种计费时,该字段才需要填值 */
|
||||
feature_name?: string;
|
||||
ak_catalog?: string;
|
||||
}
|
||||
|
||||
export interface PluginResInfo {
|
||||
|
|
@ -632,16 +544,6 @@ export interface PluginResInfo {
|
|||
plugin_api_id?: Int64;
|
||||
/** 是否是图像流 */
|
||||
is_image_flow?: boolean;
|
||||
/** 工具ID */
|
||||
tool_id?: Int64;
|
||||
/** 工具名称 */
|
||||
tool_name?: string;
|
||||
/** 插件关联信息 */
|
||||
relation_info?: PluginRelationInfo;
|
||||
/** 插件执行时间(单位秒)。默认存在是则优先取该值。适用于通过执行时长计费的插件 */
|
||||
duration?: Int64;
|
||||
/** 输出token数。默认存在是则优先取该值。适用于通过token数计费的插件 */
|
||||
total_tokens?: Int64;
|
||||
}
|
||||
|
||||
export interface PublicUserBasicInfo {
|
||||
|
|
@ -768,8 +670,6 @@ export interface VolcAccountInfo {
|
|||
instance_begin_time?: Int64;
|
||||
/** 权益失效时间(秒级) */
|
||||
instance_end_time?: Int64;
|
||||
/** 套餐对应周期资源包实例Id,如果用户购买的是仅版本,则该字段为空 */
|
||||
period_pack_instance_id?: string;
|
||||
}
|
||||
|
||||
export interface VolcUserInfo {
|
||||
|
|
@ -777,7 +677,5 @@ export interface VolcUserInfo {
|
|||
VolcAuthInstanceID?: string;
|
||||
/** 火山开通的套餐等级 */
|
||||
VolcUserLevel?: UserLevel;
|
||||
/** 火山用户实例版本 */
|
||||
VolcInstanceType?: VolcInstanceType;
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ export interface ListBenefitLimitationResponse {
|
|||
}
|
||||
|
||||
export interface ListBillDownloadTaskRequest {
|
||||
task_ids?: Array<string>;
|
||||
task_ids?: Array<Int64>;
|
||||
page_num?: number;
|
||||
page_size?: number;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ export interface PublicGetUserWalletHistoryResponse {
|
|||
}
|
||||
|
||||
export interface UserBalanceData {
|
||||
balance_map?: Partial<Record<BalanceType, Int64>>;
|
||||
balance_map?: Record<BalanceType, Int64>;
|
||||
}
|
||||
|
||||
export interface UserProfitData {
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@ export * from './namespaces/bot_connector';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class BotConnectorService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('BotConnectorService.request is undefined');
|
||||
|
|
|
|||
|
|
@ -86,18 +86,6 @@ export enum BotTableRWMode {
|
|||
RWModeMax = 4,
|
||||
}
|
||||
|
||||
export enum BusinessType {
|
||||
Default = 0,
|
||||
DouyinAvatar = 1,
|
||||
}
|
||||
|
||||
export enum CacheType {
|
||||
/** 缓存关闭 */
|
||||
CacheClosed = 0,
|
||||
/** 前缀缓存 */
|
||||
PrefixCache = 1,
|
||||
}
|
||||
|
||||
/** 上下文允许传输的类型 */
|
||||
export enum ContextMode {
|
||||
Chat = 0,
|
||||
|
|
@ -106,19 +94,6 @@ export enum ContextMode {
|
|||
FunctionCall_3 = 3,
|
||||
}
|
||||
|
||||
export enum DefaultUserInputType {
|
||||
/** 没设置 */
|
||||
NotSet = 0,
|
||||
/** 文字 */
|
||||
Text = 1,
|
||||
/** 按住语音 */
|
||||
Voice = 2,
|
||||
/** 语音通话 */
|
||||
Call = 3,
|
||||
/** 视频通话 */
|
||||
VideoCall = 4,
|
||||
}
|
||||
|
||||
export enum DisablePromptCalling {
|
||||
Off = 0,
|
||||
On = 1,
|
||||
|
|
@ -168,16 +143,6 @@ export enum KnowledgeShowSourceMode {
|
|||
CardList = 1,
|
||||
}
|
||||
|
||||
export enum KnowledgeType {
|
||||
Coze = 0,
|
||||
Volcano = 1,
|
||||
}
|
||||
|
||||
export enum KnowledgeTypeMode {
|
||||
Coze = 0,
|
||||
Volcano = 1,
|
||||
}
|
||||
|
||||
export enum MessageFeedbackDetailType {
|
||||
UnlikeDefault = 0,
|
||||
/** 有害信息 */
|
||||
|
|
@ -223,9 +188,6 @@ export enum ModelFuncConfigType {
|
|||
MultiAgentRecognize = 18,
|
||||
KnowledgePhoto = 19,
|
||||
HookInfo = 20,
|
||||
KnowledgeValcanoUnstructured = 21,
|
||||
KnowledgeValcanoStructured = 22,
|
||||
Model = 23,
|
||||
}
|
||||
|
||||
export enum ModelResponseFormat {
|
||||
|
|
@ -261,12 +223,6 @@ export enum OnboardingMode {
|
|||
USE_LLM = 3,
|
||||
}
|
||||
|
||||
export enum PromptMode {
|
||||
Standard = 0,
|
||||
/** 前缀提示词 */
|
||||
PrefixPrompt = 1,
|
||||
}
|
||||
|
||||
export enum RecognitionMode {
|
||||
FunctionCall = 1,
|
||||
Independent = 2,
|
||||
|
|
@ -483,11 +439,6 @@ export interface ChatV3MessageDetail {
|
|||
section_id?: string;
|
||||
created_at?: Int64;
|
||||
updated_at?: Int64;
|
||||
reasoning_content?: string;
|
||||
}
|
||||
|
||||
export interface CompletionUsage {
|
||||
reasoning_tokens?: number;
|
||||
}
|
||||
|
||||
export interface GradientPosition {
|
||||
|
|
@ -546,16 +497,6 @@ export interface ModelInfo {
|
|||
response_format?: ModelResponseFormat;
|
||||
/** 用户选择的模型风格 */
|
||||
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 {
|
||||
|
|
@ -591,24 +532,9 @@ export interface PluginParameter {
|
|||
sub_type?: string;
|
||||
}
|
||||
|
||||
export interface PrefixPromptInfo {
|
||||
/** 前缀提示词 */
|
||||
prefix_prompt?: string;
|
||||
/** 不支持前缀提示词部分 */
|
||||
dynamic_prompt?: string;
|
||||
}
|
||||
|
||||
export interface PromptInfo {
|
||||
/** 文本prompt */
|
||||
prompt?: string;
|
||||
/** 提示词模式 */
|
||||
prompt_mode?: PromptMode;
|
||||
/** 前缀提示词模式下的prompt内容 */
|
||||
prefix_prompt_info?: PrefixPromptInfo;
|
||||
}
|
||||
|
||||
export interface PromptUsage {
|
||||
cached_tokens?: number;
|
||||
}
|
||||
|
||||
export interface RequiredAction {
|
||||
|
|
@ -642,26 +568,6 @@ export interface Usage {
|
|||
token_count?: number;
|
||||
output_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 */
|
||||
|
|
@ -677,12 +583,6 @@ export interface VoicesInfo {
|
|||
autoplay_voice?: Record<string, Int64>;
|
||||
/** 是否关闭语音通话,true:关闭 false:开启 默认为false */
|
||||
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 {
|
||||
|
|
|
|||
|
|
@ -119,8 +119,6 @@ export interface BotUserConversation {
|
|||
SessionName?: string;
|
||||
ConnectorID?: Int64;
|
||||
ConversationID?: Int64;
|
||||
AccountID?: Int64;
|
||||
CreatorID?: string;
|
||||
}
|
||||
|
||||
export interface CancelChatApiRequest {
|
||||
|
|
@ -156,7 +154,6 @@ export interface ChatMessage {
|
|||
meta_infos?: Array<MetaInfo>;
|
||||
query_snap?: string;
|
||||
card_status?: Record<string, string>;
|
||||
reasoning_content?: string;
|
||||
}
|
||||
|
||||
export interface ClearConversationApiRequest {
|
||||
|
|
@ -181,7 +178,6 @@ export interface ConversationData {
|
|||
creator_d?: string;
|
||||
connector_id?: string;
|
||||
last_section_id?: string;
|
||||
account_id?: Int64;
|
||||
}
|
||||
|
||||
export interface CreateConversationApiRequest {
|
||||
|
|
@ -415,7 +411,6 @@ export interface OpenMessage {
|
|||
CustomerDataApi?: Record<string, string>;
|
||||
Type?: number;
|
||||
SectionID?: Int64;
|
||||
ReasoningContent?: string;
|
||||
}
|
||||
|
||||
export interface OpenMessageApi {
|
||||
|
|
@ -437,7 +432,6 @@ export interface OpenMessageApi {
|
|||
content_type?: string;
|
||||
type?: string;
|
||||
section_id?: string;
|
||||
reasoning_content?: string;
|
||||
}
|
||||
|
||||
export interface PlaygroundOriginMessage {
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@ export * from './namespaces/bot_open_api';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class BotOpenApiService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('BotOpenApiService.request is undefined');
|
||||
|
|
@ -314,9 +316,6 @@ export default class BotOpenApiService<T> {
|
|||
custom_config: _req['custom_config'],
|
||||
extra_params: _req['extra_params'],
|
||||
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'] };
|
||||
return this.request({ url, method, data, params }, options);
|
||||
|
|
@ -330,11 +329,7 @@ export default class BotOpenApiService<T> {
|
|||
const _req = req;
|
||||
const url = this.genBaseURL('/v3/chat/submit_tool_outputs');
|
||||
const method = 'POST';
|
||||
const data = {
|
||||
stream: _req['stream'],
|
||||
tool_outputs: _req['tool_outputs'],
|
||||
connector_id: _req['connector_id'],
|
||||
};
|
||||
const data = { stream: _req['stream'], tool_outputs: _req['tool_outputs'] };
|
||||
const params = {
|
||||
conversation_id: _req['conversation_id'],
|
||||
chat_id: _req['chat_id'],
|
||||
|
|
@ -360,9 +355,6 @@ export default class BotOpenApiService<T> {
|
|||
onboarding_info: _req['onboarding_info'],
|
||||
voice_ids: _req['voice_ids'],
|
||||
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);
|
||||
}
|
||||
|
|
@ -398,9 +390,6 @@ export default class BotOpenApiService<T> {
|
|||
plugin_id_list: _req['plugin_id_list'],
|
||||
onboarding_info: _req['onboarding_info'],
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,18 +86,6 @@ export enum BotTableRWMode {
|
|||
RWModeMax = 4,
|
||||
}
|
||||
|
||||
export enum BusinessType {
|
||||
Default = 0,
|
||||
DouyinAvatar = 1,
|
||||
}
|
||||
|
||||
export enum CacheType {
|
||||
/** 缓存关闭 */
|
||||
CacheClosed = 0,
|
||||
/** 前缀缓存 */
|
||||
PrefixCache = 1,
|
||||
}
|
||||
|
||||
/** 上下文允许传输的类型 */
|
||||
export enum ContextMode {
|
||||
Chat = 0,
|
||||
|
|
@ -106,19 +94,6 @@ export enum ContextMode {
|
|||
FunctionCall_3 = 3,
|
||||
}
|
||||
|
||||
export enum DefaultUserInputType {
|
||||
/** 没设置 */
|
||||
NotSet = 0,
|
||||
/** 文字 */
|
||||
Text = 1,
|
||||
/** 按住语音 */
|
||||
Voice = 2,
|
||||
/** 语音通话 */
|
||||
Call = 3,
|
||||
/** 视频通话 */
|
||||
VideoCall = 4,
|
||||
}
|
||||
|
||||
export enum DisablePromptCalling {
|
||||
Off = 0,
|
||||
On = 1,
|
||||
|
|
@ -168,16 +143,6 @@ export enum KnowledgeShowSourceMode {
|
|||
CardList = 1,
|
||||
}
|
||||
|
||||
export enum KnowledgeType {
|
||||
Coze = 0,
|
||||
Volcano = 1,
|
||||
}
|
||||
|
||||
export enum KnowledgeTypeMode {
|
||||
Coze = 0,
|
||||
Volcano = 1,
|
||||
}
|
||||
|
||||
export enum MessageFeedbackDetailType {
|
||||
UnlikeDefault = 0,
|
||||
/** 有害信息 */
|
||||
|
|
@ -223,9 +188,6 @@ export enum ModelFuncConfigType {
|
|||
MultiAgentRecognize = 18,
|
||||
KnowledgePhoto = 19,
|
||||
HookInfo = 20,
|
||||
KnowledgeValcanoUnstructured = 21,
|
||||
KnowledgeValcanoStructured = 22,
|
||||
Model = 23,
|
||||
}
|
||||
|
||||
export enum ModelResponseFormat {
|
||||
|
|
@ -261,12 +223,6 @@ export enum OnboardingMode {
|
|||
USE_LLM = 3,
|
||||
}
|
||||
|
||||
export enum PromptMode {
|
||||
Standard = 0,
|
||||
/** 前缀提示词 */
|
||||
PrefixPrompt = 1,
|
||||
}
|
||||
|
||||
export enum RecognitionMode {
|
||||
FunctionCall = 1,
|
||||
Independent = 2,
|
||||
|
|
@ -390,10 +346,6 @@ export interface ChatV3ChatDetail {
|
|||
section_id?: string;
|
||||
}
|
||||
|
||||
export interface CompletionUsage {
|
||||
reasoning_tokens?: number;
|
||||
}
|
||||
|
||||
export interface InterruptFunction {
|
||||
name?: string;
|
||||
arguments?: string;
|
||||
|
|
@ -415,10 +367,6 @@ export interface LastError {
|
|||
msg: string;
|
||||
}
|
||||
|
||||
export interface PromptUsage {
|
||||
cached_tokens?: number;
|
||||
}
|
||||
|
||||
export interface RequiredAction {
|
||||
type?: string;
|
||||
submit_tool_outputs?: SubmitToolOutputs;
|
||||
|
|
@ -432,7 +380,5 @@ export interface Usage {
|
|||
token_count?: number;
|
||||
output_count?: number;
|
||||
input_count?: number;
|
||||
input_tokens_details?: PromptUsage;
|
||||
output_tokens_details?: CompletionUsage;
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
|
|
|||
|
|
@ -41,23 +41,6 @@ export interface ApiInfo {
|
|||
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 {
|
||||
character_name?: string;
|
||||
propmt?: string;
|
||||
|
|
@ -92,22 +75,6 @@ export interface BotInfo {
|
|||
plugin_info_list?: Array<PluginInfo>;
|
||||
/** 知识库信息 */
|
||||
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 {
|
||||
|
|
@ -123,13 +90,6 @@ export interface BotOnboardingResp {
|
|||
sender_info?: SenderInfo;
|
||||
}
|
||||
|
||||
export interface CanvasPosition {
|
||||
width?: number;
|
||||
height?: number;
|
||||
left?: number;
|
||||
top?: number;
|
||||
}
|
||||
|
||||
export interface ChatMessage {
|
||||
role?: string;
|
||||
type?: string;
|
||||
|
|
@ -145,8 +105,6 @@ export interface ChatMessage {
|
|||
broken_pos?: number;
|
||||
meta_data?: MetaData;
|
||||
name?: string;
|
||||
/** 思考内容 */
|
||||
reasoning_content?: string;
|
||||
}
|
||||
|
||||
export interface ChatV1Req {
|
||||
|
|
@ -215,11 +173,6 @@ export interface ChatV3Request {
|
|||
extra_params?: Record<string, string>;
|
||||
/** 手动指定渠道 id 聊天。目前仅支持 websdk(=999) */
|
||||
connector_id?: string;
|
||||
/** 指定快捷指令 */
|
||||
shortcut_command?: ShortcutCommandDetail;
|
||||
/** key=参数名 value=值 传递给 workflows parameters 参数 */
|
||||
parameters?: string;
|
||||
enable_card?: boolean;
|
||||
}
|
||||
|
||||
export interface ChatV3Response {
|
||||
|
|
@ -247,9 +200,6 @@ export interface CreateDraftBotRequest {
|
|||
plugin_id_list?: PluginIdList;
|
||||
onboarding_info?: OnboardingInfo;
|
||||
voice_ids?: Array<string>;
|
||||
workflow_id_list?: WorkflowIdList;
|
||||
model_info_config?: ModelInfoConfig;
|
||||
suggest_reply_info?: SuggestReplyInfo;
|
||||
}
|
||||
|
||||
export interface CreateDraftBotResponse {
|
||||
|
|
@ -349,11 +299,6 @@ export interface GetVoiceListResp {
|
|||
voice_data_list?: Array<VoiceData>;
|
||||
}
|
||||
|
||||
export interface GradientPosition {
|
||||
left?: number;
|
||||
right?: number;
|
||||
}
|
||||
|
||||
export interface Image {
|
||||
url: string;
|
||||
name?: string;
|
||||
|
|
@ -389,59 +334,6 @@ export interface ModelInfo {
|
|||
model_id?: 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 {
|
||||
|
|
@ -523,21 +415,10 @@ export interface PluginInfo {
|
|||
api_info_list?: Array<ApiInfo>;
|
||||
}
|
||||
|
||||
export interface PrefixPromptInfo {
|
||||
/** 前缀提示词 */
|
||||
prefix_prompt?: string;
|
||||
/** 不支持前缀提示词部分 */
|
||||
dynamic_prompt?: string;
|
||||
}
|
||||
|
||||
/** bot管理 */
|
||||
export interface PromptInfo {
|
||||
/** 文本prompt */
|
||||
prompt?: string;
|
||||
/** 提示词模式 */
|
||||
prompt_mode?: string;
|
||||
/** 前缀提示词模式下的prompt内容 */
|
||||
prefix_prompt_info?: PrefixPromptInfo;
|
||||
}
|
||||
|
||||
export interface PublishDraftBotData {
|
||||
|
|
@ -561,75 +442,6 @@ export interface SenderInfo {
|
|||
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 {
|
||||
bot_id?: string;
|
||||
bot_name?: string;
|
||||
|
|
@ -648,14 +460,6 @@ export interface SubmitToolOutputsRequest {
|
|||
chat_id: string;
|
||||
stream?: boolean;
|
||||
tool_outputs: Array<ToolOutput>;
|
||||
connector_id?: string;
|
||||
}
|
||||
|
||||
export interface SuggestReplyInfo {
|
||||
/** 回复模式 */
|
||||
reply_mode?: string;
|
||||
/** custom 模式下的自定义 prompt */
|
||||
customized_prompt?: string;
|
||||
}
|
||||
|
||||
/** 对齐 platform,传递 tools */
|
||||
|
|
@ -681,9 +485,6 @@ export interface UpdateDraftBotRequest {
|
|||
onboarding_info?: OnboardingInfo;
|
||||
voice_ids?: Array<string>;
|
||||
knowledge?: Knowledge;
|
||||
workflow_id_list?: WorkflowIdList;
|
||||
model_info_config?: ModelInfoConfig;
|
||||
suggest_reply_info?: SuggestReplyInfo;
|
||||
}
|
||||
|
||||
export interface UpdateDraftBotResponse {
|
||||
|
|
@ -702,30 +503,6 @@ export interface UploadResp {
|
|||
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 {
|
||||
/** 唯一id */
|
||||
id?: string;
|
||||
|
|
@ -742,23 +519,4 @@ export interface VoiceData {
|
|||
/** 预览音色内容 */
|
||||
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 */
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -49,6 +49,8 @@ export * from './namespaces/shortcut_command';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class CardService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('CardService.request is undefined');
|
||||
|
|
|
|||
|
|
@ -91,13 +91,6 @@ export enum BusinessType {
|
|||
DouyinAvatar = 1,
|
||||
}
|
||||
|
||||
export enum CacheType {
|
||||
/** 缓存关闭 */
|
||||
CacheClosed = 0,
|
||||
/** 前缀缓存 */
|
||||
PrefixCache = 1,
|
||||
}
|
||||
|
||||
/** 上下文允许传输的类型 */
|
||||
export enum ContextMode {
|
||||
Chat = 0,
|
||||
|
|
@ -115,8 +108,6 @@ export enum DefaultUserInputType {
|
|||
Voice = 2,
|
||||
/** 语音通话 */
|
||||
Call = 3,
|
||||
/** 视频通话 */
|
||||
VideoCall = 4,
|
||||
}
|
||||
|
||||
export enum DisablePromptCalling {
|
||||
|
|
@ -168,16 +159,6 @@ export enum KnowledgeShowSourceMode {
|
|||
CardList = 1,
|
||||
}
|
||||
|
||||
export enum KnowledgeType {
|
||||
Coze = 0,
|
||||
Volcano = 1,
|
||||
}
|
||||
|
||||
export enum KnowledgeTypeMode {
|
||||
Coze = 0,
|
||||
Volcano = 1,
|
||||
}
|
||||
|
||||
export enum MessageFeedbackDetailType {
|
||||
UnlikeDefault = 0,
|
||||
/** 有害信息 */
|
||||
|
|
@ -223,9 +204,6 @@ export enum ModelFuncConfigType {
|
|||
MultiAgentRecognize = 18,
|
||||
KnowledgePhoto = 19,
|
||||
HookInfo = 20,
|
||||
KnowledgeValcanoUnstructured = 21,
|
||||
KnowledgeValcanoStructured = 22,
|
||||
Model = 23,
|
||||
}
|
||||
|
||||
export enum ModelResponseFormat {
|
||||
|
|
@ -261,12 +239,6 @@ export enum OnboardingMode {
|
|||
USE_LLM = 3,
|
||||
}
|
||||
|
||||
export enum PromptMode {
|
||||
Standard = 0,
|
||||
/** 前缀提示词 */
|
||||
PrefixPrompt = 1,
|
||||
}
|
||||
|
||||
export enum RecognitionMode {
|
||||
FunctionCall = 1,
|
||||
Independent = 2,
|
||||
|
|
|
|||
|
|
@ -687,7 +687,7 @@ export interface CheckCardLengthRequest {
|
|||
}
|
||||
|
||||
export interface CheckCardLengthResponse {
|
||||
is_over_length?: Partial<Record<ChannelType, boolean>>;
|
||||
is_over_length?: Record<ChannelType, boolean>;
|
||||
code?: Int64;
|
||||
msg?: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
|
|
|
|||
|
|
@ -81,28 +81,6 @@ export enum CopilotContentType {
|
|||
OutputSearchResult = 200,
|
||||
OutputMultiStream = 201,
|
||||
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 {
|
||||
|
|
@ -162,7 +140,6 @@ export enum FileType {
|
|||
/** 豆包OCR需求 */
|
||||
IMAGE = 2,
|
||||
AUDIO = 3,
|
||||
VIDEO = 4,
|
||||
}
|
||||
|
||||
export enum FinReason {
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ export * from './namespaces/open_api';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class ConnectorApiService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('ConnectorApiService.request is undefined');
|
||||
|
|
@ -369,54 +371,5 @@ export default class ConnectorApiService<T> {
|
|||
};
|
||||
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 */
|
||||
|
|
|
|||
|
|
@ -36,13 +36,6 @@ export enum ManageAccountConnectorAction {
|
|||
Remove = 1,
|
||||
}
|
||||
|
||||
export enum MiniProgramDomainAction {
|
||||
/** 添加域名 */
|
||||
Add = 0,
|
||||
/** 移除域名 */
|
||||
Remove = 1,
|
||||
}
|
||||
|
||||
export enum SpaceConnectorType {
|
||||
/** 团队内自定义渠道 */
|
||||
Team = 1,
|
||||
|
|
@ -253,7 +246,7 @@ export interface GetPreviewConnectorRequest {
|
|||
}
|
||||
|
||||
export interface GetPreviewConnectorResponse {
|
||||
connector_list?: Array<string>;
|
||||
connector_list?: Array<Int64>;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
|
|
@ -285,21 +278,6 @@ export interface ListConnectorResponse {
|
|||
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 {
|
||||
page_token?: string;
|
||||
page_size?: number;
|
||||
|
|
@ -330,12 +308,6 @@ export interface ManageAccountConnectorResponse {
|
|||
msg?: string;
|
||||
}
|
||||
|
||||
export interface MiniProgramDomain {
|
||||
id?: string;
|
||||
domain?: string;
|
||||
status?: number;
|
||||
}
|
||||
|
||||
export interface OauthSchema {
|
||||
schema_area?: SchemaAreaInfo;
|
||||
copy_link_area?: CopyLinkAreaInfo;
|
||||
|
|
@ -358,20 +330,6 @@ export interface SchemaAreaInfo {
|
|||
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 {
|
||||
/** 发布平台 connector_id */
|
||||
id?: string;
|
||||
|
|
@ -412,16 +370,6 @@ export interface UpdateConnectorResponse {
|
|||
callback_token?: string;
|
||||
}
|
||||
|
||||
export interface UpdateMiniProgramDomainRequest {
|
||||
id: string;
|
||||
domain: string;
|
||||
}
|
||||
|
||||
export interface UpdateMiniProgramDomainResponse {
|
||||
code?: number;
|
||||
msg?: string;
|
||||
}
|
||||
|
||||
export interface UpdateOauthConfigRequest {
|
||||
/** 渠道 ID */
|
||||
connector_id?: string;
|
||||
|
|
|
|||
|
|
@ -73,6 +73,8 @@ export * from './namespaces/testcase';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class DebuggerApiService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('DebuggerApiService.request is undefined');
|
||||
|
|
|
|||
|
|
@ -96,7 +96,6 @@ export interface Image {
|
|||
url?: string;
|
||||
uri?: string;
|
||||
thumb_url?: string;
|
||||
original_url?: string;
|
||||
}
|
||||
|
||||
export interface ImageInfo {
|
||||
|
|
|
|||
|
|
@ -82,6 +82,8 @@ export * from './namespaces/table';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class DeveloperApiService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('DeveloperApiService.request is undefined');
|
||||
|
|
@ -1773,7 +1775,6 @@ export default class DeveloperApiService<T> {
|
|||
create_from: _req['create_from'],
|
||||
app_id: _req['app_id'],
|
||||
business_type: _req['business_type'],
|
||||
folder_id: _req['folder_id'],
|
||||
};
|
||||
return this.request({ url, method, data }, options);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,13 +91,6 @@ export enum BusinessType {
|
|||
DouyinAvatar = 1,
|
||||
}
|
||||
|
||||
export enum CacheType {
|
||||
/** 缓存关闭 */
|
||||
CacheClosed = 0,
|
||||
/** 前缀缓存 */
|
||||
PrefixCache = 1,
|
||||
}
|
||||
|
||||
/** 上下文允许传输的类型 */
|
||||
export enum ContextMode {
|
||||
Chat = 0,
|
||||
|
|
@ -115,8 +108,6 @@ export enum DefaultUserInputType {
|
|||
Voice = 2,
|
||||
/** 语音通话 */
|
||||
Call = 3,
|
||||
/** 视频通话 */
|
||||
VideoCall = 4,
|
||||
}
|
||||
|
||||
export enum DisablePromptCalling {
|
||||
|
|
@ -168,16 +159,6 @@ export enum KnowledgeShowSourceMode {
|
|||
CardList = 1,
|
||||
}
|
||||
|
||||
export enum KnowledgeType {
|
||||
Coze = 0,
|
||||
Volcano = 1,
|
||||
}
|
||||
|
||||
export enum KnowledgeTypeMode {
|
||||
Coze = 0,
|
||||
Volcano = 1,
|
||||
}
|
||||
|
||||
export enum MessageFeedbackDetailType {
|
||||
UnlikeDefault = 0,
|
||||
/** 有害信息 */
|
||||
|
|
@ -223,9 +204,6 @@ export enum ModelFuncConfigType {
|
|||
MultiAgentRecognize = 18,
|
||||
KnowledgePhoto = 19,
|
||||
HookInfo = 20,
|
||||
KnowledgeValcanoUnstructured = 21,
|
||||
KnowledgeValcanoStructured = 22,
|
||||
Model = 23,
|
||||
}
|
||||
|
||||
export enum ModelResponseFormat {
|
||||
|
|
@ -261,12 +239,6 @@ export enum OnboardingMode {
|
|||
USE_LLM = 3,
|
||||
}
|
||||
|
||||
export enum PromptMode {
|
||||
Standard = 0,
|
||||
/** 前缀提示词 */
|
||||
PrefixPrompt = 1,
|
||||
}
|
||||
|
||||
export enum RecognitionMode {
|
||||
FunctionCall = 1,
|
||||
Independent = 2,
|
||||
|
|
@ -375,20 +347,6 @@ export enum WorkflowMode {
|
|||
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 {
|
||||
/** 反馈类型 */
|
||||
feedback_type?: MessageFeedbackType;
|
||||
|
|
@ -405,22 +363,4 @@ export interface UserLabel {
|
|||
icon_url?: 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 */
|
||||
|
|
|
|||
|
|
@ -115,13 +115,6 @@ export enum ManageAccountConnectorAction {
|
|||
Remove = 1,
|
||||
}
|
||||
|
||||
export enum MiniProgramDomainAction {
|
||||
/** 添加域名 */
|
||||
Add = 0,
|
||||
/** 移除域名 */
|
||||
Remove = 1,
|
||||
}
|
||||
|
||||
export enum OperateType {
|
||||
/** 1 属性修改 2-4 状态修改 */
|
||||
Update = 1,
|
||||
|
|
|
|||
|
|
@ -215,13 +215,6 @@ export enum Branch {
|
|||
Publish = 3,
|
||||
}
|
||||
|
||||
export enum CacheType {
|
||||
/** 缓存关闭 */
|
||||
CacheClosed = 0,
|
||||
/** 前缀缓存 */
|
||||
PrefixCache = 1,
|
||||
}
|
||||
|
||||
export enum CardBizType {
|
||||
Plugin = 1,
|
||||
Workflow = 2,
|
||||
|
|
@ -705,9 +698,6 @@ export enum ModelTagClass {
|
|||
ModelUserRight = 2,
|
||||
ModelFeature = 3,
|
||||
ModelFunction = 4,
|
||||
ModelPaid = 15,
|
||||
/** 模型运行时能力 */
|
||||
ModelAbility = 16,
|
||||
/** 本期不做 */
|
||||
Custom = 20,
|
||||
Others = 100,
|
||||
|
|
@ -2727,7 +2717,6 @@ export interface DraftBotCreateRequest {
|
|||
/** 关联的抖音分身应用id */
|
||||
app_id?: string;
|
||||
business_type?: bot_common.BusinessType;
|
||||
folder_id?: string;
|
||||
}
|
||||
|
||||
export interface DraftBotCreateResponse {
|
||||
|
|
@ -3815,8 +3804,6 @@ export interface GetTypeListData {
|
|||
model_list?: Array<Model>;
|
||||
voice_list?: Array<VoiceType>;
|
||||
raw_model_list?: Array<Model>;
|
||||
model_show_family_list?: Array<ModelShowFamily>;
|
||||
default_model_id?: Int64;
|
||||
}
|
||||
|
||||
export interface GetTypeListRequest {
|
||||
|
|
@ -4102,13 +4089,6 @@ export interface InitVoicesInfo {
|
|||
autoplay?: boolean;
|
||||
/** 是否关闭语音通话,true:关闭 false:开启 默认为false */
|
||||
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 {
|
||||
|
|
@ -4440,8 +4420,9 @@ export interface Model {
|
|||
model_params?: Array<ModelParameter>;
|
||||
model_desc?: Array<ModelDescGroup>;
|
||||
/** 模型功能配置 */
|
||||
func_config?: Partial<
|
||||
Record<bot_common.ModelFuncConfigType, bot_common.ModelFuncConfigStatus>
|
||||
func_config?: Record<
|
||||
bot_common.ModelFuncConfigType,
|
||||
bot_common.ModelFuncConfigStatus
|
||||
>;
|
||||
/** 方舟模型节点名称 */
|
||||
endpoint_name?: string;
|
||||
|
|
@ -4457,13 +4438,6 @@ export interface Model {
|
|||
model_status_details?: ModelStatusDetails;
|
||||
/** 模型能力 */
|
||||
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 {
|
||||
|
|
@ -4475,12 +4449,6 @@ export interface ModelAbility {
|
|||
image_understanding?: boolean;
|
||||
/** 是否支持视频理解 */
|
||||
video_understanding?: boolean;
|
||||
/** 是否支持音频理解 */
|
||||
audio_understanding?: boolean;
|
||||
/** 是否支持多模态 */
|
||||
support_multi_modal?: boolean;
|
||||
/** 是否支持续写 */
|
||||
prefill_resp?: boolean;
|
||||
}
|
||||
|
||||
export interface ModelDescGroup {
|
||||
|
|
@ -4506,13 +4474,6 @@ export interface ModelInfo {
|
|||
response_format?: bot_common.ModelResponseFormat;
|
||||
/** 用户选择的模型风格 */
|
||||
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 {
|
||||
|
|
@ -4549,7 +4510,6 @@ export interface ModelParameter {
|
|||
options?: Array<Option>;
|
||||
/** 参数分类,"Generation diversity", "Input and output length", "Output format" */
|
||||
param_class?: ModelParamClass;
|
||||
custom_flag?: boolean;
|
||||
}
|
||||
|
||||
export interface ModelQuota {
|
||||
|
|
@ -4586,14 +4546,6 @@ export interface ModelSeriesInfo {
|
|||
model_tips?: string;
|
||||
}
|
||||
|
||||
export interface ModelShowFamily {
|
||||
id?: Int64;
|
||||
icon?: string;
|
||||
iconUrl?: string;
|
||||
name?: string;
|
||||
ranking?: number;
|
||||
}
|
||||
|
||||
export interface ModelStatusDetails {
|
||||
/** 是否为新模型 */
|
||||
is_new_model?: boolean;
|
||||
|
|
@ -4977,7 +4929,7 @@ export interface PluginInfo {
|
|||
/** 插件统计数据 */
|
||||
statistic_data?: PluginStatisticData;
|
||||
/** 公共参数列表 */
|
||||
common_params?: Partial<Record<ParameterLocation, Array<commonParamSchema>>>;
|
||||
common_params?: Record<ParameterLocation, Array<commonParamSchema>>;
|
||||
/** plugin的商品上下架状态 */
|
||||
plugin_product_list_status?: product_common.ProductStatus;
|
||||
/** plugin的商品状态(组合状态) */
|
||||
|
|
@ -5009,7 +4961,7 @@ export interface PluginInfoForPlayground {
|
|||
space_id?: string;
|
||||
/** 插件统计数据 */
|
||||
statistic_data?: PluginStatisticData;
|
||||
common_params?: Partial<Record<ParameterLocation, Array<commonParamSchema>>>;
|
||||
common_params?: Record<ParameterLocation, Array<commonParamSchema>>;
|
||||
/** plugin的商品状态 */
|
||||
plugin_product_status?: product_common.ProductStatus;
|
||||
/** plugin商品下架类型 */
|
||||
|
|
@ -5032,7 +4984,7 @@ export interface PluginMetaInfo {
|
|||
service_token?: string;
|
||||
/** json序列化 */
|
||||
oauth_info?: string;
|
||||
common_params?: Partial<Record<ParameterLocation, Array<commonParamSchema>>>;
|
||||
common_params?: Record<ParameterLocation, Array<commonParamSchema>>;
|
||||
}
|
||||
|
||||
export interface PluginParameter {
|
||||
|
|
@ -5161,8 +5113,6 @@ export interface PublishConnectorInfo {
|
|||
auth_status?: bot_user_auth.UserAuthStatus;
|
||||
/** 补全信息按钮的 url */
|
||||
to_complete_info_url?: string;
|
||||
/** 渠道发布提示 */
|
||||
connector_tips?: string;
|
||||
}
|
||||
|
||||
export interface PublishConnectorListRequest {
|
||||
|
|
@ -5398,7 +5348,7 @@ export interface RegisterPluginMetaRequest {
|
|||
oauth_info?: string;
|
||||
space_id: string;
|
||||
/** 公共参数列表 */
|
||||
common_params?: Partial<Record<ParameterLocation, Array<commonParamSchema>>>;
|
||||
common_params?: Record<ParameterLocation, Array<commonParamSchema>>;
|
||||
/** 默认0 默认原来表单创建方式,1 coze ide创建方式 */
|
||||
creation_method?: CreationMethod;
|
||||
/** ide创建下的代码编程语言 */
|
||||
|
|
@ -6000,9 +5950,6 @@ export interface TabDisplayItems {
|
|||
knowledge_photo_tab_status?: TabStatus;
|
||||
hook_info_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 */
|
||||
|
|
@ -6339,7 +6286,7 @@ export interface UpdatePluginMetaRequest {
|
|||
service_token?: string;
|
||||
/** json序列化 */
|
||||
oauth_info?: string;
|
||||
common_params?: Partial<Record<ParameterLocation, Array<commonParamSchema>>>;
|
||||
common_params?: Record<ParameterLocation, Array<commonParamSchema>>;
|
||||
creation_method?: CreationMethod;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,20 +20,16 @@
|
|||
// @ts-nocheck
|
||||
|
||||
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';
|
||||
|
||||
export { base, benefit_common, copilot_common, oapi, open_api };
|
||||
export { base, open_api };
|
||||
export * from './namespaces/base';
|
||||
export * from './namespaces/benefit_common';
|
||||
export * from './namespaces/copilot_common';
|
||||
export * from './namespaces/oapi';
|
||||
export * from './namespaces/open_api';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class DeveloperBackendService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('DeveloperBackendService.request is undefined');
|
||||
|
|
@ -182,11 +178,7 @@ export default class DeveloperBackendService<T> {
|
|||
const _req = req;
|
||||
const url = this.genBaseURL('/api/open/playground/api_info');
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
url_key: _req['url_key'],
|
||||
workflow_id: _req['workflow_id'],
|
||||
Base: _req['Base'],
|
||||
};
|
||||
const params = { url_key: _req['url_key'], Base: _req['Base'] };
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
|
|
@ -209,8 +201,6 @@ export default class DeveloperBackendService<T> {
|
|||
/**
|
||||
* POST /api/developer_backend/playground/sync_from_apihub
|
||||
*
|
||||
* openapi 用的 api
|
||||
*
|
||||
* 内网接口,从 apihub 同步 openapi swagger
|
||||
*
|
||||
* 从 apihub 同步最新的 openapi 接口与描述
|
||||
|
|
@ -250,20 +240,6 @@ export default class DeveloperBackendService<T> {
|
|||
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 */
|
||||
OauthQuickstartConfig(
|
||||
req?: open_api.OauthQuickstartConfigReq,
|
||||
|
|
@ -275,330 +251,5 @@ export default class DeveloperBackendService<T> {
|
|||
const params = { client_type: _req['client_type'], Base: _req['Base'] };
|
||||
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 */
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
// @ts-nocheck
|
||||
|
||||
import * as base from './base';
|
||||
import * as benefit_common from './benefit_common';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
|
|
@ -33,26 +32,11 @@ export enum AggregateDimension {
|
|||
Yearly = 5,
|
||||
}
|
||||
|
||||
export enum ApiAppEventStatus {
|
||||
Unsubscribed = 1,
|
||||
Subscribed = 2,
|
||||
}
|
||||
|
||||
export enum APISource {
|
||||
OpenAPI = 1,
|
||||
Coze = 2,
|
||||
}
|
||||
|
||||
export enum AppType {
|
||||
Normal = 1,
|
||||
Connector = 2,
|
||||
}
|
||||
|
||||
export enum ConnectorApiAppStatus {
|
||||
NotConfigured = 1,
|
||||
Configured = 2,
|
||||
}
|
||||
|
||||
export enum CozeVersion {
|
||||
Inhouse = 1,
|
||||
Release = 2,
|
||||
|
|
@ -79,7 +63,6 @@ export enum MeticsType {
|
|||
export enum PermissionScope {
|
||||
Workspace = 0,
|
||||
Account = 1,
|
||||
Enterprise = 2,
|
||||
}
|
||||
|
||||
export enum PermissionType {
|
||||
|
|
@ -95,27 +78,11 @@ export enum PlaygroundItemType {
|
|||
RTCSDK = 3,
|
||||
}
|
||||
|
||||
/** 新需求 上线后
|
||||
所有限流对象都在 path 维度下 */
|
||||
export enum PrincipleType {
|
||||
/** 默认限流
|
||||
deprecated, 没有什么作用. 没有什么场景一个 pat 共享所有 path 的限流的 */
|
||||
PAT = 1,
|
||||
/** global rate limit. 整个 path 的限流,保证服务稳定性,是一个服务能力的上限 */
|
||||
API = 2,
|
||||
/** per user rate limit. 每个 user 的限流,用来资源分配的 */
|
||||
PATAndAPI = 3,
|
||||
/** deprecated, 没有什么用 */
|
||||
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 数据页展示 ---
|
||||
|
|
@ -131,34 +98,11 @@ export enum QueryRange {
|
|||
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 {
|
||||
/** 默认流量: 普通版(个人免费) */
|
||||
/** 默认流量 */
|
||||
Default = 0,
|
||||
/** 专业版(个人付费) */
|
||||
/** 专业版 */
|
||||
Professional = 1,
|
||||
/** 企业版 */
|
||||
Enterprise = 2,
|
||||
}
|
||||
|
||||
export enum VisibleStatus {
|
||||
|
|
@ -187,39 +131,6 @@ export interface APIAnalyticsResp {
|
|||
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 {
|
||||
rows: Array<DetailRow>;
|
||||
}
|
||||
|
|
@ -244,108 +155,6 @@ export interface APIFileterInfo {
|
|||
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 {
|
||||
total_token: string;
|
||||
single_token: string;
|
||||
|
|
@ -356,50 +165,10 @@ export interface DetailRow {
|
|||
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 {
|
||||
path?: string;
|
||||
source?: APISource;
|
||||
version?: string;
|
||||
http_method?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
|
|
@ -409,42 +178,6 @@ export interface GetAPIVisibilityResponse {
|
|||
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 不同鉴权身份的鉴权点 */
|
||||
export interface GetPermissionByPathReq {
|
||||
path?: string;
|
||||
|
|
@ -467,7 +200,7 @@ export interface GetPermissionListReq {
|
|||
key_list?: Array<string>;
|
||||
/** 可以用id来精准匹配 */
|
||||
permission_id_list?: Array<string>;
|
||||
/** 可以选择传入 "release" "inhouse" 来选择版本 */
|
||||
/** 可以选择传入 “release” “inhouse” 来选择版本 */
|
||||
version?: CozeVersion;
|
||||
permission_type?: PermissionType;
|
||||
/** 完整 permission key 匹配. 格式 Bog::chat,并同时会把分组节点查询出来。 key_list 用于 v1 版本查询 */
|
||||
|
|
@ -481,7 +214,7 @@ export interface GetPermissionListReqV2 {
|
|||
key_list?: Array<string>;
|
||||
/** 可以用id来精准匹配 */
|
||||
permission_id_list?: Array<string>;
|
||||
/** 可以选择传入 "release" "inhouse" 来选择版本 */
|
||||
/** 可以选择传入 “release” “inhouse” 来选择版本 */
|
||||
version?: CozeVersion;
|
||||
permission_type?: PermissionType;
|
||||
Base?: base.Base;
|
||||
|
|
@ -501,20 +234,8 @@ export interface GetPermissionListRespV2 {
|
|||
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 {
|
||||
url_key: string;
|
||||
/** 工作流/对话流执行:返回上一次试运行的参数;对话流模式的智能体:返回对话流开始节点的参数 */
|
||||
workflow_id?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
|
|
@ -533,10 +254,6 @@ export interface GetPlaygroundApiInfoResp {
|
|||
code_example?: Array<PlaygroundCodeExample>;
|
||||
/** stream/blob 前端需要在执行请求之前知道 response type,所以这里要返回 */
|
||||
response_type?: string;
|
||||
/** 工作流/对话流执行接口,如果传参包括 worfklow 则会返回:包括参数以及对应的值,json 格式 */
|
||||
param_content?: string;
|
||||
/** true:需要保存运行结果 */
|
||||
need_save_run_history?: boolean;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
|
|
@ -549,21 +266,6 @@ export interface GetPlaygroundItemListResp {
|
|||
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 {
|
||||
version?: string;
|
||||
Base?: base.Base;
|
||||
|
|
@ -574,71 +276,9 @@ export interface GetPlaygroundWebSdkInfoResp {
|
|||
sample: Array<PlaygroundWebSdkCodeSample>;
|
||||
/** 所有的版本 */
|
||||
version_list?: Array<string>;
|
||||
/** swagger specification, 主要返回可配置的参数信息 */
|
||||
swagger_spec?: string;
|
||||
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 {
|
||||
client_type?: string;
|
||||
Base?: base.Base;
|
||||
|
|
@ -654,23 +294,10 @@ export interface OauthQuickstartLangConfig {
|
|||
lang?: string;
|
||||
/** 使用指引 */
|
||||
instruction?: string;
|
||||
/** 下载链接(tos) */
|
||||
/** 下载链接(tos) */
|
||||
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 {
|
||||
permission_id?: string;
|
||||
key?: string;
|
||||
|
|
@ -712,8 +339,6 @@ export interface PlaygroundCategory {
|
|||
title: string;
|
||||
icon_url: string;
|
||||
items: Array<PlaygroundItem>;
|
||||
/** 模块描述 */
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface PlaygroundCodeExample {
|
||||
|
|
@ -746,71 +371,12 @@ export interface PlaygroundOpenApiDocResp {
|
|||
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 {
|
||||
file_name: 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 {
|
||||
/** 主体类型 */
|
||||
type?: PrincipleType;
|
||||
|
|
@ -818,55 +384,8 @@ export interface RequestLimitRule {
|
|||
duration?: number;
|
||||
/** 限制次数 */
|
||||
limit_count?: number;
|
||||
/** 普通版/专业版/企业版标识 */
|
||||
/** 专业版标识 */
|
||||
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 定义与接口描述
|
||||
|
|
@ -879,86 +398,4 @@ export interface SyncFromApiHubReq {
|
|||
export interface SyncFromApiHubResp {
|
||||
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 */
|
||||
|
|
|
|||
|
|
@ -82,6 +82,8 @@ export * from './namespaces/model';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class DevopsEvaluationService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('DevopsEvaluationService.request is undefined');
|
||||
|
|
|
|||
|
|
@ -74,8 +74,6 @@ export enum FilterCmpOp {
|
|||
NotLike = 10,
|
||||
/** 有该 tag */
|
||||
Exists = 11,
|
||||
/** 没有该 tag */
|
||||
NotExists = 12,
|
||||
}
|
||||
|
||||
/** 逻辑算子 */
|
||||
|
|
@ -113,7 +111,6 @@ export enum TaskStatusType {
|
|||
Succeeded = 3,
|
||||
Failed = 4,
|
||||
Pending = 5,
|
||||
Stopped = 6,
|
||||
}
|
||||
|
||||
/** Task */
|
||||
|
|
|
|||
|
|
@ -96,7 +96,6 @@ export interface Image {
|
|||
url?: string;
|
||||
uri?: string;
|
||||
thumb_url?: string;
|
||||
original_url?: string;
|
||||
}
|
||||
|
||||
export interface ImageInfo {
|
||||
|
|
|
|||
|
|
@ -169,15 +169,6 @@ export enum OrderField {
|
|||
LastedPublishTime = 2,
|
||||
}
|
||||
|
||||
/** Prompt 加密类型 */
|
||||
export enum PromptEncryptOption {
|
||||
Undefined = 0,
|
||||
/** 加密且返回明文 */
|
||||
EncryptWithPlainText = 1,
|
||||
/** 加密且不返回明文 */
|
||||
EncryptWithoutPlainText = 2,
|
||||
}
|
||||
|
||||
/** 提示词类型 */
|
||||
export enum PromptType {
|
||||
Undefined = 0,
|
||||
|
|
|
|||
|
|
@ -90,8 +90,6 @@ export enum IDC {
|
|||
export enum MerlinFramework {
|
||||
LLMServerPublic = 1,
|
||||
Laplace = 2,
|
||||
/** 电商团队专用协议,详见 */
|
||||
Mixinfer = 3,
|
||||
}
|
||||
|
||||
export enum MerlinLLMInterface {
|
||||
|
|
@ -109,12 +107,6 @@ export enum MerlinQuotaPoolType {
|
|||
ALI = 3,
|
||||
/** 第三方资源hw */
|
||||
HW = 4,
|
||||
/** hw arm */
|
||||
HWARM = 5,
|
||||
/** 弹性售卖资源,随时可能被抢占 */
|
||||
Spot = 6,
|
||||
/** 可抢占的稳定资源 */
|
||||
Preemptible = 20,
|
||||
}
|
||||
|
||||
export enum ModelFilterKey {
|
||||
|
|
@ -266,10 +258,6 @@ export enum SftTaskOutputStatus {
|
|||
ExportFailed = 5,
|
||||
}
|
||||
|
||||
export enum SftTaskResourceMerlinVersion {
|
||||
RemoveAnyGPU = 1,
|
||||
}
|
||||
|
||||
export enum SftTaskRunEventType {
|
||||
Undefined = 0,
|
||||
ErrorOccured = 1,
|
||||
|
|
@ -348,10 +336,6 @@ export enum UsageScenario {
|
|||
PromptAsAService = 3,
|
||||
/** AI打标 */
|
||||
AIAnnotate = 4,
|
||||
/** 质量分 */
|
||||
AIScore = 5,
|
||||
/** 数据标签 */
|
||||
AITag = 6,
|
||||
}
|
||||
|
||||
export enum ValidateStatus {
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@ export * from './namespaces/rule';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class DpManageService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('DpManageService.request is undefined');
|
||||
|
|
|
|||
|
|
@ -545,7 +545,7 @@ export interface GetMultiVersionLatestParamsRequest {
|
|||
}
|
||||
|
||||
export interface GetMultiVersionLatestParamsResponse {
|
||||
params_map?: Partial<Record<multi_version.VersionType, string>>;
|
||||
params_map?: Record<multi_version.VersionType, string>;
|
||||
code: number;
|
||||
msg: string;
|
||||
BaseResp?: base.BaseResp;
|
||||
|
|
|
|||
|
|
@ -108,8 +108,9 @@ export interface ArenaLeaderboard {
|
|||
模型信息 */
|
||||
models?: Array<ArenaModel>;
|
||||
/** 排行榜详情 */
|
||||
leaderboard_details?: Partial<
|
||||
Record<PKScene, Partial<Record<LeaderboardIntention, LeaderboardDetail>>>
|
||||
leaderboard_details?: Record<
|
||||
PKScene,
|
||||
Record<LeaderboardIntention, LeaderboardDetail>
|
||||
>;
|
||||
/** pk的总次数 */
|
||||
pk_count?: number;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -91,7 +91,6 @@ export enum PaperStatus {
|
|||
Disbled = 1,
|
||||
}
|
||||
|
||||
/** 题目选项正确状态 */
|
||||
export enum QuestionOptionCorrectStatus {
|
||||
/** 错误 */
|
||||
Incorrect = 0,
|
||||
|
|
@ -99,48 +98,6 @@ export enum QuestionOptionCorrectStatus {
|
|||
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 {
|
||||
/** 录入用户名 */
|
||||
username?: string;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -84,6 +84,8 @@ export type Int64 = string | number;
|
|||
|
||||
type RW<T> = T & { code?: number; msg?: string };
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class EvaluationApiService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('EvaluationApiService.request is undefined');
|
||||
|
|
|
|||
|
|
@ -74,8 +74,6 @@ export enum FilterCmpOp {
|
|||
NotLike = 10,
|
||||
/** 有该 tag */
|
||||
Exists = 11,
|
||||
/** 没有该 tag */
|
||||
NotExists = 12,
|
||||
}
|
||||
|
||||
/** 逻辑算子 */
|
||||
|
|
@ -113,7 +111,6 @@ export enum TaskStatusType {
|
|||
Succeeded = 3,
|
||||
Failed = 4,
|
||||
Pending = 5,
|
||||
Stopped = 6,
|
||||
}
|
||||
|
||||
/** Task */
|
||||
|
|
|
|||
|
|
@ -96,7 +96,6 @@ export interface Image {
|
|||
url?: string;
|
||||
uri?: string;
|
||||
thumb_url?: string;
|
||||
original_url?: string;
|
||||
}
|
||||
|
||||
export interface ImageInfo {
|
||||
|
|
|
|||
|
|
@ -169,15 +169,6 @@ export enum OrderField {
|
|||
LastedPublishTime = 2,
|
||||
}
|
||||
|
||||
/** Prompt 加密类型 */
|
||||
export enum PromptEncryptOption {
|
||||
Undefined = 0,
|
||||
/** 加密且返回明文 */
|
||||
EncryptWithPlainText = 1,
|
||||
/** 加密且不返回明文 */
|
||||
EncryptWithoutPlainText = 2,
|
||||
}
|
||||
|
||||
/** 提示词类型 */
|
||||
export enum PromptType {
|
||||
Undefined = 0,
|
||||
|
|
|
|||
|
|
@ -90,8 +90,6 @@ export enum IDC {
|
|||
export enum MerlinFramework {
|
||||
LLMServerPublic = 1,
|
||||
Laplace = 2,
|
||||
/** 电商团队专用协议,详见 */
|
||||
Mixinfer = 3,
|
||||
}
|
||||
|
||||
export enum MerlinLLMInterface {
|
||||
|
|
@ -109,12 +107,6 @@ export enum MerlinQuotaPoolType {
|
|||
ALI = 3,
|
||||
/** 第三方资源hw */
|
||||
HW = 4,
|
||||
/** hw arm */
|
||||
HWARM = 5,
|
||||
/** 弹性售卖资源,随时可能被抢占 */
|
||||
Spot = 6,
|
||||
/** 可抢占的稳定资源 */
|
||||
Preemptible = 20,
|
||||
}
|
||||
|
||||
export enum ModelFilterKey {
|
||||
|
|
@ -266,10 +258,6 @@ export enum SftTaskOutputStatus {
|
|||
ExportFailed = 5,
|
||||
}
|
||||
|
||||
export enum SftTaskResourceMerlinVersion {
|
||||
RemoveAnyGPU = 1,
|
||||
}
|
||||
|
||||
export enum SftTaskRunEventType {
|
||||
Undefined = 0,
|
||||
ErrorOccured = 1,
|
||||
|
|
@ -348,10 +336,6 @@ export enum UsageScenario {
|
|||
PromptAsAService = 3,
|
||||
/** AI打标 */
|
||||
AIAnnotate = 4,
|
||||
/** 质量分 */
|
||||
AIScore = 5,
|
||||
/** 数据标签 */
|
||||
AITag = 6,
|
||||
}
|
||||
|
||||
export enum ValidateStatus {
|
||||
|
|
|
|||
|
|
@ -76,6 +76,8 @@ export * from './namespaces/user';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class EvaluationLiteService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('EvaluationLiteService.request is undefined');
|
||||
|
|
|
|||
|
|
@ -96,7 +96,6 @@ export interface Image {
|
|||
url?: string;
|
||||
uri?: string;
|
||||
thumb_url?: string;
|
||||
original_url?: string;
|
||||
}
|
||||
|
||||
export interface ImageInfo {
|
||||
|
|
|
|||
|
|
@ -153,8 +153,6 @@ export interface DatasetInfo {
|
|||
row_group_capacity?: Int64;
|
||||
/** Cell 中文本内容的 bytes 数限制, 默认为 3,2000 */
|
||||
max_cell_content_length?: Int64;
|
||||
/** 是否允许导出 */
|
||||
not_allow_export?: boolean;
|
||||
}
|
||||
|
||||
/** ############# ROW GROUP ############## */
|
||||
|
|
|
|||
|
|
@ -666,7 +666,6 @@ export interface Task {
|
|||
/** 评估器整体 token 消耗 */
|
||||
evaluator_token_usage?: TokenUsage;
|
||||
credit_cost?: number;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface TaskManualStats {
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ export * from './namespaces/rpc_model';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class FileboxService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('FileboxService.request is undefined');
|
||||
|
|
|
|||
|
|
@ -26,16 +26,12 @@ import * as auth from './namespaces/auth';
|
|||
import * as bam_api from './namespaces/bam_api';
|
||||
import * as banner from './namespaces/banner';
|
||||
import * as base from './namespaces/base';
|
||||
import * as benefit_common from './namespaces/benefit_common';
|
||||
import * as byte_tree from './namespaces/byte_tree';
|
||||
import * as common from './namespaces/common';
|
||||
import * as copilot_common from './namespaces/copilot_common';
|
||||
import * as home_banner from './namespaces/home_banner';
|
||||
import * as menu from './namespaces/menu';
|
||||
import * as model from './namespaces/model';
|
||||
import * as oapi from './namespaces/oapi';
|
||||
import * as op_bot from './namespaces/op_bot';
|
||||
import * as open_api from './namespaces/open_api';
|
||||
import * as prompt from './namespaces/prompt';
|
||||
import * as punish from './namespaces/punish';
|
||||
import * as voice from './namespaces/voice';
|
||||
|
|
@ -49,16 +45,12 @@ export {
|
|||
bam_api,
|
||||
banner,
|
||||
base,
|
||||
benefit_common,
|
||||
byte_tree,
|
||||
common,
|
||||
copilot_common,
|
||||
home_banner,
|
||||
menu,
|
||||
model,
|
||||
oapi,
|
||||
op_bot,
|
||||
open_api,
|
||||
prompt,
|
||||
punish,
|
||||
voice,
|
||||
|
|
@ -71,16 +63,12 @@ export * from './namespaces/auth';
|
|||
export * from './namespaces/bam_api';
|
||||
export * from './namespaces/banner';
|
||||
export * from './namespaces/base';
|
||||
export * from './namespaces/benefit_common';
|
||||
export * from './namespaces/byte_tree';
|
||||
export * from './namespaces/common';
|
||||
export * from './namespaces/copilot_common';
|
||||
export * from './namespaces/home_banner';
|
||||
export * from './namespaces/menu';
|
||||
export * from './namespaces/model';
|
||||
export * from './namespaces/oapi';
|
||||
export * from './namespaces/op_bot';
|
||||
export * from './namespaces/open_api';
|
||||
export * from './namespaces/prompt';
|
||||
export * from './namespaces/punish';
|
||||
export * from './namespaces/voice';
|
||||
|
|
@ -88,6 +76,8 @@ export * from './namespaces/workspace';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class FlowBotOperationService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('FlowBotOperationService.request is undefined');
|
||||
|
|
@ -1054,69 +1044,5 @@ export default class FlowBotOperationService<T> {
|
|||
};
|
||||
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 */
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@
|
|||
|
||||
import * as base from './base';
|
||||
import * as common from './common';
|
||||
import * as open_api from './open_api';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
|
|
@ -65,7 +64,6 @@ export enum OpenAPISource {
|
|||
export enum PermissionScope {
|
||||
Workspace = 0,
|
||||
Account = 1,
|
||||
Enterprise = 2,
|
||||
}
|
||||
|
||||
export enum PermissionType {
|
||||
|
|
@ -229,16 +227,6 @@ export interface CreatePSMResponse {
|
|||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
/** 创建限流规则-运营后台api */
|
||||
export interface CreateRateLimitOperationReq {
|
||||
rate_limit: open_api.RateLimitConf;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface CreateRateLimitOperationResp {
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface DeletePermissionReq {
|
||||
permission_info: PermissionInfo;
|
||||
Base?: base.Base;
|
||||
|
|
@ -340,24 +328,6 @@ export interface GetPermissionListResp {
|
|||
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 {
|
||||
data?: Array<AttributeSchemaInfo>;
|
||||
}
|
||||
|
|
@ -398,17 +368,6 @@ export interface PermissionInfo {
|
|||
full_permission_key?: string;
|
||||
}
|
||||
|
||||
/** 删除限流规则-运营后台api */
|
||||
export interface RemoveRateLimitOperationReq {
|
||||
/** create 拿到的 id */
|
||||
id: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface RemoveRateLimitOperationResp {
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface RequestLimitRule {
|
||||
/** 主体类型 */
|
||||
type?: PrincipleType;
|
||||
|
|
@ -504,26 +463,6 @@ export interface UpdateAPIVisibleResponse {
|
|||
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 {
|
||||
permission_info: PermissionInfo;
|
||||
Base?: base.Base;
|
||||
|
|
|
|||
|
|
@ -151,6 +151,8 @@ export * from './namespaces/user';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class FornaxApiService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('FornaxApiService.request is undefined');
|
||||
|
|
@ -3352,7 +3354,6 @@ export default class FornaxApiService<T> {
|
|||
description: _req['description'],
|
||||
release_approval_config: _req['release_approval_config'],
|
||||
byte_tree_node_id: _req['byte_tree_node_id'],
|
||||
trace_config: _req['trace_config'],
|
||||
Base: _req['Base'],
|
||||
};
|
||||
const headers = { 'x-jwt-token': _req['x-jwt-token'] };
|
||||
|
|
@ -4025,40 +4026,5 @@ export default class FornaxApiService<T> {
|
|||
const method = 'GET';
|
||||
return this.request({ url, method }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/automation/v1/tasks/:task_id/stop
|
||||
*
|
||||
* 停止任务
|
||||
*/
|
||||
StopTask(
|
||||
req: flow_devops_fornax_automationservice.StopTaskReq,
|
||||
options?: T,
|
||||
): Promise<flow_devops_fornax_automationservice.StopTaskResp> {
|
||||
const _req = req;
|
||||
const url = this.genBaseURL(
|
||||
`/api/automation/v1/tasks/${_req['task_id']}/stop`,
|
||||
);
|
||||
const method = 'POST';
|
||||
return this.request({ url, method }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/infra/user/v1/users/is_user_in_gray/:strategy
|
||||
*
|
||||
* 判断用户是否在灰度中(
|
||||
*/
|
||||
IsUserInGray(
|
||||
req?: flow_devops_fornax_userservice.IsUserInGrayRequest,
|
||||
options?: T,
|
||||
): Promise<flow_devops_fornax_userservice.IsUserInGrayResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL(
|
||||
`/api/infra/user/v1/users/is_user_in_gray/${_req['strategy']}`,
|
||||
);
|
||||
const method = 'GET';
|
||||
const params = { Base: _req['Base'] };
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
|
|
|||
|
|
@ -76,8 +76,6 @@ export enum FilterCmpOp {
|
|||
NotLike = 10,
|
||||
/** 有该 tag */
|
||||
Exists = 11,
|
||||
/** 没有该 tag */
|
||||
NotExists = 12,
|
||||
}
|
||||
|
||||
/** 逻辑算子 */
|
||||
|
|
@ -115,7 +113,6 @@ export enum TaskStatusType {
|
|||
Succeeded = 3,
|
||||
Failed = 4,
|
||||
Pending = 5,
|
||||
Stopped = 6,
|
||||
}
|
||||
|
||||
/** Task */
|
||||
|
|
@ -153,15 +150,6 @@ export interface ApplyTicket {
|
|||
invalidateAt?: string;
|
||||
}
|
||||
|
||||
export interface BackfillStat {
|
||||
/** 已从观测检索到 span 数量 */
|
||||
retrievedSpanCount?: string;
|
||||
/** 已写入到数据集中 span 数量 */
|
||||
backfilledSpanCount?: string;
|
||||
/** 回填状态 */
|
||||
backfillStatus?: TaskStatusType;
|
||||
}
|
||||
|
||||
export interface BatchExecAutoUseCaseStat {
|
||||
common?: StatusDetailCommon;
|
||||
/** 各用例执行情况 */
|
||||
|
|
@ -182,9 +170,6 @@ export interface DatasetConfig {
|
|||
datasetName?: string;
|
||||
/** 默认将 span 的 input&output tag 写入 dataset 同名列中, 通过 extraColumns 定义其他列的回流 */
|
||||
extraColumns?: Array<Span2ColumnConfig>;
|
||||
/** omitDefaultColumns=true 时,不写入默认的 input、output 列 */
|
||||
omitDefaultColumns?: boolean;
|
||||
datasetDesc?: string;
|
||||
}
|
||||
|
||||
/** Deprecated */
|
||||
|
|
@ -245,7 +230,7 @@ export interface Rule {
|
|||
sampler?: Sampler;
|
||||
/** 筛选条件 */
|
||||
spanFilter?: SpanFilter;
|
||||
/** Deprecated, typo, 换用 triggerTime(13) 字段 */
|
||||
/** 定时触发时效配置 */
|
||||
tiggerTime?: TriggerTime;
|
||||
/** 生效时间窗口 */
|
||||
effectiveTime?: EffectiveTime;
|
||||
|
|
@ -253,10 +238,6 @@ export interface Rule {
|
|||
objectID?: Int64;
|
||||
/** 内置过滤器, 包含服务端定义的复杂过滤逻辑. 用于页面的"数据类型"字段过滤 */
|
||||
builtinFilter?: BuiltinSpanFilterType;
|
||||
/** 回流历史数据 */
|
||||
effectiveTimeFromPast?: EffectiveTime;
|
||||
/** 定时触发时效配置 */
|
||||
triggerTime?: TriggerTime;
|
||||
/** Processor Config
|
||||
数据集 */
|
||||
dataset?: DatasetConfig;
|
||||
|
|
@ -280,8 +261,6 @@ export interface Span2ColumnConfig {
|
|||
sourceType: Span2ColumnSourceType;
|
||||
/** 根据 sourceType 不同, 其值为 span 属性, prompt 变量的 key 等 */
|
||||
sourceField: string;
|
||||
/** 指定 sourceField 的 JSON 提取路径 */
|
||||
sourceFieldJSONPath?: string;
|
||||
/** dataset column 名 */
|
||||
datasetColumn: string;
|
||||
}
|
||||
|
|
@ -397,8 +376,6 @@ export interface Task {
|
|||
spanEvalStat?: SpanEvalStat;
|
||||
/** 批量评测状态详情 */
|
||||
batchExecAutoUseCaseStat?: BatchExecAutoUseCaseStat;
|
||||
/** 回填历史数据详情 */
|
||||
backfillStat?: BackfillStat;
|
||||
/** 创建者 */
|
||||
createdBy?: string;
|
||||
/** 更新者 */
|
||||
|
|
|
|||
|
|
@ -96,7 +96,6 @@ export interface Image {
|
|||
url?: string;
|
||||
uri?: string;
|
||||
thumb_url?: string;
|
||||
original_url?: string;
|
||||
}
|
||||
|
||||
export interface ImageInfo {
|
||||
|
|
|
|||
|
|
@ -130,12 +130,6 @@ export interface Rule2TraceQueryResp {
|
|||
platformType?: flow_devops_fornaxob_common.PlatformType;
|
||||
}
|
||||
|
||||
export interface StopTaskReq {
|
||||
task_id: string;
|
||||
}
|
||||
|
||||
export interface StopTaskResp {}
|
||||
|
||||
export interface TaskBatchExecCasesStatus {
|
||||
taskID: string;
|
||||
allCasesDeleted?: boolean;
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ export interface GetAvailableQuotaByByteTreeNodeRequest {
|
|||
}
|
||||
|
||||
export interface GetAvailableQuotaByByteTreeNodeResponse {
|
||||
quotas?: Partial<Record<model.IDC, Array<model.DeployQuota>>>;
|
||||
quotas?: Record<model.IDC, Array<model.DeployQuota>>;
|
||||
}
|
||||
|
||||
export interface GetByteTreeParentNodeByPSMRequest {
|
||||
|
|
@ -501,7 +501,7 @@ export interface ModelContextRange {
|
|||
|
||||
export interface ModelFilter {
|
||||
/** 模型tag过滤项,value中list内部各个元素在过滤时是or关系,各个key之间在过滤时是and关系 */
|
||||
modelFilterTags?: Partial<Record<model.ModelFilterKey, Array<string>>>;
|
||||
modelFilterTags?: Record<model.ModelFilterKey, Array<string>>;
|
||||
/** 模型状态 */
|
||||
modelStatuses?: Array<model.ModelStatus>;
|
||||
/** 模型支持的上下文长度的范围 */
|
||||
|
|
@ -564,7 +564,7 @@ export interface OApiUpsertModelAndAccountResponse {
|
|||
export interface SaaSGetModelFilterParamsRequest {}
|
||||
|
||||
export interface SaaSGetModelFilterParamsResponse {
|
||||
modelFilterTags?: Partial<Record<model.ModelFilterKey, Array<string>>>;
|
||||
modelFilterTags?: Record<model.ModelFilterKey, Array<string>>;
|
||||
modelContextRange?: ModelContextRange;
|
||||
modelVendors?: Array<string>;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -218,8 +218,6 @@ export interface UpdateSpaceRequest {
|
|||
release_approval_config?: space.ReleaseApprovalConfig;
|
||||
/** 服务树节点ID */
|
||||
byte_tree_node_id?: Int64;
|
||||
/** 具体配置内容 */
|
||||
trace_config?: space.TraceConfig;
|
||||
'x-jwt-token'?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,21 +69,6 @@ export interface GetUserInfoResponse {
|
|||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface IsUserInGrayData {
|
||||
uid?: string;
|
||||
}
|
||||
|
||||
export interface IsUserInGrayRequest {
|
||||
/** 灰度策略 */
|
||||
strategy?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface IsUserInGrayResponse {
|
||||
data?: IsUserInGrayData;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface KickUserReq {
|
||||
extUserID: string;
|
||||
'Zti-Token': string;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ export enum EnvType {
|
|||
export enum OrderType {
|
||||
Unknown = 1,
|
||||
Desc = 2,
|
||||
Asc = 3,
|
||||
}
|
||||
|
||||
export enum PlatformType {
|
||||
|
|
@ -49,7 +48,6 @@ export enum PlatformType {
|
|||
CozeProject = 10,
|
||||
CozeBot = 11,
|
||||
SaasEvalTarget = 12,
|
||||
SaasAll = 13,
|
||||
}
|
||||
|
||||
export enum QueryOfflineType {
|
||||
|
|
|
|||
|
|
@ -98,9 +98,6 @@ is not found within that array, the record is included in the result set. */
|
|||
not_in?: Array<number>;
|
||||
is_null?: boolean;
|
||||
not_null?: boolean;
|
||||
gt?: number;
|
||||
lt?: number;
|
||||
eq?: number;
|
||||
}
|
||||
|
||||
/** applied on a int32 field
|
||||
|
|
@ -133,10 +130,6 @@ is not found within that array, the record is included in the result set. */
|
|||
not_in?: Array<number>;
|
||||
is_null?: boolean;
|
||||
not_null?: boolean;
|
||||
/** Greater than */
|
||||
gt?: number;
|
||||
/** Less than */
|
||||
lt?: number;
|
||||
}
|
||||
|
||||
/** applied on a int64 field
|
||||
|
|
@ -169,10 +162,6 @@ is not found within that array, the record is included in the result set. */
|
|||
not_in?: Array<string>;
|
||||
is_null?: boolean;
|
||||
not_null?: boolean;
|
||||
/** Greater than */
|
||||
gt?: Int64;
|
||||
/** Less than */
|
||||
lt?: Int64;
|
||||
}
|
||||
|
||||
/** applied on a string field
|
||||
|
|
@ -204,6 +193,5 @@ If you want to match a non empty string, pass in "" in the array and cannot pass
|
|||
not_in?: Array<string>;
|
||||
is_null?: boolean;
|
||||
not_null?: boolean;
|
||||
not_contains?: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
|
|
|||
|
|
@ -169,15 +169,6 @@ export enum OrderField {
|
|||
LastedPublishTime = 2,
|
||||
}
|
||||
|
||||
/** Prompt 加密类型 */
|
||||
export enum PromptEncryptOption {
|
||||
Undefined = 0,
|
||||
/** 加密且返回明文 */
|
||||
EncryptWithPlainText = 1,
|
||||
/** 加密且不返回明文 */
|
||||
EncryptWithoutPlainText = 2,
|
||||
}
|
||||
|
||||
/** 提示词类型 */
|
||||
export enum PromptType {
|
||||
Undefined = 0,
|
||||
|
|
|
|||
|
|
@ -90,8 +90,6 @@ export enum IDC {
|
|||
export enum MerlinFramework {
|
||||
LLMServerPublic = 1,
|
||||
Laplace = 2,
|
||||
/** 电商团队专用协议,详见 */
|
||||
Mixinfer = 3,
|
||||
}
|
||||
|
||||
export enum MerlinLLMInterface {
|
||||
|
|
@ -348,10 +346,6 @@ export enum UsageScenario {
|
|||
PromptAsAService = 3,
|
||||
/** AI打标 */
|
||||
AIAnnotate = 4,
|
||||
/** 质量分 */
|
||||
AIScore = 5,
|
||||
/** 数据标签 */
|
||||
AITag = 6,
|
||||
}
|
||||
|
||||
export enum ValidateStatus {
|
||||
|
|
@ -540,7 +534,7 @@ export interface MerlinInfo {
|
|||
framework?: MerlinFramework;
|
||||
instanceResourceOption?: InstanceResourceOption;
|
||||
/** 资源配置 */
|
||||
deployDetailM?: Partial<Record<IDC, IDCDeployDetail>>;
|
||||
deployDetailM?: Record<IDC, IDCDeployDetail>;
|
||||
/** 服务节点id */
|
||||
byteTreeNodeID?: Int64;
|
||||
/** 服务树路径 */
|
||||
|
|
|
|||
|
|
@ -103,8 +103,6 @@ export interface Space {
|
|||
space_origin?: string;
|
||||
/** 服务树节点ID */
|
||||
tree_node_id?: string;
|
||||
/** 具体配置内容 */
|
||||
trace_config?: TraceConfig;
|
||||
}
|
||||
|
||||
/** 空间成员 */
|
||||
|
|
@ -116,12 +114,4 @@ export interface SpaceMember {
|
|||
/** 空间角色类型 */
|
||||
space_role_type?: SpaceRoleType;
|
||||
}
|
||||
|
||||
/** 观测配置 */
|
||||
export interface TraceConfig {
|
||||
/** 是否加密trace 默认false */
|
||||
trace_encrypt?: boolean;
|
||||
/** ttl天数 默认7,目前合法值有7/30/90 */
|
||||
ttl?: number;
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
|
|
|||
|
|
@ -109,6 +109,8 @@ export {
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class FornaxApi2Service<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('FornaxApi2Service.request is undefined');
|
||||
|
|
@ -3310,7 +3312,6 @@ export default class FornaxApi2Service<T> {
|
|||
description: _req['description'],
|
||||
release_approval_config: _req['release_approval_config'],
|
||||
byte_tree_node_id: _req['byte_tree_node_id'],
|
||||
trace_config: _req['trace_config'],
|
||||
Base: _req['Base'],
|
||||
};
|
||||
const headers = { 'x-jwt-token': _req['x-jwt-token'] };
|
||||
|
|
@ -3983,40 +3984,5 @@ export default class FornaxApi2Service<T> {
|
|||
const method = 'GET';
|
||||
return this.request({ url, method }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/automation/v1/tasks/:task_id/stop
|
||||
*
|
||||
* 停止任务
|
||||
*/
|
||||
StopTask(
|
||||
req: flow_devops_fornax_automationservice.StopTaskReq,
|
||||
options?: T,
|
||||
): Promise<flow_devops_fornax_automationservice.StopTaskResp> {
|
||||
const _req = req;
|
||||
const url = this.genBaseURL(
|
||||
`/api/automation/v1/tasks/${_req['task_id']}/stop`,
|
||||
);
|
||||
const method = 'POST';
|
||||
return this.request({ url, method }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/infra/user/v1/users/is_user_in_gray/:strategy
|
||||
*
|
||||
* 判断用户是否在灰度中(
|
||||
*/
|
||||
IsUserInGray(
|
||||
req?: flow_devops_fornax_userservice.IsUserInGrayRequest,
|
||||
options?: T,
|
||||
): Promise<flow_devops_fornax_userservice.IsUserInGrayResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL(
|
||||
`/api/infra/user/v1/users/is_user_in_gray/${_req['strategy']}`,
|
||||
);
|
||||
const method = 'GET';
|
||||
const params = { Base: _req['Base'] };
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
|
|
|||
|
|
@ -76,8 +76,6 @@ export enum FilterCmpOp {
|
|||
NotLike = 10,
|
||||
/** 有该 tag */
|
||||
Exists = 11,
|
||||
/** 没有该 tag */
|
||||
NotExists = 12,
|
||||
}
|
||||
|
||||
/** 逻辑算子 */
|
||||
|
|
@ -115,7 +113,6 @@ export enum TaskStatusType {
|
|||
Succeeded = 3,
|
||||
Failed = 4,
|
||||
Pending = 5,
|
||||
Stopped = 6,
|
||||
}
|
||||
|
||||
/** Task */
|
||||
|
|
@ -153,15 +150,6 @@ export interface ApplyTicket {
|
|||
invalidateAt?: string;
|
||||
}
|
||||
|
||||
export interface BackfillStat {
|
||||
/** 已从观测检索到 span 数量 */
|
||||
retrievedSpanCount?: string;
|
||||
/** 已写入到数据集中 span 数量 */
|
||||
backfilledSpanCount?: string;
|
||||
/** 回填状态 */
|
||||
backfillStatus?: TaskStatusType;
|
||||
}
|
||||
|
||||
export interface BatchExecAutoUseCaseStat {
|
||||
common?: StatusDetailCommon;
|
||||
/** 各用例执行情况 */
|
||||
|
|
@ -182,9 +170,6 @@ export interface DatasetConfig {
|
|||
datasetName?: string;
|
||||
/** 默认将 span 的 input&output tag 写入 dataset 同名列中, 通过 extraColumns 定义其他列的回流 */
|
||||
extraColumns?: Array<Span2ColumnConfig>;
|
||||
/** omitDefaultColumns=true 时,不写入默认的 input、output 列 */
|
||||
omitDefaultColumns?: boolean;
|
||||
datasetDesc?: string;
|
||||
}
|
||||
|
||||
/** Deprecated */
|
||||
|
|
@ -245,7 +230,7 @@ export interface Rule {
|
|||
sampler?: Sampler;
|
||||
/** 筛选条件 */
|
||||
spanFilter?: SpanFilter;
|
||||
/** Deprecated, typo, 换用 triggerTime(13) 字段 */
|
||||
/** 定时触发时效配置 */
|
||||
tiggerTime?: TriggerTime;
|
||||
/** 生效时间窗口 */
|
||||
effectiveTime?: EffectiveTime;
|
||||
|
|
@ -253,10 +238,6 @@ export interface Rule {
|
|||
objectID?: Int64;
|
||||
/** 内置过滤器, 包含服务端定义的复杂过滤逻辑. 用于页面的"数据类型"字段过滤 */
|
||||
builtinFilter?: BuiltinSpanFilterType;
|
||||
/** 回流历史数据 */
|
||||
effectiveTimeFromPast?: EffectiveTime;
|
||||
/** 定时触发时效配置 */
|
||||
triggerTime?: TriggerTime;
|
||||
/** Processor Config
|
||||
数据集 */
|
||||
dataset?: DatasetConfig;
|
||||
|
|
@ -280,8 +261,6 @@ export interface Span2ColumnConfig {
|
|||
sourceType: Span2ColumnSourceType;
|
||||
/** 根据 sourceType 不同, 其值为 span 属性, prompt 变量的 key 等 */
|
||||
sourceField: string;
|
||||
/** 指定 sourceField 的 JSON 提取路径 */
|
||||
sourceFieldJSONPath?: string;
|
||||
/** dataset column 名 */
|
||||
datasetColumn: string;
|
||||
}
|
||||
|
|
@ -397,8 +376,6 @@ export interface Task {
|
|||
spanEvalStat?: SpanEvalStat;
|
||||
/** 批量评测状态详情 */
|
||||
batchExecAutoUseCaseStat?: BatchExecAutoUseCaseStat;
|
||||
/** 回填历史数据详情 */
|
||||
backfillStat?: BackfillStat;
|
||||
/** 创建者 */
|
||||
createdBy?: string;
|
||||
/** 更新者 */
|
||||
|
|
|
|||
|
|
@ -96,7 +96,6 @@ export interface Image {
|
|||
url?: string;
|
||||
uri?: string;
|
||||
thumb_url?: string;
|
||||
original_url?: string;
|
||||
}
|
||||
|
||||
export interface ImageInfo {
|
||||
|
|
|
|||
|
|
@ -130,12 +130,6 @@ export interface Rule2TraceQueryResp {
|
|||
platformType?: flow_devops_fornaxob_common.PlatformType;
|
||||
}
|
||||
|
||||
export interface StopTaskReq {
|
||||
task_id: string;
|
||||
}
|
||||
|
||||
export interface StopTaskResp {}
|
||||
|
||||
export interface TaskBatchExecCasesStatus {
|
||||
taskID: string;
|
||||
allCasesDeleted?: boolean;
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ export interface GetAvailableQuotaByByteTreeNodeRequest {
|
|||
}
|
||||
|
||||
export interface GetAvailableQuotaByByteTreeNodeResponse {
|
||||
quotas?: Partial<Record<model.IDC, Array<model.DeployQuota>>>;
|
||||
quotas?: Record<model.IDC, Array<model.DeployQuota>>;
|
||||
}
|
||||
|
||||
export interface GetByteTreeParentNodeByPSMRequest {
|
||||
|
|
@ -501,7 +501,7 @@ export interface ModelContextRange {
|
|||
|
||||
export interface ModelFilter {
|
||||
/** 模型tag过滤项,value中list内部各个元素在过滤时是or关系,各个key之间在过滤时是and关系 */
|
||||
modelFilterTags?: Partial<Record<model.ModelFilterKey, Array<string>>>;
|
||||
modelFilterTags?: Record<model.ModelFilterKey, Array<string>>;
|
||||
/** 模型状态 */
|
||||
modelStatuses?: Array<model.ModelStatus>;
|
||||
/** 模型支持的上下文长度的范围 */
|
||||
|
|
@ -564,7 +564,7 @@ export interface OApiUpsertModelAndAccountResponse {
|
|||
export interface SaaSGetModelFilterParamsRequest {}
|
||||
|
||||
export interface SaaSGetModelFilterParamsResponse {
|
||||
modelFilterTags?: Partial<Record<model.ModelFilterKey, Array<string>>>;
|
||||
modelFilterTags?: Record<model.ModelFilterKey, Array<string>>;
|
||||
modelContextRange?: ModelContextRange;
|
||||
modelVendors?: Array<string>;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -218,8 +218,6 @@ export interface UpdateSpaceRequest {
|
|||
release_approval_config?: space.ReleaseApprovalConfig;
|
||||
/** 服务树节点ID */
|
||||
byte_tree_node_id?: Int64;
|
||||
/** 具体配置内容 */
|
||||
trace_config?: space.TraceConfig;
|
||||
'x-jwt-token'?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,21 +69,6 @@ export interface GetUserInfoResponse {
|
|||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface IsUserInGrayData {
|
||||
uid?: string;
|
||||
}
|
||||
|
||||
export interface IsUserInGrayRequest {
|
||||
/** 灰度策略 */
|
||||
strategy?: string;
|
||||
Base?: base.Base;
|
||||
}
|
||||
|
||||
export interface IsUserInGrayResponse {
|
||||
data?: IsUserInGrayData;
|
||||
BaseResp?: base.BaseResp;
|
||||
}
|
||||
|
||||
export interface KickUserReq {
|
||||
extUserID: string;
|
||||
'Zti-Token': string;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ export enum EnvType {
|
|||
export enum OrderType {
|
||||
Unknown = 1,
|
||||
Desc = 2,
|
||||
Asc = 3,
|
||||
}
|
||||
|
||||
export enum PlatformType {
|
||||
|
|
@ -49,7 +48,6 @@ export enum PlatformType {
|
|||
CozeProject = 10,
|
||||
CozeBot = 11,
|
||||
SaasEvalTarget = 12,
|
||||
SaasAll = 13,
|
||||
}
|
||||
|
||||
export enum QueryOfflineType {
|
||||
|
|
|
|||
|
|
@ -98,9 +98,6 @@ is not found within that array, the record is included in the result set. */
|
|||
not_in?: Array<number>;
|
||||
is_null?: boolean;
|
||||
not_null?: boolean;
|
||||
gt?: number;
|
||||
lt?: number;
|
||||
eq?: number;
|
||||
}
|
||||
|
||||
/** applied on a int32 field
|
||||
|
|
@ -133,10 +130,6 @@ is not found within that array, the record is included in the result set. */
|
|||
not_in?: Array<number>;
|
||||
is_null?: boolean;
|
||||
not_null?: boolean;
|
||||
/** Greater than */
|
||||
gt?: number;
|
||||
/** Less than */
|
||||
lt?: number;
|
||||
}
|
||||
|
||||
/** applied on a int64 field
|
||||
|
|
@ -169,10 +162,6 @@ is not found within that array, the record is included in the result set. */
|
|||
not_in?: Array<string>;
|
||||
is_null?: boolean;
|
||||
not_null?: boolean;
|
||||
/** Greater than */
|
||||
gt?: Int64;
|
||||
/** Less than */
|
||||
lt?: Int64;
|
||||
}
|
||||
|
||||
/** applied on a string field
|
||||
|
|
@ -204,6 +193,5 @@ If you want to match a non empty string, pass in "" in the array and cannot pass
|
|||
not_in?: Array<string>;
|
||||
is_null?: boolean;
|
||||
not_null?: boolean;
|
||||
not_contains?: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
|
|
|||
|
|
@ -169,15 +169,6 @@ export enum OrderField {
|
|||
LastedPublishTime = 2,
|
||||
}
|
||||
|
||||
/** Prompt 加密类型 */
|
||||
export enum PromptEncryptOption {
|
||||
Undefined = 0,
|
||||
/** 加密且返回明文 */
|
||||
EncryptWithPlainText = 1,
|
||||
/** 加密且不返回明文 */
|
||||
EncryptWithoutPlainText = 2,
|
||||
}
|
||||
|
||||
/** 提示词类型 */
|
||||
export enum PromptType {
|
||||
Undefined = 0,
|
||||
|
|
|
|||
|
|
@ -90,8 +90,6 @@ export enum IDC {
|
|||
export enum MerlinFramework {
|
||||
LLMServerPublic = 1,
|
||||
Laplace = 2,
|
||||
/** 电商团队专用协议,详见 */
|
||||
Mixinfer = 3,
|
||||
}
|
||||
|
||||
export enum MerlinLLMInterface {
|
||||
|
|
@ -109,12 +107,6 @@ export enum MerlinQuotaPoolType {
|
|||
ALI = 3,
|
||||
/** 第三方资源hw */
|
||||
HW = 4,
|
||||
/** hw arm */
|
||||
HWARM = 5,
|
||||
/** 弹性售卖资源,随时可能被抢占 */
|
||||
Spot = 6,
|
||||
/** 可抢占的稳定资源 */
|
||||
Preemptible = 20,
|
||||
}
|
||||
|
||||
export enum ModelFilterKey {
|
||||
|
|
@ -266,10 +258,6 @@ export enum SftTaskOutputStatus {
|
|||
ExportFailed = 5,
|
||||
}
|
||||
|
||||
export enum SftTaskResourceMerlinVersion {
|
||||
RemoveAnyGPU = 1,
|
||||
}
|
||||
|
||||
export enum SftTaskRunEventType {
|
||||
Undefined = 0,
|
||||
ErrorOccured = 1,
|
||||
|
|
@ -348,10 +336,6 @@ export enum UsageScenario {
|
|||
PromptAsAService = 3,
|
||||
/** AI打标 */
|
||||
AIAnnotate = 4,
|
||||
/** 质量分 */
|
||||
AIScore = 5,
|
||||
/** 数据标签 */
|
||||
AITag = 6,
|
||||
}
|
||||
|
||||
export enum ValidateStatus {
|
||||
|
|
@ -380,9 +364,9 @@ export interface Ability {
|
|||
functionCallEnabled?: boolean;
|
||||
/** 是否支持JSON模式 */
|
||||
jsonModeEnabled?: boolean;
|
||||
/** 是否支持多模态(模型输入) */
|
||||
/** 是否支持多模态 */
|
||||
multiModalEnabled?: boolean;
|
||||
/** 多模态能力配置(模型输入) */
|
||||
/** 多模态能力配置 */
|
||||
multiModalAbility?: MultiModalAbility;
|
||||
/** 消息预处理hook */
|
||||
messagePreHandleHook?: RuntimeHook;
|
||||
|
|
@ -392,8 +376,6 @@ export interface Ability {
|
|||
thinkingSwitchEnabled?: boolean;
|
||||
/** 思考能力配置 */
|
||||
thinkingAbility?: ThinkingAbility;
|
||||
/** 是否支持多模态(模型输出) */
|
||||
multiModalOutputEnabled?: boolean;
|
||||
}
|
||||
|
||||
export interface Account {
|
||||
|
|
@ -540,7 +522,7 @@ export interface MerlinInfo {
|
|||
framework?: MerlinFramework;
|
||||
instanceResourceOption?: InstanceResourceOption;
|
||||
/** 资源配置 */
|
||||
deployDetailM?: Partial<Record<IDC, IDCDeployDetail>>;
|
||||
deployDetailM?: Record<IDC, IDCDeployDetail>;
|
||||
/** 服务节点id */
|
||||
byteTreeNodeID?: Int64;
|
||||
/** 服务树路径 */
|
||||
|
|
@ -963,8 +945,6 @@ export interface SftTaskResourceMerlin {
|
|||
groupNames?: Record<Int64, string>;
|
||||
/** 集群名称 */
|
||||
clusterName?: string;
|
||||
/** merlin资源格式的版本,目前唯一作用:由于资源格式不向前兼容,只有指定版本号的资源才能在复制精调任务时被写入到新任务中 */
|
||||
version?: SftTaskResourceMerlinVersion;
|
||||
}
|
||||
|
||||
export interface SftTaskResourceMerlinRole {
|
||||
|
|
|
|||
|
|
@ -103,8 +103,6 @@ export interface Space {
|
|||
space_origin?: string;
|
||||
/** 服务树节点ID */
|
||||
tree_node_id?: string;
|
||||
/** 具体配置内容 */
|
||||
trace_config?: TraceConfig;
|
||||
}
|
||||
|
||||
/** 空间成员 */
|
||||
|
|
@ -116,12 +114,4 @@ export interface SpaceMember {
|
|||
/** 空间角色类型 */
|
||||
space_role_type?: SpaceRoleType;
|
||||
}
|
||||
|
||||
/** 观测配置 */
|
||||
export interface TraceConfig {
|
||||
/** 是否加密trace 默认false */
|
||||
trace_encrypt?: boolean;
|
||||
/** ttl天数 默认7,目前合法值有7/30/90 */
|
||||
ttl?: number;
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@ export * from './namespaces/flow_devops_eino_app_debug';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class FornaxEinoApiService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('FornaxEinoApiService.request is undefined');
|
||||
|
|
@ -202,15 +204,5 @@ export default class FornaxEinoApiService<T> {
|
|||
const method = 'GET';
|
||||
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 */
|
||||
|
|
|
|||
|
|
@ -24,43 +24,6 @@ import * as flow_devops_eino_app_debug from './flow_devops_eino_app_debug';
|
|||
|
||||
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 {
|
||||
/** 列表项名称 */
|
||||
name?: string;
|
||||
|
|
@ -92,7 +55,14 @@ export interface DisplayReq {
|
|||
}
|
||||
|
||||
export interface DisplayResp {
|
||||
canvas_info?: flow_devops_eino_app_canvas.CanvasInfo;
|
||||
code?: Int64;
|
||||
msg?: string;
|
||||
data?: GraphSchemaData;
|
||||
}
|
||||
|
||||
export interface GenCodeResultData {
|
||||
gen_path?: string;
|
||||
fdl_schema?: string;
|
||||
}
|
||||
|
||||
export interface GetCanvasInfoData {
|
||||
|
|
@ -122,8 +92,9 @@ export interface GraphGenCodeReq {
|
|||
}
|
||||
|
||||
export interface GraphGenCodeResp {
|
||||
gen_path?: string;
|
||||
fdl_schema?: string;
|
||||
code?: Int64;
|
||||
msg?: string;
|
||||
data?: GenCodeResultData;
|
||||
}
|
||||
|
||||
export interface GraphMeta {
|
||||
|
|
@ -131,15 +102,25 @@ export interface GraphMeta {
|
|||
name?: string;
|
||||
}
|
||||
|
||||
export interface ListComponentsRequest {}
|
||||
export interface GraphSchemaData {
|
||||
canvas_info?: flow_devops_eino_app_canvas.CanvasInfo;
|
||||
}
|
||||
|
||||
export interface ListComponentsResp {
|
||||
export interface ListComponentsData {
|
||||
/** 官方组件 */
|
||||
official_components?: Array<ComponentItem>;
|
||||
/** 自定义组件 */
|
||||
custom_components?: Array<ComponentItem>;
|
||||
}
|
||||
|
||||
export interface ListComponentsRequest {}
|
||||
|
||||
export interface ListComponentsResp {
|
||||
code: number;
|
||||
msg: string;
|
||||
data?: ListComponentsData;
|
||||
}
|
||||
|
||||
export interface ListGraphData {
|
||||
graphs?: Array<GraphMeta>;
|
||||
}
|
||||
|
|
@ -188,12 +169,4 @@ export interface StreamDebugRunResp {
|
|||
}
|
||||
|
||||
export interface StreamLogReq {}
|
||||
|
||||
export interface VersionReq {}
|
||||
|
||||
export interface VersionResp {
|
||||
data: string;
|
||||
code: Int64;
|
||||
msg: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
|
|
|||
|
|
@ -40,6 +40,8 @@ export * from './namespaces/flow_devops_knowledge_runtime';
|
|||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class FornaxKnowledgeService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('FornaxKnowledgeService.request is undefined');
|
||||
|
|
@ -230,7 +232,6 @@ export default class FornaxKnowledgeService<T> {
|
|||
channels: _req['channels'],
|
||||
top_k: _req['top_k'],
|
||||
rank: _req['rank'],
|
||||
options: _req['options'],
|
||||
base: _req['base'],
|
||||
};
|
||||
const headers = { Authorization: _req['Authorization'] };
|
||||
|
|
@ -465,7 +466,7 @@ export default class FornaxKnowledgeService<T> {
|
|||
/**
|
||||
* POST /open-apis/knowledge/v1/data/import_table_entry
|
||||
*
|
||||
* ============== OpenAPI接口 ==============
|
||||
* ============== 数据导入接口 ==============
|
||||
*/
|
||||
ImportKnowledgeTableData(
|
||||
req?: flow_devops_knowledge_runtime.ImportKnowledgeTableDataReq,
|
||||
|
|
@ -479,7 +480,6 @@ export default class FornaxKnowledgeService<T> {
|
|||
const data = {
|
||||
document_id: _req['document_id'],
|
||||
entries: _req['entries'],
|
||||
unique_entries: _req['unique_entries'],
|
||||
base: _req['base'],
|
||||
};
|
||||
const headers = { Authorization: _req['Authorization'] };
|
||||
|
|
@ -544,85 +544,5 @@ export default class FornaxKnowledgeService<T> {
|
|||
const data = { number: _req['number'], base: _req['base'] };
|
||||
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 */
|
||||
|
|
|
|||
|
|
@ -66,10 +66,6 @@ export interface RetrieveChannel {
|
|||
score?: number;
|
||||
}
|
||||
|
||||
export interface RetrieveOptions {
|
||||
parse_table_values?: boolean;
|
||||
}
|
||||
|
||||
export interface RetrieveReq {
|
||||
Authorization?: string;
|
||||
knowledge_keys?: Array<string>;
|
||||
|
|
@ -77,7 +73,6 @@ export interface RetrieveReq {
|
|||
channels?: Array<Channel>;
|
||||
top_k?: number;
|
||||
rank?: Ranker;
|
||||
options?: RetrieveOptions;
|
||||
base?: base.Base;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,91 +20,17 @@
|
|||
// @ts-nocheck
|
||||
|
||||
import * as base from './base';
|
||||
import * as flow_devops_knowledge_common from './flow_devops_knowledge_common';
|
||||
|
||||
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 {
|
||||
Authorization?: string;
|
||||
document_id?: Int64;
|
||||
entries?: Array<Record<string, string>>;
|
||||
unique_entries?: Array<UniqueEntry>;
|
||||
base?: base.Base;
|
||||
}
|
||||
|
||||
export interface ImportKnowledgeTableDataResp {
|
||||
code?: number;
|
||||
msg?: string;
|
||||
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 */
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -79,9 +79,6 @@ export interface AIAnnotateTask {
|
|||
userPromptColumnName?: string;
|
||||
promptVariables?: Array<PromptVariable>;
|
||||
latestTaskRunID?: string;
|
||||
/** 打标并发度 */
|
||||
executeConcurrency?: number;
|
||||
spaceID?: string;
|
||||
/** 创建人ID */
|
||||
createdBy?: string;
|
||||
/** 创建时间,ms */
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
// @ts-nocheck
|
||||
|
||||
import * as datasetv2similarity from './datasetv2similarity';
|
||||
import * as tag from './tag';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
|
|
@ -69,7 +68,6 @@ export enum FieldDisplayFormat {
|
|||
JSON = 3,
|
||||
YAML = 4,
|
||||
Code = 5,
|
||||
SingleOption = 6,
|
||||
}
|
||||
|
||||
export enum FieldStatus {
|
||||
|
|
@ -77,11 +75,6 @@ export enum FieldStatus {
|
|||
Deleted = 2,
|
||||
}
|
||||
|
||||
export enum FieldTransformationType {
|
||||
/** 移除未在当前列的 jsonSchema 中定义的字段(包括 properties 和 patternProperties),仅在列类型为 struct 时有效 */
|
||||
RemoveExtraFields = 1,
|
||||
}
|
||||
|
||||
export enum ItemErrorType {
|
||||
/** schema 不匹配 */
|
||||
MismatchSchema = 1,
|
||||
|
|
@ -95,18 +88,10 @@ export enum ItemErrorType {
|
|||
MalformedFile = 5,
|
||||
/** 包含非法内容 */
|
||||
IllegalContent = 6,
|
||||
/** 缺少必填字段 */
|
||||
MissingRequiredField = 7,
|
||||
/** 数据嵌套层数超限 */
|
||||
ExceedMaxNestedDepth = 8,
|
||||
/** 数据转换失败 */
|
||||
TransformItemFailed = 9,
|
||||
/** system error */
|
||||
InternalError = 100,
|
||||
/** 清空数据集失败 */
|
||||
ClearDatasetFailed = 101,
|
||||
/** 读写文件失败 */
|
||||
RWFileFailed = 102,
|
||||
}
|
||||
|
||||
export enum SchemaKey {
|
||||
|
|
@ -115,8 +100,6 @@ export enum SchemaKey {
|
|||
Float = 3,
|
||||
Bool = 4,
|
||||
Message = 5,
|
||||
/** 单选 */
|
||||
SingleChoice = 6,
|
||||
}
|
||||
|
||||
export enum SecurityLevel {
|
||||
|
|
@ -252,8 +235,6 @@ export interface DatasetSpec {
|
|||
maxFieldCount?: number;
|
||||
/** 单条数据字数上限 */
|
||||
maxItemSize?: string;
|
||||
/** 单条 array/struct 数据嵌套上限 */
|
||||
maxItemDataNestedDepth?: number;
|
||||
}
|
||||
|
||||
/** DatasetVersion 数据集版本元信息,不包含数据本身 */
|
||||
|
|
@ -296,12 +277,6 @@ export interface FieldData {
|
|||
format?: FieldDisplayFormat;
|
||||
/** 图文混排时,图文内容 */
|
||||
parts?: Array<FieldData>;
|
||||
/** 这条数据生成traceID */
|
||||
traceID?: string;
|
||||
/** 是否生成失败 */
|
||||
genFail?: boolean;
|
||||
/** 标签回流失败后的展示名称 */
|
||||
fallbackDisplayName?: string;
|
||||
}
|
||||
|
||||
export interface FieldSchema {
|
||||
|
|
@ -322,27 +297,12 @@ export interface FieldSchema {
|
|||
textSchema?: string;
|
||||
/** 多模态规格限制 */
|
||||
multiModelSpec?: MultiModalSpec;
|
||||
/** 当前列的数据是否必填,不填则会报错 */
|
||||
isRequired?: boolean;
|
||||
/** 用户是否不可见 */
|
||||
hidden?: boolean;
|
||||
/** 当前列的状态,创建/更新时可以不传 */
|
||||
status?: FieldStatus;
|
||||
/** 是否开启相似度索引 */
|
||||
similaritySearchConfig?: SimilaritySearchConfig;
|
||||
/** 质量分配置 */
|
||||
qualityScoreConfig?: QualityScoreConfig;
|
||||
/** 标签字段配置 */
|
||||
tagFieldConfig?: TagFieldConfig;
|
||||
/** 默认的预置转换配置,目前在数据校验后执行 */
|
||||
defaultTransformations?: Array<FieldTransformationConfig>;
|
||||
}
|
||||
|
||||
export interface FieldTransformationConfig {
|
||||
/** 预置的转换类型 */
|
||||
transType?: FieldTransformationType;
|
||||
/** 当前转换配置在这一列上的数据及其嵌套的子结构上均生效 */
|
||||
global?: boolean;
|
||||
}
|
||||
|
||||
export interface FileUploadToken {
|
||||
|
|
@ -365,8 +325,6 @@ export interface ItemErrorDetail {
|
|||
/** [startIndex, endIndex] 表示区间错误范围, 如 ExceedDatasetCapacity 错误时 */
|
||||
startIndex?: number;
|
||||
endIndex?: number;
|
||||
/** ItemErrorType=MismatchSchema, key 为 FieldSchema.name, value 为错误信息 */
|
||||
messagesByField?: Record<string, string>;
|
||||
}
|
||||
|
||||
export interface ItemErrorGroup {
|
||||
|
|
@ -402,12 +360,6 @@ export interface OrderBy {
|
|||
isAsc?: boolean;
|
||||
}
|
||||
|
||||
/** 质量分配置 */
|
||||
export interface QualityScoreConfig {
|
||||
/** 列是否为质量分 */
|
||||
enabled?: boolean;
|
||||
}
|
||||
|
||||
/** 相似度算法的配置 */
|
||||
export interface SimilaritySearchConfig {
|
||||
/** 是否开启相似度索引 */
|
||||
|
|
@ -417,9 +369,4 @@ export interface SimilaritySearchConfig {
|
|||
/** 所使用的相似度模型 */
|
||||
embeddingType?: datasetv2similarity.EmbeddingModel;
|
||||
}
|
||||
|
||||
export interface TagFieldConfig {
|
||||
/** tag配置 */
|
||||
tagInfo?: tag.TagInfo;
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
|
|
|||
|
|
@ -120,9 +120,9 @@ export interface DatasetIOJob {
|
|||
}
|
||||
|
||||
export interface DatasetIOJobOption {
|
||||
/** 覆盖数据集,仅在导入任务中生效 */
|
||||
/** 覆盖数据集 */
|
||||
overwriteDataset?: boolean;
|
||||
/** 需要按照手动打标的taskID结果导入,被确认无需导入的不会被导入,仅在导入任务中生效 */
|
||||
/** 需要按照手动打标的taskID结果导入,被确认无需导入的不会被导入 */
|
||||
jobID?: Int64;
|
||||
}
|
||||
|
||||
|
|
@ -135,8 +135,6 @@ export interface DatasetIOJobProgress {
|
|||
added?: Int64;
|
||||
/** 已跳过的数量 */
|
||||
skipped?: Int64;
|
||||
/** 下一个扫描的游标,在数据源为数据集时生效 */
|
||||
cursor?: string;
|
||||
/** 子任务
|
||||
可空, 表示子任务的名称 */
|
||||
name?: string;
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue