diff --git a/frontend/apps/coze-studio/rsbuild.config.ts b/frontend/apps/coze-studio/rsbuild.config.ts
index 563ed2a0..087d082d 100644
--- a/frontend/apps/coze-studio/rsbuild.config.ts
+++ b/frontend/apps/coze-studio/rsbuild.config.ts
@@ -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;
diff --git a/frontend/apps/coze-studio/src/pages/redirect.tsx b/frontend/apps/coze-studio/src/pages/redirect.tsx
index 77da3c25..44ef444c 100644
--- a/frontend/apps/coze-studio/src/pages/redirect.tsx
+++ b/frontend/apps/coze-studio/src/pages/redirect.tsx
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
import { useEffect } from 'react';
const Redirect = () => {
diff --git a/frontend/apps/coze-studio/src/routes/async-components.tsx b/frontend/apps/coze-studio/src/routes/async-components.tsx
index 8fc133ad..daec62ac 100644
--- a/frontend/apps/coze-studio/src/routes/async-components.tsx
+++ b/frontend/apps/coze-studio/src/routes/async-components.tsx
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
import { lazy } from 'react';
// 登录页面
diff --git a/frontend/apps/coze-studio/src/routes/index.tsx b/frontend/apps/coze-studio/src/routes/index.tsx
index 91e1c869..6a918a30 100644
--- a/frontend/apps/coze-studio/src/routes/index.tsx
+++ b/frontend/apps/coze-studio/src/routes/index.tsx
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
import { createBrowserRouter, Navigate } from 'react-router-dom';
import { SpaceSubModuleEnum } from '@coze-foundation/space-ui-adapter';
diff --git a/frontend/packages/agent-ide/agent-publish/src/components/bot-publish/publish-result/index.tsx b/frontend/packages/agent-ide/agent-publish/src/components/bot-publish/publish-result/index.tsx
index a867a60c..6c7eb99d 100644
--- a/frontend/packages/agent-ide/agent-publish/src/components/bot-publish/publish-result/index.tsx
+++ b/frontend/packages/agent-ide/agent-publish/src/components/bot-publish/publish-result/index.tsx
@@ -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')}`}
- {/* 社区版暂不支持该功能 */}
+ {/* 开源版暂不支持该功能 */}
{IS_OVERSEA && !publishResult?.monetizeConfigSuccess ? (
@@ -222,7 +222,7 @@ export const PublishResult = ({
) : null}
- {/* 社区版暂不支持该功能 */}
+ {/* 开源版暂不支持该功能 */}
{FLAGS['bot.studio.publish_management'] && !IS_OPEN_SOURCE ? (
{I18n.t('release_management_detail1', {
diff --git a/frontend/packages/agent-ide/bot-plugin/entry/src/components/plugin-tool-detail/tool-header.tsx b/frontend/packages/agent-ide/bot-plugin/entry/src/components/plugin-tool-detail/tool-header.tsx
index 77ddc09a..dbff8306 100644
--- a/frontend/packages/agent-ide/bot-plugin/entry/src/components/plugin-tool-detail/tool-header.tsx
+++ b/frontend/packages/agent-ide/bot-plugin/entry/src/components/plugin-tool-detail/tool-header.tsx
@@ -119,7 +119,7 @@ const ToolHeader: FC
= ({
/>
{I18n.t('plugin_edit_tool_title')}
- {/* 社区版暂不支持该功能 */}
+ {/* 开源版暂不支持该功能 */}
{FLAGS['bot.devops.plugin_mockset'] ? (
{
spaceId,
enable:
showPublishManageMenu &&
- // 社区版暂不支持该功能
+ // 开源版暂不支持该功能
FLAGS['bot.studio.publish_management'] &&
!IS_OPEN_SOURCE,
});
@@ -172,7 +172,7 @@ export const MoreMenuButton: FC = () => {
- {/* 社区版暂不支持该功能 */}
+ {/* 开源版暂不支持该功能 */}
{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 ? (
diff --git a/frontend/packages/agent-ide/model-manager/src/components/model-select-v2/model-option/index.tsx b/frontend/packages/agent-ide/model-manager/src/components/model-select-v2/model-option/index.tsx
index 198c9c25..33fbc97f 100644
--- a/frontend/packages/agent-ide/model-manager/src/components/model-select-v2/model-option/index.tsx
+++ b/frontend/packages/agent-ide/model-manager/src/components/model-select-v2/model-option/index.tsx
@@ -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}
- {/* 抖音分身场景下不展示改 tag,社区版暂不支持该功能 */}
+ {/* 抖音分身场景下不展示改 tag,开源版暂不支持该功能 */}
{model.model_status_details?.is_free_model &&
scene !== BotCreatorScene.DouyinBot ? (
diff --git a/frontend/packages/agent-ide/model-manager/src/hooks/model/use-get-model-list.ts b/frontend/packages/agent-ide/model-manager/src/hooks/model/use-get-model-list.ts
index f96895d8..d9e19915 100644
--- a/frontend/packages/agent-ide/model-manager/src/hooks/model/use-get-model-list.ts
+++ b/frontend/packages/agent-ide/model-manager/src/hooks/model/use-get-model-list.ts
@@ -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,
}),
diff --git a/frontend/packages/agent-ide/plugin-setting/src/components/agent-skill-setting-modal/index.tsx b/frontend/packages/agent-ide/plugin-setting/src/components/agent-skill-setting-modal/index.tsx
index 4747f5ef..0f9aff29 100644
--- a/frontend/packages/agent-ide/plugin-setting/src/components/agent-skill-setting-modal/index.tsx
+++ b/frontend/packages/agent-ide/plugin-setting/src/components/agent-skill-setting-modal/index.tsx
@@ -70,7 +70,7 @@ const useAgentSkillPluginSettingModalController = (
},
{
refreshDeps: [commonParams],
- // 社区版暂不支持该功能
+ // 开源版暂不支持该功能
ready: visible && FLAGS['bot.devops.plugin_mockset'],
},
);
diff --git a/frontend/packages/agent-ide/plugin-setting/src/components/agent-skill-setting-modal/part-main.tsx b/frontend/packages/agent-ide/plugin-setting/src/components/agent-skill-setting-modal/part-main.tsx
index 82cf9137..398c48fa 100644
--- a/frontend/packages/agent-ide/plugin-setting/src/components/agent-skill-setting-modal/part-main.tsx
+++ b/frontend/packages/agent-ide/plugin-setting/src/components/agent-skill-setting-modal/part-main.tsx
@@ -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'),
diff --git a/frontend/packages/agent-ide/plugin-shared/src/components/plugin-panel/index.tsx b/frontend/packages/agent-ide/plugin-shared/src/components/plugin-panel/index.tsx
index f2d4fe62..84787b1d 100644
--- a/frontend/packages/agent-ide/plugin-shared/src/components/plugin-panel/index.tsx
+++ b/frontend/packages/agent-ide/plugin-shared/src/components/plugin-panel/index.tsx
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
/* eslint-disable max-lines */
/* eslint-disable @coze-arch/max-line-per-function */
diff --git a/frontend/packages/agent-ide/plugin-shared/src/service/fetch-plugin.ts b/frontend/packages/agent-ide/plugin-shared/src/service/fetch-plugin.ts
index 1feadbf7..e0e50b9e 100644
--- a/frontend/packages/agent-ide/plugin-shared/src/service/fetch-plugin.ts
+++ b/frontend/packages/agent-ide/plugin-shared/src/service/fetch-plugin.ts
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
import qs from 'qs';
import { useSpaceStore } from '@coze-foundation/space-store';
import {
diff --git a/frontend/packages/agent-ide/plugin-shared/src/types/auth-mode.ts b/frontend/packages/agent-ide/plugin-shared/src/types/auth-mode.ts
index dc3a5842..06e84530 100644
--- a/frontend/packages/agent-ide/plugin-shared/src/types/auth-mode.ts
+++ b/frontend/packages/agent-ide/plugin-shared/src/types/auth-mode.ts
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
/** for open coze */
export enum PluginAuthMode {
/** No authorization required */
diff --git a/frontend/packages/agent-ide/prompt/src/components/prompt-editor/agent-ide-prompt/index.tsx b/frontend/packages/agent-ide/prompt/src/components/prompt-editor/agent-ide-prompt/index.tsx
index a5c97207..1927586d 100644
--- a/frontend/packages/agent-ide/prompt/src/components/prompt-editor/agent-ide-prompt/index.tsx
+++ b/frontend/packages/agent-ide/prompt/src/components/prompt-editor/agent-ide-prompt/index.tsx
@@ -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
}
diff --git a/frontend/packages/agent-ide/skills-pane-adapter/src/components/skills-pane/index.tsx b/frontend/packages/agent-ide/skills-pane-adapter/src/components/skills-pane/index.tsx
index b2ed361b..fd8df2d0 100644
--- a/frontend/packages/agent-ide/skills-pane-adapter/src/components/skills-pane/index.tsx
+++ b/frontend/packages/agent-ide/skills-pane-adapter/src/components/skills-pane/index.tsx
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
import { type ReactNode, useState } from 'react';
import { useBotInfoStore } from '@coze-studio/bot-detail-store/bot-info';
diff --git a/frontend/packages/agent-ide/skills-pane-adapter/src/components/skills-pane/skills-nav.tsx b/frontend/packages/agent-ide/skills-pane-adapter/src/components/skills-pane/skills-nav.tsx
index 673a6c18..ffa477da 100644
--- a/frontend/packages/agent-ide/skills-pane-adapter/src/components/skills-pane/skills-nav.tsx
+++ b/frontend/packages/agent-ide/skills-pane-adapter/src/components/skills-pane/skills-nav.tsx
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
import { type FC } from 'react';
import { I18n } from '@coze-arch/i18n';
diff --git a/frontend/packages/agent-ide/space-bot/src/component/mode-select/change-button.tsx b/frontend/packages/agent-ide/space-bot/src/component/mode-select/change-button.tsx
index ba07007b..e50450f9 100644
--- a/frontend/packages/agent-ide/space-bot/src/component/mode-select/change-button.tsx
+++ b/frontend/packages/agent-ide/space-bot/src/component/mode-select/change-button.tsx
@@ -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;
diff --git a/frontend/packages/agent-ide/space-bot/src/component/onboarding-message/index.tsx b/frontend/packages/agent-ide/space-bot/src/component/onboarding-message/index.tsx
index 5c30695c..d088272b 100644
--- a/frontend/packages/agent-ide/space-bot/src/component/onboarding-message/index.tsx
+++ b/frontend/packages/agent-ide/space-bot/src/component/onboarding-message/index.tsx
@@ -133,7 +133,7 @@ export const OnboardingMessage = forwardRef<
initValues={onboardingContent}
isReadonly={isReadonly}
isGenerating={isLoading}
- // 社区版暂不支持该功能
+ // 开源版暂不支持该功能
plainText={scene === BotCreatorScene.DouyinBot}
onChange={submitEditor}
onBlur={() => {
diff --git a/frontend/packages/agent-ide/space-bot/src/type.ts b/frontend/packages/agent-ide/space-bot/src/type.ts
index 8c6792ff..5170dea3 100644
--- a/frontend/packages/agent-ide/space-bot/src/type.ts
+++ b/frontend/packages/agent-ide/space-bot/src/type.ts
@@ -98,6 +98,6 @@ export interface PublisherBotInfo {
hasPublished?: boolean;
// 收费插件列表
pluginPricingRules?: Array;
- // 业务类型 DouyinAvatar=1 抖音分身 社区版暂不支持该功能
+ // 业务类型 DouyinAvatar=1 抖音分身 开源版暂不支持该功能
businessType?: BusinessType;
}
diff --git a/frontend/packages/arch/bot-hooks-base/src/use-route-config.ts b/frontend/packages/arch/bot-hooks-base/src/use-route-config.ts
index 97cd393b..223cbf5c 100644
--- a/frontend/packages/arch/bot-hooks-base/src/use-route-config.ts
+++ b/frontend/packages/arch/bot-hooks-base/src/use-route-config.ts
@@ -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 - 包含导航函数和当前路径名的对象。
*/
diff --git a/frontend/packages/arch/bot-utils/src/upload-file-v2.ts b/frontend/packages/arch/bot-utils/src/upload-file-v2.ts
index 490a18b5..1620630a 100644
--- a/frontend/packages/arch/bot-utils/src/upload-file-v2.ts
+++ b/frontend/packages/arch/bot-utils/src/upload-file-v2.ts
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
/* eslint-disable @typescript-eslint/no-explicit-any */
import {
getUploader as initUploader,
diff --git a/frontend/packages/arch/bot-utils/src/upload-file.ts b/frontend/packages/arch/bot-utils/src/upload-file.ts
index 8818f2d8..a29dd8f1 100644
--- a/frontend/packages/arch/bot-utils/src/upload-file.ts
+++ b/frontend/packages/arch/bot-utils/src/upload-file.ts
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
/* eslint-disable @typescript-eslint/naming-convention */
import { userStoreService } from '@coze-studio/user-store';
import {
diff --git a/frontend/packages/arch/idl/src/auto-generated/.bam-mark b/frontend/packages/arch/idl/src/auto-generated/.bam-mark
index 4d14cdae..0d942951 100644
--- a/frontend/packages/arch/idl/src/auto-generated/.bam-mark
+++ b/frontend/packages/arch/idl/src/auto-generated/.bam-mark
@@ -1 +1 @@
-0ffc9936aeed1a26a88156ee2802d306
\ No newline at end of file
+8d3799f9b5eadf7137347d8c1192eb97
\ No newline at end of file
diff --git a/frontend/packages/arch/idl/src/auto-generated/app_builder/index.ts b/frontend/packages/arch/idl/src/auto-generated/app_builder/index.ts
index abd26d64..2aca6cb0 100644
--- a/frontend/packages/arch/idl/src/auto-generated/app_builder/index.ts
+++ b/frontend/packages/arch/idl/src/auto-generated/app_builder/index.ts
@@ -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 {
private request: any = () => {
throw new Error('AppBuilderService.request is undefined');
diff --git a/frontend/packages/arch/idl/src/auto-generated/basic_api/index.ts b/frontend/packages/arch/idl/src/auto-generated/basic_api/index.ts
index d08f27a2..95cfea44 100644
--- a/frontend/packages/arch/idl/src/auto-generated/basic_api/index.ts
+++ b/frontend/packages/arch/idl/src/auto-generated/basic_api/index.ts
@@ -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 {
private request: any = () => {
throw new Error('BasicApiService.request is undefined');
diff --git a/frontend/packages/arch/idl/src/auto-generated/basic_api/namespaces/flow_platform_audit_common.ts b/frontend/packages/arch/idl/src/auto-generated/basic_api/namespaces/flow_platform_audit_common.ts
index 47dda9f7..95cee0f8 100644
--- a/frontend/packages/arch/idl/src/auto-generated/basic_api/namespaces/flow_platform_audit_common.ts
+++ b/frontend/packages/arch/idl/src/auto-generated/basic_api/namespaces/flow_platform_audit_common.ts
@@ -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 {
diff --git a/frontend/packages/arch/idl/src/auto-generated/benefit/index.ts b/frontend/packages/arch/idl/src/auto-generated/benefit/index.ts
index 1714a7c6..b113399d 100644
--- a/frontend/packages/arch/idl/src/auto-generated/benefit/index.ts
+++ b/frontend/packages/arch/idl/src/auto-generated/benefit/index.ts
@@ -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 {
private request: any = () => {
throw new Error('BenefitService.request is undefined');
@@ -406,30 +408,5 @@ export default class BenefitService {
};
return this.request({ url, method, data }, options);
}
-
- /**
- * POST /api/marketplace/commerce/benefit/update_subscription_renewal_info
- *
- * 修改续费信息
- */
- PublicUpdateSubscriptionRenewalInfo(
- req?: benefit.PublicUpdateSubscriptionRenewalInfoRequest,
- options?: T,
- ): Promise {
- 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 */
diff --git a/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/benefit.ts b/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/benefit.ts
index dbc3641c..474011d4 100644
--- a/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/benefit.ts
+++ b/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/benefit.ts
@@ -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;
- 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>;
+ ChargeInfo?: Record;
}
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
+ UserBenefitInfo?: Record<
+ benefit_common.BenefitType,
+ benefit_common.CommonCounter
>;
}
export interface UserBenefitData {
/** 用户基本信息 */
user_basic_info: benefit_common.PublicUserBasicInfo;
- benefit_type_infos?: Partial<
- Record
+ 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>
+ EntityItems?: Record<
+ benefit_common.ConsumeResourceType,
+ Array
>;
}
@@ -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 */
diff --git a/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/benefit_common.ts b/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/benefit_common.ts
index 1ea02391..3814b9ce 100644
--- a/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/benefit_common.ts
+++ b/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/benefit_common.ts
@@ -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 */
diff --git a/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/oapi.ts b/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/oapi.ts
index ae07569f..2063d0a2 100644
--- a/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/oapi.ts
+++ b/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/oapi.ts
@@ -106,7 +106,7 @@ export interface ListBenefitLimitationResponse {
}
export interface ListBillDownloadTaskRequest {
- task_ids?: Array;
+ task_ids?: Array;
page_num?: number;
page_size?: number;
}
diff --git a/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/wallet.ts b/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/wallet.ts
index b0b1ff17..0a54928f 100644
--- a/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/wallet.ts
+++ b/frontend/packages/arch/idl/src/auto-generated/benefit/namespaces/wallet.ts
@@ -95,7 +95,7 @@ export interface PublicGetUserWalletHistoryResponse {
}
export interface UserBalanceData {
- balance_map?: Partial>;
+ balance_map?: Record;
}
export interface UserProfitData {
diff --git a/frontend/packages/arch/idl/src/auto-generated/bot_connector/index.ts b/frontend/packages/arch/idl/src/auto-generated/bot_connector/index.ts
index ea26dc6a..5782f5c4 100644
--- a/frontend/packages/arch/idl/src/auto-generated/bot_connector/index.ts
+++ b/frontend/packages/arch/idl/src/auto-generated/bot_connector/index.ts
@@ -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 {
private request: any = () => {
throw new Error('BotConnectorService.request is undefined');
diff --git a/frontend/packages/arch/idl/src/auto-generated/bot_connector/namespaces/bot_common.ts b/frontend/packages/arch/idl/src/auto-generated/bot_connector/namespaces/bot_common.ts
index 519dafc5..a2977575 100644
--- a/frontend/packages/arch/idl/src/auto-generated/bot_connector/namespaces/bot_common.ts
+++ b/frontend/packages/arch/idl/src/auto-generated/bot_connector/namespaces/bot_common.ts
@@ -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;
}
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;
/** 是否关闭语音通话,true:关闭 false:开启 默认为false */
voice_call?: boolean;
- /** 默认用户输入类型 */
- default_user_input_type?: DefaultUserInputType;
- /** 多语音音色配置, string类型 */
- i18n_lang_voice_str?: Record;
- video_call_config?: VideoCallConfig;
- voiceprint_recognition_config?: VoiceprintRecognitionConfig;
}
export interface WorkflowInfo {
diff --git a/frontend/packages/arch/idl/src/auto-generated/bot_connector/namespaces/bot_connector.ts b/frontend/packages/arch/idl/src/auto-generated/bot_connector/namespaces/bot_connector.ts
index db20470b..9e14b016 100644
--- a/frontend/packages/arch/idl/src/auto-generated/bot_connector/namespaces/bot_connector.ts
+++ b/frontend/packages/arch/idl/src/auto-generated/bot_connector/namespaces/bot_connector.ts
@@ -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;
query_snap?: string;
card_status?: Record;
- 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;
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 {
diff --git a/frontend/packages/arch/idl/src/auto-generated/bot_open_api/index.ts b/frontend/packages/arch/idl/src/auto-generated/bot_open_api/index.ts
index 37bdee1b..443b5f70 100644
--- a/frontend/packages/arch/idl/src/auto-generated/bot_open_api/index.ts
+++ b/frontend/packages/arch/idl/src/auto-generated/bot_open_api/index.ts
@@ -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 {
private request: any = () => {
throw new Error('BotOpenApiService.request is undefined');
@@ -314,9 +316,6 @@ export default class BotOpenApiService {
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 {
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 {
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 {
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);
}
diff --git a/frontend/packages/arch/idl/src/auto-generated/bot_open_api/namespaces/bot_common.ts b/frontend/packages/arch/idl/src/auto-generated/bot_open_api/namespaces/bot_common.ts
index be9729bf..c045fb4f 100644
--- a/frontend/packages/arch/idl/src/auto-generated/bot_open_api/namespaces/bot_common.ts
+++ b/frontend/packages/arch/idl/src/auto-generated/bot_open_api/namespaces/bot_common.ts
@@ -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 */
diff --git a/frontend/packages/arch/idl/src/auto-generated/bot_open_api/namespaces/bot_open_api.ts b/frontend/packages/arch/idl/src/auto-generated/bot_open_api/namespaces/bot_open_api.ts
index 1cc8a25d..fbf843e1 100644
--- a/frontend/packages/arch/idl/src/auto-generated/bot_open_api/namespaces/bot_open_api.ts
+++ b/frontend/packages/arch/idl/src/auto-generated/bot_open_api/namespaces/bot_open_api.ts
@@ -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;
/** 知识库信息 */
knowledge?: CommonKnowledge;
- /** workflow信息列表 */
- workflow_info_list?: Array;
- /** 快捷指令信息列表 */
- shortcut_commands?: Array;
- /** 音色配置 */
- voice_info_list?: Array;
- /** 默认用户输入类型 */
- default_user_input_type?: string;
- /** 用户问题建议 */
- suggest_reply_info?: SuggestReplyInfo;
- /** 背景图片 */
- background_image_info?: BackgroundImageInfo;
- /** 变量列表 */
- variables?: Array;
- /** 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;
/** 手动指定渠道 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;
- 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;
}
-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;
-}
-
-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;
}
export interface OauthAuthorizationCodeReq {
@@ -523,21 +415,10 @@ export interface PluginInfo {
api_info_list?: Array;
}
-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;
- /** 默认值 没配置时不返回 */
- 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;
-}
-
-export interface ShortcutCommandInfo {
- /** 快捷指令id */
- id?: string;
- /** 快捷指令按钮名称 */
- name?: string;
- /** 快捷指令 */
- command?: string;
- /** 快捷指令描述 */
- description?: string;
- /** 指令query模版 */
- query_template?: string;
- /** 快捷指令icon */
- icon_url?: string;
- /** 组件列表(参数列表) */
- components?: Array;
- /** 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;
-}
-
-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;
- 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;
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;
-}
-
-export interface WorkflowInfo {
- /** workflow_id */
- id?: string;
- /** workflow名称 */
- name?: string;
- /** workflow描述 */
- description?: string;
- /** workflow图片url */
- icon_url?: string;
-}
/* eslint-enable */
diff --git a/frontend/packages/arch/idl/src/auto-generated/bytefaas_api/index.ts b/frontend/packages/arch/idl/src/auto-generated/bytefaas_api/index.ts
index 7cdbcea9..e7e8126d 100644
--- a/frontend/packages/arch/idl/src/auto-generated/bytefaas_api/index.ts
+++ b/frontend/packages/arch/idl/src/auto-generated/bytefaas_api/index.ts
@@ -19,153 +19,7833 @@
/* tslint:disable */
// @ts-nocheck
-import * as admin from './namespaces/admin';
-import * as agent from './namespaces/agent';
-import * as alarm from './namespaces/alarm';
-import * as async_request from './namespaces/async_request';
-import * as build from './namespaces/build';
-import * as burst_protector from './namespaces/burst_protector';
-import * as cluster from './namespaces/cluster';
-import * as code_revision from './namespaces/code_revision';
-import * as codeagent_cp from './namespaces/codeagent_cp';
-import * as common from './namespaces/common';
-import * as consul_trigger from './namespaces/consul_trigger';
-import * as debug from './namespaces/debug';
-import * as diagnosis from './namespaces/diagnosis';
-import * as eventbus from './namespaces/eventbus';
-import * as filterplugin from './namespaces/filterplugin';
-import * as http_trigger from './namespaces/http_trigger';
-import * as image from './namespaces/image';
-import * as instance from './namespaces/instance';
-import * as mcp_server from './namespaces/mcp_server';
-import * as mcp_tool from './namespaces/mcp_tool';
-import * as mqevent from './namespaces/mqevent';
-import * as other from './namespaces/other';
-import * as packages from './namespaces/packages';
-import * as pipeline_template from './namespaces/pipeline_template';
-import * as plugin_function from './namespaces/plugin_function';
-import * as regional_meta from './namespaces/regional_meta';
-import * as release from './namespaces/release';
-import * as resource from './namespaces/resource';
-import * as resource_group from './namespaces/resource_group';
-import * as revision from './namespaces/revision';
-import * as sandbox from './namespaces/sandbox';
-import * as scale_record from './namespaces/scale_record';
-import * as scale_setting from './namespaces/scale_setting';
-import * as scale_strategies from './namespaces/scale_strategies';
-import * as service from './namespaces/service';
-import * as services from './namespaces/services';
-import * as subscription from './namespaces/subscription';
-import * as tce from './namespaces/tce';
-import * as template from './namespaces/template';
-import * as ticket from './namespaces/ticket';
-import * as tickets from './namespaces/tickets';
-import * as timer from './namespaces/timer';
-import * as tos from './namespaces/tos';
-import * as trigger from './namespaces/trigger';
-import * as trigger_debug from './namespaces/trigger_debug';
-import * as trigger_frozen_active from './namespaces/trigger_frozen_active';
-import * as volcengine from './namespaces/volcengine';
-
-export {
- admin,
- agent,
- alarm,
- async_request,
- build,
- burst_protector,
- cluster,
- code_revision,
- codeagent_cp,
- common,
- consul_trigger,
- debug,
- diagnosis,
- eventbus,
- filterplugin,
- http_trigger,
- image,
- instance,
- mcp_server,
- mcp_tool,
- mqevent,
- other,
- packages,
- pipeline_template,
- plugin_function,
- regional_meta,
- release,
- resource,
- resource_group,
- revision,
- sandbox,
- scale_record,
- scale_setting,
- scale_strategies,
- service,
- services,
- subscription,
- tce,
- template,
- ticket,
- tickets,
- timer,
- tos,
- trigger,
- trigger_debug,
- trigger_frozen_active,
- volcengine,
-};
-export * from './namespaces/admin';
-export * from './namespaces/agent';
-export * from './namespaces/alarm';
-export * from './namespaces/async_request';
-export * from './namespaces/build';
-export * from './namespaces/burst_protector';
-export * from './namespaces/cluster';
-export * from './namespaces/code_revision';
-export * from './namespaces/codeagent_cp';
-export * from './namespaces/common';
-export * from './namespaces/consul_trigger';
-export * from './namespaces/debug';
-export * from './namespaces/diagnosis';
-export * from './namespaces/eventbus';
-export * from './namespaces/filterplugin';
-export * from './namespaces/http_trigger';
-export * from './namespaces/image';
-export * from './namespaces/instance';
-export * from './namespaces/mcp_server';
-export * from './namespaces/mcp_tool';
-export * from './namespaces/mqevent';
-export * from './namespaces/other';
-export * from './namespaces/packages';
-export * from './namespaces/pipeline_template';
-export * from './namespaces/plugin_function';
-export * from './namespaces/regional_meta';
-export * from './namespaces/release';
-export * from './namespaces/resource';
-export * from './namespaces/resource_group';
-export * from './namespaces/revision';
-export * from './namespaces/sandbox';
-export * from './namespaces/scale_record';
-export * from './namespaces/scale_setting';
-export * from './namespaces/scale_strategies';
-export * from './namespaces/service';
-export * from './namespaces/services';
-export * from './namespaces/subscription';
-export * from './namespaces/tce';
-export * from './namespaces/template';
-export * from './namespaces/ticket';
-export * from './namespaces/tickets';
-export * from './namespaces/timer';
-export * from './namespaces/tos';
-export * from './namespaces/trigger';
-export * from './namespaces/trigger_debug';
-export * from './namespaces/trigger_frozen_active';
-export * from './namespaces/volcengine';
-
export type Int64 = string | number;
+export interface AbaseBinlogOptions {
+ abase_database_name?: string;
+ topic?: string;
+ orderly?: boolean;
+ sub_expr?: string;
+ cluster_name?: string;
+ consumer_group?: string;
+ filter_source_type?: string;
+ filter_source?: string;
+ filter_plugin_id?: string;
+ filter_plugin_version?: string;
+ retry_interval_seconds?: number;
+ subscribe_throughput?: number;
+ /** default is rocketmq, other option is kafka */
+ mq_type?: string;
+}
+
+export interface AbortBuildRequest {
+ /** cluster name */
+ cluster: string;
+ /** region */
+ region: string;
+ /** Number of revision */
+ revision_number: string;
+ /** ID of service */
+ service_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface AbortBuildResponse {
+ code?: number;
+ data?: Revision;
+ error?: string;
+}
+
+export interface ActiveFunctionFrozenInstanceRequest {
+ /** cluster name */
+ cluster: string;
+ podname: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ zone: string;
+}
+
+export interface ActiveFunctionFrozenInstanceResponse {
+ code?: number;
+ data?: EmptyObject;
+ error?: string;
+}
+
+export interface AddImageCICDRecordsRequest {
+ create_by?: string;
+ image_type?: string;
+ app_env?: string;
+ value?: Array;
+ old_record_value?: Array;
+ description?: string;
+}
+
+export interface AddImageCICDRecordsResponse {
+ code?: number;
+ error?: string;
+ data?: AddImageCICDRecordsResponseData;
+}
+
+export interface AddImageCICDRecordsResponseData {
+ id?: string;
+ created_by?: string;
+ created_at?: string;
+ image_type?: string;
+ app_env?: string;
+ record_diff?: Array;
+ description?: string;
+ rollback_id?: string;
+ source?: string;
+}
+
+export interface AdminCreateUpdateFunctionBatchTaskRequest {
+ clusters: Array;
+ runtime: string;
+ target_image: string;
+ /** strategy of upgrade image, enum value: [ only_once, always ] */
+ strategy: string;
+ rolling_step?: number;
+ /** envs array */
+ format_envs?: Array;
+ /** will skip for approval while critical is true */
+ critical?: boolean;
+ auto_start?: boolean;
+ /** Description for this upgrade, will append to lark message card */
+ description?: string;
+}
+
+export interface AdminCreateUpdateFunctionBatchTaskResponse {
+ code?: number;
+ error?: string;
+ data?: Record;
+}
+
+export interface AdminGetAllEtcdSettingsRequest {
+ cell: string;
+ region: string;
+}
+
+export interface AdminGetAllEtcdSettingsResponse {
+ code?: number;
+ error?: string;
+ data?: Array;
+}
+
+export interface AdminGetAvailableCellsRequest {
+ region: string;
+}
+
+export interface AdminGetAvailableCellsResponse {
+ code?: number;
+ error?: string;
+ data?: Array;
+}
+
+export interface AdminGetBaseImageByRuntimeAndIdRequest {
+ runtime: string;
+ image_id: string;
+}
+
+export interface AdminGetBaseImageByRuntimeAndIdResponse {
+ code?: number;
+ error?: string;
+ data?: FaaSBaseImageInfo;
+}
+
+export interface AdminGetBatchTaskRequest {
+ batch_task_id?: string;
+ task_type?: string;
+ offset?: number;
+ limit?: number;
+ status?: string;
+}
+
+export interface AdminGetBatchTaskResponse {
+ code?: number;
+ error?: string;
+ data?: Array;
+}
+
+export interface AdminGetClustersRequest {
+ service_id?: string;
+ function_id?: string;
+ psm?: string;
+ region?: string;
+ runtime?: string;
+ limit?: number;
+ offset?: number;
+}
+
+export interface AdminGetClustersResponse {
+ code?: number;
+ error?: string;
+ data?: Array;
+}
+
+export interface AdminGetEtcdSettingsRequest {
+ setting_name: string;
+ cell?: string;
+ region?: string;
+}
+
+export interface AdminGetEtcdSettingsResponse {
+ code?: number;
+ error?: string;
+ data?: EtcdSetting;
+}
+
+export interface AdminGetParentTaskDetailRequest {
+ parent_task_id: string;
+}
+
+export interface AdminGetParentTaskDetailResponse {
+ code?: number;
+ error?: string;
+ data?: ParentTask;
+}
+
+export interface AdminGetParentTaskRequest {
+ status?: string;
+ /** enum value: mqevent/function */
+ task_type?: string;
+ limit?: number;
+ offset?: number;
+}
+
+export interface AdminGetParentTaskResponse {
+ code?: number;
+ error?: string;
+ data?: Array;
+}
+
+export interface AdminRollbackRequest {
+ targets?: Array;
+}
+
+export interface AdminRollbackRequestTargetsMessage {
+ /** the ID of the target rollback ticket */
+ ticket_id?: string;
+}
+
+export interface AdminRollbackResponse {
+ code?: number;
+ data?: string;
+ error?: string;
+}
+
+export interface AdminUpdateBatchTaskRequset {
+ parent_task_id?: string;
+ batch_task_id?: string;
+ /** enum: [ "initial", "approved", "dispatched", "skipped", "success", "failed" ] */
+ status: string;
+}
+
+export interface AdminUpdateBatchTaskResponse {
+ code?: number;
+ error?: string;
+ data?: BatchTask;
+}
+
+export interface AdminUpdateFunctionBatchTaskClusterParams {
+ service_id: string;
+ region: string;
+ cluster: string;
+ psm: string;
+ function_id: string;
+}
+
+export interface AdminUpdateParentTaskRequest {
+ batch_task_id: string;
+ /** enum value: pending/failed */
+ status: string;
+ concurrency?: number;
+}
+
+export interface AdminUpdateParentTaskResponse {
+ code?: number;
+ error?: string;
+ data?: Record;
+}
+
+export interface AdminUpsertEtcdSettingRequest {
+ name: string;
+ value: string;
+ cell: string;
+ region: string;
+}
+
+export interface AdminUpsertEtcdSettingResponse {
+ code?: number;
+ error?: string;
+ data?: EtcdSetting;
+}
+
+/** alarm model */
+export interface Alarm {
+ alarm_methods?: string;
+ check_interval?: number;
+ cluster?: string;
+ end_time?: string;
+ handle_suggestion?: string;
+ id?: number;
+ last_updated_by?: string;
+ level?: string;
+ name?: string;
+ psm?: string;
+ rule?: string;
+ rule_alias?: string;
+ rule_format?: string;
+ start_time?: string;
+ status?: string;
+ threshold?: number;
+ threshold_unit?: string;
+ type?: string;
+ unit_id?: number;
+ updated_at?: string;
+ zone?: string;
+}
+
+export interface AlarmParameters {
+ lag_alarm_threshold?: number;
+}
+
+export interface Alias {
+ alias_name?: string;
+ traffic_config?: Record;
+ zone_traffic_config?: Record>;
+ format_traffic_configs?: Array;
+ format_zone_traffic_config?: Array;
+}
+
+export interface AllTriggers {
+ consul?: Array;
+ eventbus?: Array;
+ http?: Array;
+ mqevents?: Array;
+ timers?: Array;
+ tos?: Array;
+ abase_binlog?: Array;
+ event_bridge?: Array;
+}
+
+export interface ApiResponse {
+ code?: number;
+ data?: ApiResponseDataMessage2;
+ error?: string;
+}
+
+export interface ApiResponseDataMessage2 {}
+
+export interface AsyncRequestRecordResponse {
+ created_at?: string;
+ event_type?: string;
+ execute_end_time?: string;
+ execute_start_time?: string;
+ execution_duration_str?: string;
+ finished_time?: string;
+ function_id?: string;
+ kibana_link?: string;
+ request_id?: string;
+ response_meta?: AsyncRequestRecordResponseResponseMetaMessage2;
+ revision_id?: string;
+ task_status?: string;
+ updated_at?: string;
+ user_invoke_time?: string;
+}
+
+export interface AsyncRequestRecordResponseResponseMetaMessage2 {
+ error_code?: string;
+ error_message?: string;
+ response_body?: string;
+ response_status?: string;
+}
+
+export interface AutoMeshParams {
+ mesh_enable?: boolean;
+ mesh_http_egress?: boolean;
+ mesh_mongo_egress?: boolean;
+ mesh_mysql_egress?: boolean;
+ mesh_rpc_egress?: boolean;
+ mesh_sidecar_percent?: number;
+ mesh_http_ingress?: boolean;
+ mesh_rpc_ingress?: boolean;
+ mesh_sidecars_enable?: boolean;
+}
+
+/** basic info of cluster. */
+export interface BasicCluster {
+ adaptive_concurrency_mode?: string;
+ /** traffic aliases */
+ aliases?: Record;
+ /** restricted access, only open to administrators. 保留字段,仅 admin 可修改 */
+ async_mode?: boolean;
+ /** auth switch. 鉴权开关 */
+ auth_enable?: boolean;
+ cell?: string;
+ /** cluster name, starts with faas-. 集群名 */
+ cluster: string;
+ /** ID of code revision. 部署代码版本 ID */
+ code_revision_id?: string;
+ /** number of code revision. 部署代码版本号 */
+ code_revision_number?: string;
+ /** cold start switch. 冷启动开关 */
+ cold_start_disabled?: boolean;
+ /** CORS switch. CORS 开关 */
+ cors_enable?: boolean;
+ created_at: string;
+ enable_colocate_scheduling?: boolean;
+ enable_scale_optimise?: boolean;
+ enable_scale_strategy?: boolean;
+ env_name: string;
+ /** exclusive mode. 独占模式 */
+ exclusive_mode?: boolean;
+ format_envs?: Array;
+ function_id: string;
+ /** GDPR switch. GDPR 鉴权开关 */
+ gdpr_enable?: boolean;
+ global_kv_namespace_ids?: Array;
+ handler: string;
+ http_trigger_disable?: boolean;
+ id: string;
+ initializer: string;
+ initializer_sec?: number;
+ is_ipv6_only?: boolean;
+ /** disable zones in a region */
+ is_this_zone_disabled?: Record;
+ latency_sec?: number;
+ lazyload?: boolean;
+ max_concurrency?: number;
+ memory_mb?: number;
+ region: string;
+ /** function reserved mode switch. 函数预留模式开关 */
+ reserved_dp_enabled?: boolean;
+ resource_limit?: ResourceLimitWithAlias;
+ /** ID of revision. 版本 ID */
+ revision_id?: string;
+ /** number of revision. 版本号 */
+ revision_number?: number;
+ /** function routing strategy. 函数路由调度策略 */
+ routing_strategy?: string;
+ /** runtime. Optional values: golang/v1,node10/v1,python3/v1,rust1/v1,java8/v1,wasm/v1,v8/v1,native/v1,native-java8/v1 */
+ runtime: string;
+ scale_enabled?: boolean;
+ scale_threshold?: number;
+ scale_type?: number;
+ service_id: string;
+ trace_enable?: boolean;
+ updated_at: string;
+ /** zone throttle log bytes */
+ zone_throttle_log_bytes_per_sec?: Record;
+ /** ZTI switch. ZTI 鉴权开关 */
+ zti_enable?: boolean;
+ online_mode?: boolean;
+ enable_runtime_file_log?: boolean;
+ enable_runtime_console_log?: boolean;
+ enable_runtime_stream_log?: boolean;
+ enable_runtime_es_log?: boolean;
+ enable_runtime_json_log?: boolean;
+ enable_system_stream_log?: boolean;
+ enable_system_es_log?: boolean;
+ runtime_stream_log_bytes_per_sec?: number;
+ system_stream_log_bytes_per_sec?: number;
+ enable_reserve_frozen_instance?: boolean;
+ /** overload_protect_enabled */
+ overload_protect_enabled?: boolean;
+}
+
+export interface BasicFunctionParamsVpcConfigMessage2 {
+ vpc_id?: string;
+}
+
+export interface BasicRegionalMetaParams {
+ /** traffic aliases */
+ aliases?: Record;
+ async_mode?: boolean;
+ auth_enable?: boolean;
+ bytefaas_error_response_disabled?: boolean;
+ bytefaas_response_header_disabled?: boolean;
+ cell?: string;
+ cold_start_disabled?: boolean;
+ cors_enable?: boolean;
+ dynamic_load_balancing_data_report_enabled?: boolean;
+ dynamic_load_balancing_enabled_vdcs?: Array;
+ dynamic_load_balancing_weight_enabled?: boolean;
+ enable_colocate_scheduling?: boolean;
+ env_name?: string;
+ exclusive_mode?: boolean;
+ format_envs?: Array;
+ function_id?: string;
+ gateway_route_enable?: boolean;
+ gdpr_enable?: boolean;
+ global_kv_namespace_ids?: Array;
+ http_trigger_disable?: boolean;
+ is_ipv6_only?: boolean;
+ /** disable zones in a region */
+ is_this_zone_disabled?: Record;
+ latency_sec?: number;
+ local_cache_namespace_ids?: Array;
+ net_class_id?: number;
+ network?: string;
+ owner?: string;
+ protocol?: string;
+ psm?: string;
+ region?: string;
+ reserved_dp_enabled?: boolean;
+ revision_id?: string;
+ revision_number?: number;
+ routing_strategy?: string;
+ /** Optional values: golang/v1,node10/v1,python3/v1,rust1/v1,java8/v1,wasm/v1,v8/v1,native/v1,native-java8/v1 */
+ runtime?: string;
+ service_id?: string;
+ trace_enable?: boolean;
+ /** zone throttle log bytes */
+ zone_throttle_log_bytes_per_sec?: Record;
+ zti_enable?: boolean;
+ online_mode?: boolean;
+ formatted_elastic_prefer_cluster?: Array;
+ formatted_reserved_prefer_cluster?: Array;
+ enable_reserve_frozen_instance?: boolean;
+ disable_cgroup_v2?: boolean;
+ /** overload_protect_enabled */
+ overload_protect_enabled?: boolean;
+ enable_fed_on_demand_resource?: Record;
+}
+
+export interface BatchTask {
+ batch_task_id: string;
+ task_id: string;
+ /** json string, meta info of task, e.g.: service_id/psm/function_id */
+ task_meta: string;
+ /** type of task, enum value: [ function, mqevent ] */
+ type: string;
+ /** status of task, enum value: [ initial, reviewing, dispatched, failed, success, skipped, approved, rejected ] */
+ status: string;
+ /** the person who created this task */
+ operator: string;
+ /** all events */
+ events?: Array;
+ dispatched_at?: string;
+ approved_by?: string;
+ created_at?: string;
+ updated_at?: string;
+}
+
+export interface BatchTaskEvent {
+ name: string;
+ time: string;
+ message: string;
+}
+
+/** a batch ticket */
+export interface BatchTicket {
+ /** status of child tickets */
+ status?: Record;
+ tickets?: Array;
+ count?: number;
+}
+
+export interface BatchUpdateTicketStepActionRequest {
+ /** retry/run/cancel */
+ action?: string;
+ /** ticket id */
+ ticket_id: string;
+ /** service id */
+ service_id: string;
+ /** steps */
+ step_ids?: Array;
+}
+
+export interface BucketMeta {
+ id?: string;
+ name?: string;
+}
+
+export interface BuildBizData {
+ request_id?: string;
+ created_by?: string;
+ created_user_jwt?: string;
+ service_id?: string;
+ region?: string;
+ target_revision_id?: string;
+ rebuild?: boolean;
+ function_id?: string;
+ created_user_type?: string;
+ build_log_link?: string;
+}
+
+export interface BuildDescription {
+ build_id?: string;
+ build_info?: string;
+ build_log_link?: string;
+ status?: string;
+ built_object_size?: string;
+}
+
+export interface BuildLatestRevisionRequest {
+ /** cluster name */
+ cluster: string;
+ /** region */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface BuildLatestRevisionResponse {
+ code?: number;
+ data?: Revision;
+ error?: string;
+}
+
+export interface BuildServiceRevisionRequest {
+ /** cluster name */
+ cluster: string;
+ /** region */
+ region: string;
+ /** Number of revision */
+ revision_number: string;
+ /** ID of service */
+ service_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface BuildServiceRevisionResponse {
+ code?: number;
+ data?: Revision;
+ error?: string;
+}
+
+export interface BurstProtectorConfig {
+ instance_quota: number;
+ period: number;
+ redirect_service?: string;
+ redirect_cluster?: string;
+ redirect_idc?: string;
+ stage: string;
+ ratio: number;
+}
+
+export interface BurstProtectorWithMetas {
+ method: string;
+ caller_cluster: string;
+ callee_cluster: string;
+ instance_quota: number;
+ period: number;
+ redirect_service?: string;
+ redirect_cluster?: string;
+ redirect_idc?: string;
+ ratio: number;
+}
+
+export interface CancelOptions {
+ type?: number;
+}
+
+export interface CheckImagesVersionRequest {
+ key?: string;
+ scm_version?: string;
+}
+
+export interface CheckImagesVersionResponse {
+ status?: string;
+ message?: string;
+ data?: scmVersion;
+}
+
+export interface CheckUserIsAdministratorRequest {
+ user: string;
+}
+
+export interface CheckUserIsAdministratorResponse {
+ code?: number;
+ data?: boolean;
+ error?: string;
+}
+
+export interface ClusterCPUScaleSettings {
+ cluster_name?: string;
+ cpu_scale_settings?: FuncCPUScaleSettings;
+ zone_scale_settings?: Record;
+}
+
+export interface ClusterInfo {
+ region?: string;
+ cluster?: string;
+ function_id?: string;
+}
+
+export interface ClusterMQConsumerMeta {
+ mq_type: string;
+ mq_region: string;
+ topic: string;
+ mq_cluster: string;
+ consumer_group: string;
+ kafka_options?: ClusterMQConsumerMetaKafkaOptions;
+ rmq_options?: ClusterMQConsumerMetaRMQOptions;
+ mq_topic_link?: string;
+ mq_consumer_link?: string;
+ multi_env_version: string;
+}
+
+export interface ClusterMQConsumerMetaKafkaOptions {
+ orderly?: boolean;
+}
+
+export interface ClusterMQConsumerMetaRMQOptions {
+ orderly?: boolean;
+ sub_expr?: string;
+}
+
+export interface ClusterResourceUsageRate {
+ cpu?: number;
+ memory?: number;
+}
+
+/** complete info of cluster */
+export interface ClusterResponseData {
+ id: string;
+ service_id?: string;
+ psm?: string;
+ cluster: string;
+ region: string;
+ function_id: string;
+ cell?: string;
+ code_revision_number?: string;
+ code_revision_id?: string;
+ revision_number?: number;
+ revision_id?: string;
+ replica_limit?: Record;
+ resource_limit?: ResourceLimitWithAlias;
+ format_envs?: Array;
+ is_this_zone_disabled?: Record;
+ zone_throttle_log_bytes_per_sec?: Record;
+ gdpr_enable?: boolean;
+ auth_enable?: boolean;
+ zti_enable?: boolean;
+ cors_enable?: boolean;
+ cold_start_disabled?: boolean;
+ async_mode?: boolean;
+ online_mode?: boolean;
+ exclusive_mode?: boolean;
+ trace_enable?: boolean;
+ is_ipv6_only?: boolean;
+ reserved_dp_enabled?: boolean;
+ routing_strategy?: string;
+ http_trigger_disable?: boolean;
+ aliases?: Record;
+ env_name: string;
+ global_kv_namespace_i_ds?: Array;
+ latency_sec?: number;
+ initializer_sec?: number;
+ max_concurrency?: number;
+ scale_enabled?: boolean;
+ scale_threshold?: number;
+ scale_type?: number;
+ status?: string;
+ memory_mb?: number;
+ pod_type?: string;
+ async_result_emit_event_bridge?: boolean;
+ enable_runtime_file_log?: boolean;
+ enable_runtime_console_log?: boolean;
+ enable_runtime_stream_log?: boolean;
+ enable_runtime_es_log?: boolean;
+ enable_runtime_json_log?: boolean;
+ enable_system_stream_log?: boolean;
+ enable_system_es_log?: boolean;
+ runtime_stream_log_bytes_per_sec?: number;
+ system_stream_log_bytes_per_sec?: number;
+ throttle_log_bytes_per_sec?: number;
+ throttle_stdout_log_bytes_per_sec?: number;
+ throttle_stderr_log_bytes_per_sec?: number;
+ enable_scale_strategy?: boolean;
+ enable_colocate_scheduling?: boolean;
+ bytefaas_error_response_disabled?: boolean;
+ bytefaas_response_header_disabled?: boolean;
+ gateway_route_enable?: boolean;
+ container_runtime?: string;
+ cold_start_sec?: number;
+ enable_scale_optimise?: boolean;
+ created_at: string;
+ updated_at: string;
+ runtime: string;
+ handler: string;
+ initializer: string;
+ ms_unit_id?: Int64;
+ ms_alarm_ids?: Array;
+ adaptive_concurrency_mode?: string;
+ icm_region?: string;
+ network_mode?: string;
+ dynamic_load_balancing_data_report_enabled?: boolean;
+ dynamic_load_balancing_weight_enabled?: boolean;
+ dynamic_load_balancing_enabled_vdcs?: Array;
+ dynamic_load_balance_type?: string;
+ is_bytepaas_elastic_cluster?: boolean;
+ disable_service_discovery?: boolean;
+ deployment_inactive?: boolean;
+ is_this_zone_deployment_inactive?: Record;
+ instances_num?: Int64;
+ triggers?: AllTriggers;
+ log_link?: string;
+ stream_log_link?: string;
+ argos_link?: string;
+ grafana_link?: string;
+ metrics_links?: Array;
+ resource_usage_rate?: ClusterResourceUsageRate;
+ zone_reserved_frozen_replicas?: Record;
+ resource_guarantee?: boolean;
+ mq_trigger_limit?: number;
+ /** overload_protect_enabled */
+ overload_protect_enabled?: boolean;
+ mq_consumer_meta?: Array;
+ enable_consul_ipv6_register?: boolean;
+ enable_sys_mount?: boolean;
+ disable_mount_jwt_bundles?: boolean;
+ termination_grace_period_seconds?: number;
+ is_mq_app_cluster?: boolean;
+ volc_ext?: ClusterVolcExt;
+ enable_consul_register?: boolean;
+ host_uniq?: HostUniq;
+ soft_deleted?: boolean;
+ is_cronjob_cluster?: boolean;
+ active_zones?: Array;
+ volume_mounts?: Array;
+ async_mode_max_retry?: number;
+}
+
+export interface ClusterVolcExt {
+ account_id: string;
+}
+
+export interface CodeRevision {
+ created_at?: string;
+ created_by?: string;
+ dependency?: Array;
+ /** deploy method. 部署方式 */
+ deploy_method?: string;
+ description?: string;
+ disable_build_install?: boolean;
+ function_id?: string;
+ handler?: string;
+ id?: string;
+ initializer?: string;
+ lazyload?: boolean;
+ number?: string;
+ protocol?: string;
+ run_cmd?: string;
+ runtime?: string;
+ runtime_container_port?: number;
+ runtime_debug_container_port?: number;
+ service_id?: string;
+ /** source of code revision. 代码版本 URI */
+ source?: string;
+ /** source type of code revision. 代码版本类型 */
+ source_type?: string;
+ plugin_function_detail?: PluginFunctionDetail;
+ build_desc_map?: Record;
+ open_image_lazyload?: boolean;
+ runtime_other_container_ports?: Array;
+}
+
+export interface ConcurrencyScaleSettings {
+ mem_scale_in_threshold?: number;
+ mem_scale_out_threshold?: number;
+ mem_scale_target?: number;
+}
+
+export interface ConfirmBizData {
+ confirmed_by?: string;
+ confirmed_by_usertype?: string;
+ comfirm_at?: string;
+}
+
+export interface ConsulTriggerResponseData {
+ name?: string;
+ description?: string;
+ id?: string;
+ function_id?: string;
+ region?: string;
+ psm?: string;
+ runtime?: string;
+ protocol?: string;
+ enabled?: boolean;
+ strategy?: string;
+ created_at?: string;
+ updated_at?: string;
+ consul_cluster?: string;
+ is_deleted?: boolean;
+ deleted_at?: string;
+ deleted_by?: string;
+ status?: string;
+ meta_synced_times?: number;
+ meta_synced?: boolean;
+ meta_synced_at?: string;
+ _id?: string;
+}
+
+export interface ConsumeMigrateAutoLimit {
+ qps_limit?: number;
+ expire_at?: string;
+}
+
+export interface ContainerInfo {
+ containerID?: string;
+ image?: string;
+ env?: Record;
+}
+
+export interface CopyTriggerSource {
+ /** timer/mqevent */
+ trigger_type: string;
+ trigger_id: string;
+ /** default is false */
+ enable?: boolean;
+}
+
+export interface CopyTriggersRequest {
+ target_service_id: string;
+ target_region: string;
+ target_cluster: string;
+ source_service_id: string;
+ source_region: string;
+ source_cluster: string;
+ source_triggers: Array;
+}
+
+export interface CpuScaleSettings {
+ cpu_scale_in_threshold?: number;
+ cpu_scale_out_threshold?: number;
+ cpu_scale_target?: number;
+}
+
+export interface CreateClusterRequest {
+ /** async mode. 异步模式 */
+ async_mode?: boolean;
+ /** auth switch. 鉴权开关 */
+ auth_enable?: boolean;
+ /** cluster name, starts with faas-. 集群名 */
+ cluster: string;
+ /** ID of code revision. 部署代码版本 ID */
+ code_revision_id?: string;
+ /** number of code revision. 部署代码版本号 */
+ code_revision_number?: string;
+ /** cold start switch. 冷启动开关 */
+ cold_start_disabled?: boolean;
+ /** CORS switch. CORS 开关 */
+ cors_enable?: boolean;
+ enable_colocate_scheduling?: boolean;
+ enable_scale_strategy?: boolean;
+ /** exclusive mode. 独占模式 */
+ exclusive_mode?: boolean;
+ format_envs?: Array;
+ gateway_route_enable?: boolean;
+ /** GDPR switch. GDPR 鉴权开关 */
+ gdpr_enable?: boolean;
+ global_kv_namespace_ids?: Array;
+ http_trigger_disable?: boolean;
+ initializer_sec?: number;
+ is_ipv6_only?: boolean;
+ /** disable zones in a region */
+ is_this_zone_disabled?: Record;
+ latency_sec?: number;
+ max_concurrency?: number;
+ /** network mode, Optional values: empty string,bridge */
+ network_mode?: string;
+ /** region name */
+ region: string;
+ /** function reserved mode switch. 函数预留模式开关 */
+ reserved_dp_enabled?: boolean;
+ revision_id?: string;
+ revision_number?: number;
+ /** function routing strategy. 函数路由调度策略 */
+ routing_strategy?: string;
+ scale_enabled?: boolean;
+ scale_threshold?: number;
+ scale_type?: number;
+ /** ID of service */
+ service_id: string;
+ trace_enable?: boolean;
+ /** zone throttle log bytes */
+ zone_throttle_log_bytes_per_sec?: Record;
+ /** ZTI switch. ZTI 鉴权开关 */
+ zti_enable?: boolean;
+ online_mode?: boolean;
+ enable_runtime_file_log?: boolean;
+ enable_runtime_console_log?: boolean;
+ enable_runtime_stream_log?: boolean;
+ enable_runtime_es_log?: boolean;
+ enable_runtime_json_log?: boolean;
+ enable_system_stream_log?: boolean;
+ enable_system_es_log?: boolean;
+ runtime_stream_log_bytes_per_sec?: number;
+ system_stream_log_bytes_per_sec?: number;
+ resource_limit?: ResourceLimit;
+ pod_type?: string;
+ enable_reserve_frozen_instance?: boolean;
+ cluster_run_cmd?: string;
+ disable_service_discovery?: boolean;
+ async_result_emit_event_bridge?: boolean;
+ resource_guarantee?: boolean;
+ mq_trigger_limit?: number;
+ cell?: string;
+ lazyload?: boolean;
+ image_lazyload?: boolean;
+ initializer?: string;
+ handler?: string;
+ run_cmd?: string;
+ throttle_log_enabled?: boolean;
+ adaptive_concurrency_mode?: string;
+ env_name?: string;
+ container_runtime?: string;
+ protocol?: string;
+ /** overload_protect_enabled */
+ overload_protect_enabled?: boolean;
+ mq_consumer_meta?: Array;
+ enable_consul_ipv6_register?: boolean;
+ enable_sys_mount?: boolean;
+ disable_mount_jwt_bundles?: boolean;
+ termination_grace_period_seconds?: number;
+ enable_consul_register?: boolean;
+ 'X-Jwt-Token'?: string;
+ host_uniq?: HostUniq;
+}
+
+export interface CreateClusterResponse {
+ code?: number;
+ data?: ClusterResponseData;
+ error?: string;
+}
+
+export interface CreateCodeRevisionRequest {
+ /** code dependency */
+ dependency?: Array;
+ /** deploy method. 部署方式 */
+ deploy_method: string;
+ description?: string;
+ disable_build_install?: boolean;
+ handler?: string;
+ initializer?: string;
+ lazyload?: boolean;
+ /** code revision number, server will generate when it is empty. 版本号 */
+ number?: string;
+ protocol?: string;
+ run_cmd?: string;
+ runtime: string;
+ runtime_container_port?: number;
+ runtime_debug_container_port?: number;
+ /** ID of service */
+ service_id: string;
+ /** source of code revision. 代码版本 URI */
+ source: string;
+ /** source type of code revision. 代码版本类型 */
+ source_type: string;
+ open_image_lazyload?: boolean;
+ runtime_other_container_ports?: Array;
+}
+
+export interface CreateCodeRevisionResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface CreateConsulTriggerRequest {
+ /** cluster of service */
+ cluster: string;
+ description?: string;
+ enabled?: boolean;
+ name?: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface CreateConsulTriggerResponse {
+ code?: number;
+ data?: ConsulTriggerResponseData;
+ error?: string;
+}
+
+export interface CreateDiagnosisRequest {
+ /** cluster name */
+ cluster: string;
+ diagnosis_id?: string;
+ end_at?: number;
+ item_id?: string;
+ item_type?: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ set_time_range?: boolean;
+ start_at?: number;
+}
+
+export interface CreateDiagnosisResponse {
+ code?: number;
+ data?: Diagnose;
+ error?: string;
+}
+
+export interface CreateFilterPluginsRequest {
+ /** cluster name */
+ cluster: string;
+ name?: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** zip file binary */
+ zip_file?: CreateFilterPluginsRequestZipFileMessage2;
+ zip_file_size?: number;
+}
+
+export interface CreateFilterPluginsRequestZipFileMessage2 {}
+
+export interface CreateFilterPluginsResponse {
+ code?: number;
+ data?: FilterPlugin;
+ error?: string;
+}
+
+export interface CreateHttpTriggerRequest {
+ bytefaas_error_response_disabled?: boolean;
+ bytefaas_response_header_disabled?: boolean;
+ /** cluster of service */
+ cluster: string;
+ description?: string;
+ enabled?: boolean;
+ name?: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** url prefix */
+ url_prefix?: string;
+ /** type of this version. Allow to be `revision` or `alias` */
+ version_type?: string;
+ /** value of version type. When `version_type` is `revision`, it should be an ID of revision. */
+ version_value?: string;
+ runtime?: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface CreateHttpTriggerResponse {
+ code?: number;
+ data?: HttpTriggerResponse;
+ error?: string;
+}
+
+export interface CreateMqTriggerByTypeRequest {
+ batch_size?: number;
+ batch_flush_duration_milliseconds?: number;
+ description?: string;
+ enabled?: boolean;
+ envs?: Record;
+ function_id?: string;
+ cell?: string;
+ id?: string;
+ image_version?: string;
+ sdk_version?: string;
+ image_alias?: string;
+ ms_alarm_id?: Array;
+ mq_type?: string;
+ max_retries_from_function_status?: number;
+ msg_chan_length?: number;
+ name?: string;
+ need_auto_sharding?: boolean;
+ num_of_mq_pod_to_one_func_pod?: number;
+ options?: TriggerOptions;
+ qps_limit?: number;
+ region?: string;
+ mq_region?: string;
+ runtime_agent_mode?: boolean;
+ dynamic_worker_thread?: boolean;
+ replica_max_limit?: Record;
+ replica_min_limit?: Record;
+ replicas?: number;
+ resource?: Resource;
+ scale_enabled?: boolean;
+ vertical_scale_enabled?: boolean;
+ enable_static_membership?: boolean;
+ workers_per_pod?: number;
+ alarm_params?: AlarmParameters;
+ request_timeout?: number;
+ disable_infinite_retry_for_timeout?: boolean;
+ initial_offset_start_from?: string;
+ enable_mq_debug?: boolean;
+ mq_logger_limit_size?: number;
+ enable_backoff?: boolean;
+ disable_backoff?: boolean;
+ worker_v2_num_per_half_core?: number;
+ enable_concurrency_filter?: boolean;
+ enable_ipc_mode?: boolean;
+ enable_traffic_priority_scheduling?: boolean;
+ enable_pod_colocate_scheduling?: boolean;
+ enable_global_rate_limiter?: boolean;
+ enable_congestion_control?: boolean;
+ allow_bytesuite_debug?: boolean;
+ enable_dynamic_load_balance?: boolean;
+ disable_smooth_wrr?: boolean;
+ dynamic_load_balance_type?: string;
+ replica_force_meet_partition?: boolean;
+ scale_settings?: MQEventScaleSettings;
+ hot_reload?: boolean;
+ mq_msg_type?: string;
+ status?: string;
+ in_releasing?: boolean;
+ mirror_region_filter?: string;
+ enable_gctuner?: boolean;
+ gctuner_percent?: number;
+ retry_strategy?: string;
+ max_retry_time?: number;
+ qps_limit_time_ranges?: Array;
+ limit_disaster_scenario?: number;
+ enable_step_rate_limit?: boolean;
+ rate_limit_step_settings?: RateLimitStepSettings;
+ max_dwell_time_minute?: number;
+ qps_auto_limit?: ConsumeMigrateAutoLimit;
+ plugin_function_param?: PluginFunctionParam;
+ enable_plugin_function?: boolean;
+ enable_canary_update?: boolean;
+ traffic_config?: Record;
+ is_auth_info_updated?: boolean;
+ pod_type?: string;
+ package?: string;
+ enable_filter_congestion_control?: boolean;
+ enable_congestion_control_cache?: boolean;
+ caller?: string;
+ service_id: string;
+ cluster: string;
+ trigger_type: string;
+ /** jwt token */
+ 'X-Jwt-Token'?: string;
+}
+
+export interface CreateMqTriggerByTypeResponse {
+ code?: number;
+ data?: GlobalMQEventTriggerResponseData;
+ error?: string;
+}
+
+export interface CreateMQTriggerRequest {
+ alarm_params?: CreateMQTriggerRequestAlarmParamsMessage2;
+ allow_bytesuite_debug?: boolean;
+ batch_size?: number;
+ cell?: string;
+ /** cluster of service */
+ cluster: string;
+ deployment_inactive?: boolean;
+ description?: string;
+ disable_backoff?: boolean;
+ disable_smooth_wrr?: boolean;
+ dynamic_load_balance_type?: string;
+ dynamic_worker_thread?: boolean;
+ enable_backoff?: boolean;
+ enable_concurrency_filter?: boolean;
+ enable_congestion_control?: boolean;
+ enable_dynamic_load_balance?: boolean;
+ enable_global_rate_limiter?: boolean;
+ enable_ipc_mode?: boolean;
+ enable_mq_debug?: boolean;
+ enable_pod_colocate_scheduling?: boolean;
+ enable_static_membership?: boolean;
+ enable_traffic_priority_scheduling?: boolean;
+ enabled?: boolean;
+ envs?: Record;
+ function_id?: string;
+ hot_reload?: boolean;
+ id?: string;
+ image_alias?: string;
+ image_version?: string;
+ initial_offset_start_from?: string;
+ is_auth_info_updated?: boolean;
+ max_retries_from_function_status?: number;
+ mq_logger_limit_size?: number;
+ mq_msg_type?: string;
+ mq_region?: string;
+ mq_type?: string;
+ ms_alarm_id?: Array;
+ msg_chan_length?: number;
+ name?: string;
+ need_auto_sharding?: boolean;
+ num_of_mq_pod_to_one_func_pod?: number;
+ options?: TriggerOptions;
+ plugin_function_param?: PluginFunctionParam;
+ qps_limit?: number;
+ region: string;
+ replica_max_limit?: number;
+ replica_min_limit?: number;
+ replicas?: number;
+ request_timeout?: number;
+ resource?: ResourceLimit;
+ runtime_agent_mode?: boolean;
+ scale_enabled?: boolean;
+ scale_settings?: MQEventScaleSettings;
+ sdk_version?: string;
+ /** ID of service */
+ service_id: string;
+ vertical_scale_enabled?: boolean;
+ worker_v2_num_per_half_core?: number;
+ workers_per_pod?: number;
+ enable_plugin_function?: boolean;
+ disable_infinite_retry_for_timeout?: boolean;
+ mirror_region_filter?: string;
+ enable_gctuner?: boolean;
+ gctuner_percent?: number;
+ retry_strategy?: string;
+ max_retry_time?: number;
+ qps_limit_time_ranges?: Array;
+ rate_limit_step_settings?: RateLimitStepSettings;
+ enable_step_rate_limit?: boolean;
+ batch_flush_duration_milliseconds?: number;
+ replica_force_meet_partition?: boolean;
+ limit_disaster_scenario?: number;
+ max_dwell_time_minute?: number;
+ enable_canary_update?: boolean;
+ traffic_config?: Record;
+ pod_type?: string;
+ package?: string;
+ qps_auto_limit?: ConsumeMigrateAutoLimit;
+ enable_filter_congestion_control?: boolean;
+ enable_congestion_control_cache?: boolean;
+}
+
+export interface CreateMQTriggerRequestAlarmParamsMessage2 {
+ lag_alarm_threshold?: number;
+}
+
+export interface CreateMQTriggerResponse {
+ code?: number;
+ data?: GlobalMQEventTriggerResponseData;
+ error?: string;
+}
+
+export interface CreatePluginFunctionReleaseRequest {
+ /** cluster name */
+ cluster: string;
+ /** id */
+ id: string;
+ mqevent_ids?: Array;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface CreatePluginFunctionReleaseResponse {
+ code?: number;
+ data?: ApiResponseDataMessage2;
+ error?: string;
+}
+
+export interface CreatePluginFunctionRevisionRequest {
+ /** cluster name */
+ cluster: string;
+ description?: string;
+ /** the environments of the plugin */
+ environments?: Record;
+ /** the timeout time of the plugin init */
+ init_timeout?: number;
+ /** the name of the plugin used */
+ plugin_name?: string;
+ /** the version of the plugin used */
+ plugin_version?: string;
+ /** region name */
+ region: string;
+ /** the timeout time of the plugin request */
+ request_timeout?: number;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface CreatePluginFunctionRevisionResponse {
+ code?: number;
+ data?: PluginFunctionRevision;
+ error?: string;
+}
+
+export interface CreateReleaseRequest {
+ /** must be `default` for now */
+ alias_name?: string;
+ /** cluster name */
+ cluster: string;
+ /** region name */
+ region: string;
+ /** the ratio of traffic of each rolling from old revision to new one */
+ rolling_step?: number;
+ /** ID of service */
+ service_id: string;
+ /** container one/two revision, the key is revision id, value is the traffic ratio, [A: 20, B: 80] for example */
+ target_traffic_config?: Record;
+ /** zone level traffic setting */
+ zone_traffic_config?: Record;
+ /** jwt token */
+ 'X-Jwt-Token'?: string;
+ /** 0 - 先杀后起, 1 - 先起后杀 */
+ rolling_strategy?: number;
+ /** 滚动间隔,单位(s) */
+ rolling_interval?: number;
+ /** 滚动完成判断条件 1:最少百分之 N 的容器创建;数值范围(1-100) */
+ min_created_percentage?: number;
+ /** 滚动完成判断条件 2:最少百分之 N 的容器启动完成;数值范围(1-100) */
+ min_ready_percentage?: number;
+}
+
+export interface CreateReleaseResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface CreateRevisionRequest {
+ /** cluster name */
+ cluster: string;
+ /** code revision number, server will generate when it is empty. 版本号 */
+ code_revision_number?: string;
+ /** code dependency */
+ dependency?: Array;
+ /** deploy method. 部署方式 */
+ deploy_method?: string;
+ description?: string;
+ disable_build_install?: boolean;
+ envs?: Record;
+ format_envs?: Record>;
+ handler?: string;
+ initializer?: string;
+ lazyload?: boolean;
+ name?: string;
+ /** network mode, Optional values: empty string,bridge */
+ network_mode?: string;
+ /** region */
+ region: string;
+ run_cmd?: string;
+ runtime?: string;
+ runtime_container_port?: number;
+ runtime_debug_container_port?: number;
+ /** ID of function to create revision */
+ service_id: string;
+ /** source of code revision. 代码版本 URI */
+ source?: string;
+ /** source type of code revision. 代码版本类型 */
+ source_type?: string;
+ open_image_lazyload?: boolean;
+ runtime_other_container_ports?: Array;
+ /** jwt token */
+ 'X-Jwt-Token'?: string;
+ host_uniq?: HostUniq;
+}
+
+export interface CreateRevisionResponse {
+ code?: number;
+ data?: Revision;
+ error?: string;
+}
+
+export interface CreateScaleStrategyRequest {
+ /** cluster of service */
+ cluster: string;
+ /** when the strategy will be effective */
+ effective_time?: string;
+ /** strategy is enabled or not */
+ enabled?: boolean;
+ /** when the strategy will be expired */
+ expired_time?: string;
+ /** function id, no need for post/patch method, it is a path param */
+ function_id?: string;
+ inner_strategy?: InnerStrategy;
+ /** function id or mqevent id */
+ item_id?: string;
+ /** function or mqevent */
+ item_type?: string;
+ /** region, no need for post/patch method, it is a path param */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** strategy id, no need for post/patch method, it is a path param */
+ strategy_id?: string;
+ /** strategy name */
+ strategy_name?: string;
+ /** only cron for now */
+ strategy_type?: string;
+ /** ReservedInstance or FrozenReservedInstance default is ReservedInstance */
+ instance_type?: string;
+}
+
+export interface CreateScaleStrategyResponse {
+ code?: number;
+ data?: ScaleStrategy;
+ error?: string;
+}
+
+export interface CreateServiceRequest {
+ /** admins. 管理员 */
+ admins?: string;
+ /** restricted access, only open to administrators */
+ async_mode?: boolean;
+ /** authorizers. 授权人 */
+ authorizers?: string;
+ /** base image. 基础镜像 */
+ base_image?: string;
+ /** category of service. 服务类型 */
+ category: string;
+ /** use struct type to reference only. Value is JSON string. */
+ dependency?: Array;
+ /** deploy method. 部署方式 */
+ deploy_method?: string;
+ /** description of function. 服务描述, 原来的函数描述 */
+ description: string;
+ /** environment name. 多环境标识 */
+ env_name?: string;
+ /** name of function. 服务名称, 原来的函数名称 */
+ name: string;
+ need_approve?: boolean;
+ /** origin of function, from bytefaas ori light(like qingfuwu), 服务的来源,除了 faas 也有可能是来自轻服务等 */
+ origin?: string;
+ /** the owner of service. 服务的 Owner */
+ owner: string;
+ /** protocol of service, such as TTHeader etc. */
+ protocol: string;
+ /** psm of service. 服务唯一标识 */
+ psm: string;
+ /** parent id of psm, only used in create, can not be updated through faas api. 服务树父节点 */
+ psm_parent_id: number;
+ /** language in runtime. 运行时语言. Optional values: golang/v1,node10/v1,python3/v1,rust1/v1,java8/v1,wasm/v1,v8/v1,native/v1,native-java8/v1 */
+ runtime?: string;
+ /** service level, could be P0 ~ P3. 服务等级 */
+ service_level: string;
+ /** service purpose. 服务用途 */
+ service_purpose: string;
+ /** source of code. 源码 */
+ source?: string;
+ /** type of source. 源码类型 */
+ source_type?: string;
+ /** subscribers. 订阅人 */
+ subscribers?: Array;
+ /** template name of function code. 基于代码模板创建 */
+ template_name?: string;
+ online_mode?: boolean;
+ /** scm pathinfo */
+ plugin_scm_path?: string;
+ /** size of code file, unit MB, need admin permission. 代码包大小, 单位 MB, 需要管理员权限 */
+ code_file_size_mb?: number;
+ /** disable alarm in env function, default to false. 泳道函数关闭报警, 默认为 false */
+ disable_ppe_alarm?: boolean;
+ language?: string;
+ run_cmd?: string;
+ image_lazy_load?: boolean;
+ plugin_name?: string;
+ runtime_container_port?: number;
+ runtime_debug_container_port?: number;
+ health_check_path?: string;
+ health_check_failure_threshold?: number;
+ health_check_period?: number;
+ runtime_other_container_ports?: Array;
+ /** overload_protect_enabled */
+ overload_protect_enabled?: boolean;
+ net_queue?: string;
+ ms_service_meta_params?: MSServiceMetaParams;
+ mount_info?: Array;
+ disable_build_install?: boolean;
+ lazyload?: boolean;
+ /** jwt token */
+ 'X-Jwt-Token'?: string;
+}
+
+export interface CreateServiceResponse {
+ code?: number;
+ data?: ServiceResponse;
+ error?: string;
+}
+
+export interface CreateTicketRequest {
+ /** approved user. 审核人 */
+ approved_by?: string;
+ /** type of approved user. 审核用户类型 */
+ approved_by_usertype?: string;
+ /** release cluster, use default cluster when without it. 发布的集群, 不填则为默认集群 */
+ cluster?: string;
+ /** ID of used code revision, lower priority than use_latest_code_revision. 代码版本 ID, 用指定代码版本进行发布 */
+ code_revision_id?: string;
+ /** description of this release. 发布描述 */
+ description?: string;
+ format_target_traffic_config: Array;
+ format_zone_traffic_config?: Array;
+ /** release region. 发布的 region */
+ region: string;
+ /** release type. 发布类型 */
+ release_type?: string;
+ /** replica limit. 实例数,只用作第一次发布时需要。 */
+ replica_limit?: Record;
+ /** ID of revision, only works when rollback is true, lower priority than code_revision_id. 版本 ID, 回滚至某一个 revision */
+ revision_id?: string;
+ /** create ticket of rollback action. 回滚 */
+ rollback?: boolean;
+ /** rolling step. 滚动比例 */
+ rolling_step?: number;
+ /** ID of service */
+ service_id: string;
+ /** use latest code revision. 使用最新的代码版本进行发布 */
+ use_latest_code_revision?: boolean;
+ /** grey mqevent config. 灰度触发器配置 */
+ grey_mqevent_config?: Array;
+ /** the code config. 发布的代码配置 */
+ code_source?: string;
+ /** the mqevent release type. 触发器发布类型配置 */
+ mqevent_release_type?: string;
+ /** whether use pipeline to drive this ticket execution */
+ is_pipeline_ticket?: boolean;
+ /** pipeline template type */
+ pipeline_template_type?: string;
+ /** 0 - 先杀后起, 1 - 先起后杀 */
+ rolling_strategy?: number;
+ /** 滚动间隔,单位(s) */
+ rolling_interval?: number;
+ /** 滚动完成判断条件 1:最少百分之 N 的容器创建;数值范围(1-100) */
+ min_created_percentage?: number;
+ /** 滚动完成判断条件 2:最少百分之 N 的容器启动完成;数值范围(1-100) */
+ min_ready_percentage?: number;
+}
+
+export interface CreateTicketRequestFormatTargetTrafficConfigMessage {
+ /** filled with revision ID, default to $LATEST */
+ revision_id?: string;
+ traffic_value?: number;
+}
+
+export interface CreateTicketRequestFormatZoneTrafficConfigMessage {
+ zone?: string;
+ zone_traffic_config?: Array;
+}
+
+export interface CreateTicketRequestFormatZoneTrafficConfigMessageZoneTrafficConfigMessage {
+ /** filled with code revision ID, default to $LATEST */
+ revision_id?: string;
+ traffic_value?: number;
+}
+
+export interface CreateTicketResponse {
+ code?: number;
+ data?: Ticket;
+ error?: string;
+}
+
+export interface CreateTimerTriggerRequest {
+ cell?: string;
+ /** cluster of service */
+ cluster: string;
+ concurrency_limit?: number;
+ created_at?: string;
+ cron?: string;
+ description?: string;
+ enabled?: boolean;
+ name?: string;
+ payload?: string;
+ /** region of service */
+ region: string;
+ retries?: number;
+ scheduled_at?: string;
+ /** ID of service */
+ service_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface CreateTimerTriggerResponse {
+ code?: number;
+ data?: TimerTrigger;
+ error?: string;
+}
+
+export interface CreateTriggerBizData {
+ /** timer or mqevent */
+ trigger_type: string;
+ created_by: string;
+ timer_trigger_request_data?: CreateTimerTriggerRequest;
+ mq_trigger_request_data?: CreateMQTriggerRequest;
+ trigger_id?: string;
+ region: string;
+ cluster: string;
+ service_id: string;
+ function_id: string;
+ bpm_orders: Array;
+ trigger_name: string;
+}
+
+export interface CreateTriggerDebugTplRequest {
+ service_id: string;
+ /** 模板类型 custom/official */
+ tpl_type?: string;
+ cloud_event?: Array;
+ name: string;
+ trigger_type: string;
+ /** 消息类型 cloudevent/native */
+ msg_type: string;
+ native_event?: Array;
+}
+
+export interface CreateTriggerDebugTplResponse {
+ code: number;
+ data: TriggerDebugTplItem;
+ error: string;
+}
+
+/** should set this object if the type is cron */
+export interface CronStrategy {
+ /** required if bpm_status is create_pending or update_pending */
+ bpm_id?: number;
+ /** could be create_pending, update_pending, in_effect, rejected or empty */
+ bpm_status?: string;
+ /** could be daily_interval, weekly_interval, monthly_interval */
+ cron_interval?: string;
+ /** which days should be effective if it is monthly_interval, 1 - 31 */
+ day_of_monthly?: Array;
+ /** which days should be effective if it is weekly_interval, 0 - 6 */
+ day_of_weekly?: Array;
+ /** how long the strategy will be effective */
+ duration_minutes?: number;
+ /** how many replicas should be keep in each zone */
+ min_zone_replicas?: Record;
+ start_time?: CronStrategyStartTimeMessage2;
+ update_config?: UpdateConfig;
+}
+
+export interface CronStrategyStartTimeMessage2 {
+ /** the hours to start */
+ hours?: number;
+ /** the minutes to start */
+ minutes?: number;
+}
+
+export interface CrossRegionMigrationMeta {
+ psm?: string;
+ migration_enabled?: boolean;
+ vefaas_clusters?: Array;
+}
+
+export interface CrossRegionVefaasCluster {
+ function_id?: string;
+ region?: string;
+ cluster_name?: string;
+}
+
+export interface DataMessage114 {
+ additional_data?: DataMessage114AdditionalDataMessage2;
+ data?: string;
+}
+
+export interface DataMessage114AdditionalDataMessage2 {
+ cpuUsage?: string;
+ executionDuration?: string;
+ memoryUsage?: string;
+ request?: string;
+ response?: string;
+}
+
+export interface DataMessage130 {
+ webshell_link?: string;
+}
+
+export interface DataMessage18 {}
+
+export interface DataMessage194 {
+ abase_binlog?: boolean;
+ consul?: boolean;
+ http?: boolean;
+ mqevents?: boolean;
+ timer?: boolean;
+ tos?: boolean;
+}
+
+export interface DataMessage199 {
+ webshell_link?: string;
+}
+
+export interface DataMessage2 {
+ /** Lark Group ID */
+ ID?: string;
+ /** Lark Group Name */
+ Name?: string;
+}
+
+export interface DataMessage20 {
+ format_regions_backend?: Array;
+}
+
+export interface DataMessage20FormatRegionsBackendMessage {
+ backend?: boolean;
+ frontend?: boolean;
+ region?: string;
+}
+
+export interface DataMessage22 {
+ env?: string;
+ function_id?: string;
+ psm?: string;
+ region?: string;
+ resource?: DataMessage22ResourceMessage2;
+}
+
+export interface DataMessage22ResourceMessage2 {
+ limit?: DataMessage22ResourceMessage2LimitMessage2;
+ quota?: DataMessage22ResourceMessage2QuotaMessage2;
+ usage?: DataMessage22ResourceMessage2UsageMessage2;
+}
+
+export interface DataMessage22ResourceMessage2LimitMessage2 {
+ cpu?: DataMessage22ResourceMessage2LimitMessage2CpuMessage2;
+ mem?: DataMessage22ResourceMessage2LimitMessage2MemMessage2;
+}
+
+export interface DataMessage22ResourceMessage2LimitMessage2CpuMessage2 {
+ avg?: number;
+ max?: number;
+ min?: number;
+}
+
+export interface DataMessage22ResourceMessage2LimitMessage2MemMessage2 {
+ avg?: number;
+ max?: number;
+ min?: number;
+}
+
+export interface DataMessage22ResourceMessage2QuotaMessage2 {
+ cpu?: DataMessage22ResourceMessage2QuotaMessage2CpuMessage2;
+ mem?: DataMessage22ResourceMessage2QuotaMessage2MemMessage2;
+}
+
+export interface DataMessage22ResourceMessage2QuotaMessage2CpuMessage2 {
+ avg?: number;
+ max?: number;
+ min?: number;
+}
+
+export interface DataMessage22ResourceMessage2QuotaMessage2MemMessage2 {
+ avg?: number;
+ max?: number;
+ min?: number;
+}
+
+export interface DataMessage22ResourceMessage2UsageMessage2 {
+ cpu?: DataMessage22ResourceMessage2UsageMessage2CpuMessage2;
+ mem?: DataMessage22ResourceMessage2UsageMessage2MemMessage2;
+}
+
+export interface DataMessage22ResourceMessage2UsageMessage2CpuMessage2 {
+ avg?: number;
+ max?: number;
+ min?: number;
+}
+
+export interface DataMessage22ResourceMessage2UsageMessage2MemMessage2 {
+ avg?: number;
+ max?: number;
+ min?: number;
+}
+
+export interface DataMessage24 {
+ reserved_replica_threshold?: number;
+ resource_statistics?: DataMessage24ResourceStatisticsMessage2;
+}
+
+export interface DataMessage24ResourceStatisticsMessage2 {
+ cpu?: DataMessage24ResourceStatisticsMessage2CpuMessage2;
+ mem?: DataMessage24ResourceStatisticsMessage2MemMessage2;
+}
+
+export interface DataMessage24ResourceStatisticsMessage2CpuMessage2 {
+ avg?: number;
+ max?: number;
+ min?: number;
+}
+
+export interface DataMessage24ResourceStatisticsMessage2MemMessage2 {
+ avg?: number;
+ max?: number;
+ min?: number;
+}
+
+export interface DataMessage5 {
+ /** MQ trigger announcement template content */
+ content?: string;
+}
+
+export interface DataMessage55 {
+ region: string;
+}
+
+export interface DataMessage71 {
+ created_at?: string;
+ event_type?: string;
+ execute_end_time?: string;
+ execute_start_time?: string;
+ execution_duration_str?: string;
+ finished_time?: string;
+ function_id?: string;
+ kibana_link?: string;
+ request_id?: string;
+ response_meta?: AsyncRequestRecordResponseResponseMetaMessage2;
+ revision_id?: string;
+ task_status?: string;
+ updated_at?: string;
+ user_invoke_time?: string;
+ pod_name?: string;
+}
+
+export interface DataMessage85 {
+ status?: string;
+}
+
+export interface DebugFunctionRequest {
+ batch?: boolean;
+ /** cluster name */
+ cluster: string;
+ data?: string;
+ extensions?: Record;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ type?: string;
+ verbose?: boolean;
+ event_name?: string;
+}
+
+export interface DebugFunctionResponse {
+ code?: number;
+ data?: DataMessage114;
+ error?: string;
+}
+
+export interface DeleteBurstProtectorRequest {
+ /** Delete all burst protectors */
+ is_all?: boolean;
+ /** List of PSMs to delete */
+ psms?: string;
+ /** Single PSM to delete */
+ psm?: string;
+ /** Cluster to delete */
+ cluster?: string;
+}
+
+export interface DeleteBurstProtectorResponse {
+ /** Response code */
+ code: number;
+ /** Error message, if any */
+ error?: string;
+ /** Success or failure summary */
+ message?: string;
+}
+
+export interface DeleteClusterRequest {
+ /** cluster name */
+ cluster: string;
+ /** region name */
+ region: string;
+ /** service ID */
+ service_id: string;
+ /** soft delete cluster if set "true" */
+ soft?: boolean;
+ /** reason for soft deletion */
+ reason?: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface DeleteClusterResponse {
+ code?: number;
+ data?: ClusterResponseData;
+ error?: string;
+}
+
+export interface DeleteConsulTriggerRequest {
+ /** cluster of service */
+ cluster: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** trigger_id of function */
+ trigger_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface DeleteConsulTriggerResponse {
+ code?: number;
+ data?: EmptyObject;
+ error?: string;
+}
+
+export interface DeleteDiagnosisByIDRequest {
+ /** cluster name */
+ cluster: string;
+ /** diagnosis id */
+ diagnosis_id: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface DeleteDiagnosisByIDResponse {
+ code?: number;
+ data?: Diagnose;
+ error?: string;
+}
+
+export interface DeleteFilterPluginsRequest {
+ /** cluster name */
+ cluster: string;
+ /** id */
+ filter_plugin_id: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface DeleteFilterPluginsResponse {
+ code?: number;
+ data?: FilterPlugin;
+ error?: string;
+}
+
+export interface DeleteFunctionRevisionRequest {
+ /** cluster */
+ cluster: string;
+ /** region */
+ region: string;
+ /** Number of revision */
+ revision_number: number;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface DeleteFunctionRevisionResponse {
+ code?: number;
+ data?: Revision;
+ error?: string;
+}
+
+export interface DeleteHttpTriggerRequest {
+ /** cluster of service */
+ cluster: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** ID of trigger */
+ trigger_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface DeleteHttpTriggerResponse {
+ code?: number;
+ data?: HttpTriggerResponse;
+ error?: string;
+}
+
+export interface DeleteMqTriggerByTypeRequest {
+ /** cluster of service */
+ cluster: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** trigger id */
+ trigger_id: string;
+ /** trigger type */
+ trigger_type: string;
+ caller?: string;
+ consumer_group?: string;
+ eventbus_name?: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface DeleteMqTriggerByTypeResponse {
+ code?: number;
+ data?: EmptyObject;
+ error?: string;
+}
+
+export interface DeletePluginFunctionRevisionRequest {
+ /** cluster name */
+ cluster: string;
+ /** id */
+ id: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface DeletePluginFunctionRevisionResponse {
+ code?: number;
+ data?: PluginFunctionRevision;
+ error?: string;
+}
+
+export interface DeleteScaleStrategyRequest {
+ /** cluster of service */
+ cluster: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** the strategy you want to delete */
+ strategy_id: string;
+}
+
+export interface DeleteScaleStrategyResponse {
+ code?: number;
+ data?: ScaleStrategy;
+ error?: string;
+}
+
+export interface DeleteServiceRequest {
+ /** id of service */
+ service_id: string;
+ /** soft delete service if set "true" */
+ soft?: boolean;
+ /** reason for soft deletion */
+ reason?: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface DeleteServiceResponse {
+ code?: number;
+ data?: ServiceResponse;
+ error?: string;
+}
+
+export interface DeleteTimerTriggerRequest {
+ /** cluster of service */
+ cluster: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** the timer trigger you want to get */
+ timer_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface DeleteTimerTriggerResponse {
+ code?: number;
+ data?: EmptyObject;
+ error?: string;
+}
+
+export interface DeleteTriggerDebugTplRequest {
+ service_id: string;
+ tpl_id: string;
+}
+
+export interface DeleteTriggerDebugTplResponse {
+ code: number;
+ data: boolean;
+ error: string;
+}
+
+export interface Dependency {
+ name?: string;
+ sub_path?: string;
+ type?: string;
+ version?: string;
+}
+
+export interface Diagnose {
+ created_at?: string;
+ diagnosis_id?: string;
+ diagnosis_items?: Array;
+ end_at?: number;
+ function_id?: string;
+ item_id?: string;
+ item_type?: string;
+ language?: string;
+ meta_synced?: boolean;
+ meta_synced_at?: string;
+ set_time_range?: boolean;
+ start_at?: number;
+ updated_at?: string;
+}
+
+export interface DiagnoseDiagnosisItemsMessage {
+ content?: string;
+ hint?: string;
+ result?: string;
+}
+
+export interface DownloadCodeRevisionPackageRequest {
+ revision_number: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface DownloadCodeRevisionPackageResponse {
+ code?: number;
+ data?: ApiResponseDataMessage2;
+ error?: string;
+}
+
+export interface DownloadFilterPluginsRequest {
+ /** cluster name */
+ cluster: string;
+ /** id */
+ filter_plugin_id: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface DownloadFilterPluginsResponse {
+ code?: number;
+ data?: string;
+ error?: string;
+}
+
+export interface DownloadRevisionCodeRequest {
+ /** cluster name */
+ cluster: string;
+ /** region */
+ region: string;
+ revision_number: number;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface DownloadRevisionCodeResponse {
+ code?: number;
+ data?: string;
+ error?: string;
+}
+
+export interface DownloadTemplateByNameRequest {
+ template_name: string;
+}
+
+export interface DownloadTemplateByNameResponse {}
+
+export interface DynamicOvercommitSettings {
+ disable_dynamic_overcommit?: boolean;
+ reserved_overcommit_ratio?: number;
+ elastic_overcommit_ratio?: number;
+}
+
+export interface Edge {
+ /** source node */
+ from?: number;
+ /** target node */
+ to?: number;
+}
+
+export interface EmergencyScaleRequest {
+ service_id?: string;
+ region?: string;
+ cluster?: string;
+ min_replicas?: Record;
+ scale_duration_minutes?: number;
+}
+
+export interface EmergencyScaleResponse {
+ code?: number;
+ data?: EmergencyScaleResult;
+ error?: string;
+}
+
+export interface EmergencyScaleResult {
+ function_id?: string;
+ cluster?: string;
+ region?: string;
+ min_replicas?: Record;
+ expect_keep_min_begin_at?: string;
+ expect_keep_min_end_at?: string;
+}
+
+export interface EmptyObject {}
+
+export interface ErrorHelp {
+ /** 是否需要展示启动日志用于排查问题 */
+ show_start_logs?: boolean;
+}
+
+export interface EsLog {
+ content?: string;
+ datetime?: string;
+ function_id?: string;
+ log_class?: string;
+ log_type?: string;
+ pod_ip?: string;
+ pod_name?: string;
+ revision_id?: string;
+}
+
+export interface EtcdSetting {
+ name: string;
+ value: string;
+ updated_by?: string;
+ updated_at?: string;
+}
+
+export interface EventBridgeTrigger {
+ project_uid: string;
+ rule_uid: string;
+ rule_name: string;
+ enabled: boolean;
+ event_bridge_link: string;
+ event_source: string;
+ event_types: Array;
+ created_at: string;
+ updated_at: string;
+}
+
+export interface EventBusOptions {
+ eventbus_name?: string;
+ dispatcher_cluster?: string;
+ consumer_group?: string;
+ consumer_num?: number;
+ retry_interval?: number;
+ orderly?: boolean;
+ sub_expr?: string;
+ cluster?: string;
+ type?: string;
+ topic?: string;
+ event_bus_topic_infos?: Array;
+}
+
+export interface EventBusTopicInfo {
+ region?: string;
+ cluster?: string;
+ type?: string;
+ topic?: string;
+}
+
+export interface EventBusTopicPreviewParams {
+ /** eventbus event name */
+ event: string;
+ /** 0-时间范围 1-offset 2-key */
+ search_type: number;
+ start_time?: Int64;
+ end_time?: Int64;
+ start_offset?: Int64;
+ end_offset?: Int64;
+ partition?: string;
+ msg_key?: string;
+ storage_descriptor?: Array;
+}
+
+export interface FaaSBaseImageDesc {
+ image_id?: string;
+ build_time_stamp?: string;
+ build_runtime?: string;
+ desc?: string;
+}
+
+export interface FaaSBaseImageInfo {
+ build_time_stamp: string;
+ image_id: string;
+ runtime: string;
+ /** repo name */
+ runtime_agent: ScmVersionInfo;
+ /** repo name */
+ runtime_agent_dp: ScmVersionInfo;
+}
+
+export interface FilterPlugin {
+ created_at?: string;
+ file_size_mb?: number;
+ function_id?: string;
+ id?: string;
+ name?: string;
+ source?: string;
+ source_type?: string;
+ updated_at?: string;
+ updated_user?: string;
+}
+
+export interface FormatEnvs {
+ env_key: string;
+ env_value: string;
+}
+
+export interface FormattedPreferCluster {
+ zone?: string;
+ prefer_cluster?: string;
+}
+
+export interface FormatTrafficConfig {
+ revision_id?: string;
+ traffic_value?: number;
+}
+
+export interface FormatZoneTrafficConfig {
+ zone?: string;
+ zone_traffic_config?: Array;
+}
+
+export interface FuncConcurrencyScaleSettings {
+ concurrency_scale_out_threshold?: number;
+ concurrency_scale_in_threshold?: number;
+ concurrency_scale_target?: number;
+ concurrency_continuous_down_dur_sec?: number;
+}
+
+export interface FuncCPUScaleSettings {
+ cpu_scale_out_threshold?: number;
+ cpu_scale_in_threshold?: number;
+ cpu_scale_target?: number;
+ cpu_scale_in_target?: number;
+}
+
+export interface FuncFastScaleSettings {
+ enable_fast_scale?: boolean;
+ unhealthy_pod_rate_to_scale?: number;
+}
+
+export interface FuncLagScaleSettings {
+ lag_scale_set?: string;
+}
+
+export interface FuncMEMScaleSettings {
+ mem_scale_out_threshold?: number;
+ mem_scale_in_threshold?: number;
+ mem_scale_target?: number;
+}
+
+export interface FuncPredictiveScalingSettings {
+ enable_predictive_scaling?: boolean;
+}
+
+export interface FuncScaleSettingApiResponse {
+ code?: number;
+ data?: FuncScaleSettingResponse;
+ error?: string;
+}
+
+export interface FuncScaleSettingResponse {
+ function_id?: string;
+ cluster?: string;
+ region?: string;
+ scale_threshold_set?: ScaleThresholdsSet;
+ lag_scale_set?: string;
+ overload_fast_scale_set?: OverloadFastScaleSetting;
+}
+
+export interface FuncScaleSettings {
+ scale_set_name?: string;
+ cpu_scale_settings?: FuncCPUScaleSettings;
+ mem_scale_settings?: FuncMEMScaleSettings;
+ concurrency_scale_settings?: FuncConcurrencyScaleSettings;
+ fast_scale_settings?: FuncFastScaleSettings;
+ predictive_scaling_setting?: FuncPredictiveScalingSettings;
+ lag_scale_settings?: FuncLagScaleSettings;
+ cpu_zone_scale_settings?: Record;
+}
+
+export interface FunctionMetaParams {
+ adaptive_concurrency_mode?: string;
+ admins?: string;
+ async_mode?: boolean;
+ auth_enable?: boolean;
+ authorizers?: string;
+ base_image?: string;
+ category?: string;
+ code_file_size_mb?: number;
+ cold_start_disabled?: boolean;
+ cold_start_sec?: number;
+ cors_enable?: boolean;
+ dependency?: Array;
+ deploy_method?: string;
+ description?: string;
+ disable_build_install?: boolean;
+ disable_ppe_alarm?: boolean;
+ enable_scale_optimise?: boolean;
+ enable_scale_strategy?: boolean;
+ env_name?: string;
+ envs?: Record;
+ exclusive_mode?: boolean;
+ format_envs?: Record>;
+ handler?: string;
+ initializer?: string;
+ initializer_sec?: number;
+ language?: string;
+ latency_sec?: number;
+ lazyload?: boolean;
+ max_concurrency?: number;
+ memory_mb?: number;
+ name?: string;
+ need_approve?: boolean;
+ origin?: string;
+ owner?: string;
+ plugin_name?: string;
+ protocol?: string;
+ psm?: string;
+ psm_parent_id?: number;
+ resource_limit?: ResourceLimit;
+ run_cmd?: string;
+ runtime?: string;
+ scale_enabled?: boolean;
+ scale_threshold?: number;
+ scale_type?: number;
+ service_level?: string;
+ service_purpose?: string;
+ source?: string;
+ source_type?: string;
+ template_name?: string;
+ throttle_log_bytes_per_sec?: number;
+ throttle_log_enabled?: boolean;
+ throttle_stderr_log_bytes_per_sec?: number;
+ throttle_stdout_log_bytes_per_sec?: number;
+ trace_enable?: boolean;
+ zone_throttle_log_bytes_per_sec?: Record;
+ enable_runtime_file_log?: boolean;
+ enable_runtime_console_log?: boolean;
+ enable_runtime_stream_log?: boolean;
+ enable_runtime_es_log?: boolean;
+ enable_runtime_json_log?: boolean;
+ enable_system_stream_log?: boolean;
+ enable_system_es_log?: boolean;
+ runtime_stream_log_bytes_per_sec?: number;
+ system_stream_log_bytes_per_sec?: number;
+}
+
+export interface FunctionResponseData {
+ id?: string;
+ service_id?: string;
+ name?: string;
+ description?: string;
+ admins?: string;
+ owner?: string;
+ psm?: string;
+ runtime?: string;
+ language?: string;
+ run_cmd?: string;
+ base_image?: string;
+ origin?: string;
+ category?: string;
+ disable_ppe_alarm?: boolean;
+ initializer_sec?: number;
+ latency_sec?: number;
+ cold_start_sec?: number;
+ cold_start_disabled?: boolean;
+ need_approve?: boolean;
+ auth_enable?: boolean;
+ trace_enable?: boolean;
+ authorizers?: string;
+ subscribers?: Array;
+ envs?: Record>;
+ format_envs?: Record>;
+ memory_mb?: number;
+ code_file_size_mb?: number;
+ max_concurrency?: number;
+ adaptive_concurrency_mode?: string;
+ exclusive_mode?: boolean;
+ async_mode?: boolean;
+ cors_enable?: boolean;
+ disable_build_install?: boolean;
+ max_revision_number?: number;
+ ms_register_suc?: boolean;
+ enable_runtime_file_log?: boolean;
+ enable_runtime_console_log?: boolean;
+ enable_runtime_stream_log?: boolean;
+ enable_runtime_es_log?: boolean;
+ enable_runtime_json_log?: boolean;
+ enable_system_stream_log?: boolean;
+ enable_system_es_log?: boolean;
+ runtime_stream_log_bytes_per_sec?: number;
+ system_stream_log_bytes_per_sec?: number;
+ throttle_log_bytes_per_sec?: number;
+ throttle_stdout_log_bytes_per_sec?: number;
+ throttle_stderr_log_bytes_per_sec?: number;
+ lazyload?: boolean;
+ plugin_name?: string;
+ plugin_scm_id?: number;
+ env_name?: string;
+ replica_limit?: Record>;
+ resource_limit?: Resource;
+ scale_enabled?: boolean;
+ scale_threshold?: number;
+ scale_type?: number;
+ enable_scale_optimise?: boolean;
+ enable_scale_strategy?: boolean;
+ source_type?: string;
+ source?: string;
+ dependency?: Array;
+ global_kv_namespace_ids?: Array;
+ local_cache_namespace_ids?: Array;
+ protocol?: string;
+ argos_link?: string;
+ created_at?: string;
+ updated_at?: string;
+ revision_id?: string;
+ net_queue?: string;
+ mount_info?: Array;
+}
+
+export interface FunctionScaleRecordListItem {
+ record_id: string;
+ request_id: string;
+ function_id: string;
+ cluster: string;
+ region: string;
+ cell: string;
+ zone: string;
+ deploy_name: string;
+ effect_strategy: string;
+ scale_at: string;
+ scale_operation: string;
+ replicas_from: Int64;
+ replicas_to: Int64;
+ detail_reason: string;
+ status: string;
+ created_at: string;
+ updated_at: string;
+ env_name: string;
+ psm: string;
+ mq_app_replicas_from: Record;
+ mq_app_replicas_to: Record;
+}
+
+export interface FunctionScaleSettings {
+ scale_set_name?: string;
+ concurrency_scale_settings?: ConcurrencyScaleSettings;
+ cpu_scale_settings?: CpuScaleSettings;
+ mem_scale_settings?: MEMScaleSettings;
+ fast_scale_settings?: FuncFastScaleSettings;
+ predictive_scaling_setting?: FuncPredictiveScalingSettings;
+ lag_scale_settings?: FuncLagScaleSettings;
+}
+
+export interface FunctionTemplate {
+ description?: string;
+ document?: string;
+ language?: string;
+ name?: string;
+ protocol?: string;
+ /** runtime. Optional values: golang/v1,node10/v1,python3/v1,rust1/v1,java8/v1,wasm/v1,v8/v1,native/v1,native-java8/v1 */
+ runtime?: string;
+ source_location?: string;
+ template_author?: string;
+}
+
+export interface getAllAdministratorRequest {}
+
+export interface GetAllAdministratorResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetAllServiceByPsmRequest {
+ /** PSM of service */
+ psm: string;
+ no_auth_info?: string;
+}
+
+export interface GetAllServiceByPsmResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetAllTriggersRequest {
+ /** cluster name */
+ cluster: string;
+ /** region */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** split mqevents into eventbus, default to false */
+ split_eventbus?: string;
+ /** include prod service's mqtrigger when set to true, only works when this service is env services, e.g.: boe-xx/ppe-xx */
+ with_env_trigger?: string;
+ /** if true, will not return event_bridge type trigger */
+ not_show_eb_trigger?: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetAllTriggersResponse {
+ code?: number;
+ data?: AllTriggers;
+ error?: string;
+}
+
+export interface GetAsyncRequestRequest {
+ /** cluster of service */
+ cluster: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** the request id you want */
+ 'x-bytefaas-request-id': string;
+}
+
+export interface GetAsyncRequestResponse {
+ code?: number;
+ data?: AsyncRequestRecordResponse;
+ error?: string;
+}
+
+export interface GetBatchTicketDetailByIDRequest {
+ /** Parent ID of a ticket, ie, the ID of a batch ticket */
+ id: string;
+}
+
+export interface GetBatchTicketDetailByIDResponse {
+ code?: number;
+ data?: BatchTicket;
+ error?: string;
+}
+
+export interface GetBurstProtectorSwitchRequest {
+ /** PSM to fetch */
+ psm?: string;
+ /** Cluster to fetch */
+ cluster?: string;
+}
+
+export interface GetBurstProtectorSwitchResponse {
+ /** Response code */
+ code: number;
+ /** Error message, if any */
+ error?: string;
+ /** Burst protector configurations */
+ data?: Array;
+}
+
+export interface GetClusterAlarmRequest {
+ /** cluster */
+ cluster: string;
+ /** region */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetClusterAlarmResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetClusterAllMqTriggerInstancesRequest {
+ /** cluster name */
+ cluster: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetClusterAllMqTriggerInstancesResponse {
+ code?: number;
+ data?: Record>;
+ error?: string;
+}
+
+export interface GetClusterAutoMeshRequest {
+ /** cluster name */
+ cluster: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetClusterAutoMeshResponse {
+ code?: number;
+ data?: AutoMeshParams;
+ error?: string;
+}
+
+export interface GetClusterDeployedStatusRequest {
+ /** cluster name */
+ cluster: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetClusterDeployedStatusResponse {
+ code?: number;
+ data?: DataMessage85;
+ error?: string;
+}
+
+export interface GetClusterListByPsmRequest {
+ env: string;
+ psm: string;
+ region: string;
+}
+
+export interface GetClusterListByPsmResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetClusterRequest {
+ /** cluster name */
+ cluster: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** whether use argos iframe */
+ 'use-argos-iframe'?: boolean;
+ /** with verbose data */
+ verbose?: boolean;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetClusterResponse {
+ code?: number;
+ data?: ClusterResponseData;
+ error?: string;
+}
+
+export interface GetClusterRevisionsRequest {
+ /** cluster name */
+ cluster: string;
+ /** description */
+ description?: string;
+ /** format response */
+ format?: boolean;
+ /** limit */
+ limit?: number;
+ /** offset */
+ offset?: number;
+ /** region */
+ region: string;
+ /** ID of function to create revision */
+ service_id: string;
+ /** true or false */
+ with_status?: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetClusterRevisionsResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetClustersListRequest {
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** with verbose data */
+ verbose?: boolean;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetClustersListResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetClustersListWithPaginationRequest {
+ /** cluster name */
+ cluster?: string;
+ /** limit for per page */
+ limit?: number;
+ /** offset */
+ offset?: number;
+ /** region name */
+ region?: string;
+ /** get released cluster in resource_lit page */
+ resource_list?: boolean;
+ /** fuzzy search in cluster id and cluster name */
+ search?: string;
+ /** ID of service */
+ service_id: string;
+ /** with verbose data */
+ verbose?: boolean;
+ /** filter soft deleted cluster */
+ soft_deleted?: boolean;
+}
+
+export interface GetClustersListWithPaginationResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetCodeRevisionByNumberRequest {
+ /** Number of revision */
+ revision_number: string;
+ /** ID of service */
+ service_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetCodeRevisionByNumberResponse {
+ code?: number;
+ data?: CodeRevision;
+ error?: string;
+}
+
+export interface GetCodeRevisionsRequest {
+ /** limit in pagination */
+ limit?: string;
+ /** offset in pagination */
+ offset?: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetCodeRevisionsResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetConsulTriggerRequest {
+ /** cluster of service */
+ cluster: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** trigger_id of function */
+ trigger_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetConsulTriggerResponse {
+ code?: number;
+ data?: ConsulTriggerResponseData;
+ error?: string;
+}
+
+export interface GetCrossRegionMigrationRequest {
+ psm: string;
+}
+
+export interface GetCrossRegionMigrationResponse {
+ code?: number;
+ data?: CrossRegionMigrationMeta;
+ error?: string;
+}
+
+export interface GetDeployedRegionsRequest {
+ /** ID of service */
+ service_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetDeployedRegionsResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetDiagnosisByIDRequest {
+ /** cluster name */
+ cluster: string;
+ /** diagnosis id */
+ diagnosis_id: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetDiagnosisByIDResponse {
+ code?: number;
+ data?: Diagnose;
+ error?: string;
+}
+
+export interface GetDiagnosisRequest {
+ /** cluster name */
+ cluster: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetDiagnosisResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetFilterPluginsDetailRequest {
+ /** cluster name */
+ cluster: string;
+ /** id */
+ filter_plugin_id: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetFilterPluginsDetailResponse {
+ code?: number;
+ data?: FilterPlugin;
+ error?: string;
+}
+
+export interface GetFilterPluginsRequest {
+ /** cluster name */
+ cluster: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ offset?: number;
+ limit?: number;
+}
+
+export interface GetFilterPluginsResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetFunctionResourcePackagesRequest {
+ is_plugin_function?: boolean;
+ is_worker?: boolean;
+ runtime?: string;
+ region?: string;
+ cluster?: boolean;
+ category?: string;
+}
+
+export interface GetFunctionResourcePackagesResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetFunctionRevisionRequest {
+ /** cluster */
+ cluster: string;
+ /** format response */
+ format: boolean;
+ /** region */
+ region: string;
+ /** Number of revision */
+ revision_number: number;
+ /** ID of service */
+ service_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetFunctionRevisionResponse {
+ code?: number;
+ data?: Revision;
+ error?: string;
+}
+
+export interface GetFunctionScaleRecordListReq {
+ service_id: string;
+ region: string;
+ offset?: string;
+ limit?: string;
+ /** second level timestamp */
+ start_time?: string;
+ /** second level timestamp */
+ end_time?: string;
+ cluster?: string;
+ strategy?: string;
+}
+
+export interface GetFunctionScaleRecordListRes {
+ code: number;
+ data: Array;
+ error: string;
+}
+
+export interface GetFunctionScaleThresholdsSettingRequest {
+ service_id?: string;
+ region?: string;
+ cluster?: string;
+}
+
+export interface getFunctionTemplatesRequest {}
+
+export interface GetFunctionTemplatesResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetGlobalPluginFunctionsRequest {
+ /** limit */
+ limit?: number;
+ /** offset */
+ offset?: number;
+}
+
+export interface GetGlobalPluginVersionsRequest {
+ /** limit */
+ limit?: number;
+ /** offset */
+ offset?: number;
+ /** name of plugin */
+ plugin_name: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetHttpTriggerRequest {
+ /** cluster of service */
+ cluster: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** ID of trigger */
+ trigger_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetHttpTriggerResponse {
+ code?: number;
+ data?: HttpTriggerResponse;
+ error?: string;
+}
+
+export interface GetHttpTriggersRequest {
+ /** cluster of service */
+ cluster: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetHttpTriggersResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetICMBaseImagesListRequest {}
+
+export interface GetICMBaseImagesListResponse {
+ code?: number;
+ error?: string;
+ data?: Array;
+}
+
+export interface GetInstancesLogsRequest {
+ /** cluster name */
+ cluster: string;
+ podname: string;
+ /** region name */
+ region: string;
+ revision_id?: string;
+ /** ID of service */
+ service_id: string;
+ zone: string;
+}
+
+export interface GetInstancesLogsResponse {
+ code?: number;
+ data?: string;
+ error?: string;
+}
+
+export interface GetInstancesPodInfoRequest {
+ podname: string;
+ /** region name */
+ region: string;
+ zone: string;
+ cell?: string;
+}
+
+export interface GetInstancesPodInfoResponse {
+ code?: number;
+ data?: PodInfo;
+ error?: string;
+}
+
+export interface GetInstancesRequest {
+ /** cluster name */
+ cluster: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetInstancesResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetInstancesWebshellRequest {
+ /** cluster name */
+ cluster: string;
+ podname: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ zone: string;
+}
+
+export interface GetInstancesWebshellResponse {
+ code?: number;
+ data?: DataMessage199;
+ error?: string;
+}
+
+export interface getLarkBotChatGroupsRequest {}
+
+export interface GetLarkBotChatGroupsResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetLatestReleaseRequest {
+ /** cluster name */
+ cluster: string;
+ /** region */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetLatestReleaseResponse {
+ code?: number;
+ data?: ReleaseResponseData;
+ error?: string;
+}
+
+export interface GetLatestRevisionRequest {
+ /** cluster */
+ cluster: string;
+ /** format response */
+ format?: boolean;
+ /** region */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetLatestRevisionResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetLogsRequest {
+ advanced?: boolean;
+ ascend?: boolean;
+ /** cluster name */
+ cluster: string;
+ from?: string;
+ include_system?: boolean;
+ log_type: string;
+ pod_ip?: string;
+ pod_name?: string;
+ /** region name */
+ region: string;
+ revision_id?: string;
+ search?: string;
+ /** ID of service */
+ service_id: string;
+ size?: number;
+ to?: string;
+}
+
+export interface GetLogsResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetMqClustersRequest {
+ mq_type: string;
+ region: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetMqClustersResponse {
+ code?: number;
+ data?: Record>>;
+ error?: string;
+}
+
+export interface GetMQeventAdvancedConfigRequest {
+ /** faas cluster region */
+ region?: string;
+}
+
+export interface GetMQeventAdvancedConfigResponse {
+ code?: number;
+ error?: string;
+ data?: Array;
+}
+
+export interface GetMQEventResourceRequest {
+ /** ID of service */
+ service_id: string;
+ /** Target env name */
+ env?: string;
+}
+
+export interface GetMqTriggerByTypeRequest {
+ /** cluster of service */
+ cluster: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** trigger id */
+ trigger_id: string;
+ /** trigger type */
+ trigger_type: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetMqTriggerByTypeResponse {
+ code?: number;
+ data?: GlobalMQEventTriggerResponseData;
+ error?: string;
+}
+
+export interface GetMqTriggerInstancesRequest {
+ /** cluster name */
+ cluster: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** mq trigger id */
+ trigger_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetMqTriggerInstancesResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetMqTriggerInstancesWebshellRequest {
+ /** cluster name */
+ cluster: string;
+ podname: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** mq trigger id */
+ trigger_id: string;
+ zone: string;
+}
+
+export interface GetMqTriggerInstancesWebshellResponse {
+ code?: number;
+ data?: DataMessage130;
+ error?: string;
+}
+
+export interface GetMQTriggerRequest {
+ /** cluster of service */
+ cluster: string;
+ /** filter enable plugin function mq triggers */
+ enable_plugin_function?: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** filter mq triggers by plugin function version */
+ plugin_function_version?: string;
+}
+
+export interface GetMQTriggerResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetMQTriggerScaleRecordListReq {
+ service_id: string;
+ region: string;
+ offset?: string;
+ limit?: string;
+ /** second level timestamp */
+ start_time?: string;
+ /** second level timestamp */
+ end_time?: string;
+ cluster?: string;
+ strategy?: string;
+ search?: string;
+}
+
+export interface GetMQTriggerScaleRecordListRes {
+ code: number;
+ data: Array;
+ error: string;
+}
+
+export interface GetMQTriggerScaleThresholdSetRequest {
+ service_id: string;
+ region: string;
+ cluster: string;
+ trigger_id: string;
+}
+
+export interface GetMQTriggerScaleThresholdSetResponse {
+ code: number;
+ data: MQTriggerScaleThresholdData;
+ error: string;
+}
+
+export interface GetMQTriggersListWithPaginationRequest {
+ /** cluster name */
+ cluster?: string;
+ /** limit for per page */
+ limit?: number;
+ /** offset */
+ offset?: number;
+ /** region name */
+ region?: string;
+ /** fuzzy search in cluster id and cluster name */
+ search?: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetMQTriggersListWithPaginationResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface getMQTriggerTemplateRequest {}
+
+export interface GetMQTriggerTemplateResponse {
+ code?: number;
+ data?: DataMessage5;
+ error?: string;
+}
+
+export interface GetOnlineCodeRevisionRequest {
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetOnlineCodeRevisionResponse {
+ code?: number;
+ data?: Record;
+ error?: string;
+}
+
+export interface GetOnlineRevisionRequest {
+ /** cluster */
+ cluster: string;
+ /** format response */
+ format?: boolean;
+ /** region */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetOnlineRevisionResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetPackageListRequest {
+ region?: string;
+}
+
+export interface GetPackageListResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetPluginFunctionRevisionDetailRequest {
+ /** cluster name */
+ cluster: string;
+ /** id */
+ id: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetPluginFunctionRevisionDetailResponse {
+ code?: number;
+ data?: PluginFunctionRevisionDetail;
+ error?: string;
+}
+
+export interface GetPluginFunctionRevisionsRequest {
+ /** cluster name */
+ cluster: string;
+ /** limit */
+ limit?: number;
+ /** offset */
+ offset?: number;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetPluginFunctionRevisionsResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetPluginFunctionsRequest {
+ /** limit */
+ limit?: number;
+ /** offset */
+ offset?: number;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetPluginFunctionsResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetPluginVersionsRequest {
+ /** limit */
+ limit?: number;
+ /** offset */
+ offset?: number;
+ /** name of plugin */
+ plugin_name: string;
+ /** region */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetPluginVersionsResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetRealtimeResourceUsageRequest {
+ /** get all regions */
+ all_region?: boolean;
+ /** Target env name */
+ env?: string;
+ /** psm */
+ psm?: string;
+ /** Target region name */
+ region?: string;
+}
+
+export interface GetRealtimeResourceUsageResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetRegionalMetaRequest {
+ /** cluster name */
+ cluster: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** jwt token */
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetRegionalMetaResponse {
+ code?: number;
+ data?: RegionalMetaResponseData;
+ error?: string;
+}
+
+export interface getRegionsEnabledRequest {}
+
+export interface GetRegionsEnabledResponse {
+ code?: number;
+ data?: DataMessage20;
+ error?: string;
+}
+
+export interface getRegionZonesRequest {}
+
+export interface GetRegionZonesResponse {
+ code?: number;
+ data?: Record>;
+ error?: string;
+}
+
+export interface GetReleaseByIDRequest {
+ cluster: string;
+ region: string;
+ release_id: string;
+ /** ID of service */
+ service_id: string;
+ /** jwt token */
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetReleaseByIDResponse {
+ code?: number;
+ data?: ReleaseResponseData;
+ error?: string;
+}
+
+export interface GetReleaseOverviewRequest {
+ /** 格式 2024-01-04T06:49:59+00:00 */
+ start_time?: string;
+ /** 格式 2024-01-04T06:49:59+00:00 */
+ end_time?: string;
+}
+
+export interface GetReleaseOverviewResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetReleaseRequest {
+ /** cluster name */
+ cluster: string;
+ /** region name */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetReleaseResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetReleaseStartInfoByIDRequest {
+ cluster: string;
+ region: string;
+ release_id: string;
+ /** ID of service */
+ service_id: string;
+ /** ID of revision */
+ revision_id?: string;
+}
+
+export interface GetReleaseStartInfoByIDResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetReservedReplicaThresholdRequest {
+ cluster: string;
+ /** only required for cron strategy */
+ duration_minutes?: string;
+ /** efficient start hours of cron strategy,only required for cron strategy */
+ hours?: string;
+ /** efficient start minutes of cron strategy,only required for cron strategy */
+ minutes?: string;
+ region: string;
+ service_id: string;
+}
+
+export interface GetReservedReplicaThresholdResponse {
+ code?: number;
+ data?: DataMessage24;
+ error?: string;
+}
+
+export interface GetResourceRealtimeClusterData {
+ cluster?: string;
+ zones?: Array;
+}
+
+export interface GetResourceRequest {
+ /** get all regions */
+ all_region?: boolean;
+ /** Target env name */
+ env?: string;
+ /** ID of function */
+ function_id?: string;
+ /** psm */
+ psm?: string;
+ /** Target region name */
+ region?: string;
+}
+
+export interface GetResourceResponse {
+ code?: number;
+ data?: DataMessage22;
+ error?: string;
+}
+
+export interface getRuntimeRequest {}
+
+export interface GetRuntimeResponse {
+ code?: number;
+ /** region will be key name */
+ data?: Record>;
+ error?: string;
+}
+
+export interface GetScaleStrategiesRequest {
+ /** cluster of service */
+ cluster: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetScaleStrategiesResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetScaleStrategyRequest {
+ /** cluster of service */
+ cluster: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** the strategy you want to get */
+ strategy_id: string;
+}
+
+export interface GetScaleStrategyResponse {
+ code?: number;
+ data?: ScaleStrategy;
+ error?: string;
+}
+
+export interface GetServiceByPsmAndEnvRequest {
+ /** get service information by psm and env */
+ env_name: string;
+ /** PSM of service */
+ psm: string;
+ /** jwt token */
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetServiceByPsmAndEnvResponse {
+ code?: number;
+ data?: ServiceResponse;
+ error?: string;
+}
+
+export interface GetServiceRequest {
+ /** region */
+ region?: string;
+ /** ID of service */
+ service_id: string;
+ /** get detail information with clusters when it is true */
+ verbose?: boolean;
+ /** filter soft-deleted service */
+ soft_deleted?: boolean;
+ /** jwt token */
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetServiceResponse {
+ code?: number;
+ data?: ServiceResponse;
+ error?: string;
+}
+
+export interface GetServicesListRequest {
+ /** is all, default to false */
+ all?: string;
+ /** env name. Optional values: prod/ppe/boe_feature */
+ env?: string;
+ /** search by service id */
+ id?: string;
+ /** limit number of pagination */
+ limit?: number;
+ /** search by name */
+ name?: string;
+ /** without worker function */
+ no_worker?: boolean;
+ /** offset number of pagination */
+ offset?: number;
+ /** search by owner */
+ owner?: string;
+ /** search by psm prefix matching. Only works when querystring `all` is not empty */
+ psm?: string;
+ /** prefix search, cache multi field */
+ search?: string;
+ /** search type: all/admin/own/subscribe */
+ search_type?: string;
+ /** sort by field in service model */
+ sort_by?: string;
+ /** supported search fields: cluster_id/id/name/psm */
+ search_fields?: string;
+}
+
+export interface GetServicesListResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetServiceTicketByIDRequest {
+ /** ID of service */
+ service_id: string;
+ /** ID of ticket */
+ ticket_id: string;
+}
+
+export interface GetServiceTicketByIDResponse {
+ code?: number;
+ data?: Ticket;
+ error?: string;
+}
+
+export interface GetServiceTreesRequest {}
+
+export interface GetServiceTreesResponse {
+ code: number;
+ data: Array;
+ error: string;
+}
+
+export interface GetTCEClusterListItem {
+ cluster_id: Int64;
+ name: string;
+ vregion: string;
+ idcs: Array;
+ is_faas_vregion_support: boolean;
+ link: string;
+ replica_total: number;
+ replica: Record;
+}
+
+export interface GetTCEClusterListRequest {
+ tce_psm: string;
+}
+
+export interface GetTCEClusterListResponse {
+ code?: number;
+ error?: string;
+ data?: Array;
+}
+
+export interface GetTCEMigrateMQAppParamsData {
+ service: CreateServiceRequest;
+ cluster: CreateClusterRequest;
+}
+
+export interface GetTCEMigrateMQAppParamsRequest {
+ tce_psm: string;
+ tce_cluster_id: Int64;
+}
+
+export interface GetTCEMigrateMQAppParamsResponse {
+ code?: number;
+ error?: string;
+ data?: GetTCEMigrateMQAppParamsData;
+}
+
+export interface GetTemplateByNameRequest {
+ template_name: string;
+}
+
+export interface GetTemplateByNameResponse {
+ code?: number;
+ data?: FunctionTemplate;
+ error?: string;
+}
+
+export interface GetTicketDetailByTicketIDRequest {
+ ticket_id: string;
+}
+
+export interface GetTicketDetailByTicketIDResponse {
+ code?: number;
+ data?: Ticket;
+ error?: string;
+}
+
+export interface GetTicketsByFilterRequest {
+ category?: string;
+ change_type?: string;
+ cluster?: string;
+ /** ID of function. */
+ function_id?: string;
+ /** ID of ticket. */
+ id?: string;
+ max_create_time?: string;
+ min_create_time?: string;
+ /** If set true, only return admin tickets */
+ only_admin_ticket?: boolean;
+ /** Parent ID of a ticket, ie, the ID of a batch ticket */
+ parent_id?: string;
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** status of ticket. */
+ status?: string;
+ trigger_id?: string;
+ trigger_type?: string;
+ /** ticket type. */
+ type?: string;
+ /** pagination query, specify the number for one page */
+ limit?: number;
+ /** pagination query, specify the offset, default 0 */
+ offset?: number;
+}
+
+export interface GetTicketsByFilterResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetTicketsRequest {
+ category?: string;
+ change_type?: string;
+ cluster?: string;
+ id?: string;
+ max_create_time?: string;
+ min_create_time?: string;
+ region: string;
+ /** ID of service */
+ service_id: string;
+ status?: string;
+ trigger_id?: string;
+ trigger_type?: string;
+ /** type of tickets */
+ type?: string;
+ contains_multi_clusters?: boolean;
+ offset?: number;
+ limit?: number;
+}
+
+export interface GetTicketsResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+ count?: number;
+}
+
+export interface GetTimerTriggerRequest {
+ /** cluster of service */
+ cluster: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** the timer trigger you want to get */
+ timer_id: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetTimerTriggerResponse {
+ code?: number;
+ data?: TimerTrigger;
+ error?: string;
+}
+
+export interface GetTosBucketsRequest {
+ /** region of service */
+ region: string;
+ 'X-Jwt-Token'?: string;
+}
+
+export interface GetTosBucketsResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface GetTriggerDebugTplRequest {
+ service_id: string;
+ /** 模板类型 custom/official */
+ tpl_type?: string;
+ /** 触发器类型 timer/http/rocketmq/kafka/eventbus */
+ trigger_type?: string;
+}
+
+export interface GetTriggerDebugTplResponse {
+ code: number;
+ data: Array;
+ error: string;
+}
+
+export interface GetTriggerReservedReplicaThresholdRequest {
+ cluster: string;
+ /** only required for cron strategy */
+ duration_minutes?: string;
+ /** efficient start hours of cron strategy,only required for cron strategy */
+ hours?: string;
+ /** efficient start minutes of cron strategy,only required for cron strategy */
+ minutes?: string;
+ region: string;
+ service_id: string;
+ trigger_type: string;
+ trigger_id: string;
+}
+
+export interface GetTriggerReservedReplicaThresholdResponse {
+ code?: number;
+ data?: DataMessage24;
+ error?: string;
+}
+
+export interface GetTriggersEnabledRequest {
+ /** cluster of service */
+ cluster: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+}
+
+export interface GetTriggersEnabledResponse {
+ code?: number;
+ data?: DataMessage194;
+ error?: string;
+}
+
+export interface GetVefaasTrafficSchedulingRequest {}
+
+export interface GetVefaasTrafficSchedulingResponse {
+ code?: number;
+ data?: VefaasTrafficSchedulingData;
+ error?: string;
+}
+
+export interface GetVolcSigninTokenRequest {
+ service_id?: string;
+ region?: string;
+ cluster?: string;
+}
+
+export interface GetVolcSigninTokenResponse {
+ code?: number;
+ data?: GetVolcSigninTokenResponseData;
+ error?: string;
+}
+
+export interface GetVolcSigninTokenResponseData {
+ signin_token: string;
+}
+
+export interface GetVolcTlsConfigRequest {
+ service_id?: string;
+ region?: string;
+ cluster?: string;
+}
+
+export interface GetVolcTlsConfigResponse {
+ code?: number;
+ data?: GetVolcTlsConfigResponseData;
+ error?: string;
+}
+
+export interface GetVolcTlsConfigResponseData {
+ enable_log: boolean;
+ tls_project_id?: string;
+ tls_topic_id?: string;
+}
+
+export interface GlobalMQEventTriggerResponseData {
+ batch_size?: number;
+ batch_flush_duration_milliseconds?: number;
+ description?: string;
+ enabled?: boolean;
+ function_id?: string;
+ cell?: string;
+ service_id?: string;
+ cluster?: string;
+ id?: string;
+ ms_alarm_id?: Array;
+ mq_type?: string;
+ max_retries_from_function_status?: number;
+ qps_limit?: number;
+ name?: string;
+ options?: TriggerOptions;
+ region?: string;
+ mq_region?: string;
+ runtime_agent_mode?: boolean;
+ dynamic_worker_thread?: boolean;
+ replica_max_limit?: Record;
+ replica_min_limit?: Record;
+ replicas?: number;
+ scale_enabled?: boolean;
+ vertical_scale_enabled?: boolean;
+ enable_static_membership?: boolean;
+ status?: string;
+ status_message?: string;
+ is_deleted?: boolean;
+ deleted_at?: string;
+ deleted_by?: string;
+ created_at?: string;
+ created_by?: string;
+ updated_at?: string;
+ updated_by?: string;
+ meta_synced?: boolean;
+ meta_synced_at?: string;
+ enable_mq_debug?: boolean;
+ mq_logger_limit_size?: number;
+ enable_backoff?: boolean;
+ disable_backoff?: boolean;
+ worker_v2_num_per_half_core?: number;
+ enable_concurrency_filter?: boolean;
+ mq_msg_type?: string;
+ in_releasing?: boolean;
+ mirror_region_filter?: string;
+ retry_strategy?: string;
+ max_retry_time?: number;
+ qps_limit_time_ranges?: Array;
+ rate_limit_step_settings?: RateLimitStepSettings;
+ enable_step_rate_limit?: boolean;
+ workers_per_pod?: number;
+ msg_chan_length?: number;
+ num_of_mq_pod_to_one_func_pod?: number;
+ need_auto_sharding?: boolean;
+ enable_traffic_priority_scheduling?: boolean;
+ enable_pod_colocate_scheduling?: boolean;
+ enable_global_rate_limiter?: boolean;
+ enable_congestion_control?: boolean;
+ allow_bytesuite_debug?: boolean;
+ enable_dynamic_load_balance?: boolean;
+ disable_smooth_wrr?: boolean;
+ dynamic_load_balance_type?: string;
+ enable_gctuner?: boolean;
+ gctuner_percent?: number;
+ deployment_inactive?: boolean;
+ replica_force_meet_partition?: boolean;
+ plugin_function_param?: PluginFunctionParam;
+ mqevent_revision?: MQEventRevision;
+ enable_plugin_function?: boolean;
+ enable_canary_update?: boolean;
+ traffic_config?: Record;
+ envs?: Record;
+ image_version?: string;
+ image_alias?: string;
+ sdk_version?: string;
+ offset_reset_result?: ResetOffsetResult;
+ kafka_reset_offset_user_data?: ResetOffsetReq;
+ request_timeout?: number;
+ disable_infinite_retry_for_timeout?: boolean;
+ initial_offset_start_from?: string;
+ kafka_metric_prefix?: string;
+ scale_settings?: MQEventScaleSettings;
+ hot_reload?: boolean;
+ enable_rmq_lease?: boolean;
+ package?: string;
+ pod_type?: string;
+ id_volc?: string;
+ resource?: Resource;
+ latest_image_alias?: string;
+ latest_sdk_version?: string;
+ log_link?: string;
+ streaming_log_link?: string;
+ argos_link?: string;
+ grafana_link?: string;
+ grafana_eventbus_link?: string;
+ mq_topic_link?: string;
+ mq_consumer_link?: string;
+ ticket_id?: string;
+ enable_filter_congestion_control?: boolean;
+ enable_congestion_control_cache?: boolean;
+}
+
+export interface GPU {
+ accelerator?: string;
+ partitions?: number;
+}
+
+export interface GrayConfig {
+ psms?: GrayKeys;
+ clusters?: GrayKeys;
+ dcs?: GrayKeys;
+ stages?: GrayKeys;
+}
+
+export interface GrayKeys {
+ gray_all?: boolean;
+ keys?: Array;
+}
+
+export interface GreyMQEvent {
+ mqevent_id: string;
+ grey_percentage: number;
+ region: string;
+ cluster: string;
+}
+
+export interface HostUniq {
+ host_unique_type?: string;
+ unique_tolerance?: number;
+}
+
+export interface HttpTriggerResponse {
+ name?: string;
+ description?: string;
+ id?: string;
+ cell?: string;
+ function_id?: string;
+ url_prefix?: string;
+ bytefaas_error_response_disabled?: boolean;
+ bytefaas_response_header_disabled?: boolean;
+ runtime?: string;
+ version_type?: string;
+ version_value?: string;
+ region?: string;
+ enabled?: boolean;
+ created_at?: string;
+ updated_at?: string;
+ zone_urls?: Record;
+ url?: string;
+ secondary_url?: string;
+}
+
+export interface ICMBaseImage {
+ base_version?: string;
+ name?: string;
+ labels?: Array;
+ image_id?: number;
+ recommend?: boolean;
+ eol?: boolean;
+}
+
+export interface InnerStrategy {
+ cron_strategy?: CronStrategy;
+}
+
+export interface Instance {
+ function_id?: string;
+ revision_id?: string;
+ pod_name?: string;
+ pod_uid?: string;
+ container_ids?: Array;
+ host?: string;
+ ipv6?: string;
+ pod_ip?: string;
+ port?: string;
+ runtime_debug_port?: string;
+ runtime_other_ports?: Array;
+ deploy_env?: string;
+ region?: string;
+ zone?: string;
+ status?: string;
+ message?: string;
+ cpu?: number;
+ memory?: number;
+ created_at?: string;
+ instance_type?: string;
+ instance_metric_link?: string;
+ host_metric_link?: string;
+ lidar_profile_link?: string;
+ sd_disabled?: boolean;
+ revision_dependency?: Array;
+ runtime_container_port?: string;
+}
+
+export interface KafkaMQOptions {
+ topic?: string;
+ cluster_name?: string;
+ consumer_group?: string;
+ enable_filter?: boolean;
+ filter_source_type?: string;
+ filter_source?: string;
+ filter_plugin_id?: string;
+ filter_plugin_version?: string;
+ consumer_fetch_buffer?: number;
+ retry_interval_seconds?: number;
+ enable_multi_env_v2?: boolean;
+ multi_env_version?: string;
+ close_multi_env?: boolean;
+ fetch_limit?: boolean;
+ enable_cooperative?: boolean;
+ config_center_url_custom?: string;
+ config_center_region?: string;
+ orderly?: boolean;
+ enable_non_compression_consume?: boolean;
+}
+
+export interface KafkaTopicPreviewParams {
+ cluster_name: string;
+ topic_name: string;
+ /** 数据类型 str/pb */
+ schema_type: string;
+ /** whence/offset */
+ consumer_type: string;
+ /** latest/earliest/random */
+ whence?: string;
+ /** 偏移量 */
+ relative_offset?: Int64;
+ /** partition 不传则为all */
+ partition?: string;
+}
+
+export interface KillAsyncRequestsRequest {
+ /** cluster of service */
+ cluster: string;
+ /** region of service */
+ region: string;
+ /** ID of service */
+ service_id: string;
+ /** the request id you want to kill */
+ 'x-bytefaas-request-id': string;
+}
+
+export interface KillAsyncRequestsResponse {}
+
+export interface LatestRevisionResponseData {
+ /** revision id */
+ id?: string;
+ /** revision number */
+ number?: number;
+ /** region, no need for post/patch method, it is a path param */
+ region?: string;
+ /** release time */
+ released_at?: string;
+}
+
+export interface ListAsyncRequestsRequest {
+ /** begin_time */
+ begin_time?: string;
+ /** cluster of service */
+ cluster: string;
+ /** end_time */
+ end_time?: string;
+ /** limit */
+ limit?: string;
+ /** offset */
+ offset?: string;
+ /** region of service */
+ region: string;
+ /** request_id */
+ request_id?: string;
+ /** ID of service */
+ service_id: string;
+ /** task_status */
+ task_status?: string;
+}
+
+export interface ListAsyncRequestsResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface ListFuncScaleSettingApiRequest {
+ service_id?: string;
+ region?: string;
+ cluster?: string;
+ offset?: string;
+ limit?: string;
+}
+
+export interface ListFuncScaleSettingApiResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface ListFuncScaleSettingResult {
+ function_id?: string;
+ cluster?: string;
+ region?: string;
+ scale_threshold_set?: ScaleThresholdsSet;
+ lag_scale_set?: string;
+ overload_fast_scale_set?: OverloadFastScaleSetting;
+ cron_scale_strategies?: Array;
+}
+
+export interface ListMQTriggerScaleSettingData {
+ mqtrigger_id: string;
+ trigger_type: string;
+ trigger_name: string;
+ cluster: string;
+ service_id: string;
+ function_id: string;
+ scale_threshold_set: ScaleThresholdsSet;
+ lag_scale_set: string;
+ vertical_scale_enabled: boolean;
+ cron_scale_strategies: Array;
+ region: string;
+}
+
+export interface ListMQTriggerScaleThresholdsSettingRequest {
+ service_id: string;
+ offset?: string;
+ limit?: string;
+ search?: string;
+ region?: string;
+ cluster?: string;
+}
+
+export interface ListMQTriggerScaleThresholdsSettingResponse {
+ code: number;
+ data: Array;
+ error: string;
+}
+
+export interface ListPipelineTemplatesRequest {
+ 'X-Jwt-Token'?: string;
+}
+
+export interface ListPipelineTemplatesResponse {
+ code?: number;
+ data?: Array;
+ error?: string;
+}
+
+export interface LogItem {
+ content?: string;
+ category?: string;
+ level?: string;
+}
+
+export interface MapMessage {
+ additional_properties?: Record