@cozeloop/prompt-components 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/idls/fornax_ml_flow/index.js +2322 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/ai_annotate.js +41 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/aidpcallback.js +108 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/annotation_job.js +52 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/base.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/batch_infer.js +72 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/dataprocess.js +10 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/dataset.js +36 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2.js +139 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2job.js +40 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2lineage.js +25 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2similarity.js +12 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/filter.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.js +36 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.js +318 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/fornax_domain_model.js +326 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.js +327 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/openapi.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/tag.js +33 -0
- package/dist/es/idls/prompt_api/index.js +2009 -0
- package/dist/es/idls/prompt_api/namespaces/base.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_callback.js +35 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_common.js +318 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_debug.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_manage.js +23 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_mcp.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_optimize.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_paas.js +43 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_platform.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/mcp.js +9 -0
- package/dist/es/idls/prompt_api/namespaces/model.js +320 -0
- package/dist/es/idls/prompt_api/namespaces/permission.js +47 -0
- package/dist/es/idls/prompt_api/namespaces/release.js +25 -0
- package/dist/es/prompt-editor/index.js +1 -1
- package/dist/es/utils/model-config.js +3 -3
- package/dist/lib/idls/fornax_ml_flow/index.js +2414 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/ai_annotate.js +69 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/aidpcallback.js +140 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/annotation_job.js +82 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/base.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/batch_infer.js +105 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/dataprocess.js +34 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/dataset.js +63 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2.js +177 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2job.js +68 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2lineage.js +50 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2similarity.js +37 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/filter.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.js +62 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.js +378 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/fornax_domain_model.js +384 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.js +385 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/openapi.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/tag.js +60 -0
- package/dist/lib/idls/prompt_api/index.js +2071 -0
- package/dist/lib/idls/prompt_api/namespaces/base.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_callback.js +62 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_common.js +378 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_debug.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_manage.js +49 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_mcp.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_optimize.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_paas.js +72 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_platform.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/mcp.js +33 -0
- package/dist/lib/idls/prompt_api/namespaces/model.js +377 -0
- package/dist/lib/idls/prompt_api/namespaces/permission.js +72 -0
- package/dist/lib/idls/prompt_api/namespaces/release.js +50 -0
- package/dist/lib/prompt-editor/index.js +1 -1
- package/dist/lib/utils/model-config.js +13 -3
- package/dist/types/idls/fornax_ml_flow/index.d.ts +779 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/ai_annotate.d.ts +102 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/aidpcallback.d.ts +227 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/annotation_job.d.ts +402 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/base.d.ts +18 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/batch_infer.d.ts +331 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/dataprocess.d.ts +16 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/dataset.d.ts +88 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2.d.ts +462 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2job.d.ts +180 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2lineage.d.ts +69 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2similarity.d.ts +8 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/filter.d.ts +39 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.d.ts +88 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.d.ts +370 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/fornax_domain_model.d.ts +320 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.d.ts +510 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/openapi.d.ts +6 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.d.ts +106 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.d.ts +256 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.d.ts +73 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.d.ts +94 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.d.ts +11 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.d.ts +24 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.d.ts +653 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.d.ts +83 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.d.ts +81 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.d.ts +24 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.d.ts +260 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.d.ts +111 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/tag.d.ts +109 -0
- package/dist/types/idls/prompt_api/index.d.ts +667 -0
- package/dist/types/idls/prompt_api/namespaces/base.d.ts +18 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_callback.d.ts +102 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.d.ts +81 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_common.d.ts +1270 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_debug.d.ts +197 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_manage.d.ts +769 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_mcp.d.ts +301 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_optimize.d.ts +155 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_paas.d.ts +198 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_platform.d.ts +230 -0
- package/dist/types/idls/prompt_api/namespaces/mcp.d.ts +95 -0
- package/dist/types/idls/prompt_api/namespaces/model.d.ts +315 -0
- package/dist/types/idls/prompt_api/namespaces/permission.d.ts +52 -0
- package/dist/types/idls/prompt_api/namespaces/release.d.ts +62 -0
- package/dist/types/model-config-editor/basic-type.d.ts +2 -2
- package/dist/types/model-config-editor/model-config-form.d.ts +1 -1
- package/dist/types/model-config-editor/popover-type.d.ts +3 -3
- package/dist/types/model-select/index.d.ts +1 -1
- package/dist/types/model-select/model-option/index.d.ts +1 -1
- package/dist/types/prompt-editor/index.d.ts +1 -1
- package/dist/types/utils/model-config.d.ts +4 -4
- package/package.json +5 -3
|
@@ -0,0 +1,653 @@
|
|
|
1
|
+
import * as datasetv2 from './datasetv2';
|
|
2
|
+
import * as base from './base';
|
|
3
|
+
import * as datasetv2job from './datasetv2job';
|
|
4
|
+
import * as datasetv2similarity from './datasetv2similarity';
|
|
5
|
+
import * as filter from './filter';
|
|
6
|
+
export type Int64 = string | number;
|
|
7
|
+
export interface BatchCreateDatasetItemsReq {
|
|
8
|
+
spaceID?: string;
|
|
9
|
+
datasetID: string;
|
|
10
|
+
items?: Array<datasetv2.DatasetItem>;
|
|
11
|
+
/** items 中存在无效数据时,默认不会写入任何数据;设置 skipInvalidItems=true 会跳过无效数据,写入有效数据 */
|
|
12
|
+
skipInvalidItems?: boolean;
|
|
13
|
+
/** 批量写入 items 如果超出数据集容量限制,默认不会写入任何数据;设置 partialAdd=true 会写入不超出容量限制的前 N 条 */
|
|
14
|
+
allowPartialAdd?: boolean;
|
|
15
|
+
base?: base.Base;
|
|
16
|
+
}
|
|
17
|
+
export interface BatchCreateDatasetItemsResp {
|
|
18
|
+
/** key: item 在 items 中的索引 */
|
|
19
|
+
addedItems?: Record<number, Int64>;
|
|
20
|
+
errors?: Array<datasetv2.ItemErrorGroup>;
|
|
21
|
+
/** base */
|
|
22
|
+
baseResp?: base.BaseResp;
|
|
23
|
+
}
|
|
24
|
+
export interface BatchDeleteDatasetItemsReq {
|
|
25
|
+
spaceID?: string;
|
|
26
|
+
datasetID: string;
|
|
27
|
+
itemIDs?: Array<string>;
|
|
28
|
+
base?: base.Base;
|
|
29
|
+
}
|
|
30
|
+
export interface BatchDeleteDatasetItemsResp {
|
|
31
|
+
baseResp?: base.BaseResp;
|
|
32
|
+
}
|
|
33
|
+
export interface BatchGetDatasetItemsByVersionReq {
|
|
34
|
+
spaceID?: string;
|
|
35
|
+
datasetID: string;
|
|
36
|
+
versionID: string;
|
|
37
|
+
itemIDs: Array<string>;
|
|
38
|
+
base?: base.Base;
|
|
39
|
+
}
|
|
40
|
+
export interface BatchGetDatasetItemsByVersionResp {
|
|
41
|
+
items?: Array<datasetv2.DatasetItem>;
|
|
42
|
+
baseResp?: base.BaseResp;
|
|
43
|
+
}
|
|
44
|
+
export interface BatchGetDatasetItemsReq {
|
|
45
|
+
spaceID?: string;
|
|
46
|
+
datasetID: string;
|
|
47
|
+
itemIDs: Array<string>;
|
|
48
|
+
base?: base.Base;
|
|
49
|
+
}
|
|
50
|
+
export interface BatchGetDatasetItemsResp {
|
|
51
|
+
items?: Array<datasetv2.DatasetItem>;
|
|
52
|
+
baseResp?: base.BaseResp;
|
|
53
|
+
}
|
|
54
|
+
export interface BatchGetDatasetsReq {
|
|
55
|
+
spaceID: string;
|
|
56
|
+
datasetIDs: Array<string>;
|
|
57
|
+
withDeleted?: boolean;
|
|
58
|
+
base?: base.Base;
|
|
59
|
+
}
|
|
60
|
+
export interface BatchGetDatasetsResp {
|
|
61
|
+
datasets?: Array<datasetv2.Dataset>;
|
|
62
|
+
baseResp?: base.BaseResp;
|
|
63
|
+
}
|
|
64
|
+
export interface BatchGetVersionedDatasetsReq {
|
|
65
|
+
spaceID?: string;
|
|
66
|
+
versionIDs: Array<string>;
|
|
67
|
+
/** 是否返回已删除的数据,默认不返回 */
|
|
68
|
+
withDeleted?: boolean;
|
|
69
|
+
base?: base.Base;
|
|
70
|
+
}
|
|
71
|
+
export interface BatchGetVersionedDatasetsResp {
|
|
72
|
+
versionedDataset?: Array<VersionedDataset>;
|
|
73
|
+
baseResp?: base.BaseResp;
|
|
74
|
+
}
|
|
75
|
+
export interface CancelDatasetIOJobReq {
|
|
76
|
+
spaceID: string;
|
|
77
|
+
jobID: string;
|
|
78
|
+
base?: base.Base;
|
|
79
|
+
}
|
|
80
|
+
export interface CancelDatasetIOJobResp {
|
|
81
|
+
baseResp?: base.BaseResp;
|
|
82
|
+
}
|
|
83
|
+
export interface ClearDatasetItemRequest {
|
|
84
|
+
spaceID?: string;
|
|
85
|
+
dataset_id: string;
|
|
86
|
+
Base?: base.Base;
|
|
87
|
+
}
|
|
88
|
+
export interface ClearDatasetItemResponse {
|
|
89
|
+
BaseResp?: base.BaseResp;
|
|
90
|
+
}
|
|
91
|
+
export interface ConfirmItemDeduplicateReq {
|
|
92
|
+
spaceID?: string;
|
|
93
|
+
jobID: string;
|
|
94
|
+
/** 批量确认 */
|
|
95
|
+
pairs: Array<ConfirmItemPair>;
|
|
96
|
+
/** base */
|
|
97
|
+
base?: base.Base;
|
|
98
|
+
}
|
|
99
|
+
export interface ConfirmItemDeduplicateResp {
|
|
100
|
+
baseResp?: base.BaseResp;
|
|
101
|
+
}
|
|
102
|
+
export interface ConfirmItemPair {
|
|
103
|
+
/** 新导入的条目主键 */
|
|
104
|
+
newItemsUniqKey: string;
|
|
105
|
+
importConfirmType: datasetv2job.ImportConfirmType;
|
|
106
|
+
}
|
|
107
|
+
export interface ConflictField {
|
|
108
|
+
/** 存在冲突的列名 */
|
|
109
|
+
fieldName?: string;
|
|
110
|
+
/** 冲突详情。key: 文件名,val:该文件中包含的类型 */
|
|
111
|
+
detailM?: Record<string, datasetv2.FieldSchema>;
|
|
112
|
+
}
|
|
113
|
+
export interface CreateDatasetItemReq {
|
|
114
|
+
spaceID: string;
|
|
115
|
+
datasetID: string;
|
|
116
|
+
/** 数据插入的幂等 key,前端创建时可以不传 */
|
|
117
|
+
itemKey?: string;
|
|
118
|
+
/** 数据内容 */
|
|
119
|
+
data?: Array<datasetv2.FieldData>;
|
|
120
|
+
/** 多轮数据内容,与 data 互斥 */
|
|
121
|
+
repeatedData?: Array<datasetv2.ItemData>;
|
|
122
|
+
/** 如果有来源 item,可以通过该字段指定是否保留与克隆的源 item 的血缘关系 */
|
|
123
|
+
keepLineage?: boolean;
|
|
124
|
+
/** 源 item id,在 keepLineage 为 true 时必填 */
|
|
125
|
+
sourceItemID?: string;
|
|
126
|
+
/** 源 item id,在 keepLineage 为 true 时填写,如果为 0 默认与当前 dataset 一致。 */
|
|
127
|
+
sourceDatasetID?: string;
|
|
128
|
+
/** 源 item 版本,在 keepLineage 为 true 时填写,如果为 0 默认为源数据集的草稿版本。 */
|
|
129
|
+
sourceDatasetVersionID?: string;
|
|
130
|
+
base?: base.Base;
|
|
131
|
+
}
|
|
132
|
+
export interface CreateDatasetItemResp {
|
|
133
|
+
itemID?: string;
|
|
134
|
+
error?: datasetv2.ItemErrorGroup;
|
|
135
|
+
baseResp?: base.BaseResp;
|
|
136
|
+
}
|
|
137
|
+
export interface CreateDatasetReq {
|
|
138
|
+
spaceID: string;
|
|
139
|
+
appID?: number;
|
|
140
|
+
name: string;
|
|
141
|
+
description?: string;
|
|
142
|
+
category?: datasetv2.DatasetCategory;
|
|
143
|
+
bizCategory?: string;
|
|
144
|
+
fields?: Array<datasetv2.FieldSchema>;
|
|
145
|
+
securityLevel?: datasetv2.SecurityLevel;
|
|
146
|
+
visibility?: datasetv2.DatasetVisibility;
|
|
147
|
+
spec?: datasetv2.DatasetSpec;
|
|
148
|
+
features?: datasetv2.DatasetFeatures;
|
|
149
|
+
userID?: string;
|
|
150
|
+
base?: base.Base;
|
|
151
|
+
}
|
|
152
|
+
export interface CreateDatasetResp {
|
|
153
|
+
datasetID?: string;
|
|
154
|
+
baseResp?: base.BaseResp;
|
|
155
|
+
}
|
|
156
|
+
export interface CreateDatasetVersionReq {
|
|
157
|
+
spaceID?: string;
|
|
158
|
+
datasetID: string;
|
|
159
|
+
/** 展示的版本号,SemVer2 三段式,需要大于上一版本 */
|
|
160
|
+
version: string;
|
|
161
|
+
desc?: string;
|
|
162
|
+
base?: base.Base;
|
|
163
|
+
}
|
|
164
|
+
export interface CreateDatasetVersionResp {
|
|
165
|
+
id?: string;
|
|
166
|
+
baseResp?: base.BaseResp;
|
|
167
|
+
}
|
|
168
|
+
export interface CreateDatasetWithImportReq {
|
|
169
|
+
spaceID?: string;
|
|
170
|
+
appID?: number;
|
|
171
|
+
sourceType?: datasetv2job.SourceType;
|
|
172
|
+
source: datasetv2job.DatasetIOEndpoint;
|
|
173
|
+
fieldMappings?: Array<datasetv2job.FieldMapping>;
|
|
174
|
+
option?: datasetv2job.DatasetIOJobOption;
|
|
175
|
+
/** 新建数据集名称 */
|
|
176
|
+
targetDatasetName: string;
|
|
177
|
+
/** 新建数据集描述 */
|
|
178
|
+
targetDatasetDesc?: string;
|
|
179
|
+
category?: datasetv2.DatasetCategory;
|
|
180
|
+
fields?: Array<datasetv2.FieldSchema>;
|
|
181
|
+
/** base */
|
|
182
|
+
base?: base.Base;
|
|
183
|
+
}
|
|
184
|
+
export interface CreateDatasetWithImportResp {
|
|
185
|
+
datasetID?: string;
|
|
186
|
+
jobID?: string;
|
|
187
|
+
baseResp?: base.BaseResp;
|
|
188
|
+
}
|
|
189
|
+
export interface CreateItemDeduplicateJobReq {
|
|
190
|
+
spaceID?: string;
|
|
191
|
+
datasetID: Int64;
|
|
192
|
+
file?: datasetv2job.DatasetIOFile;
|
|
193
|
+
fieldMappings?: Array<datasetv2job.FieldMapping>;
|
|
194
|
+
option?: datasetv2job.DatasetIOJobOption;
|
|
195
|
+
/** 任务id,重入时用 */
|
|
196
|
+
jobID?: string;
|
|
197
|
+
/** 根据哪一列去重 */
|
|
198
|
+
fieldKey?: string;
|
|
199
|
+
/** 去重算法 */
|
|
200
|
+
similarityAlgorithm?: datasetv2similarity.SimilarityAlgorithm;
|
|
201
|
+
/** 阈值 */
|
|
202
|
+
threshold?: Int64;
|
|
203
|
+
/** base */
|
|
204
|
+
base?: base.Base;
|
|
205
|
+
}
|
|
206
|
+
export interface CreateItemDeduplicateJobResp {
|
|
207
|
+
/** 任务id,前端后续用这个id去获取 待确认列表 */
|
|
208
|
+
jobID: string;
|
|
209
|
+
baseResp?: base.BaseResp;
|
|
210
|
+
}
|
|
211
|
+
export interface DeleteDatasetItemReq {
|
|
212
|
+
spaceID?: string;
|
|
213
|
+
datasetID: string;
|
|
214
|
+
itemID: string;
|
|
215
|
+
base?: base.Base;
|
|
216
|
+
}
|
|
217
|
+
export interface DeleteDatasetItemResp {
|
|
218
|
+
baseResp?: base.BaseResp;
|
|
219
|
+
}
|
|
220
|
+
export interface DeleteDatasetReq {
|
|
221
|
+
spaceID?: string;
|
|
222
|
+
datasetID: string;
|
|
223
|
+
base?: base.Base;
|
|
224
|
+
}
|
|
225
|
+
export interface DeleteDatasetResp {
|
|
226
|
+
baseResp?: base.BaseResp;
|
|
227
|
+
}
|
|
228
|
+
export interface ExportDatasetReq {
|
|
229
|
+
spaceID: string;
|
|
230
|
+
datasetID: string;
|
|
231
|
+
/** 需要导出的数据集版本 id,为 0 表示导出草稿版本 */
|
|
232
|
+
versionID?: string;
|
|
233
|
+
targetType: datasetv2job.SourceType;
|
|
234
|
+
/** 此处填写一个文件夹,会将对应的文件生成到该文件夹下 */
|
|
235
|
+
target: datasetv2job.DatasetIOEndpoint;
|
|
236
|
+
/** base */
|
|
237
|
+
base?: base.Base;
|
|
238
|
+
}
|
|
239
|
+
export interface ExportDatasetResp {
|
|
240
|
+
jobID?: string;
|
|
241
|
+
/** base */
|
|
242
|
+
baseResp?: base.BaseResp;
|
|
243
|
+
}
|
|
244
|
+
export interface FieldMeta {
|
|
245
|
+
/** 字段类型 */
|
|
246
|
+
field_type: string;
|
|
247
|
+
/** 当前字段支持的操作类型 */
|
|
248
|
+
query_types: Array<string>;
|
|
249
|
+
display_name: string;
|
|
250
|
+
/** 支持的可选项 */
|
|
251
|
+
field_options?: FieldOptions;
|
|
252
|
+
/** 当前字段在schema中是否存在 */
|
|
253
|
+
exist?: boolean;
|
|
254
|
+
}
|
|
255
|
+
export interface FieldMetaInfoData {
|
|
256
|
+
/** 字段元信息 */
|
|
257
|
+
field_metas: Record<string, FieldMeta>;
|
|
258
|
+
}
|
|
259
|
+
export interface FieldOptions {
|
|
260
|
+
i32?: Array<number>;
|
|
261
|
+
i64?: Array<string>;
|
|
262
|
+
f64?: Array<number>;
|
|
263
|
+
string?: Array<string>;
|
|
264
|
+
obj?: Array<ObjectFieldOption>;
|
|
265
|
+
}
|
|
266
|
+
export interface GetDatasetIOJobReq {
|
|
267
|
+
spaceID?: string;
|
|
268
|
+
jobID: string;
|
|
269
|
+
base?: base.Base;
|
|
270
|
+
}
|
|
271
|
+
export interface GetDatasetIOJobResp {
|
|
272
|
+
job?: datasetv2job.DatasetIOJob;
|
|
273
|
+
baseResp?: base.BaseResp;
|
|
274
|
+
}
|
|
275
|
+
export interface GetDatasetItemDeepSourcesReq {
|
|
276
|
+
spaceID: string;
|
|
277
|
+
datasetID: string;
|
|
278
|
+
/** item 的主键 id */
|
|
279
|
+
id: string;
|
|
280
|
+
base?: base.Base;
|
|
281
|
+
}
|
|
282
|
+
export interface GetDatasetItemDeepSourcesResp {
|
|
283
|
+
/** 按照从 root 到当前 item 的顺序返回 */
|
|
284
|
+
deepSources?: Array<datasetv2.ItemSource>;
|
|
285
|
+
baseResp?: base.BaseResp;
|
|
286
|
+
}
|
|
287
|
+
export interface GetDatasetItemReq {
|
|
288
|
+
spaceID?: string;
|
|
289
|
+
datasetID: string;
|
|
290
|
+
itemID: string;
|
|
291
|
+
base?: base.Base;
|
|
292
|
+
}
|
|
293
|
+
export interface GetDatasetItemResp {
|
|
294
|
+
item?: datasetv2.DatasetItem;
|
|
295
|
+
baseResp?: base.BaseResp;
|
|
296
|
+
}
|
|
297
|
+
export interface GetDatasetItemSourceReq {
|
|
298
|
+
spaceID: string;
|
|
299
|
+
datasetID: string;
|
|
300
|
+
/** item 的主键 id */
|
|
301
|
+
id: string;
|
|
302
|
+
base?: base.Base;
|
|
303
|
+
}
|
|
304
|
+
export interface GetDatasetItemSourceResp {
|
|
305
|
+
source?: datasetv2.ItemSource;
|
|
306
|
+
baseResp?: base.BaseResp;
|
|
307
|
+
}
|
|
308
|
+
export interface GetDatasetReq {
|
|
309
|
+
spaceID?: string;
|
|
310
|
+
datasetID: string;
|
|
311
|
+
/** 数据集已删除时是否返回 */
|
|
312
|
+
withDeleted?: boolean;
|
|
313
|
+
base?: base.Base;
|
|
314
|
+
}
|
|
315
|
+
export interface GetDatasetResp {
|
|
316
|
+
dataset?: datasetv2.Dataset;
|
|
317
|
+
baseResp?: base.BaseResp;
|
|
318
|
+
}
|
|
319
|
+
export interface GetDatasetSchemaReq {
|
|
320
|
+
spaceID?: string;
|
|
321
|
+
datasetID: string;
|
|
322
|
+
/** 是否获取已经删除的列,默认不返回 */
|
|
323
|
+
withDeleted?: boolean;
|
|
324
|
+
base?: base.Base;
|
|
325
|
+
}
|
|
326
|
+
export interface GetDatasetSchemaResp {
|
|
327
|
+
fields?: Array<datasetv2.FieldSchema>;
|
|
328
|
+
baseResp?: base.BaseResp;
|
|
329
|
+
}
|
|
330
|
+
export interface GetDatasetVersionReq {
|
|
331
|
+
spaceID?: string;
|
|
332
|
+
versionID: string;
|
|
333
|
+
/** 是否返回已删除的数据,默认不返回 */
|
|
334
|
+
withDeleted?: boolean;
|
|
335
|
+
base?: base.Base;
|
|
336
|
+
}
|
|
337
|
+
export interface GetDatasetVersionResp {
|
|
338
|
+
version?: datasetv2.DatasetVersion;
|
|
339
|
+
dataset?: datasetv2.Dataset;
|
|
340
|
+
baseResp?: base.BaseResp;
|
|
341
|
+
}
|
|
342
|
+
export interface GetFieldsMetaInfoRequest {
|
|
343
|
+
spaceID: Int64;
|
|
344
|
+
datasetID: Int64;
|
|
345
|
+
}
|
|
346
|
+
export interface GetFieldsMetaInfoResponse {
|
|
347
|
+
data: FieldMetaInfoData;
|
|
348
|
+
}
|
|
349
|
+
export interface GetItemDeduplicateJobReq {
|
|
350
|
+
spaceID?: string;
|
|
351
|
+
jobID: string;
|
|
352
|
+
confirmType?: datasetv2job.ImportConfirmType;
|
|
353
|
+
page?: number;
|
|
354
|
+
pageSize?: number;
|
|
355
|
+
base?: base.Base;
|
|
356
|
+
}
|
|
357
|
+
export interface GetItemDeduplicateJobResp {
|
|
358
|
+
job?: datasetv2job.ItemDeduplicateJob;
|
|
359
|
+
baseResp?: base.BaseResp;
|
|
360
|
+
}
|
|
361
|
+
export interface ImportDatasetReq {
|
|
362
|
+
spaceID?: string;
|
|
363
|
+
datasetID: string;
|
|
364
|
+
file?: datasetv2job.DatasetIOFile;
|
|
365
|
+
/** 待外场前端修复后再加上 vt.elem.skip = "false" */
|
|
366
|
+
fieldMappings?: Array<datasetv2job.FieldMapping>;
|
|
367
|
+
option?: datasetv2job.DatasetIOJobOption;
|
|
368
|
+
/** base */
|
|
369
|
+
base?: base.Base;
|
|
370
|
+
}
|
|
371
|
+
export interface ImportDatasetResp {
|
|
372
|
+
jobID?: string;
|
|
373
|
+
baseResp?: base.BaseResp;
|
|
374
|
+
}
|
|
375
|
+
export interface ListDatasetIOJobsOfDatasetReq {
|
|
376
|
+
spaceID?: string;
|
|
377
|
+
datasetID: string;
|
|
378
|
+
types?: Array<datasetv2job.JobType>;
|
|
379
|
+
statuses?: Array<datasetv2job.JobStatus>;
|
|
380
|
+
base?: base.Base;
|
|
381
|
+
}
|
|
382
|
+
export interface ListDatasetIOJobsOfDatasetResp {
|
|
383
|
+
jobs?: Array<datasetv2job.DatasetIOJob>;
|
|
384
|
+
baseResp?: base.BaseResp;
|
|
385
|
+
}
|
|
386
|
+
export interface ListDatasetItemsByVersionReq {
|
|
387
|
+
spaceID?: string;
|
|
388
|
+
datasetID: string;
|
|
389
|
+
versionID: string;
|
|
390
|
+
/** pagination */
|
|
391
|
+
page?: number;
|
|
392
|
+
/** 分页大小(0, 200],默认为 20 */
|
|
393
|
+
pageSize?: number;
|
|
394
|
+
/** 与 page 同时提供时,优先使用 cursor */
|
|
395
|
+
cursor?: string;
|
|
396
|
+
orderBy?: datasetv2.OrderBy;
|
|
397
|
+
filter?: filter.Filter;
|
|
398
|
+
base?: base.Base;
|
|
399
|
+
}
|
|
400
|
+
export interface ListDatasetItemsByVersionResp {
|
|
401
|
+
items?: Array<datasetv2.DatasetItem>;
|
|
402
|
+
/** pagination */
|
|
403
|
+
nextCursor?: string;
|
|
404
|
+
total?: Int64;
|
|
405
|
+
filterTotal?: Int64;
|
|
406
|
+
baseResp?: base.BaseResp;
|
|
407
|
+
}
|
|
408
|
+
export interface ListDatasetItemsReq {
|
|
409
|
+
spaceID?: string;
|
|
410
|
+
datasetID: string;
|
|
411
|
+
/** pagination */
|
|
412
|
+
page?: number;
|
|
413
|
+
/** 分页大小(0, 200],默认为 20 */
|
|
414
|
+
pageSize?: number;
|
|
415
|
+
/** 与 page 同时提供时,优先使用 cursor */
|
|
416
|
+
cursor?: string;
|
|
417
|
+
orderBy?: datasetv2.OrderBy;
|
|
418
|
+
filter?: filter.Filter;
|
|
419
|
+
base?: base.Base;
|
|
420
|
+
}
|
|
421
|
+
export interface ListDatasetItemsResp {
|
|
422
|
+
items?: Array<datasetv2.DatasetItem>;
|
|
423
|
+
/** pagination */
|
|
424
|
+
nextCursor?: string;
|
|
425
|
+
total?: string;
|
|
426
|
+
filterTotal?: string;
|
|
427
|
+
baseResp?: base.BaseResp;
|
|
428
|
+
}
|
|
429
|
+
export interface ListDatasetVersionsReq {
|
|
430
|
+
spaceID?: string;
|
|
431
|
+
datasetID: string;
|
|
432
|
+
/** 根据版本号模糊匹配 */
|
|
433
|
+
versionLike?: string;
|
|
434
|
+
/** pagination */
|
|
435
|
+
page?: number;
|
|
436
|
+
/** 分页大小(0, 200],默认为 20 */
|
|
437
|
+
pageSize?: number;
|
|
438
|
+
/** 与 page 同时提供时,优先使用 cursor */
|
|
439
|
+
cursor?: string;
|
|
440
|
+
orderBy?: datasetv2.OrderBy;
|
|
441
|
+
base?: base.Base;
|
|
442
|
+
}
|
|
443
|
+
export interface ListDatasetVersionsResp {
|
|
444
|
+
versions?: Array<datasetv2.DatasetVersion>;
|
|
445
|
+
/** pagination */
|
|
446
|
+
nextCursor?: string;
|
|
447
|
+
total?: string;
|
|
448
|
+
baseResp?: base.BaseResp;
|
|
449
|
+
}
|
|
450
|
+
export interface ObjectFieldOption {
|
|
451
|
+
id: Int64;
|
|
452
|
+
displayName: string;
|
|
453
|
+
}
|
|
454
|
+
export interface ParseImportSourceFileReq {
|
|
455
|
+
spaceID: string;
|
|
456
|
+
/** 如果 path 为文件夹,此处只默认解析当前路径级别下所有指定类型的文件,不嵌套解析 */
|
|
457
|
+
file?: datasetv2job.DatasetIOFile;
|
|
458
|
+
/** base */
|
|
459
|
+
base?: base.Base;
|
|
460
|
+
}
|
|
461
|
+
export interface ParseImportSourceFileResp {
|
|
462
|
+
/** 文件大小,单位为 byte */
|
|
463
|
+
bytes?: string;
|
|
464
|
+
/** 列名和类型,有多文件的话会取并集返回。如果文件中的列定义存在冲突,此处不返回解析结果,具体冲突详情通过 conflicts 返回 */
|
|
465
|
+
fields?: Array<datasetv2.FieldSchema>;
|
|
466
|
+
/** 冲突详情。key: 列名,val:冲突详情 */
|
|
467
|
+
conflicts?: Array<ConflictField>;
|
|
468
|
+
/** 存在列定义不明确的文件(即一个列被定义为多个类型),当前仅 jsonl 文件会出现该状况 */
|
|
469
|
+
filesWithAmbiguousColumn?: Array<string>;
|
|
470
|
+
/** base */
|
|
471
|
+
baseResp?: base.BaseResp;
|
|
472
|
+
}
|
|
473
|
+
export interface SearchDatasetIOJobsOfDatasetReq {
|
|
474
|
+
spaceID?: string;
|
|
475
|
+
datasetID: string;
|
|
476
|
+
types?: Array<datasetv2job.JobType>;
|
|
477
|
+
statuses?: Array<datasetv2job.JobStatus>;
|
|
478
|
+
base?: base.Base;
|
|
479
|
+
}
|
|
480
|
+
export interface SearchDatasetIOJobsOfDatasetResp {
|
|
481
|
+
jobs?: Array<datasetv2job.DatasetIOJob>;
|
|
482
|
+
baseResp?: base.BaseResp;
|
|
483
|
+
}
|
|
484
|
+
export interface SearchDatasetItemsByVersionReq {
|
|
485
|
+
spaceID?: string;
|
|
486
|
+
datasetID: string;
|
|
487
|
+
versionID: string;
|
|
488
|
+
/** pagination */
|
|
489
|
+
page?: number;
|
|
490
|
+
/** 分页大小(0, 200],默认为 20 */
|
|
491
|
+
pageSize?: number;
|
|
492
|
+
/** 与 page 同时提供时,优先使用 cursor */
|
|
493
|
+
cursor?: string;
|
|
494
|
+
orderBy?: datasetv2.OrderBy;
|
|
495
|
+
filter?: filter.Filter;
|
|
496
|
+
base?: base.Base;
|
|
497
|
+
}
|
|
498
|
+
export interface SearchDatasetItemsByVersionResp {
|
|
499
|
+
items?: Array<datasetv2.DatasetItem>;
|
|
500
|
+
/** pagination */
|
|
501
|
+
nextCursor?: string;
|
|
502
|
+
total?: Int64;
|
|
503
|
+
filterTotal?: Int64;
|
|
504
|
+
baseResp?: base.BaseResp;
|
|
505
|
+
}
|
|
506
|
+
export interface SearchDatasetItemsReq {
|
|
507
|
+
spaceID?: string;
|
|
508
|
+
datasetID: string;
|
|
509
|
+
/** pagination */
|
|
510
|
+
page?: number;
|
|
511
|
+
/** 分页大小(0, 200],默认为 20 */
|
|
512
|
+
pageSize?: number;
|
|
513
|
+
/** 与 page 同时提供时,优先使用 cursor */
|
|
514
|
+
cursor?: string;
|
|
515
|
+
orderBy?: datasetv2.OrderBy;
|
|
516
|
+
filter?: filter.Filter;
|
|
517
|
+
base?: base.Base;
|
|
518
|
+
}
|
|
519
|
+
export interface SearchDatasetItemsResp {
|
|
520
|
+
items?: Array<datasetv2.DatasetItem>;
|
|
521
|
+
/** pagination */
|
|
522
|
+
nextCursor?: string;
|
|
523
|
+
total?: string;
|
|
524
|
+
filterTotal?: string;
|
|
525
|
+
baseResp?: base.BaseResp;
|
|
526
|
+
}
|
|
527
|
+
export interface SearchDatasetsReq {
|
|
528
|
+
spaceID: string;
|
|
529
|
+
datasetIDs?: Array<string>;
|
|
530
|
+
category?: datasetv2.DatasetCategory;
|
|
531
|
+
/** 支持模糊搜索 */
|
|
532
|
+
name?: string;
|
|
533
|
+
createdBys?: Array<string>;
|
|
534
|
+
bizCategories?: Array<string>;
|
|
535
|
+
/** pagination */
|
|
536
|
+
page?: number;
|
|
537
|
+
/** 分页大小(0, 200],默认为 20 */
|
|
538
|
+
pageSize?: number;
|
|
539
|
+
/** 与 page 同时提供时,优先使用 cursor */
|
|
540
|
+
cursor?: string;
|
|
541
|
+
orderBy?: datasetv2.OrderBy;
|
|
542
|
+
base?: base.Base;
|
|
543
|
+
}
|
|
544
|
+
export interface SearchDatasetsResp {
|
|
545
|
+
datasets?: Array<datasetv2.Dataset>;
|
|
546
|
+
/** pagination */
|
|
547
|
+
nextCursor?: string;
|
|
548
|
+
total?: string;
|
|
549
|
+
baseResp?: base.BaseResp;
|
|
550
|
+
}
|
|
551
|
+
export interface SearchDatasetVersionsReq {
|
|
552
|
+
spaceID?: string;
|
|
553
|
+
datasetID: string;
|
|
554
|
+
/** 根据版本号模糊匹配 */
|
|
555
|
+
versionLike?: string;
|
|
556
|
+
/** pagination */
|
|
557
|
+
page?: number;
|
|
558
|
+
/** 分页大小(0, 200],默认为 20 */
|
|
559
|
+
pageSize?: number;
|
|
560
|
+
/** 与 page 同时提供时,优先使用 cursor */
|
|
561
|
+
cursor?: string;
|
|
562
|
+
orderBy?: datasetv2.OrderBy;
|
|
563
|
+
base?: base.Base;
|
|
564
|
+
}
|
|
565
|
+
export interface SearchDatasetVersionsResp {
|
|
566
|
+
versions?: Array<datasetv2.DatasetVersion>;
|
|
567
|
+
/** pagination */
|
|
568
|
+
nextCursor?: string;
|
|
569
|
+
total?: string;
|
|
570
|
+
baseResp?: base.BaseResp;
|
|
571
|
+
}
|
|
572
|
+
export interface SignUploadFileTokenReq {
|
|
573
|
+
spaceID?: string;
|
|
574
|
+
/** 支持 ImageX, TOS */
|
|
575
|
+
storage?: datasetv2.StorageProvider;
|
|
576
|
+
fileName?: string;
|
|
577
|
+
/** base */
|
|
578
|
+
base?: base.Base;
|
|
579
|
+
}
|
|
580
|
+
export interface SignUploadFileTokenResp {
|
|
581
|
+
url?: string;
|
|
582
|
+
token?: datasetv2.FileUploadToken;
|
|
583
|
+
imageXServiceID?: string;
|
|
584
|
+
/** base */
|
|
585
|
+
baseResp?: base.BaseResp;
|
|
586
|
+
}
|
|
587
|
+
export interface UpdateDatasetItemReq {
|
|
588
|
+
spaceID?: string;
|
|
589
|
+
datasetID: string;
|
|
590
|
+
itemID: string;
|
|
591
|
+
/** 单轮数据内容,当数据集为单轮时,写入此处的值 */
|
|
592
|
+
data?: Array<datasetv2.FieldData>;
|
|
593
|
+
/** 多轮对话数据内容,当数据集为多轮对话时,写入此处的值 */
|
|
594
|
+
repeatedData?: Array<datasetv2.ItemData>;
|
|
595
|
+
base?: base.Base;
|
|
596
|
+
}
|
|
597
|
+
export interface UpdateDatasetItemResp {
|
|
598
|
+
baseResp?: base.BaseResp;
|
|
599
|
+
}
|
|
600
|
+
export interface UpdateDatasetReq {
|
|
601
|
+
spaceID?: string;
|
|
602
|
+
datasetID: string;
|
|
603
|
+
name?: string;
|
|
604
|
+
description?: string;
|
|
605
|
+
base?: base.Base;
|
|
606
|
+
}
|
|
607
|
+
export interface UpdateDatasetResp {
|
|
608
|
+
baseResp?: base.BaseResp;
|
|
609
|
+
}
|
|
610
|
+
export interface UpdateDatasetSchemaReq {
|
|
611
|
+
spaceID?: string;
|
|
612
|
+
datasetID: string;
|
|
613
|
+
/** fieldSchema.key 为空时:插入新的一列
|
|
614
|
+
fieldSchema.key 不为空时:更新对应的列
|
|
615
|
+
使用示例参考:https://bytedance.larkoffice.com/wiki/BEbMwdYDQinYFckYbHVcW3DfnZx#doxcnCEi007nKCLwZ4o84nVivle */
|
|
616
|
+
fields?: Array<datasetv2.FieldSchema>;
|
|
617
|
+
base?: base.Base;
|
|
618
|
+
}
|
|
619
|
+
export interface UpdateDatasetSchemaResp {
|
|
620
|
+
baseResp?: base.BaseResp;
|
|
621
|
+
}
|
|
622
|
+
export interface UpdateDatasetVersionReq {
|
|
623
|
+
spaceID: string;
|
|
624
|
+
versionID: string;
|
|
625
|
+
desc?: string;
|
|
626
|
+
base?: base.Base;
|
|
627
|
+
}
|
|
628
|
+
export interface UpdateDatasetVersionResp {
|
|
629
|
+
baseResp?: base.BaseResp;
|
|
630
|
+
}
|
|
631
|
+
export interface ValidateDatasetItemsReq {
|
|
632
|
+
spaceID?: string;
|
|
633
|
+
items?: Array<datasetv2.DatasetItem>;
|
|
634
|
+
/** 添加到已有数据集时提供 */
|
|
635
|
+
datasetID?: string;
|
|
636
|
+
/** 新建数据集并添加数据时提供 */
|
|
637
|
+
datasetCategory?: datasetv2.DatasetCategory;
|
|
638
|
+
/** 新建数据集并添加数据时,必须提供;添加到已有数据集时,如非空,则覆盖已有 schema 用于校验 */
|
|
639
|
+
datasetFields?: Array<datasetv2.FieldSchema>;
|
|
640
|
+
/** 添加到已有数据集时,现有数据条数,做容量校验时不做考虑,仅考虑提供 items 数量是否超限 */
|
|
641
|
+
ignoreCurrentItemCount?: boolean;
|
|
642
|
+
}
|
|
643
|
+
export interface ValidateDatasetItemsResp {
|
|
644
|
+
/** 合法的 item 索引,与 ValidateCreateDatasetItemsReq.items 中的索引对应 */
|
|
645
|
+
validItemIndices?: Array<number>;
|
|
646
|
+
errors?: Array<datasetv2.ItemErrorGroup>;
|
|
647
|
+
/** base */
|
|
648
|
+
baseResp?: base.BaseResp;
|
|
649
|
+
}
|
|
650
|
+
export interface VersionedDataset {
|
|
651
|
+
version?: datasetv2.DatasetVersion;
|
|
652
|
+
dataset?: datasetv2.Dataset;
|
|
653
|
+
}
|