chore: migrate fe 250723

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

View File

@@ -30,6 +30,7 @@ import * as data_connector_common from './namespaces/data_connector_common';
import * as dataset from './namespaces/dataset';
import * as document from './namespaces/document';
import * as kvmemory from './namespaces/kvmemory';
import * as long_term_memory from './namespaces/long_term_memory';
import * as memory from './namespaces/memory';
import * as project_memory from './namespaces/project_memory';
import * as resource_common from './namespaces/resource_common';
@@ -37,6 +38,7 @@ import * as retriever from './namespaces/retriever';
import * as slice from './namespaces/slice';
import * as table from './namespaces/table';
import * as team_space from './namespaces/team_space';
import * as volcano_database from './namespaces/volcano_database';
import * as web_crawl from './namespaces/web_crawl';
export {
@@ -51,6 +53,7 @@ export {
dataset,
document,
kvmemory,
long_term_memory,
memory,
project_memory,
resource_common,
@@ -58,6 +61,7 @@ export {
slice,
table,
team_space,
volcano_database,
web_crawl,
};
export * from './namespaces/base';
@@ -71,6 +75,7 @@ export * from './namespaces/data_connector_common';
export * from './namespaces/dataset';
export * from './namespaces/document';
export * from './namespaces/kvmemory';
export * from './namespaces/long_term_memory';
export * from './namespaces/memory';
export * from './namespaces/project_memory';
export * from './namespaces/resource_common';
@@ -78,12 +83,11 @@ export * from './namespaces/retriever';
export * from './namespaces/slice';
export * from './namespaces/table';
export * from './namespaces/team_space';
export * from './namespaces/volcano_database';
export * from './namespaces/web_crawl';
export type Int64 = string | number;
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
export default class MemoryService<T> {
private request: any = () => {
throw new Error('MemoryService.request is undefined');
@@ -1450,6 +1454,7 @@ export default class MemoryService<T> {
limit: _req['limit'],
filter_criterion: _req['filter_criterion'],
order_by_list: _req['order_by_list'],
database_type: _req['database_type'],
Base: _req['Base'],
};
return this.request({ url, method, data }, options);
@@ -1570,6 +1575,9 @@ export default class MemoryService<T> {
rw_mode: _req['rw_mode'],
prompt_disabled: _req['prompt_disabled'],
extra_info: _req['extra_info'],
database_type: _req['database_type'],
volcano_database_bind_info: _req['volcano_database_bind_info'],
region_id: _req['region_id'],
Base: _req['Base'],
};
return this.request({ url, method, data }, options);
@@ -1578,6 +1586,8 @@ export default class MemoryService<T> {
/**
* GET /api/memory/project/variable/meta_list
*
* 变量openAPI end
*
* Project memory
*/
GetProjectVariableList(
@@ -1830,5 +1840,188 @@ export default class MemoryService<T> {
};
return this.request({ url, method, data, params }, options);
}
/** PUT /v1/variables */
OpenSetPlaygroundVariable(
req?: kvmemory.OpenSetPlaygroundVariableReq,
options?: T,
): Promise<kvmemory.OpenSetPlaygroundVariableResp> {
const _req = req || {};
const url = this.genBaseURL('/v1/variables');
const method = 'PUT';
const data = {
app_id: _req['app_id'],
bot_id: _req['bot_id'],
connector_id: _req['connector_id'],
connector_uid: _req['connector_uid'],
data: _req['data'],
Base: _req['Base'],
};
return this.request({ url, method, data }, options);
}
/** GET /v1/variables */
OpenGetPlaygroundVariable(
req?: kvmemory.OpenGetPlaygroundVariableReq,
options?: T,
): Promise<kvmemory.OpenGetPlaygroundVariableResp> {
const _req = req || {};
const url = this.genBaseURL('/v1/variables');
const method = 'GET';
const params = {
app_id: _req['app_id'],
bot_id: _req['bot_id'],
connector_id: _req['connector_id'],
connector_uid: _req['connector_uid'],
keywords: _req['keywords'],
Base: _req['Base'],
};
return this.request({ url, method, params }, options);
}
/** POST /api/memory/volcano_database/list_database */
VolcanoDatabaseListDatabase(
req: volcano_database.VolcaDatabaseListDatabaseRequest,
options?: T,
): Promise<volcano_database.VolcaDatabaseListDatabaseResponse> {
const _req = req;
const url = this.genBaseURL('/api/memory/volcano_database/list_database');
const method = 'POST';
const data = {
space_id: _req['space_id'],
region_id: _req['region_id'],
connect_info: _req['connect_info'],
page_num: _req['page_num'],
page_size: _req['page_size'],
Base: _req['Base'],
};
return this.request({ url, method, data }, options);
}
/** POST /api/memory/volcano_database/list_table */
VolcanoDatabaseListTable(
req: volcano_database.VolcaDatabaseListTableRequest,
options?: T,
): Promise<volcano_database.VolcaDatabaseListTableResponse> {
const _req = req;
const url = this.genBaseURL('/api/memory/volcano_database/list_table');
const method = 'POST';
const data = {
space_id: _req['space_id'],
region_id: _req['region_id'],
database_bind_info: _req['database_bind_info'],
page_num: _req['page_num'],
page_size: _req['page_size'],
Base: _req['Base'],
};
return this.request({ url, method, data }, options);
}
/**
* POST /api/memory/volcano_database/list_project
*
* 火山数据库
*/
VolcanoDatabaseListProject(
req: volcano_database.VolcaDatabaseListProjectRequest,
options?: T,
): Promise<volcano_database.VolcaDatabaseListProjectResponse> {
const _req = req;
const url = this.genBaseURL('/api/memory/volcano_database/list_project');
const method = 'POST';
const data = { space_id: _req['space_id'], Base: _req['Base'] };
return this.request({ url, method, data }, options);
}
/** POST /api/memory/volcano_database/connect_check */
VolcanoDatabaseConnectCheck(
req?: volcano_database.VolcaDatabaseConnectCheckRequest,
options?: T,
): Promise<volcano_database.VolcaDatabaseConnectCheckResponse> {
const _req = req || {};
const url = this.genBaseURL('/api/memory/volcano_database/connect_check');
const method = 'POST';
const data = {
space_id: _req['space_id'],
region_id: _req['region_id'],
connect_info: _req['connect_info'],
Base: _req['Base'],
};
return this.request({ url, method, data }, options);
}
/** POST /api/memory/volcano_database/get_table_right */
VolcanoDatabaseGetTableRight(
req?: volcano_database.VolcaDatabaseGetTableRightRequest,
options?: T,
): Promise<volcano_database.VolcaDatabaseGetTableRightResponse> {
const _req = req || {};
const url = this.genBaseURL('/api/memory/volcano_database/get_table_right');
const method = 'POST';
const data = {
space_id: _req['space_id'],
database_id: _req['database_id'],
connect_info: _req['connect_info'],
Base: _req['Base'],
};
return this.request({ url, method, data }, options);
}
/** POST /api/memory/volcano_database/list_instance */
VolcanoDatabaseInstance(
req: volcano_database.VolcaDatabaseListInstanceRequest,
options?: T,
): Promise<volcano_database.VolcaDatabaseListInstanceResponse> {
const _req = req;
const url = this.genBaseURL('/api/memory/volcano_database/list_instance');
const method = 'POST';
const data = {
space_id: _req['space_id'],
project_name: _req['project_name'],
region_id: _req['region_id'],
page_num: _req['page_num'],
page_size: _req['page_size'],
Base: _req['Base'],
};
return this.request({ url, method, data }, options);
}
/** POST /api/memory/volcano_database/batch_associate */
VolcanoDatabaseBatchAssociate(
req?: volcano_database.VolcaDatabaseBatchAssociateRequest,
options?: T,
): Promise<volcano_database.VolcaDatabaseBatchAssociateResponse> {
const _req = req || {};
const url = this.genBaseURL('/api/memory/volcano_database/batch_associate');
const method = 'POST';
const data = {
space_id: _req['space_id'],
region_id: _req['region_id'],
database_bind_info: _req['database_bind_info'],
volcano_table_list: _req['volcano_table_list'],
project_id: _req['project_id'],
Base: _req['Base'],
};
return this.request({ url, method, data }, options);
}
/** POST /api/memory/volcano_database/change_table_right */
VolcanoDatabaseChangeTableRight(
req?: volcano_database.VolcaDatabaseChangeTableRightRequest,
options?: T,
): Promise<volcano_database.VolcaDatabaseChangeTableRightResponse> {
const _req = req || {};
const url = this.genBaseURL(
'/api/memory/volcano_database/change_table_right',
);
const method = 'POST';
const data = {
space_id: _req['space_id'],
connect_info: _req['connect_info'],
database_ids: _req['database_ids'],
Base: _req['Base'],
};
return this.request({ url, method, data }, options);
}
}
/* eslint-enable */

View File

@@ -108,6 +108,16 @@ export enum KnowledgeShowSourceMode {
CardList = 1,
}
export enum KnowledgeType {
Coze = 0,
Volcano = 1,
}
export enum KnowledgeTypeMode {
Coze = 0,
Volcano = 1,
}
export enum MultiAgentConnectorType {
Curve = 0,
Straight = 1,

View File

@@ -45,6 +45,11 @@ export enum DataSetStatus {
DataSetFailed = 9,
}
export enum DatasetType {
Coze = 0,
Volcano = 1,
}
export enum DocumentSourceType {
/** 本地上传 */
Document = 0,
@@ -96,6 +101,10 @@ export enum FormatType {
Image = 2,
/** 数据库 */
Database = 3,
/** 火山结构化 火山知识库特有 */
VolcanoStructured = 4,
/** 火山非结构化 火山知识库特有 */
VolcanoUnstructured = 5,
}
export enum SliceStatus {
@@ -109,6 +118,16 @@ export enum SliceStatus {
AuditFailed = 1000,
}
export enum VolcanoDatasetServiceStatus {
DatasetServiceValid = 0,
DatasetServiceInvalid = 1,
}
export enum VolcanoDatasetStatus {
DatasetValid = 0,
DatasetInvalid = 1,
}
export enum WebInfoStatus {
/** 处理中 */
Handling = 0,
@@ -149,6 +168,10 @@ export interface DataSetInfo {
/** 处理失败的文件 */
failed_file_list?: Array<string>;
format_type?: FormatType;
/** 0=coze知识库 1=火山知识库 */
dataset_type?: DatasetType;
/** storage_config详细信息 */
storage_config?: StorageConfig;
}
/** 表格的列信息 */
@@ -248,4 +271,21 @@ export interface SourceFileInfo {
/** custom json list<map<string, string>> */
custom_content?: string;
}
export interface StorageConfig {
volcano_dataset_config?: VolcanoDataset;
}
export interface VolcanoDataset {
/** 火山侧知识库id 字符串 */
id?: string;
/** 名称 */
name?: string;
/** 类型 结构化 or 非结构化知识库 */
format_type?: FormatType;
/** 火山知识库详情链接 */
link?: string;
/** 火山知识库状态 是否已失效 */
status?: VolcanoDatasetStatus;
}
/* eslint-enable */

View File

@@ -194,7 +194,9 @@ export interface MGetAuthInfoRequest {
}
export interface MGetAuthInfoResponse {
auth_info_map?: Record<connector_common.ConnectorID, Array<AuthInfo>>;
auth_info_map?: Partial<
Record<connector_common.ConnectorID, Array<AuthInfo>>
>;
code: Int64;
msg: string;
}

View File

@@ -109,10 +109,11 @@ export interface GetUserDataSourceListRequest {
}
export interface GetUserDataSourceListResponse {
authorization_url_map?: Record<data_connector_common.DataSourceType, string>;
data_source_map?: Record<
data_connector_common.DataSourceType,
Array<DataSourceInfo>
authorization_url_map?: Partial<
Record<data_connector_common.DataSourceType, string>
>;
data_source_map?: Partial<
Record<data_connector_common.DataSourceType, Array<DataSourceInfo>>
>;
code: Int64;
msg: string;

View File

@@ -144,6 +144,7 @@ export interface RecallDataSetData {
export interface RecallDataSetInfo {
slice?: string;
score?: number;
doc_id?: string;
}
export interface RecallStrategy {

View File

@@ -40,6 +40,10 @@ export interface DelProfileMemoryResponse {
BaseResp: base.BaseResp;
}
export interface GetMemoryVariableMetaListData {
items?: Array<VariableNew>;
}
export interface GetProfileMemoryRequest {
user_id?: Int64;
bot_id?: string;
@@ -70,6 +74,10 @@ export interface GetSysVariableConfResponse {
BaseResp: base.BaseResp;
}
export interface GetVariableData {
items?: Array<KVItem>;
}
export interface GroupVariableInfo {
group_name?: string;
group_desc?: string;
@@ -88,6 +96,46 @@ export interface KVItem {
schema?: string;
}
export interface OpenGetPlaygroundVariableReq {
/** Project的用户变量传project */
app_id?: string;
/** bot id */
bot_id?: string;
connector_id?: string;
/** 渠道uid */
connector_uid?: string;
/** 变量名称 */
keywords?: Array<string>;
Base?: base.Base;
}
export interface OpenGetPlaygroundVariableResp {
code?: number;
msg?: string;
data?: GetVariableData;
BaseResp: base.BaseResp;
}
export interface OpenSetPlaygroundVariableReq {
/** Project的用户变量传project */
app_id?: string;
/** bot id */
bot_id?: string;
/** 渠道id */
connector_id?: string;
/** 渠道uid */
connector_uid?: string;
/** 要设置的值 */
data?: Array<KVItem>;
Base?: base.Base;
}
export interface OpenSetPlaygroundVariableResp {
code?: number;
msg?: string;
BaseResp: base.BaseResp;
}
export interface SetKvMemoryReq {
bot_id: string;
user_id?: Int64;
@@ -117,5 +165,23 @@ export interface VariableInfo {
group_desc?: string;
group_ext_desc?: string;
EffectiveChannelList?: Array<string>;
is_allow_modify?: string;
}
export interface VariableNew {
/** 变量名 */
keyword?: string;
/** 默认值 */
default_value?: string;
/** 变量类型 */
variable_type?: string;
/** 变量来源 */
channel?: string;
/** 变量描述 */
description?: string;
/** 是否启用 */
enable?: boolean;
/** 变量默认支持在Prompt中访问取消勾选后将不支持在Prompt中访问仅能在Workflow中访问 */
prompt_enable?: boolean;
}
/* eslint-enable */

View File

@@ -86,7 +86,7 @@ export interface GetMemoryVariableMetaReq {
}
export interface GetMemoryVariableMetaResp {
VariableMap?: Record<VariableChannel, Array<Variable>>;
VariableMap?: Partial<Record<VariableChannel, Array<Variable>>>;
BaseResp: base.BaseResp;
}

View File

@@ -30,6 +30,12 @@ export enum ActionKey {
EnableSwitch = 3,
/** 编辑 */
Edit = 4,
/** 切换成funcflow */
SwitchToFuncflow = 8,
/** 切换成chatflow */
SwitchToChatflow = 9,
/** 跨空间复制 */
CrossSpaceCopy = 10,
}
export enum CopyStatus {
@@ -85,13 +91,13 @@ export enum ResourceCopyScene {
MoveResourceToLibrary = 3,
/** 复制Library资源到项目 */
CopyResourceFromLibrary = 4,
/** 复制项目 */
/** 复制项目,连带资源要复制。复制当前草稿。 */
CopyProject = 5,
/** 项目发布到渠道,连带资源需要发布(含商店)。以当前草稿发布。 */
PublishProject = 6,
/** 复制项目模板。 */
CopyProjectTemplate = 7,
/** 项目发布到模板,以项目的指定版本发布成模板。 */
/** 项目发布到模板,以项目的指定版本发布成临时模板。 */
PublishProjectTemplate = 8,
/** 上架模板 */
LaunchTemplate = 9,
@@ -182,6 +188,8 @@ export interface ResourceCopyEnv {
CurrentUserID?: Int64;
/** 发布模板时原项目版本。or 复制模板时,模板的项目版本。 */
OriginProjectVersion?: Int64;
/** 0/default-app默认是app也就是之前的project; 1-bot或者叫agent */
ProjectType?: number;
}
/** 每个资源的复制结果,包含前后映射信息 */
@@ -199,8 +207,7 @@ export interface ResourceCopyResult {
export interface ResourceLocator {
ResID?: Int64;
ResType?: ResType;
/** 资源的当前版本没有则是最新版本。项目发布版本或Library发布版本
废弃,不要使用 */
/** 废弃,不要使用 */
PublishVersion?: Int64;
/** 资源的当前版本为nil或空字符串都看作是最新版本。项目发布版本或Library发布版本。 */
PublishVersionStr?: string;

View File

@@ -19,6 +19,7 @@
/* tslint:disable */
// @ts-nocheck
import * as volcano_database from './volcano_database';
import * as base from './base';
export type Int64 = string | number;
@@ -32,6 +33,8 @@ export enum ActionKey {
EnableSwitch = 3,
/** 编辑 */
Edit = 4,
/** 跨空间复制 */
CrossSpaceCopy = 10,
}
export enum BotTableRWMode {
@@ -45,7 +48,6 @@ export enum BotTableRWMode {
RWModeMax = 4,
}
/** ***** bot_table start ******* */
export enum BotTableStatus {
/** 已上线 */
Online = 1,
@@ -69,7 +71,46 @@ export enum ColumnType {
Image = 6,
}
/** ***** bot_table start ******* */
export enum DatabaseType {
All = -1,
/** Coze上创建的数据库 */
Coze = 0,
/** 火山引擎数据库 */
Volcano = 1,
}
export enum FieldFunction {
/** 当前时间戳 */
CURRENT_TIMESTAMP = 1,
/** 当前日期 */
CURRENT_DATE = 2,
/** 当前时间 */
CURRENT_TIME = 3,
/** 当前日期和时间(等同于 CURRENT_TIMESTAMP */
NOW = 4,
/** 当前 UTC 时间戳 */
UTC_TIMESTAMP = 5,
/** 当前 UTC 日期 */
UTC_DATE = 6,
/** 当前 UTC 时间 */
UTC_TIME = 7,
/** 生成 UUID */
UUID = 8,
/** 生成随机数 */
RAND = 9,
/** 当前用户 */
USER = 10,
/** 当前数据库 */
DATABASE = 11,
/** MySQL 版本 */
VERSION = 12,
/** 最后插入的 ID */
LAST_INSERT_ID = 13,
}
export enum FieldItemType {
Unknown = 0,
/** 文本 */
Text = 1,
/** 数字 */
@@ -80,6 +121,8 @@ export enum FieldItemType {
Float = 4,
/** bool */
Boolean = 5,
/** 二进制 */
Binary = 6,
}
export enum OperateType {
@@ -136,6 +179,12 @@ export enum SceneType {
ModelDesc = 2,
}
export enum ScopeType {
Draft = 1,
Online = 2,
All = 3,
}
export enum SortDirection {
ASC = 1,
Desc = 2,
@@ -150,6 +199,13 @@ export enum TableDataType {
OnlyPreview = 2,
}
export enum TableRWMode {
ReadWrite = 1,
ReadOnly = 2,
DisableDelete = 3,
RWModeMax = 4,
}
export enum TableType {
/** 草稿 */
DraftTable = 1,
@@ -178,6 +234,10 @@ export interface AddDatabaseRequest {
prompt_disabled?: boolean;
/** 扩展信息 */
extra_info?: Record<string, string>;
database_type?: DatabaseType;
volcano_database_bind_info?: volcano_database.VolcanoDatabaseBindInfo;
/** 火山region id */
region_id?: string;
Base?: base.Base;
}
@@ -193,6 +253,10 @@ export interface AlterBotTableResponse {
BaseResp: base.BaseResp;
}
export interface BinaryDefault {
value?: Blob;
}
export interface BindDatabaseToBotRequest {
/** 草稿态数据database表主键id注意是草稿态哈 */
database_id?: string;
@@ -207,6 +271,10 @@ export interface BindDatabaseToBotResponse {
BaseResp?: base.BaseResp;
}
export interface BoolDefault {
value?: boolean;
}
export interface BotTable {
/** 自增idtable id */
id?: string;
@@ -255,6 +323,7 @@ export interface Condition {
export interface ConnectorInfo {
ConnectorID?: Int64;
ConnectorName?: string;
ConnectorIDStr?: string;
}
export interface Criterion {
@@ -312,6 +381,31 @@ export interface DatabaseInfo {
extra_info?: Record<string, string>;
/** 是否已经添加到bot中 */
is_added_to_bot?: boolean;
/** 0=coze知识库 1=火山知识库 */
database_type?: DatabaseType;
volcano_storage_config?: volcano_database.VolcanoStorageConfig;
}
export interface DateDefault {
/** 动态函数(如 CURRENT_TIMESTAMP */
func?: FieldFunction;
/** 更新时的动态函数 */
on_update?: FieldFunction;
/** 静态值格式YYYY-MM-DD */
value?: string;
}
export interface DateTimeDefault {
/** 动态函数(如 CURRENT_TIMESTAMP */
func?: FieldFunction;
/** 更新时的动态函数 */
on_update?: FieldFunction;
/** 静态值格式YYYY-MM-DD HH:MM:SS */
value?: string;
}
export interface DecimalDefault {
value?: string;
}
export interface DeleteBotTableRequest {
@@ -363,6 +457,51 @@ export interface DisplayResourceInfo {
PublishStatus?: PublishStatus;
/** 最近编辑时间, unix秒级时间戳 */
EditTime?: Int64;
ResSubType?: number;
}
export interface EnumDefault {
value?: string;
}
/** struct VolcanoDBFieldItem {
1: string name
2: string desc
3: FieldItemType type
4: bool must_required
5: i64 id // 该字段只用来判断是否发布,不为 0 就是已发布的,前端对已发布的字段不能修改字段类型
6: i64 alterId // 修改字段时alter、publish用来判断增删改0 表示新增,非 0 表示修改或删除
7: bool is_primary_key // 是否是主键
8: FieldDefault default_value // 默认值
9: map<string,string> map_ext_meta // 业务自定义扩展field元数据
} */
export interface FieldDefault {
/** CHAR、VARCHAR、TEXT */
default_text?: TextDefault;
/** INT、TINYINT、SMALLINT、MEDIUMINT、BIGINT */
default_number?: NumberDefault;
/** FLOAT、DOUBLE */
default_float?: FloatDefault;
/** DECIMAL */
default_decimal?: DecimalDefault;
/** BOOL、BOOLEAN */
default_bool?: BoolDefault;
/** DATE */
default_date?: DateDefault;
/** DATETIME */
default_datetime?: DateTimeDefault;
/** TIMESTAMP */
default_timestamp?: TimestampDefault;
/** TIME */
default_time?: TimeDefault;
/** ENUM */
default_enum?: EnumDefault;
/** SET */
default_set?: SetDefault;
/** JSON */
default_json?: JsonDefault;
/** BLOB、BINARY、VARBINARY */
default_binary?: BinaryDefault;
}
export interface FieldItem {
@@ -376,6 +515,20 @@ export interface FieldItem {
alterId?: Int64;
/** 是否是系统字段 */
is_system_field?: boolean;
/** 是否是主键 */
is_primary_key?: boolean;
/** 默认值 */
default_value?: FieldDefault;
/** 默认值 */
default_value_str?: string;
/** 业务自定义扩展field元数据 */
map_ext_meta?: Record<string, string>;
/** 原始的数据类型(目前火山数据库会返回这个字段) */
origin_type?: string;
}
export interface FloatDefault {
value?: number;
}
export interface GetBotTableRequest {
@@ -514,6 +667,10 @@ export interface InsertBotTableResponse {
BaseResp: base.BaseResp;
}
export interface JsonDefault {
value?: string;
}
export interface ListDatabaseRecordsRequest {
/** database_id */
database_id: string;
@@ -570,6 +727,8 @@ export interface ListDatabaseRequest {
filter_criterion?: Criterion;
/** 排序条件 */
order_by_list?: Array<OrderBy>;
/** 数据库类型 0-coze 1-火山 */
database_type?: DatabaseType;
Base?: base.Base;
}
@@ -596,6 +755,11 @@ export interface MigrateOldDataResponse {
BaseResp: base.BaseResp;
}
export interface NumberDefault {
auto_increment?: boolean;
value?: Int64;
}
export interface OrderBy {
field?: string;
direction?: SortDirection;
@@ -687,6 +851,10 @@ export interface SelectFieldList {
isDistinct: boolean;
}
export interface SetDefault {
value?: Array<string>;
}
export interface SingleDatabaseRequest {
/** database_info的主键id */
id?: string;
@@ -716,6 +884,7 @@ export interface SqlParamVal {
is_null: boolean;
value?: string;
name?: string;
origin_type?: string;
}
export interface SubmitDatabaseInsertRequest {
@@ -735,6 +904,28 @@ export interface SubmitDatabaseInsertResponse {
BaseResp?: base.BaseResp;
}
export interface TableInfo {
/** online_database_info的主键id */
id?: string;
/** 头像url */
icon_url?: string;
/** 表名 */
table_name?: string;
/** 表描述 */
table_desc?: string;
/** 创建者id */
creator_id?: string;
/** 创建时间 */
create_time?: Int64;
/** 更新时间 */
update_time?: Int64;
/** project id */
project_id?: string;
icon_uri?: string;
/** 数据库类型 */
database_type?: DatabaseType;
}
export interface TableSheet {
/** 用户选择的 sheet id */
sheet_id?: string;
@@ -744,6 +935,29 @@ export interface TableSheet {
start_line_idx?: string;
}
export interface TextDefault {
/** CHAR、VARCHAR、TEXT 的默认值 */
value?: string;
}
export interface TimeDefault {
/** 动态函数(如 CURRENT_TIMESTAMP */
func?: FieldFunction;
/** 更新时的动态函数 */
on_update?: FieldFunction;
/** 静态值格式HH:MM:SS */
value?: string;
}
export interface TimestampDefault {
/** 动态函数(如 CURRENT_TIMESTAMP */
func?: FieldFunction;
/** 更新时的动态函数 */
on_update?: FieldFunction;
/** 静态值格式YYYY-MM-DD HH:MM:SS */
value?: string;
}
export interface UpdateDatabaseBotSwitchRequest {
bot_id: string;
database_id: string;