@alicloud/bailian20231229 2.5.0 → 2.6.0
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/client.d.ts +102 -20
- package/dist/client.js +129 -20
- package/dist/client.js.map +1 -1
- package/dist/models/ApplyTempStorageLeaseRequest.d.ts +29 -0
- package/dist/models/ApplyTempStorageLeaseRequest.js +60 -0
- package/dist/models/ApplyTempStorageLeaseRequest.js.map +1 -0
- package/dist/models/ApplyTempStorageLeaseResponse.d.ts +19 -0
- package/dist/models/ApplyTempStorageLeaseResponse.js +69 -0
- package/dist/models/ApplyTempStorageLeaseResponse.js.map +1 -0
- package/dist/models/ApplyTempStorageLeaseResponseBody.d.ts +80 -0
- package/dist/models/ApplyTempStorageLeaseResponseBody.js +118 -0
- package/dist/models/ApplyTempStorageLeaseResponseBody.js.map +1 -0
- package/dist/models/ChangeParseSettingRequest.d.ts +27 -0
- package/dist/models/ChangeParseSettingRequest.js.map +1 -1
- package/dist/models/ChangeParseSettingResponseBody.d.ts +25 -0
- package/dist/models/ChangeParseSettingResponseBody.js.map +1 -1
- package/dist/models/ChangeParseSettingShrinkRequest.d.ts +15 -0
- package/dist/models/ChangeParseSettingShrinkRequest.js.map +1 -1
- package/dist/models/CreateIndexRequest.d.ts +147 -44
- package/dist/models/CreateIndexRequest.js.map +1 -1
- package/dist/models/CreateIndexResponseBody.d.ts +5 -5
- package/dist/models/CreateIndexShrinkRequest.d.ts +81 -44
- package/dist/models/CreateIndexShrinkRequest.js.map +1 -1
- package/dist/models/DeleteChunkRequest.d.ts +4 -0
- package/dist/models/DeleteChunkRequest.js.map +1 -1
- package/dist/models/DeleteChunkResponseBody.d.ts +19 -1
- package/dist/models/DeleteChunkResponseBody.js.map +1 -1
- package/dist/models/DeleteChunkShrinkRequest.d.ts +4 -0
- package/dist/models/DeleteChunkShrinkRequest.js.map +1 -1
- package/dist/models/GetAvailableParserTypesRequest.d.ts +2 -0
- package/dist/models/GetAvailableParserTypesRequest.js.map +1 -1
- package/dist/models/GetAvailableParserTypesResponseBody.d.ts +41 -0
- package/dist/models/GetAvailableParserTypesResponseBody.js.map +1 -1
- package/dist/models/GetParseSettingsRequest.d.ts +3 -0
- package/dist/models/GetParseSettingsRequest.js.map +1 -1
- package/dist/models/GetParseSettingsResponseBody.d.ts +58 -0
- package/dist/models/GetParseSettingsResponseBody.js.map +1 -1
- package/dist/models/ListFileRequest.d.ts +2 -0
- package/dist/models/ListFileRequest.js.map +1 -1
- package/dist/models/ListFileResponseBody.d.ts +11 -0
- package/dist/models/ListFileResponseBody.js.map +1 -1
- package/dist/models/ListIndexFileDetailsResponseBody.d.ts +72 -0
- package/dist/models/ListIndexFileDetailsResponseBody.js.map +1 -1
- package/dist/models/UpdateChunkRequest.d.ts +19 -0
- package/dist/models/UpdateChunkRequest.js.map +1 -1
- package/dist/models/UpdateChunkResponseBody.d.ts +19 -1
- package/dist/models/UpdateChunkResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +15 -5
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +133 -20
- package/src/models/ApplyTempStorageLeaseRequest.ts +44 -0
- package/src/models/ApplyTempStorageLeaseResponse.ts +40 -0
- package/src/models/ApplyTempStorageLeaseResponseBody.ts +135 -0
- package/src/models/ChangeParseSettingRequest.ts +27 -0
- package/src/models/ChangeParseSettingResponseBody.ts +25 -0
- package/src/models/ChangeParseSettingShrinkRequest.ts +15 -0
- package/src/models/CreateIndexRequest.ts +147 -44
- package/src/models/CreateIndexResponseBody.ts +5 -5
- package/src/models/CreateIndexShrinkRequest.ts +81 -44
- package/src/models/DeleteChunkRequest.ts +4 -0
- package/src/models/DeleteChunkResponseBody.ts +19 -1
- package/src/models/DeleteChunkShrinkRequest.ts +4 -0
- package/src/models/GetAvailableParserTypesRequest.ts +2 -0
- package/src/models/GetAvailableParserTypesResponseBody.ts +41 -0
- package/src/models/GetParseSettingsRequest.ts +3 -0
- package/src/models/GetParseSettingsResponseBody.ts +58 -0
- package/src/models/ListFileRequest.ts +2 -0
- package/src/models/ListFileResponseBody.ts +11 -0
- package/src/models/ListIndexFileDetailsResponseBody.ts +72 -0
- package/src/models/UpdateChunkRequest.ts +19 -0
- package/src/models/UpdateChunkResponseBody.ts +19 -1
- package/src/models/model.ts +5 -0
|
@@ -4,34 +4,52 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class DeleteChunkResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The status code.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* InvalidParameter
|
|
9
12
|
*/
|
|
10
13
|
code?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The data returned if the request is successful.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* true
|
|
14
20
|
*/
|
|
15
21
|
data?: boolean;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The error message.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* Required parameter(%s) missing or invalid, please check the request parameters.
|
|
19
28
|
*/
|
|
20
29
|
message?: string;
|
|
21
30
|
/**
|
|
22
31
|
* @remarks
|
|
23
|
-
*
|
|
32
|
+
* The request ID.
|
|
24
33
|
*
|
|
25
34
|
* @example
|
|
26
35
|
* 35A267BF-xxxx-54DB-8394-AA3B0742D833
|
|
27
36
|
*/
|
|
28
37
|
requestId?: string;
|
|
29
38
|
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The HTTP status code returned.
|
|
41
|
+
*
|
|
30
42
|
* @example
|
|
31
43
|
* 200
|
|
32
44
|
*/
|
|
33
45
|
status?: string;
|
|
34
46
|
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* Indications whether the API call is successful. Valid values:
|
|
49
|
+
*
|
|
50
|
+
* * true
|
|
51
|
+
* * false
|
|
52
|
+
*
|
|
35
53
|
* @example
|
|
36
54
|
* true
|
|
37
55
|
*/
|
|
@@ -5,11 +5,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class DeleteChunkShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
+
* The list of text chunks to be deleted. You can specify up to 10 chunk IDs at a time.
|
|
9
|
+
*
|
|
8
10
|
* This parameter is required.
|
|
9
11
|
*/
|
|
10
12
|
chunkIdsShrink?: string;
|
|
11
13
|
/**
|
|
12
14
|
* @remarks
|
|
15
|
+
* The knowledge base ID, which is the `Data.Id` parameter returned by **CreateIndex**.
|
|
16
|
+
*
|
|
13
17
|
* This parameter is required.
|
|
14
18
|
*
|
|
15
19
|
* @example
|
|
@@ -3,8 +3,20 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class GetAvailableParserTypesResponseBodyDataParserList extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The display name of the parsing method.
|
|
9
|
+
*/
|
|
6
10
|
displayName?: string;
|
|
7
11
|
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The parser code. Valid values:
|
|
14
|
+
*
|
|
15
|
+
* * DOCMIND (Intelligent parsing)
|
|
16
|
+
* * DOCMIND_DIGITAL (Digital parsing)
|
|
17
|
+
* * DOCMIND_LLM_VERSION (LLM parsing)
|
|
18
|
+
* * DASH_QWEN_VL_PARSER (Qwen VL parsing)
|
|
19
|
+
*
|
|
8
20
|
* @example
|
|
9
21
|
* DOCMIND
|
|
10
22
|
*/
|
|
@@ -34,10 +46,17 @@ export class GetAvailableParserTypesResponseBodyDataParserList extends $dara.Mod
|
|
|
34
46
|
|
|
35
47
|
export class GetAvailableParserTypesResponseBodyData extends $dara.Model {
|
|
36
48
|
/**
|
|
49
|
+
* @remarks
|
|
50
|
+
* The file type, which is the same as the FileType in the input parameter.
|
|
51
|
+
*
|
|
37
52
|
* @example
|
|
38
53
|
* pdf
|
|
39
54
|
*/
|
|
40
55
|
fileType?: string;
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The list of supported parsers
|
|
59
|
+
*/
|
|
41
60
|
parserList?: GetAvailableParserTypesResponseBodyDataParserList[];
|
|
42
61
|
static names(): { [key: string]: string } {
|
|
43
62
|
return {
|
|
@@ -67,27 +86,49 @@ export class GetAvailableParserTypesResponseBodyData extends $dara.Model {
|
|
|
67
86
|
|
|
68
87
|
export class GetAvailableParserTypesResponseBody extends $dara.Model {
|
|
69
88
|
/**
|
|
89
|
+
* @remarks
|
|
90
|
+
* The error code returned.
|
|
91
|
+
*
|
|
70
92
|
* @example
|
|
71
93
|
* DataCenter.Throttling
|
|
72
94
|
*/
|
|
73
95
|
code?: string;
|
|
96
|
+
/**
|
|
97
|
+
* @remarks
|
|
98
|
+
* The data returned.
|
|
99
|
+
*/
|
|
74
100
|
data?: GetAvailableParserTypesResponseBodyData;
|
|
75
101
|
/**
|
|
102
|
+
* @remarks
|
|
103
|
+
* The error message that is returned if the request failed.
|
|
104
|
+
*
|
|
76
105
|
* @example
|
|
77
106
|
* User not authorized to operate on the specified resource
|
|
78
107
|
*/
|
|
79
108
|
message?: string;
|
|
80
109
|
/**
|
|
110
|
+
* @remarks
|
|
111
|
+
* The request ID.
|
|
112
|
+
*
|
|
81
113
|
* @example
|
|
82
114
|
* 17204B98-7734-4F9A-8464-2446XXXXXXX
|
|
83
115
|
*/
|
|
84
116
|
requestId?: string;
|
|
85
117
|
/**
|
|
118
|
+
* @remarks
|
|
119
|
+
* The HTTP status code returned.
|
|
120
|
+
*
|
|
86
121
|
* @example
|
|
87
122
|
* 200
|
|
88
123
|
*/
|
|
89
124
|
status?: string;
|
|
90
125
|
/**
|
|
126
|
+
* @remarks
|
|
127
|
+
* Indicates whether the call is successful. Valid values:
|
|
128
|
+
*
|
|
129
|
+
* * true
|
|
130
|
+
* * false
|
|
131
|
+
*
|
|
91
132
|
* @example
|
|
92
133
|
* true
|
|
93
134
|
*/
|
|
@@ -4,6 +4,9 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class GetParseSettingsRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The category ID, which is the `CategoryId` returned by **AddCategory**. To view the category ID, click the ID icon next to the category name on the Unstructured Data tab of the [Application Data](https://bailian.console.alibabacloud.com/?tab=app#/data-center) page.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* cate_cdd11b1b79a74e8bbd675c356a91ee35xxxxxxxx
|
|
9
12
|
*/
|
|
@@ -4,11 +4,25 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class GetParseSettingsResponseBodyDataParserConfig extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The model name.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* - qwen-vl-max
|
|
9
12
|
* - qwen-vl-plus
|
|
10
13
|
*/
|
|
11
14
|
modelName?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @remarks
|
|
17
|
+
* The prompt used for parsing.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* # Role
|
|
21
|
+
* You are a professional image content annotator, skilled in identifying and describing the contents of images.
|
|
22
|
+
*
|
|
23
|
+
* # Task Objective
|
|
24
|
+
* Based on the input image, provide a detailed description of its contents.
|
|
25
|
+
*/
|
|
12
26
|
modelPrompt?: string;
|
|
13
27
|
static names(): { [key: string]: string } {
|
|
14
28
|
return {
|
|
@@ -35,16 +49,38 @@ export class GetParseSettingsResponseBodyDataParserConfig extends $dara.Model {
|
|
|
35
49
|
|
|
36
50
|
export class GetParseSettingsResponseBodyData extends $dara.Model {
|
|
37
51
|
/**
|
|
52
|
+
* @remarks
|
|
53
|
+
* The file type. Valid values are: pdf, docx, doc, etc. All supported file types in the category are listed here.
|
|
54
|
+
*
|
|
38
55
|
* @example
|
|
39
56
|
* pdf
|
|
40
57
|
*/
|
|
41
58
|
fileType?: string;
|
|
42
59
|
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The parser used for files of the current type. Valid values:
|
|
62
|
+
*
|
|
63
|
+
* * DOCMIND (Intelligent parsing)
|
|
64
|
+
* * DOCMIND_DIGITAL (Digital parsing)
|
|
65
|
+
* * DOCMIND_LLM_VERSION (LLM parsing)
|
|
66
|
+
* * DASH_QWEN_VL_PARSER (Qwen VL parsing)
|
|
67
|
+
*
|
|
43
68
|
* @example
|
|
44
69
|
* DOCMIND
|
|
45
70
|
*/
|
|
46
71
|
parser?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @remarks
|
|
74
|
+
* The parser configuration. Currently, this is available only for Qwen VL parsing.
|
|
75
|
+
*/
|
|
47
76
|
parserConfig?: GetParseSettingsResponseBodyDataParserConfig;
|
|
77
|
+
/**
|
|
78
|
+
* @remarks
|
|
79
|
+
* The display name of the parsing method.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* Digital parsing
|
|
83
|
+
*/
|
|
48
84
|
parserDisplayName?: string;
|
|
49
85
|
static names(): { [key: string]: string } {
|
|
50
86
|
return {
|
|
@@ -78,27 +114,49 @@ export class GetParseSettingsResponseBodyData extends $dara.Model {
|
|
|
78
114
|
|
|
79
115
|
export class GetParseSettingsResponseBody extends $dara.Model {
|
|
80
116
|
/**
|
|
117
|
+
* @remarks
|
|
118
|
+
* The status code.
|
|
119
|
+
*
|
|
81
120
|
* @example
|
|
82
121
|
* success
|
|
83
122
|
*/
|
|
84
123
|
code?: string;
|
|
124
|
+
/**
|
|
125
|
+
* @remarks
|
|
126
|
+
* The returned data fields.
|
|
127
|
+
*/
|
|
85
128
|
data?: GetParseSettingsResponseBodyData[];
|
|
86
129
|
/**
|
|
130
|
+
* @remarks
|
|
131
|
+
* The error message.
|
|
132
|
+
*
|
|
87
133
|
* @example
|
|
88
134
|
* workspace id is null or invalid.
|
|
89
135
|
*/
|
|
90
136
|
message?: string;
|
|
91
137
|
/**
|
|
138
|
+
* @remarks
|
|
139
|
+
* The request ID.
|
|
140
|
+
*
|
|
92
141
|
* @example
|
|
93
142
|
* 35A267BF-xxxx-54DB-8394-AA3B0742D833
|
|
94
143
|
*/
|
|
95
144
|
requestId?: string;
|
|
96
145
|
/**
|
|
146
|
+
* @remarks
|
|
147
|
+
* The HTTP status code returned.
|
|
148
|
+
*
|
|
97
149
|
* @example
|
|
98
150
|
* 200
|
|
99
151
|
*/
|
|
100
152
|
status?: string;
|
|
101
153
|
/**
|
|
154
|
+
* @remarks
|
|
155
|
+
* Indicates whether the call is successful. Valid values:
|
|
156
|
+
*
|
|
157
|
+
* * true
|
|
158
|
+
* * false
|
|
159
|
+
*
|
|
102
160
|
* @example
|
|
103
161
|
* True
|
|
104
162
|
*/
|
|
@@ -5,6 +5,8 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ListFileRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
+
* The category ID, which is the `CategoryId` returned by the [AddCategory](~~AddCategory~~) operation. To view the category ID, click the ID icon next to the category name on the Unstructured Data tab of the [Data Management](https://bailian.console.alibabacloud.com/#/data-center) page.
|
|
9
|
+
*
|
|
8
10
|
* This parameter is required.
|
|
9
11
|
*
|
|
10
12
|
* @example
|
|
@@ -14,6 +14,9 @@ export class ListFileResponseBodyDataFileList extends $dara.Model {
|
|
|
14
14
|
*/
|
|
15
15
|
createTime?: string;
|
|
16
16
|
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The document ID, which is the `FileId` parameter returned by the [AddFile](~~AddFile~~) operation. To view the ID, click the icon next to the file name on the [Data Management](https://bailian.console.alibabacloud.com/#/data-center) page.
|
|
19
|
+
*
|
|
17
20
|
* @example
|
|
18
21
|
* file_5ff599b3455a45db8c41b0054b361518_10098576
|
|
19
22
|
*/
|
|
@@ -85,6 +88,10 @@ export class ListFileResponseBodyDataFileList extends $dara.Model {
|
|
|
85
88
|
}
|
|
86
89
|
|
|
87
90
|
export class ListFileResponseBodyData extends $dara.Model {
|
|
91
|
+
/**
|
|
92
|
+
* @remarks
|
|
93
|
+
* The list of documents in the category.
|
|
94
|
+
*/
|
|
88
95
|
fileList?: ListFileResponseBodyDataFileList[];
|
|
89
96
|
/**
|
|
90
97
|
* @example
|
|
@@ -144,6 +151,10 @@ export class ListFileResponseBody extends $dara.Model {
|
|
|
144
151
|
* success
|
|
145
152
|
*/
|
|
146
153
|
code?: string;
|
|
154
|
+
/**
|
|
155
|
+
* @remarks
|
|
156
|
+
* The returned data.
|
|
157
|
+
*/
|
|
147
158
|
data?: ListFileResponseBodyData;
|
|
148
159
|
/**
|
|
149
160
|
* @example
|
|
@@ -3,19 +3,71 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class ListIndexFileDetailsResponseBodyDataDocuments extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* DashSplitter
|
|
9
|
+
*/
|
|
6
10
|
chunkMode?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 600
|
|
14
|
+
*/
|
|
7
15
|
chunkSize?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 110002
|
|
19
|
+
*/
|
|
8
20
|
code?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* pdf
|
|
24
|
+
*/
|
|
9
25
|
documentType?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* true
|
|
29
|
+
*/
|
|
10
30
|
enableHeaders?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* 1744856423000
|
|
34
|
+
*/
|
|
11
35
|
gmtModified?: number;
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* doc_c134aa2073204a5d936d870bf960f56axxxxxxxx
|
|
39
|
+
*/
|
|
12
40
|
id?: string;
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* check fileUrlKey[file_path] / fileNameKey[null] / fileExtensionKey[file_extension] is invalid
|
|
44
|
+
*/
|
|
13
45
|
message?: string;
|
|
14
46
|
name?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @example
|
|
49
|
+
* 100
|
|
50
|
+
*/
|
|
15
51
|
overlapSize?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @example
|
|
54
|
+
* 996764
|
|
55
|
+
*/
|
|
16
56
|
size?: number;
|
|
57
|
+
/**
|
|
58
|
+
* @example
|
|
59
|
+
* cate_21a407a3372c4ba7aedc649709143f0cxxxxxxxx
|
|
60
|
+
*/
|
|
17
61
|
sourceId?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @example
|
|
64
|
+
* RUNNING
|
|
65
|
+
*/
|
|
18
66
|
status?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @example
|
|
69
|
+
* " "
|
|
70
|
+
*/
|
|
19
71
|
separator?: string;
|
|
20
72
|
static names(): { [key: string]: string } {
|
|
21
73
|
return {
|
|
@@ -66,9 +118,25 @@ export class ListIndexFileDetailsResponseBodyDataDocuments extends $dara.Model {
|
|
|
66
118
|
|
|
67
119
|
export class ListIndexFileDetailsResponseBodyData extends $dara.Model {
|
|
68
120
|
documents?: ListIndexFileDetailsResponseBodyDataDocuments[];
|
|
121
|
+
/**
|
|
122
|
+
* @example
|
|
123
|
+
* 79c0alxxxx
|
|
124
|
+
*/
|
|
69
125
|
indexId?: string;
|
|
126
|
+
/**
|
|
127
|
+
* @example
|
|
128
|
+
* 1
|
|
129
|
+
*/
|
|
70
130
|
pageNumber?: number;
|
|
131
|
+
/**
|
|
132
|
+
* @example
|
|
133
|
+
* 10
|
|
134
|
+
*/
|
|
71
135
|
pageSize?: number;
|
|
136
|
+
/**
|
|
137
|
+
* @example
|
|
138
|
+
* 100
|
|
139
|
+
*/
|
|
72
140
|
totalCount?: number;
|
|
73
141
|
static names(): { [key: string]: string } {
|
|
74
142
|
return {
|
|
@@ -122,6 +190,10 @@ export class ListIndexFileDetailsResponseBody extends $dara.Model {
|
|
|
122
190
|
* 35A267BF-xxxx-54DB-8394-AA3B0742D833
|
|
123
191
|
*/
|
|
124
192
|
requestId?: string;
|
|
193
|
+
/**
|
|
194
|
+
* @example
|
|
195
|
+
* RUNNING
|
|
196
|
+
*/
|
|
125
197
|
status?: string;
|
|
126
198
|
/**
|
|
127
199
|
* @example
|
|
@@ -5,6 +5,8 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class UpdateChunkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
+
* The ID of the text chunk to be modified. You can find it in the Node.Metadata._id field returned by **ListChunks**.
|
|
9
|
+
*
|
|
8
10
|
* This parameter is required.
|
|
9
11
|
*
|
|
10
12
|
* @example
|
|
@@ -13,6 +15,8 @@ export class UpdateChunkRequest extends $dara.Model {
|
|
|
13
15
|
chunkId?: string;
|
|
14
16
|
/**
|
|
15
17
|
* @remarks
|
|
18
|
+
* The file ID, which is the `FileId` returned by **AddFile**. You can also go to the [Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center) page. Click the ID icon next to your file to get its ID.
|
|
19
|
+
*
|
|
16
20
|
* This parameter is required.
|
|
17
21
|
*
|
|
18
22
|
* @example
|
|
@@ -21,6 +25,13 @@ export class UpdateChunkRequest extends $dara.Model {
|
|
|
21
25
|
dataId?: string;
|
|
22
26
|
/**
|
|
23
27
|
* @remarks
|
|
28
|
+
* Specifies whether this text chunk participates in knowledge base retrieval. Valid values:
|
|
29
|
+
*
|
|
30
|
+
* * true
|
|
31
|
+
* * false
|
|
32
|
+
*
|
|
33
|
+
* Default value: true.
|
|
34
|
+
*
|
|
24
35
|
* This parameter is required.
|
|
25
36
|
*
|
|
26
37
|
* @example
|
|
@@ -29,6 +40,8 @@ export class UpdateChunkRequest extends $dara.Model {
|
|
|
29
40
|
isDisplayedChunkContent?: boolean;
|
|
30
41
|
/**
|
|
31
42
|
* @remarks
|
|
43
|
+
* The knowledge base ID, which is the `Data.Id` returned by **CreateIndex**. You can also get it on the [Knowledge Base](https://modelstudio.console.alibabacloud.com/?tab=app#/knowledge-base) page.
|
|
44
|
+
*
|
|
32
45
|
* This parameter is required.
|
|
33
46
|
*
|
|
34
47
|
* @example
|
|
@@ -37,9 +50,15 @@ export class UpdateChunkRequest extends $dara.Model {
|
|
|
37
50
|
pipelineId?: string;
|
|
38
51
|
/**
|
|
39
52
|
* @remarks
|
|
53
|
+
* The new content of the chunk. The content must be between 10 and 6,000 characters in length and cannot exceed the maximum chunk length set when the knowledge base was created.
|
|
54
|
+
*
|
|
40
55
|
* This parameter is required.
|
|
41
56
|
*/
|
|
42
57
|
content?: string;
|
|
58
|
+
/**
|
|
59
|
+
* @remarks
|
|
60
|
+
* The new title of the chunk. The title must be 0 to 50 characters in length and can be an empty string. If you specify an empty string, the existing title is cleared. If you do not pass this parameter, the original title remains unchanged.
|
|
61
|
+
*/
|
|
43
62
|
title?: string;
|
|
44
63
|
static names(): { [key: string]: string } {
|
|
45
64
|
return {
|
|
@@ -4,34 +4,52 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class UpdateChunkResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The status code.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* InvalidParameter
|
|
9
12
|
*/
|
|
10
13
|
code?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The data returned if the request is successful.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* true
|
|
14
20
|
*/
|
|
15
21
|
data?: boolean;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The error message.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* Required parameter(%s) missing or invalid, please check the request parameters.
|
|
19
28
|
*/
|
|
20
29
|
message?: string;
|
|
21
30
|
/**
|
|
22
31
|
* @remarks
|
|
23
|
-
*
|
|
32
|
+
* The request ID.
|
|
24
33
|
*
|
|
25
34
|
* @example
|
|
26
35
|
* 35A267BF-xxxx-54DB-8394-AA3B0742D833
|
|
27
36
|
*/
|
|
28
37
|
requestId?: string;
|
|
29
38
|
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The HTTP status code returned.
|
|
41
|
+
*
|
|
30
42
|
* @example
|
|
31
43
|
* 200
|
|
32
44
|
*/
|
|
33
45
|
status?: string;
|
|
34
46
|
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* Indications whether the API call is successful. Valid values:
|
|
49
|
+
*
|
|
50
|
+
* * true
|
|
51
|
+
* * false
|
|
52
|
+
*
|
|
35
53
|
* @example
|
|
36
54
|
* true
|
|
37
55
|
*/
|
package/src/models/model.ts
CHANGED
|
@@ -5,6 +5,8 @@ export { AddFilesFromAuthorizedOssResponseBodyDataAddFileResultList } from './Ad
|
|
|
5
5
|
export { AddFilesFromAuthorizedOssResponseBodyData } from './AddFilesFromAuthorizedOssResponseBody';
|
|
6
6
|
export { ApplyFileUploadLeaseResponseBodyDataParam } from './ApplyFileUploadLeaseResponseBody';
|
|
7
7
|
export { ApplyFileUploadLeaseResponseBodyData } from './ApplyFileUploadLeaseResponseBody';
|
|
8
|
+
export { ApplyTempStorageLeaseResponseBodyDataParam } from './ApplyTempStorageLeaseResponseBody';
|
|
9
|
+
export { ApplyTempStorageLeaseResponseBodyData } from './ApplyTempStorageLeaseResponseBody';
|
|
8
10
|
export { ChangeParseSettingRequestParserConfig } from './ChangeParseSettingRequest';
|
|
9
11
|
export { ChangeParseSettingResponseBodyData } from './ChangeParseSettingResponseBody';
|
|
10
12
|
export { CreateAndPulishAgentRequestApplicationConfigHistoryConfig } from './CreateAndPulishAgentRequest';
|
|
@@ -106,6 +108,9 @@ export { AddFilesFromAuthorizedOssResponse } from './AddFilesFromAuthorizedOssRe
|
|
|
106
108
|
export { ApplyFileUploadLeaseRequest } from './ApplyFileUploadLeaseRequest';
|
|
107
109
|
export { ApplyFileUploadLeaseResponseBody } from './ApplyFileUploadLeaseResponseBody';
|
|
108
110
|
export { ApplyFileUploadLeaseResponse } from './ApplyFileUploadLeaseResponse';
|
|
111
|
+
export { ApplyTempStorageLeaseRequest } from './ApplyTempStorageLeaseRequest';
|
|
112
|
+
export { ApplyTempStorageLeaseResponseBody } from './ApplyTempStorageLeaseResponseBody';
|
|
113
|
+
export { ApplyTempStorageLeaseResponse } from './ApplyTempStorageLeaseResponse';
|
|
109
114
|
export { ChangeParseSettingRequest } from './ChangeParseSettingRequest';
|
|
110
115
|
export { ChangeParseSettingShrinkRequest } from './ChangeParseSettingShrinkRequest';
|
|
111
116
|
export { ChangeParseSettingResponseBody } from './ChangeParseSettingResponseBody';
|