chore: replace all cn comments to en version by volc api (#313)
This commit is contained in:
@@ -12,7 +12,7 @@ struct DraftBotCreateRequest {
|
||||
4: string icon_uri
|
||||
5: VisibilityType visibility
|
||||
6: optional MonetizationConf monetization_conf
|
||||
7: optional string create_from, // 创建来源 navi:导航栏 space:空间
|
||||
7: optional string create_from, // Create source navi: navbar space: space
|
||||
9: optional bot_common.BusinessType business_type
|
||||
}
|
||||
|
||||
@@ -21,14 +21,14 @@ struct MonetizationConf {
|
||||
}
|
||||
|
||||
enum VisibilityType {
|
||||
Invisible = 0 // 不可见
|
||||
Visible = 1 // 可见
|
||||
Invisible = 0 // invisible
|
||||
Visible = 1 // visible
|
||||
}
|
||||
|
||||
struct DraftBotCreateData {
|
||||
1: i64 bot_id (agw.js_conv="str", api.js_conv="true")
|
||||
2: bool check_not_pass // true:机审校验不通过
|
||||
3: optional string check_not_pass_msg // 机审校验不通过文案
|
||||
2: bool check_not_pass // True: The machine audit verification failed
|
||||
3: optional string check_not_pass_msg // The machine audit verification failed the copy.
|
||||
}
|
||||
|
||||
struct DraftBotCreateResponse {
|
||||
@@ -66,11 +66,11 @@ struct UserLabel {
|
||||
|
||||
struct Creator {
|
||||
1: i64 id (agw.js_conv="str", api.js_conv="true")
|
||||
2: string name // 昵称
|
||||
2: string name // nickname
|
||||
3: string avatar_url
|
||||
4: bool self // 是否是自己创建的
|
||||
5: string user_unique_name // 用户名
|
||||
6: UserLabel user_label // 用户标签
|
||||
4: bool self // Did you create it yourself?
|
||||
5: string user_unique_name // user name
|
||||
6: UserLabel user_label // user tag
|
||||
}
|
||||
|
||||
struct DuplicateDraftBotData {
|
||||
@@ -148,25 +148,25 @@ struct PublishDraftBotResponse {
|
||||
}
|
||||
|
||||
struct PublishDraftBotData {
|
||||
1: map<string,list<ConnectorBindResult>> connector_bind_result // key代表connector_name 枚举 飞书="feishu" -- 废弃
|
||||
2: map<string,ConnectorBindResult> publish_result // key代表connector_id,value是发布结果
|
||||
3: bool check_not_pass // true:机审校验不通过
|
||||
4: optional SubmitBotMarketResult submit_bot_market_result // 上架bot market结果
|
||||
5: optional bool hit_manual_check // 是否命中人审
|
||||
6: optional list<string> not_pass_reason // 机审校验不通过原因的starlingKey列表
|
||||
7: optional bool publish_monetization_result // 发布bot计费结果
|
||||
1: map<string,list<ConnectorBindResult>> connector_bind_result // Key represents connector_name enumeration Feishu = "feishu" -- obsolete
|
||||
2: map<string,ConnectorBindResult> publish_result // The key represents connector_id, and the value is the published result
|
||||
3: bool check_not_pass // True: The machine audit verification failed
|
||||
4: optional SubmitBotMarketResult submit_bot_market_result // Added bot marketing results
|
||||
5: optional bool hit_manual_check // In human moderation
|
||||
6: optional list<string> not_pass_reason // starlingKey list of reasons why the machine audit failed
|
||||
7: optional bool publish_monetization_result // Publish bot billing results
|
||||
}
|
||||
|
||||
|
||||
struct ConnectorBindResult {
|
||||
1: Connector connector
|
||||
2: i64 code // 发布调用下游返回的状态码,前端不消费
|
||||
3: string msg // 发布状态的附加文案,前端按照markdown格式解析
|
||||
4: optional PublishResultStatus publish_result_status // 发布结果状态
|
||||
2: i64 code // The status code returned downstream of the publish call is not consumed by the front end.
|
||||
3: string msg // Additional copy of the release status, the front end is parsed in markdown format
|
||||
4: optional PublishResultStatus publish_result_status // post result status
|
||||
}
|
||||
|
||||
struct Connector {
|
||||
1: string name // connector_name 枚举 飞书="feishu"
|
||||
1: string name // connector_name enumeration Feishu = "feishu"
|
||||
2: string app_id
|
||||
3: string app_secret
|
||||
4: string share_link
|
||||
@@ -174,14 +174,14 @@ struct Connector {
|
||||
}
|
||||
|
||||
enum PublishResultStatus {
|
||||
Success = 1 // 成功
|
||||
Failed = 2 // 失败
|
||||
InReview = 3 // 审批中
|
||||
Success = 1 // success
|
||||
Failed = 2 // fail
|
||||
InReview = 3 // in approval
|
||||
}
|
||||
|
||||
struct SubmitBotMarketResult {
|
||||
1: optional i64 result_code // 上架状态,0-成功
|
||||
2: optional string msg // 上架结果的文案
|
||||
1: optional i64 result_code // Shelf status, 0-success
|
||||
2: optional string msg // msg
|
||||
}
|
||||
|
||||
|
||||
@@ -204,15 +204,15 @@ struct AgentInfo {
|
||||
8: optional string reference_id
|
||||
9: optional string first_version
|
||||
10: optional string current_version
|
||||
11: optional ReferenceInfoStatus reference_info_status // 1:有可用更新 2:被删除
|
||||
11: optional ReferenceInfoStatus reference_info_status // 1: Available update 2: Removed
|
||||
12: optional string description
|
||||
13: optional ReferenceUpdateType update_type
|
||||
}
|
||||
|
||||
|
||||
enum ReferenceInfoStatus {
|
||||
HasUpdates = 1 // 1:有可用更新
|
||||
IsDelete = 2 // 2:被删除
|
||||
HasUpdates = 1 // 1: Updates are available
|
||||
IsDelete = 2 // 2: Deleted
|
||||
}
|
||||
|
||||
enum ReferenceUpdateType {
|
||||
@@ -232,17 +232,17 @@ struct Intent {
|
||||
3: optional string next_agent_id
|
||||
}
|
||||
|
||||
// agent 工作区间各个模块的信息
|
||||
// Information about each module in the agent workspace
|
||||
struct AgentWorkInfo {
|
||||
1: optional string prompt // agent prompt 前端信息,server不需要感知
|
||||
2: optional string other_info // 模型配置
|
||||
3: optional string tools // plugin 信息
|
||||
4: optional string dataset // dataset 信息
|
||||
5: optional string workflow // workflow 信息
|
||||
6: optional string system_info_all // 同bot的 system_info_all
|
||||
7: optional JumpConfig jump_config // 回溯配置
|
||||
8: optional string suggest_reply , // 推荐回复配置
|
||||
9: optional string hook_info // hook配置
|
||||
1: optional string prompt // The agent prompts the front-end information, the server does not need to perceive
|
||||
2: optional string other_info // model configuration
|
||||
3: optional string tools // Plugin information
|
||||
4: optional string dataset // Dataset information
|
||||
5: optional string workflow // Workflow information
|
||||
6: optional string system_info_all // system_info_all with bot
|
||||
7: optional JumpConfig jump_config // backtrack configuration
|
||||
8: optional string suggest_reply , // Referral Configuration
|
||||
9: optional string hook_info // Hook configuration
|
||||
}
|
||||
|
||||
|
||||
@@ -265,16 +265,16 @@ enum RecognitionMode {
|
||||
}
|
||||
|
||||
enum IndependentTiming {
|
||||
Pre = 1 // 判断用户输入(前置)
|
||||
Post = 2 // 判断节点输出(后置)
|
||||
PreAndPost = 3 // 前置模式和后置模式支持同时选择
|
||||
Pre = 1 // Determine user input (front)
|
||||
Post = 2 // Determine node output (postfix)
|
||||
PreAndPost = 3 // Front mode and rear mode support simultaneous selection
|
||||
}
|
||||
enum IndependentRecognitionModelType {
|
||||
SLM = 0 // 小模型
|
||||
LLM = 1 // 大模型
|
||||
SLM = 0 // Small model
|
||||
LLM = 1 // Large model
|
||||
}
|
||||
struct IndependentModeConfig {
|
||||
1: IndependentTiming judge_timing // 判断时机
|
||||
1: IndependentTiming judge_timing // Judge timing
|
||||
2: i32 history_round
|
||||
3: IndependentRecognitionModelType model_type
|
||||
4: optional string model_id
|
||||
@@ -294,18 +294,18 @@ struct PublishDraftBotRequest {
|
||||
1: required i64 space_id (agw.js_conv="str", api.js_conv="true")
|
||||
2: required i64 bot_id (agw.js_conv="str", api.js_conv="true")
|
||||
3: WorkInfo work_info
|
||||
4: map<string,list<Connector>> connector_list // key代表connector_name 枚举 飞书="feishu" -- 废弃
|
||||
5: map<string,map<string,string>> connectors // key代表connector_id,value是发布的参数
|
||||
6: optional BotMode botMode // 默认0
|
||||
4: map<string,list<Connector>> connector_list // Key represents connector_name enumeration Feishu = "feishu" -- obsolete
|
||||
5: map<string,map<string,string>> connectors // The key represents connector_id, and the value is the published parameter
|
||||
6: optional BotMode botMode // Default 0
|
||||
7: optional list<AgentInfo> agents
|
||||
8: optional string canvas_data
|
||||
9: optional list<BotTagInfo> bot_tag_info
|
||||
10: optional SubmitBotMarketConfig submit_bot_market_config // 发布到market的配置
|
||||
10: optional SubmitBotMarketConfig submit_bot_market_config // Configuration published to the market
|
||||
11: optional string publish_id
|
||||
12: optional string commit_version // 指定发布某个CommitVersion
|
||||
13: optional PublishType publish_type // 发布类型,线上发布/预发布
|
||||
14: optional string pre_publish_ext // 预发布其他信息
|
||||
15: optional string history_info // 替换原workinfo中的 history_info
|
||||
12: optional string commit_version // Specify the release of a CommitVersion
|
||||
13: optional PublishType publish_type // Release type, online release/pre-release
|
||||
14: optional string pre_publish_ext // Pre-release other information
|
||||
15: optional string history_info // Replace the history_info in the original workinfo
|
||||
}
|
||||
|
||||
enum PublishType {
|
||||
@@ -314,9 +314,9 @@ enum PublishType {
|
||||
}
|
||||
|
||||
struct SubmitBotMarketConfig {
|
||||
1: optional bool need_submit // 是否发布到market
|
||||
2: optional bool open_source // 是否开源
|
||||
3: optional string category_id // 分类
|
||||
1: optional bool need_submit // Whether to publish to the market
|
||||
2: optional bool open_source // Is it open source?
|
||||
3: optional string category_id // classification
|
||||
}
|
||||
|
||||
enum BotMode {
|
||||
@@ -325,7 +325,7 @@ enum BotMode {
|
||||
WorkflowMode = 2
|
||||
}
|
||||
|
||||
// 工作区间各个模块的信息
|
||||
// Information for each module in the workspace
|
||||
struct WorkInfo {
|
||||
1: optional string message_info
|
||||
2: optional string prompt
|
||||
@@ -343,15 +343,15 @@ struct WorkInfo {
|
||||
14: optional string suggest_reply
|
||||
15: optional string tts
|
||||
16: optional string background_image_info_list
|
||||
17: optional shortcut_command.ShortcutStruct shortcuts // 快捷指令
|
||||
18: optional string hook_info // hook配置
|
||||
19: optional UserQueryCollectConf user_query_collect_conf // 用户query收集配置
|
||||
20: optional LayoutInfo layout_info //workflow模式编排数据
|
||||
17: optional shortcut_command.ShortcutStruct shortcuts // Quick Instruction
|
||||
18: optional string hook_info // Hook configuration
|
||||
19: optional UserQueryCollectConf user_query_collect_conf // User query collection configuration
|
||||
20: optional LayoutInfo layout_info //Workflow pattern orchestration data
|
||||
}
|
||||
|
||||
struct UserQueryCollectConf {
|
||||
1: bool IsCollected (api.body="is_collected") , // 是否开启收集开关
|
||||
2: string PrivatePolicy (api.body="private_policy") , // 隐私协议链接
|
||||
1: bool IsCollected (api.body="is_collected") , // Whether to turn on the collection switch
|
||||
2: string PrivatePolicy (api.body="private_policy") , // Privacy Policy Link
|
||||
}
|
||||
|
||||
struct LayoutInfo {
|
||||
@@ -360,10 +360,10 @@ struct LayoutInfo {
|
||||
}
|
||||
|
||||
enum HistoryType {
|
||||
SUBMIT = 1 // 废弃
|
||||
FLAG = 2 // 发布
|
||||
COMMIT = 4 // 提交
|
||||
COMMITANDFLAG = 5 // 提交和发布
|
||||
SUBMIT = 1 // abandoned
|
||||
FLAG = 2 // publish
|
||||
COMMIT = 4 // submit
|
||||
COMMITANDFLAG = 5 // Submit and publish
|
||||
}
|
||||
|
||||
|
||||
@@ -387,16 +387,16 @@ struct ListDraftBotHistoryData {
|
||||
2: i32 total
|
||||
}
|
||||
|
||||
// 如果保存历史信息
|
||||
// If historical information is preserved
|
||||
struct HistoryInfo {
|
||||
1: string version ,
|
||||
2: HistoryType history_type ,
|
||||
3: string info , // 对历史记录补充的其他信息
|
||||
3: string info , // Additional information added to the historical record
|
||||
4: string create_time ,
|
||||
5: list<ConnectorInfo> connector_infos,
|
||||
6: Creator creator ,
|
||||
7: optional string publish_id ,
|
||||
8: optional string commit_remark , // 提交时填写的说明
|
||||
8: optional string commit_remark , // Instructions to fill in when submitting
|
||||
}
|
||||
|
||||
struct ConnectorInfo {
|
||||
@@ -473,14 +473,14 @@ struct GetUploadAuthTokenRequest {
|
||||
}
|
||||
|
||||
struct UploadFileRequest {
|
||||
1: CommonFileInfo file_head // 文件相关描述
|
||||
2: string data // 文件数据
|
||||
1: CommonFileInfo file_head // Document related description
|
||||
2: string data // file data
|
||||
}
|
||||
|
||||
// 上传文件,文件头
|
||||
// Upload file, file header
|
||||
struct CommonFileInfo {
|
||||
1: string file_type // 文件类型,后缀
|
||||
2: FileBizType biz_type // 业务类型
|
||||
1: string file_type // File type, suffix
|
||||
2: FileBizType biz_type // business type
|
||||
}
|
||||
|
||||
enum FileBizType {
|
||||
@@ -500,7 +500,7 @@ enum FileBizType {
|
||||
struct UploadFileResponse {
|
||||
1: i64 code
|
||||
2: string msg
|
||||
3: UploadFileData data // 数据
|
||||
3: UploadFileData data // data
|
||||
}
|
||||
|
||||
struct GetTypeListRequest {
|
||||
@@ -508,9 +508,9 @@ struct GetTypeListRequest {
|
||||
2: optional bool voice
|
||||
3: optional bool raw_model
|
||||
4: optional string space_id
|
||||
5: optional string cur_model_id // 当前bot使用的模型ID,用于处理cici/doubao同步过来的bot模型不能展示的问题
|
||||
6: optional list<string> cur_model_ids // 兼容MultiAgent,有多个cur_model_id
|
||||
7: optional ModelScene model_scene // 模型场景
|
||||
5: optional string cur_model_id // The model ID used by the current bot to handle issues that cannot be displayed by the bot model synchronized by cici/doubao
|
||||
6: optional list<string> cur_model_ids // Compatible with MultiAgent, with multiple cur_model_id
|
||||
7: optional ModelScene model_scene // model scenario
|
||||
}
|
||||
|
||||
enum ModelScene {
|
||||
@@ -526,34 +526,34 @@ enum ModelClass {
|
||||
StableDiffusion = 6
|
||||
ByteArtist = 7
|
||||
Maas = 9
|
||||
QianFan = 10 // 废弃:千帆(百度云)
|
||||
QianFan = 10 // Abandoned: Qianfan (Baidu Cloud)
|
||||
Gemini = 11 // name:Google Gemini
|
||||
Moonshot = 12 // name: Moonshot
|
||||
GLM = 13 // name:智谱
|
||||
MaaSAutoSync = 14 // name: 火山方舟
|
||||
QWen = 15 // name:通义千问
|
||||
GLM = 13 // Name: Zhipu
|
||||
MaaSAutoSync = 14 // Name: Volcano Ark
|
||||
QWen = 15 // Name: Tongyi Qianwen
|
||||
Cohere = 16 // name: Cohere
|
||||
Baichuan = 17 // name: 百川智能
|
||||
Ernie = 18 // name:文心一言
|
||||
DeekSeek = 19 // name: 幻方
|
||||
Baichuan = 17 // Name: Baichuan Intelligent
|
||||
Ernie = 18 // Name: ERNIE Bot
|
||||
DeekSeek = 19 // Name: Magic Square
|
||||
Llama = 20 // name: Llama
|
||||
StepFun = 23
|
||||
Other = 999
|
||||
}
|
||||
|
||||
struct ModelQuota {
|
||||
1: i32 token_limit // 最大总 token 数量
|
||||
2: i32 token_resp // 最终回复最大 token 数量
|
||||
3: i32 token_system // Prompt 系统最大 token 数量
|
||||
4: i32 token_user_in // Prompt 用户输入最大 token 数量
|
||||
5: i32 token_tools_in // Prompt 工具输入最大 token 数量
|
||||
6: i32 token_tools_out // Prompt 工具输出最大 token 数量
|
||||
7: i32 token_data // Prompt 数据最大 token 数量
|
||||
8: i32 token_history // Prompt 历史最大 token 数量
|
||||
9: bool token_cut_switch // Prompt 历史最大 token 数量
|
||||
10: double price_in // 输入成本
|
||||
11: double price_out // 输出成本
|
||||
12: optional i32 system_prompt_limit // systemprompt输入限制,如果没有传,对输入不做限制
|
||||
1: i32 token_limit // Maximum total number of tokens
|
||||
2: i32 token_resp // Final reply maximum number of tokens
|
||||
3: i32 token_system // Prompt system maximum number of tokens
|
||||
4: i32 token_user_in // Prompt user to enter maximum number of tokens
|
||||
5: i32 token_tools_in // Prompt tool to enter maximum number of tokens
|
||||
6: i32 token_tools_out // Prompt tool output maximum number of tokens
|
||||
7: i32 token_data // Prompt data maximum number of tokens
|
||||
8: i32 token_history // Prompt history maximum number of tokens
|
||||
9: bool token_cut_switch // Prompt history maximum number of tokens
|
||||
10: double price_in // input cost
|
||||
11: double price_out // output cost
|
||||
12: optional i32 system_prompt_limit // Systemprompt input restrictions, if not passed, no input restrictions
|
||||
}
|
||||
|
||||
enum ModelTagClass {
|
||||
@@ -562,7 +562,7 @@ enum ModelTagClass {
|
||||
ModelFeature = 3
|
||||
ModelFunction = 4
|
||||
|
||||
Custom = 20 // 本期不做
|
||||
Custom = 20 // Do not do this issue
|
||||
Others = 100
|
||||
}
|
||||
|
||||
@@ -586,21 +586,21 @@ struct ModelParamClass {
|
||||
}
|
||||
|
||||
struct Option {
|
||||
1: string label // option展示的值
|
||||
2: string value // 填入的值
|
||||
1: string label // The value displayed by the option
|
||||
2: string value // Filled in value
|
||||
}
|
||||
|
||||
struct ModelParameter {
|
||||
1: required string name // 配置字段,如max_tokens
|
||||
2: string label // 配置字段展示名称
|
||||
3: string desc // 配置字段详情描述
|
||||
4: required ModelParamType type // 类型
|
||||
5: string min // 数值类型参数,允许设置的最小值
|
||||
6: string max // 数值类型参数,允许设置的最大值
|
||||
7: i32 precision // float类型参数的精度
|
||||
8: required ModelParamDefaultValue default_val // 参数默认值{"default": xx, "creative":xx}
|
||||
9: list<Option> options // 枚举值,如response_format支持text,markdown,json
|
||||
10: ModelParamClass param_class // 参数分类,"Generation diversity", "Input and output length", "Output format"
|
||||
1: required string name // Configuration fields, such as max_tokens
|
||||
2: string label // Configure field display name
|
||||
3: string desc // Configuration field detail description
|
||||
4: required ModelParamType type // type
|
||||
5: string min // Numerical type parameters, the minimum value allowed to be set
|
||||
6: string max // Numerical type parameter, the maximum value allowed to be set
|
||||
7: i32 precision // Precision of float type parameters
|
||||
8: required ModelParamDefaultValue default_val // Parameter default {"default": xx, "creative": xx}
|
||||
9: list<Option> options // Enumeration values such as response_format support text, markdown, json
|
||||
10: ModelParamClass param_class // Parameter classification, "Generation diversity", "Input and output length", "Output format"
|
||||
}
|
||||
|
||||
struct ModelDescGroup {
|
||||
@@ -637,49 +637,49 @@ enum ModelTagValue {
|
||||
}
|
||||
|
||||
struct ModelStatusDetails {
|
||||
1: bool is_new_model, // 是否为新模型
|
||||
2: bool is_advanced_model, // 是否是高级模型
|
||||
3: bool is_free_model, // 是否是免费模型
|
||||
1: bool is_new_model, // Is it a new model?
|
||||
2: bool is_advanced_model, // Is it a high-level model?
|
||||
3: bool is_free_model, // Is it a free model?
|
||||
|
||||
11: bool is_upcoming_deprecated, // 是否即将下架
|
||||
12: string deprecated_date, // 下架日期
|
||||
13: string replace_model_name, // 下架替换的模型
|
||||
11: bool is_upcoming_deprecated, // Will it be removed from the shelves soon?
|
||||
12: string deprecated_date, // removal date
|
||||
13: string replace_model_name, // Remove the replacement model from the shelves.
|
||||
|
||||
21: string update_info, // 最近更新信息
|
||||
22: ModelTagValue model_feature, // 模型特色
|
||||
21: string update_info, // Recently updated information
|
||||
22: ModelTagValue model_feature, // Model Features
|
||||
}
|
||||
|
||||
struct ModelAbility {
|
||||
1: optional bool cot_display // 是否展示cot
|
||||
2: optional bool function_call // 是否支持function call
|
||||
3: optional bool image_understanding // 是否支持图片理解
|
||||
4: optional bool video_understanding // 是否支持视频理解
|
||||
5: optional bool audio_understanding // 是否支持音频理解
|
||||
6: optional bool support_multi_modal // 是否支持多模态
|
||||
7: optional bool prefill_resp // 是否支持续写
|
||||
1: optional bool cot_display // Do you want to show cot?
|
||||
2: optional bool function_call // Supports function calls
|
||||
3: optional bool image_understanding // Does it support picture understanding?
|
||||
4: optional bool video_understanding // Does it support video understanding?
|
||||
5: optional bool audio_understanding // Does it support audio understanding?
|
||||
6: optional bool support_multi_modal // Does it support multimodality?
|
||||
7: optional bool prefill_resp // Whether to support continuation
|
||||
}
|
||||
|
||||
struct Model {
|
||||
1: string name
|
||||
2: i64 model_type
|
||||
3: ModelClass model_class
|
||||
4: string model_icon // model icon的url
|
||||
4: string model_icon // Model icon url
|
||||
5: double model_input_price
|
||||
6: double model_output_price
|
||||
7: ModelQuota model_quota
|
||||
8: string model_name // model真实名,前端计算token用
|
||||
8: string model_name // Model real name, front-end calculation token
|
||||
9: string model_class_name
|
||||
10: bool is_offline
|
||||
11: list<ModelParameter> model_params
|
||||
12: optional list<ModelDescGroup> model_desc
|
||||
13: optional map<bot_common.ModelFuncConfigType, bot_common.ModelFuncConfigStatus> func_config, // 模型功能配置
|
||||
14: optional string endpoint_name // 方舟模型节点名称
|
||||
15: optional list<ModelTag> model_tag_list // 模型标签
|
||||
16: optional bool is_up_required // user prompt是否必须有且不能为空
|
||||
17: string model_brief_desc // 模型简要描述
|
||||
18: ModelSeriesInfo model_series // 模型系列
|
||||
19: ModelStatusDetails model_status_details // 模型状态
|
||||
20: ModelAbility model_ability // 模型能力
|
||||
13: optional map<bot_common.ModelFuncConfigType, bot_common.ModelFuncConfigStatus> func_config, // model function configuration
|
||||
14: optional string endpoint_name // Ark model node name
|
||||
15: optional list<ModelTag> model_tag_list // model label
|
||||
16: optional bool is_up_required // User prompt must have and cannot be empty
|
||||
17: string model_brief_desc // Model brief description
|
||||
18: ModelSeriesInfo model_series // Model series
|
||||
19: ModelStatusDetails model_status_details // model state
|
||||
20: ModelAbility model_ability // model capability
|
||||
}
|
||||
|
||||
struct VoiceType {
|
||||
@@ -704,8 +704,8 @@ struct GetTypeListResponse {
|
||||
}
|
||||
|
||||
struct UploadFileData {
|
||||
1: string upload_url // 文件url
|
||||
2: string upload_uri // 文件uri,提交使用这个
|
||||
1: string upload_url // File URL
|
||||
2: string upload_uri // File URI, submit using this
|
||||
}
|
||||
|
||||
struct UpdateUserProfileCheckRequest {
|
||||
@@ -719,9 +719,9 @@ struct UpdateUserProfileCheckResponse {
|
||||
|
||||
enum CommitStatus {
|
||||
Undefined = 0
|
||||
Uptodate = 1 // 已是最新,同主草稿相同
|
||||
Behind = 2 // 落后主草稿
|
||||
NoDraftReplica = 3 // 无个人草稿
|
||||
Uptodate = 1 // It is the latest, the same as the main draft
|
||||
Behind = 2 // Behind the main draft
|
||||
NoDraftReplica = 3 // No personal draft
|
||||
}
|
||||
|
||||
struct Committer {
|
||||
@@ -730,7 +730,7 @@ struct Committer {
|
||||
3: optional string commit_time
|
||||
}
|
||||
|
||||
// 检查草稿是否可以提交返回
|
||||
// Check if the draft can be submitted and returned.
|
||||
struct CheckDraftBotCommitResponse {
|
||||
1: optional i64 code
|
||||
2: optional string msg
|
||||
@@ -739,12 +739,12 @@ struct CheckDraftBotCommitResponse {
|
||||
|
||||
struct CheckDraftBotCommitData {
|
||||
1: optional CommitStatus status
|
||||
2: optional string base_commit_version // 主草稿版本
|
||||
3: optional Committer base_committer // 主草稿提交信息
|
||||
4: optional string commit_version // 个人草稿版本
|
||||
2: optional string base_commit_version // master draft version
|
||||
3: optional Committer base_committer // Master Draft Submission Information
|
||||
4: optional string commit_version // Personal draft version
|
||||
}
|
||||
|
||||
// 检查草稿是否可以提交请求
|
||||
// Check if the draft can be submitted to the request
|
||||
struct CheckDraftBotCommitRequest {
|
||||
1: required string space_id
|
||||
2: required string bot_id
|
||||
@@ -768,28 +768,28 @@ struct GetOnboardingResponse {
|
||||
}
|
||||
|
||||
struct OnboardingContent {
|
||||
1: optional string prologue // 开场白
|
||||
2: optional list<string> suggested_questions // 建议问题
|
||||
1: optional string prologue // opening statement
|
||||
2: optional list<string> suggested_questions // suggestion question
|
||||
}
|
||||
|
||||
|
||||
|
||||
enum ConfigStatus {
|
||||
Configured = 1 // 已配置
|
||||
NotConfigured = 2 // 未配置
|
||||
Disconnected = 3 // Token发生变化
|
||||
Configuring = 4 // 配置中,授权中
|
||||
NeedReconfiguring = 5 // 需要重新配置
|
||||
Configured = 1 // Configured
|
||||
NotConfigured = 2 // Not configured
|
||||
Disconnected = 3 // Token changes
|
||||
Configuring = 4 // Configuring, authorizing
|
||||
NeedReconfiguring = 5 // Need to reconfigure
|
||||
}
|
||||
enum BindType {
|
||||
NoBindRequired = 1 // 无需绑定
|
||||
AuthBind = 2 // Auth绑定
|
||||
KvBind = 3 // Kv绑定=
|
||||
KvAuthBind = 4 // Kv并Auth授权
|
||||
ApiBind = 5 // api渠道绑定
|
||||
NoBindRequired = 1 // No binding required
|
||||
AuthBind = 2 // Auth binding
|
||||
KvBind = 3 // Kv binding =
|
||||
KvAuthBind = 4 // Kv and Auth authorization
|
||||
ApiBind = 5 // API channel binding
|
||||
WebSDKBind = 6
|
||||
StoreBind = 7
|
||||
AuthAndConfig = 8 // 授权和配置各一个按钮
|
||||
AuthAndConfig = 8 // One button each for authorization and configuration
|
||||
}
|
||||
enum AllowPublishStatus {
|
||||
Allowed = 0
|
||||
@@ -807,14 +807,14 @@ struct AuthLoginInfo {
|
||||
}
|
||||
|
||||
enum BotConnectorStatus {
|
||||
Normal = 0 // 正常
|
||||
InReview = 1 // 审核中
|
||||
Offline = 2 // 已下线
|
||||
Normal = 0 // Normal
|
||||
InReview = 1 // Under review.
|
||||
Offline = 2 // offline
|
||||
}
|
||||
enum UserAuthStatus {
|
||||
Authorized = 1 // 已授权
|
||||
UnAuthorized = 2 // 未授权
|
||||
Authorizing = 3 // 授权中
|
||||
Authorized = 1 // Authorized
|
||||
UnAuthorized = 2 // unauthorized
|
||||
Authorizing = 3 // Authorizing
|
||||
}
|
||||
|
||||
struct PublishConnectorListRequest {
|
||||
@@ -824,32 +824,32 @@ struct PublishConnectorListRequest {
|
||||
}
|
||||
|
||||
struct PublishConnectorInfo {
|
||||
1: required string id // 发布平台 connector_id
|
||||
2: required string name // 发布平台名称
|
||||
3: required string icon // 发布平台图标
|
||||
4: required string desc // 发布平台描述
|
||||
5: required string share_link // 分享链接
|
||||
6: required ConfigStatus config_status // 配置状态 1:已绑定 2:未绑定
|
||||
7: required i64 last_publish_time // 最近发布时间
|
||||
8: required BindType bind_type // 绑定类型 1:无需绑定 2:Auth 3: kv值
|
||||
9: required map<string,string> bind_info // 绑定信息 key字段名 value是值
|
||||
10: optional string bind_id // 绑定id信息,用于解绑使用
|
||||
11: optional AuthLoginInfo auth_login_info // 用户授权登陆信息
|
||||
12: optional bool is_last_published // 是否为上次发布
|
||||
13: optional BotConnectorStatus connector_status // bot渠道状态
|
||||
14: optional string privacy_policy // 隐私政策
|
||||
15: optional string user_agreement // 用户协议
|
||||
16: optional AllowPublishStatus allow_punish // 渠道是否允许发布
|
||||
17: optional string not_allow_reason // 不允许发布原因
|
||||
18: optional string config_status_toast // 配置状态toast
|
||||
19: optional i64 brand_id // 品牌 ID
|
||||
20: optional bool support_monetization // 支持商业化
|
||||
21: optional UserAuthStatus auth_status // 1: 已授权,2:未授权. 目前仅 bind_type == 8 时这个字段才有
|
||||
22: optional string to_complete_info_url // 补全信息按钮的 url
|
||||
1: required string id // Publishing Platform connector_id
|
||||
2: required string name // publishing platform name
|
||||
3: required string icon // publishing platform icon
|
||||
4: required string desc // Publish Platform Description
|
||||
5: required string share_link // share link
|
||||
6: required ConfigStatus config_status // Configuration Status 1: Bound 2: Unbound
|
||||
7: required i64 last_publish_time // Last Post
|
||||
8: required BindType bind_type // Binding type 1: No binding required 2: Auth 3: kv value
|
||||
9: required map<string,string> bind_info // Binding information key field name value is value
|
||||
10: optional string bind_id // Bind id information for unbinding and use
|
||||
11: optional AuthLoginInfo auth_login_info // user authorization login information
|
||||
12: optional bool is_last_published // Is it the last release?
|
||||
13: optional BotConnectorStatus connector_status // bot channel status
|
||||
14: optional string privacy_policy // Privacy Policy
|
||||
15: optional string user_agreement // User Agreement
|
||||
16: optional AllowPublishStatus allow_punish // Is the channel allowed to publish?
|
||||
17: optional string not_allow_reason // Reason for not allowing posting
|
||||
18: optional string config_status_toast // Configuration status toast
|
||||
19: optional i64 brand_id // Brand ID
|
||||
20: optional bool support_monetization // Support commercialization
|
||||
21: optional UserAuthStatus auth_status // 1: Authorized, 2: Unauthorized. Currently this field is only available bind_type == 8
|
||||
22: optional string to_complete_info_url // URL of the complete info button
|
||||
}
|
||||
|
||||
struct SubmitBotMarketOption {
|
||||
1: optional bool can_open_source // 是否可以公开编排
|
||||
1: optional bool can_open_source // Is it possible to publicly orchestrate?
|
||||
}
|
||||
|
||||
|
||||
@@ -860,7 +860,7 @@ struct ConnectorBrandInfo {
|
||||
}
|
||||
|
||||
struct PublishTips {
|
||||
1: optional string cost_tips // 成本承担提醒
|
||||
1: optional string cost_tips // cost-bearing reminder
|
||||
}
|
||||
|
||||
struct PublishConnectorListResponse {
|
||||
@@ -868,9 +868,9 @@ struct PublishConnectorListResponse {
|
||||
2: string msg
|
||||
3: list<PublishConnectorInfo> publish_connector_list
|
||||
4: optional SubmitBotMarketOption submit_bot_market_option
|
||||
5: optional SubmitBotMarketConfig last_submit_config // 上次提交market的配置
|
||||
6: map<i64, ConnectorBrandInfo> connector_brand_info_map // 渠道品牌信息
|
||||
7: optional PublishTips publish_tips // 发布提醒
|
||||
5: optional SubmitBotMarketConfig last_submit_config // The configuration of the last submitted market
|
||||
6: map<i64, ConnectorBrandInfo> connector_brand_info_map // Channel brand information
|
||||
7: optional PublishTips publish_tips // post alert
|
||||
}
|
||||
|
||||
service DeveloperApiService {
|
||||
|
||||
Reference in New Issue
Block a user