@alicloud/eventbridge20200401 6.6.1 → 6.7.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.
Files changed (196) hide show
  1. package/dist/client.d.ts +192 -6
  2. package/dist/client.js +667 -6
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/Agent.d.ts +6 -0
  5. package/dist/models/Agent.js.map +1 -1
  6. package/dist/models/AiTranslateTransformParameters.d.ts +13 -0
  7. package/dist/models/AiTranslateTransformParameters.js.map +1 -1
  8. package/dist/models/CreateKnowledgeBaseRequest.d.ts +305 -0
  9. package/dist/models/CreateKnowledgeBaseRequest.js +192 -0
  10. package/dist/models/CreateKnowledgeBaseRequest.js.map +1 -0
  11. package/dist/models/CreateKnowledgeBaseResponse.d.ts +19 -0
  12. package/dist/models/CreateKnowledgeBaseResponse.js +69 -0
  13. package/dist/models/CreateKnowledgeBaseResponse.js.map +1 -0
  14. package/dist/models/CreateKnowledgeBaseResponseBody.d.ts +51 -0
  15. package/dist/models/CreateKnowledgeBaseResponseBody.js +70 -0
  16. package/dist/models/CreateKnowledgeBaseResponseBody.js.map +1 -0
  17. package/dist/models/CreateKnowledgeBaseShrinkRequest.d.ts +85 -0
  18. package/dist/models/CreateKnowledgeBaseShrinkRequest.js +74 -0
  19. package/dist/models/CreateKnowledgeBaseShrinkRequest.js.map +1 -0
  20. package/dist/models/DeleteKnowledgeBaseRequest.d.ts +43 -0
  21. package/dist/models/DeleteKnowledgeBaseRequest.js +62 -0
  22. package/dist/models/DeleteKnowledgeBaseRequest.js.map +1 -0
  23. package/dist/models/DeleteKnowledgeBaseResponse.d.ts +19 -0
  24. package/dist/models/DeleteKnowledgeBaseResponse.js +69 -0
  25. package/dist/models/DeleteKnowledgeBaseResponse.js.map +1 -0
  26. package/dist/models/DeleteKnowledgeBaseResponseBody.d.ts +51 -0
  27. package/dist/models/DeleteKnowledgeBaseResponseBody.js +70 -0
  28. package/dist/models/DeleteKnowledgeBaseResponseBody.js.map +1 -0
  29. package/dist/models/GetAgentRequest.d.ts +1 -1
  30. package/dist/models/GetAgentResponseBody.d.ts +1 -1
  31. package/dist/models/GetChunkRequest.d.ts +63 -0
  32. package/dist/models/GetChunkRequest.js +66 -0
  33. package/dist/models/GetChunkRequest.js.map +1 -0
  34. package/dist/models/GetChunkResponse.d.ts +19 -0
  35. package/dist/models/GetChunkResponse.js +69 -0
  36. package/dist/models/GetChunkResponse.js.map +1 -0
  37. package/dist/models/GetChunkResponseBody.d.ts +51 -0
  38. package/dist/models/GetChunkResponseBody.js +70 -0
  39. package/dist/models/GetChunkResponseBody.js.map +1 -0
  40. package/dist/models/GetDocumentDownloadUrlRequest.d.ts +64 -0
  41. package/dist/models/GetDocumentDownloadUrlRequest.js +66 -0
  42. package/dist/models/GetDocumentDownloadUrlRequest.js.map +1 -0
  43. package/dist/models/GetDocumentDownloadUrlResponse.d.ts +19 -0
  44. package/dist/models/GetDocumentDownloadUrlResponse.js +69 -0
  45. package/dist/models/GetDocumentDownloadUrlResponse.js.map +1 -0
  46. package/dist/models/GetDocumentDownloadUrlResponseBody.d.ts +78 -0
  47. package/dist/models/GetDocumentDownloadUrlResponseBody.js +90 -0
  48. package/dist/models/GetDocumentDownloadUrlResponseBody.js.map +1 -0
  49. package/dist/models/GetDocumentRequest.d.ts +53 -0
  50. package/dist/models/GetDocumentRequest.js +64 -0
  51. package/dist/models/GetDocumentRequest.js.map +1 -0
  52. package/dist/models/GetDocumentResponse.d.ts +19 -0
  53. package/dist/models/GetDocumentResponse.js +69 -0
  54. package/dist/models/GetDocumentResponse.js.map +1 -0
  55. package/dist/models/GetDocumentResponseBody.d.ts +51 -0
  56. package/dist/models/GetDocumentResponseBody.js +70 -0
  57. package/dist/models/GetDocumentResponseBody.js.map +1 -0
  58. package/dist/models/GetKnowledgeBaseRequest.d.ts +43 -0
  59. package/dist/models/GetKnowledgeBaseRequest.js +62 -0
  60. package/dist/models/GetKnowledgeBaseRequest.js.map +1 -0
  61. package/dist/models/GetKnowledgeBaseResponse.d.ts +19 -0
  62. package/dist/models/GetKnowledgeBaseResponse.js +69 -0
  63. package/dist/models/GetKnowledgeBaseResponse.js.map +1 -0
  64. package/dist/models/GetKnowledgeBaseResponseBody.d.ts +51 -0
  65. package/dist/models/GetKnowledgeBaseResponseBody.js +70 -0
  66. package/dist/models/GetKnowledgeBaseResponseBody.js.map +1 -0
  67. package/dist/models/ListAgentsRequest.d.ts +3 -3
  68. package/dist/models/ListAgentsResponseBody.d.ts +6 -6
  69. package/dist/models/ListChunksRequest.d.ts +83 -0
  70. package/dist/models/ListChunksRequest.js +72 -0
  71. package/dist/models/ListChunksRequest.js.map +1 -0
  72. package/dist/models/ListChunksResponse.d.ts +19 -0
  73. package/dist/models/ListChunksResponse.js +69 -0
  74. package/dist/models/ListChunksResponse.js.map +1 -0
  75. package/dist/models/ListChunksResponseBody.d.ts +95 -0
  76. package/dist/models/ListChunksResponseBody.js +98 -0
  77. package/dist/models/ListChunksResponseBody.js.map +1 -0
  78. package/dist/models/ListConnectionsRequest.d.ts +5 -5
  79. package/dist/models/ListConnectionsResponseBody.d.ts +15 -14
  80. package/dist/models/ListConnectionsResponseBody.js.map +1 -1
  81. package/dist/models/ListDocumentsRequest.d.ts +84 -0
  82. package/dist/models/ListDocumentsRequest.js +70 -0
  83. package/dist/models/ListDocumentsRequest.js.map +1 -0
  84. package/dist/models/ListDocumentsResponse.d.ts +19 -0
  85. package/dist/models/ListDocumentsResponse.js +69 -0
  86. package/dist/models/ListDocumentsResponse.js.map +1 -0
  87. package/dist/models/ListDocumentsResponseBody.d.ts +95 -0
  88. package/dist/models/ListDocumentsResponseBody.js +98 -0
  89. package/dist/models/ListDocumentsResponseBody.js.map +1 -0
  90. package/dist/models/ListKnowledgeBasesRequest.d.ts +49 -0
  91. package/dist/models/ListKnowledgeBasesRequest.js +64 -0
  92. package/dist/models/ListKnowledgeBasesRequest.js.map +1 -0
  93. package/dist/models/ListKnowledgeBasesResponse.d.ts +19 -0
  94. package/dist/models/ListKnowledgeBasesResponse.js +69 -0
  95. package/dist/models/ListKnowledgeBasesResponse.js.map +1 -0
  96. package/dist/models/ListKnowledgeBasesResponseBody.d.ts +95 -0
  97. package/dist/models/ListKnowledgeBasesResponseBody.js +98 -0
  98. package/dist/models/ListKnowledgeBasesResponseBody.js.map +1 -0
  99. package/dist/models/ListLumaCatalogsRequest.d.ts +3 -3
  100. package/dist/models/ListLumaCatalogsResponseBody.d.ts +9 -9
  101. package/dist/models/ListLumaNamespacesRequest.d.ts +4 -4
  102. package/dist/models/ListLumaNamespacesResponseBody.d.ts +9 -9
  103. package/dist/models/QueryWithSqlrequest.d.ts +31 -0
  104. package/dist/models/QueryWithSqlrequest.js +60 -0
  105. package/dist/models/QueryWithSqlrequest.js.map +1 -0
  106. package/dist/models/QueryWithSqlresponse.d.ts +19 -0
  107. package/dist/models/QueryWithSqlresponse.js +69 -0
  108. package/dist/models/QueryWithSqlresponse.js.map +1 -0
  109. package/dist/models/QueryWithSqlresponseBody.d.ts +80 -0
  110. package/dist/models/QueryWithSqlresponseBody.js +94 -0
  111. package/dist/models/QueryWithSqlresponseBody.js.map +1 -0
  112. package/dist/models/SearchKnowledgeBaseRequest.d.ts +117 -0
  113. package/dist/models/SearchKnowledgeBaseRequest.js +80 -0
  114. package/dist/models/SearchKnowledgeBaseRequest.js.map +1 -0
  115. package/dist/models/SearchKnowledgeBaseResponse.d.ts +19 -0
  116. package/dist/models/SearchKnowledgeBaseResponse.js +69 -0
  117. package/dist/models/SearchKnowledgeBaseResponse.js.map +1 -0
  118. package/dist/models/SearchKnowledgeBaseResponseBody.d.ts +79 -0
  119. package/dist/models/SearchKnowledgeBaseResponseBody.js +94 -0
  120. package/dist/models/SearchKnowledgeBaseResponseBody.js.map +1 -0
  121. package/dist/models/UpdateAgentRequest.d.ts +11 -5
  122. package/dist/models/UpdateAgentRequest.js.map +1 -1
  123. package/dist/models/UpdateAgentResponseBody.d.ts +3 -3
  124. package/dist/models/UpdateAgentShrinkRequest.d.ts +9 -3
  125. package/dist/models/UpdateAgentShrinkRequest.js.map +1 -1
  126. package/dist/models/UpdateKnowledgeBaseRequest.d.ts +222 -0
  127. package/dist/models/UpdateKnowledgeBaseRequest.js +158 -0
  128. package/dist/models/UpdateKnowledgeBaseRequest.js.map +1 -0
  129. package/dist/models/UpdateKnowledgeBaseResponse.d.ts +19 -0
  130. package/dist/models/UpdateKnowledgeBaseResponse.js +69 -0
  131. package/dist/models/UpdateKnowledgeBaseResponse.js.map +1 -0
  132. package/dist/models/UpdateKnowledgeBaseResponseBody.d.ts +51 -0
  133. package/dist/models/UpdateKnowledgeBaseResponseBody.js +70 -0
  134. package/dist/models/UpdateKnowledgeBaseResponseBody.js.map +1 -0
  135. package/dist/models/UpdateKnowledgeBaseShrinkRequest.d.ts +61 -0
  136. package/dist/models/UpdateKnowledgeBaseShrinkRequest.js +68 -0
  137. package/dist/models/UpdateKnowledgeBaseShrinkRequest.js.map +1 -0
  138. package/dist/models/model.d.ts +51 -0
  139. package/dist/models/model.js +123 -20
  140. package/dist/models/model.js.map +1 -1
  141. package/package.json +1 -1
  142. package/src/client.ts +768 -10
  143. package/src/models/Agent.ts +6 -0
  144. package/src/models/AiTranslateTransformParameters.ts +13 -0
  145. package/src/models/CreateKnowledgeBaseRequest.ts +416 -0
  146. package/src/models/CreateKnowledgeBaseResponse.ts +40 -0
  147. package/src/models/CreateKnowledgeBaseResponseBody.ts +75 -0
  148. package/src/models/CreateKnowledgeBaseShrinkRequest.ts +114 -0
  149. package/src/models/DeleteKnowledgeBaseRequest.ts +60 -0
  150. package/src/models/DeleteKnowledgeBaseResponse.ts +40 -0
  151. package/src/models/DeleteKnowledgeBaseResponseBody.ts +75 -0
  152. package/src/models/GetAgentRequest.ts +1 -1
  153. package/src/models/GetAgentResponseBody.ts +1 -1
  154. package/src/models/GetChunkRequest.ts +84 -0
  155. package/src/models/GetChunkResponse.ts +40 -0
  156. package/src/models/GetChunkResponseBody.ts +75 -0
  157. package/src/models/GetDocumentDownloadUrlRequest.ts +85 -0
  158. package/src/models/GetDocumentDownloadUrlResponse.ts +40 -0
  159. package/src/models/GetDocumentDownloadUrlResponseBody.ts +114 -0
  160. package/src/models/GetDocumentRequest.ts +72 -0
  161. package/src/models/GetDocumentResponse.ts +40 -0
  162. package/src/models/GetDocumentResponseBody.ts +75 -0
  163. package/src/models/GetKnowledgeBaseRequest.ts +60 -0
  164. package/src/models/GetKnowledgeBaseResponse.ts +40 -0
  165. package/src/models/GetKnowledgeBaseResponseBody.ts +75 -0
  166. package/src/models/ListAgentsRequest.ts +3 -3
  167. package/src/models/ListAgentsResponseBody.ts +6 -6
  168. package/src/models/ListChunksRequest.ts +110 -0
  169. package/src/models/ListChunksResponse.ts +40 -0
  170. package/src/models/ListChunksResponseBody.ts +138 -0
  171. package/src/models/ListConnectionsRequest.ts +5 -5
  172. package/src/models/ListConnectionsResponseBody.ts +15 -14
  173. package/src/models/ListDocumentsRequest.ts +109 -0
  174. package/src/models/ListDocumentsResponse.ts +40 -0
  175. package/src/models/ListDocumentsResponseBody.ts +138 -0
  176. package/src/models/ListKnowledgeBasesRequest.ts +68 -0
  177. package/src/models/ListKnowledgeBasesResponse.ts +40 -0
  178. package/src/models/ListKnowledgeBasesResponseBody.ts +138 -0
  179. package/src/models/ListLumaCatalogsRequest.ts +3 -3
  180. package/src/models/ListLumaCatalogsResponseBody.ts +9 -9
  181. package/src/models/ListLumaNamespacesRequest.ts +4 -4
  182. package/src/models/ListLumaNamespacesResponseBody.ts +9 -9
  183. package/src/models/QueryWithSqlrequest.ts +46 -0
  184. package/src/models/QueryWithSqlresponse.ts +40 -0
  185. package/src/models/QueryWithSqlresponseBody.ts +119 -0
  186. package/src/models/SearchKnowledgeBaseRequest.ts +152 -0
  187. package/src/models/SearchKnowledgeBaseResponse.ts +40 -0
  188. package/src/models/SearchKnowledgeBaseResponseBody.ts +118 -0
  189. package/src/models/UpdateAgentRequest.ts +11 -5
  190. package/src/models/UpdateAgentResponseBody.ts +3 -3
  191. package/src/models/UpdateAgentShrinkRequest.ts +9 -3
  192. package/src/models/UpdateKnowledgeBaseRequest.ts +308 -0
  193. package/src/models/UpdateKnowledgeBaseResponse.ts +40 -0
  194. package/src/models/UpdateKnowledgeBaseResponseBody.ts +75 -0
  195. package/src/models/UpdateKnowledgeBaseShrinkRequest.ts +84 -0
  196. package/src/models/model.ts +51 -0
@@ -7,11 +7,17 @@ export class Agent extends $dara.Model {
7
7
  createdAt?: number;
8
8
  description?: string;
9
9
  /**
10
+ * @remarks
11
+ * The ID of the MCP server associated with the agent.
12
+ *
10
13
  * @example
11
14
  * 8vHW4mDRxxxxx
12
15
  */
13
16
  mcpServerId?: string;
14
17
  /**
18
+ * @remarks
19
+ * The name of the MCP server.
20
+ *
15
21
  * @example
16
22
  * data-analyze-agent
17
23
  */
@@ -4,18 +4,31 @@ import { AiTransformField } from "./AiTransformField";
4
4
 
5
5
 
6
6
  export class AiTranslateTransformParameters extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The input text field.
10
+ */
7
11
  inputField?: AiTransformField;
8
12
  /**
13
+ * @remarks
14
+ * The source language. If left empty, the language is automatically detected.
15
+ *
9
16
  * @example
10
17
  * zh
11
18
  */
12
19
  sourceLanguage?: string;
13
20
  /**
21
+ * @remarks
22
+ * The field name attached to the CloudEvent output. Default value: transform0.
23
+ *
14
24
  * @example
15
25
  * translation
16
26
  */
17
27
  stepName?: string;
18
28
  /**
29
+ * @remarks
30
+ * The target language.
31
+ *
19
32
  * @example
20
33
  * en
21
34
  */
@@ -0,0 +1,416 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateKnowledgeBaseRequestChunkConfigurationPreprocessRules extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Specifies whether to remove URLs and email addresses during parsing.
9
+ *
10
+ * @example
11
+ * false
12
+ */
13
+ removeUrlsAndEmails?: boolean;
14
+ /**
15
+ * @remarks
16
+ * Specifies whether to replace consecutive whitespace characters (spaces, line breaks, and tabs) with a single space.
17
+ *
18
+ * @example
19
+ * true
20
+ */
21
+ replaceConsecutiveWhitespace?: boolean;
22
+ static names(): { [key: string]: string } {
23
+ return {
24
+ removeUrlsAndEmails: 'RemoveUrlsAndEmails',
25
+ replaceConsecutiveWhitespace: 'ReplaceConsecutiveWhitespace',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ removeUrlsAndEmails: 'boolean',
32
+ replaceConsecutiveWhitespace: 'boolean',
33
+ };
34
+ }
35
+
36
+ validate() {
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
45
+ export class CreateKnowledgeBaseRequestChunkConfiguration extends $dara.Model {
46
+ /**
47
+ * @remarks
48
+ * Required for the BY_HEADING strategy. Valid values: 1 to 6. This parameter is ignored for other strategies. Headings at or above the specified level are used as split boundaries. For example, if you set this parameter to 2, both H1 and H2 headings are used as split boundaries. Deeper-level headings are not used for splitting and are retained in the chunk body. If the content within a section exceeds MaxChunkSize, the system falls back to splitting by paragraphs or sentences. Documents without headings fall back to intelligent chunking.
49
+ *
50
+ * @example
51
+ * 2
52
+ */
53
+ headingLevel?: number;
54
+ /**
55
+ * @remarks
56
+ * The maximum character length of a single chunk. Valid values: 1 to 6000 (characters). An error is returned if the value exceeds the limit.
57
+ *
58
+ * @example
59
+ * 512
60
+ */
61
+ maxChunkSize?: number;
62
+ /**
63
+ * @remarks
64
+ * Takes effect only for the BY_LENGTH strategy. This parameter is ignored for other strategies. Specifies the overlap length (in characters) between adjacent chunks. If the value is greater than 0, the beginning of the next chunk repeats the content from the end of the previous chunk within this window. The overlap does not cause a chunk to exceed MaxChunkSize. Default value: 0, which indicates no overlap.
65
+ *
66
+ * @example
67
+ * 40
68
+ */
69
+ overlapSize?: number;
70
+ /**
71
+ * @remarks
72
+ * The pre-processing rules.
73
+ */
74
+ preprocessRules?: CreateKnowledgeBaseRequestChunkConfigurationPreprocessRules;
75
+ /**
76
+ * @remarks
77
+ * Required for the BY_SEPARATOR strategy. This parameter is ignored for other strategies. The system splits content by matching the literal string as a whole (not as a regular expression). The maximum length is 32 characters. Example: \\
78
+ * \\
79
+ * for paragraph separators.
80
+ *
81
+ * @example
82
+ * \\\\n\\\\n
83
+ */
84
+ separator?: string;
85
+ /**
86
+ * @remarks
87
+ * Valid values:
88
+ * - AUTO: Intelligent chunking (heading-aware + paragraph packing).
89
+ * - BY_LENGTH: Sliding window chunking by length. You can specify OverlapSize.
90
+ * - BY_SEPARATOR: Chunking by separator. You must specify Separator.
91
+ * - BY_HEADING: Chunking by heading level. You must specify HeadingLevel.
92
+ *
93
+ * This parameter is required.
94
+ *
95
+ * @example
96
+ * BY_SEPARATOR
97
+ */
98
+ strategy?: string;
99
+ static names(): { [key: string]: string } {
100
+ return {
101
+ headingLevel: 'HeadingLevel',
102
+ maxChunkSize: 'MaxChunkSize',
103
+ overlapSize: 'OverlapSize',
104
+ preprocessRules: 'PreprocessRules',
105
+ separator: 'Separator',
106
+ strategy: 'Strategy',
107
+ };
108
+ }
109
+
110
+ static types(): { [key: string]: any } {
111
+ return {
112
+ headingLevel: 'number',
113
+ maxChunkSize: 'number',
114
+ overlapSize: 'number',
115
+ preprocessRules: CreateKnowledgeBaseRequestChunkConfigurationPreprocessRules,
116
+ separator: 'string',
117
+ strategy: 'string',
118
+ };
119
+ }
120
+
121
+ validate() {
122
+ if(this.preprocessRules && typeof (this.preprocessRules as any).validate === 'function') {
123
+ (this.preprocessRules as any).validate();
124
+ }
125
+ super.validate();
126
+ }
127
+
128
+ constructor(map?: { [key: string]: any }) {
129
+ super(map);
130
+ }
131
+ }
132
+
133
+ export class CreateKnowledgeBaseRequestMetadataSchema extends $dara.Model {
134
+ /**
135
+ * @remarks
136
+ * The name of the field.
137
+ *
138
+ * This parameter is required.
139
+ *
140
+ * @example
141
+ * department
142
+ */
143
+ name?: string;
144
+ /**
145
+ * @remarks
146
+ * Valid values: STRING, LONG, DOUBLE, BOOLEAN, and DATETIME.
147
+ *
148
+ * This parameter is required.
149
+ *
150
+ * @example
151
+ * STRING
152
+ */
153
+ type?: string;
154
+ /**
155
+ * @remarks
156
+ * When ValueMode is set to CONSTANT, this parameter specifies a fixed value. An empty value indicates that the value can be assigned during upload. When ValueMode is set to SYSTEM_VARIABLE, this parameter specifies a system variable name, such as DOCUMENT_NAME, FILE_TYPE, FILE_SIZE, DOCUMENT_UPLOAD_TIME, SOURCE_TYPE, SOURCE_URI, or SOURCE_MODIFIED_TIME.
157
+ *
158
+ * @example
159
+ * EventHouse
160
+ */
161
+ value?: string;
162
+ /**
163
+ * @remarks
164
+ * Valid values:
165
+ * - CONSTANT: Constant. If Value is not empty, all documents use the fixed value. If Value is empty, the value can be assigned during upload.
166
+ * - SYSTEM_VARIABLE: System variable. Value specifies the variable name. The system automatically generates the value, and the value cannot be overridden during upload.
167
+ *
168
+ * This parameter is required.
169
+ *
170
+ * @example
171
+ * CONSTANT
172
+ */
173
+ valueMode?: string;
174
+ static names(): { [key: string]: string } {
175
+ return {
176
+ name: 'Name',
177
+ type: 'Type',
178
+ value: 'Value',
179
+ valueMode: 'ValueMode',
180
+ };
181
+ }
182
+
183
+ static types(): { [key: string]: any } {
184
+ return {
185
+ name: 'string',
186
+ type: 'string',
187
+ value: 'string',
188
+ valueMode: 'string',
189
+ };
190
+ }
191
+
192
+ validate() {
193
+ super.validate();
194
+ }
195
+
196
+ constructor(map?: { [key: string]: any }) {
197
+ super(map);
198
+ }
199
+ }
200
+
201
+ export class CreateKnowledgeBaseRequestSearchConfiguration extends $dara.Model {
202
+ /**
203
+ * @remarks
204
+ * Valid values:
205
+ * - KEYWORD: Keyword retrieval.
206
+ * - VECTOR: Vector retrieval.
207
+ * - HYBRID: Hybrid retrieval.
208
+ *
209
+ * @example
210
+ * HYBRID
211
+ */
212
+ mode?: string;
213
+ /**
214
+ * @remarks
215
+ * Takes effect only in hybrid search mode. Valid values:
216
+ * - RRF: Reciprocal rank fusion.
217
+ * - WEIGHTED: Weighted normalization fusion. Use this value together with VectorWeight.
218
+ *
219
+ * Default value: RRF.
220
+ *
221
+ * @example
222
+ * RRF
223
+ */
224
+ rankAlgorithm?: string;
225
+ /**
226
+ * @remarks
227
+ * Takes effect only in hybrid search mode. Specifies whether to enable reranking by default when the search request does not specify a Rerank parameter.
228
+ *
229
+ * @example
230
+ * false
231
+ */
232
+ rerankEnabled?: boolean;
233
+ /**
234
+ * @remarks
235
+ * The default reranking model used when the search request does not specify a RerankModel parameter. Valid values: qwen3-rerank. Default value: qwen3-rerank.
236
+ *
237
+ * @example
238
+ * qwen3-rerank
239
+ */
240
+ rerankModel?: string;
241
+ /**
242
+ * @remarks
243
+ * The k parameter for the RRF fusion algorithm. The value must be greater than 0. Default value: 60.
244
+ *
245
+ * @example
246
+ * 60
247
+ */
248
+ rrfK?: number;
249
+ /**
250
+ * @remarks
251
+ * The default number of results to return.
252
+ *
253
+ * @example
254
+ * 20
255
+ */
256
+ topK?: number;
257
+ /**
258
+ * @remarks
259
+ * The vector weight for the WEIGHTED fusion algorithm. Valid values: 0 to 1. The keyword weight equals 1 minus this value. Default value: 0.7.
260
+ *
261
+ * @example
262
+ * 0.7
263
+ */
264
+ vectorWeight?: number;
265
+ static names(): { [key: string]: string } {
266
+ return {
267
+ mode: 'Mode',
268
+ rankAlgorithm: 'RankAlgorithm',
269
+ rerankEnabled: 'RerankEnabled',
270
+ rerankModel: 'RerankModel',
271
+ rrfK: 'RrfK',
272
+ topK: 'TopK',
273
+ vectorWeight: 'VectorWeight',
274
+ };
275
+ }
276
+
277
+ static types(): { [key: string]: any } {
278
+ return {
279
+ mode: 'string',
280
+ rankAlgorithm: 'string',
281
+ rerankEnabled: 'boolean',
282
+ rerankModel: 'string',
283
+ rrfK: 'number',
284
+ topK: 'number',
285
+ vectorWeight: 'number',
286
+ };
287
+ }
288
+
289
+ validate() {
290
+ super.validate();
291
+ }
292
+
293
+ constructor(map?: { [key: string]: any }) {
294
+ super(map);
295
+ }
296
+ }
297
+
298
+ export class CreateKnowledgeBaseRequest extends $dara.Model {
299
+ /**
300
+ * @remarks
301
+ * The EventHouse catalog to which the knowledge base belongs. This parameter, together with Namespace and KnowledgeBaseName, uniquely identifies the knowledge base. This parameter cannot be modified after the knowledge base is created. System catalogs cannot be bound.
302
+ *
303
+ * This parameter is required.
304
+ *
305
+ * @example
306
+ * my_catalog
307
+ */
308
+ catalog?: string;
309
+ /**
310
+ * @remarks
311
+ * Optional. The default chunking strategy for the knowledge base. This strategy applies only to documents uploaded after the configuration is set. If this parameter is not specified, the system default chunking strategy is used.
312
+ */
313
+ chunkConfiguration?: CreateKnowledgeBaseRequestChunkConfiguration;
314
+ /**
315
+ * @remarks
316
+ * The description of the knowledge base.
317
+ *
318
+ * @example
319
+ * Product documentation knowledge base
320
+ */
321
+ description?: string;
322
+ /**
323
+ * @remarks
324
+ * Optional. The vector dimensions. The value is validated against the embedding model: text-embedding-v3 supports 64, 128, 256, 512, 768, and 1024. text-embedding-v4 supports 64, 128, 256, 512, 768, 1024, 1536, and 2048. qwen3.7-text-embedding supports 256, 512, 768, 1024, 1536, 2048, and 2560. qwen3.7-text-embedding-flash supports 256, 512, 768, and 1024. Default value: 1024 (the default dimension of the model). This parameter cannot be modified after the knowledge base is created. Even if the dimensions are the same, you must rebuild the knowledge base when switching models.
325
+ *
326
+ * @example
327
+ * 1024
328
+ */
329
+ embeddingDimension?: number;
330
+ /**
331
+ * @remarks
332
+ * Optional. The embedding model used for vectorization. This parameter cannot be modified after the knowledge base is created. Valid values: text-embedding-v3, text-embedding-v4, qwen3.7-text-embedding, and qwen3.7-text-embedding-flash. Only Bailian Tongyi models are supported. Third-party models are not supported. Default value: text-embedding-v4.
333
+ *
334
+ * @example
335
+ * text-embedding-v4
336
+ */
337
+ embeddingModel?: string;
338
+ /**
339
+ * @remarks
340
+ * The name of the knowledge base. The name must be unique within the namespace.
341
+ *
342
+ * This parameter is required.
343
+ *
344
+ * @example
345
+ * product-docs
346
+ */
347
+ knowledgeBaseName?: string;
348
+ /**
349
+ * @remarks
350
+ * Declares the metadata fields of the knowledge base. When you upload documents, the metadata can contain only the fields declared here. This parameter cannot be modified after the knowledge base is created.
351
+ *
352
+ * @example
353
+ * [{"Name":"department","Type":"STRING"}]
354
+ */
355
+ metadataSchema?: CreateKnowledgeBaseRequestMetadataSchema[];
356
+ /**
357
+ * @remarks
358
+ * The EventHouse namespace to which the knowledge base belongs. The namespace must belong to the specified catalog. This parameter, together with Catalog and KnowledgeBaseName, uniquely identifies the knowledge base. This parameter cannot be modified after the knowledge base is created.
359
+ *
360
+ * This parameter is required.
361
+ *
362
+ * @example
363
+ * my_namespace
364
+ */
365
+ namespace?: string;
366
+ /**
367
+ * @remarks
368
+ * Optional. The default search configuration at the knowledge base level. This configuration takes effect when the corresponding parameters are not specified in search requests. You can modify this configuration after creation by calling UpdateKnowledgeBase.
369
+ */
370
+ searchConfiguration?: CreateKnowledgeBaseRequestSearchConfiguration;
371
+ static names(): { [key: string]: string } {
372
+ return {
373
+ catalog: 'Catalog',
374
+ chunkConfiguration: 'ChunkConfiguration',
375
+ description: 'Description',
376
+ embeddingDimension: 'EmbeddingDimension',
377
+ embeddingModel: 'EmbeddingModel',
378
+ knowledgeBaseName: 'KnowledgeBaseName',
379
+ metadataSchema: 'MetadataSchema',
380
+ namespace: 'Namespace',
381
+ searchConfiguration: 'SearchConfiguration',
382
+ };
383
+ }
384
+
385
+ static types(): { [key: string]: any } {
386
+ return {
387
+ catalog: 'string',
388
+ chunkConfiguration: CreateKnowledgeBaseRequestChunkConfiguration,
389
+ description: 'string',
390
+ embeddingDimension: 'number',
391
+ embeddingModel: 'string',
392
+ knowledgeBaseName: 'string',
393
+ metadataSchema: { 'type': 'array', 'itemType': CreateKnowledgeBaseRequestMetadataSchema },
394
+ namespace: 'string',
395
+ searchConfiguration: CreateKnowledgeBaseRequestSearchConfiguration,
396
+ };
397
+ }
398
+
399
+ validate() {
400
+ if(this.chunkConfiguration && typeof (this.chunkConfiguration as any).validate === 'function') {
401
+ (this.chunkConfiguration as any).validate();
402
+ }
403
+ if(Array.isArray(this.metadataSchema)) {
404
+ $dara.Model.validateArray(this.metadataSchema);
405
+ }
406
+ if(this.searchConfiguration && typeof (this.searchConfiguration as any).validate === 'function') {
407
+ (this.searchConfiguration as any).validate();
408
+ }
409
+ super.validate();
410
+ }
411
+
412
+ constructor(map?: { [key: string]: any }) {
413
+ super(map);
414
+ }
415
+ }
416
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreateKnowledgeBaseResponseBody } from "./CreateKnowledgeBaseResponseBody";
4
+
5
+
6
+ export class CreateKnowledgeBaseResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CreateKnowledgeBaseResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: CreateKnowledgeBaseResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,75 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { KnowledgeBase } from "./KnowledgeBase";
4
+
5
+
6
+ export class CreateKnowledgeBaseResponseBody extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The response code. A value of Success indicates a successful operation. An error code is returned if the operation fails.
10
+ *
11
+ * @example
12
+ * Success
13
+ */
14
+ code?: string;
15
+ /**
16
+ * @remarks
17
+ * The details of the created knowledge base, including the name, status, and configuration information.
18
+ */
19
+ data?: KnowledgeBase;
20
+ /**
21
+ * @remarks
22
+ * The response message. A value of Operation success is returned if the operation succeeds. A specific error description is returned if the operation fails.
23
+ *
24
+ * @example
25
+ * Operation success
26
+ */
27
+ message?: string;
28
+ /**
29
+ * @remarks
30
+ * The request ID.
31
+ *
32
+ * @example
33
+ * 34AD682D-5B91-5773-8132-AA38C130****
34
+ */
35
+ requestId?: string;
36
+ /**
37
+ * @remarks
38
+ * Indicates whether the operation is successful. A value of true indicates success.
39
+ *
40
+ * @example
41
+ * true
42
+ */
43
+ success?: boolean;
44
+ static names(): { [key: string]: string } {
45
+ return {
46
+ code: 'Code',
47
+ data: 'Data',
48
+ message: 'Message',
49
+ requestId: 'RequestId',
50
+ success: 'Success',
51
+ };
52
+ }
53
+
54
+ static types(): { [key: string]: any } {
55
+ return {
56
+ code: 'string',
57
+ data: KnowledgeBase,
58
+ message: 'string',
59
+ requestId: 'string',
60
+ success: 'boolean',
61
+ };
62
+ }
63
+
64
+ validate() {
65
+ if(this.data && typeof (this.data as any).validate === 'function') {
66
+ (this.data as any).validate();
67
+ }
68
+ super.validate();
69
+ }
70
+
71
+ constructor(map?: { [key: string]: any }) {
72
+ super(map);
73
+ }
74
+ }
75
+
@@ -0,0 +1,114 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateKnowledgeBaseShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The EventHouse catalog to which the knowledge base belongs. This parameter, together with Namespace and KnowledgeBaseName, uniquely identifies the knowledge base. This parameter cannot be modified after the knowledge base is created. System catalogs cannot be bound.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * my_catalog
14
+ */
15
+ catalog?: string;
16
+ /**
17
+ * @remarks
18
+ * Optional. The default chunking strategy for the knowledge base. This strategy applies only to documents uploaded after the configuration is set. If this parameter is not specified, the system default chunking strategy is used.
19
+ */
20
+ chunkConfigurationShrink?: string;
21
+ /**
22
+ * @remarks
23
+ * The description of the knowledge base.
24
+ *
25
+ * @example
26
+ * Product documentation knowledge base
27
+ */
28
+ description?: string;
29
+ /**
30
+ * @remarks
31
+ * Optional. The vector dimensions. The value is validated against the embedding model: text-embedding-v3 supports 64, 128, 256, 512, 768, and 1024. text-embedding-v4 supports 64, 128, 256, 512, 768, 1024, 1536, and 2048. qwen3.7-text-embedding supports 256, 512, 768, 1024, 1536, 2048, and 2560. qwen3.7-text-embedding-flash supports 256, 512, 768, and 1024. Default value: 1024 (the default dimension of the model). This parameter cannot be modified after the knowledge base is created. Even if the dimensions are the same, you must rebuild the knowledge base when switching models.
32
+ *
33
+ * @example
34
+ * 1024
35
+ */
36
+ embeddingDimension?: number;
37
+ /**
38
+ * @remarks
39
+ * Optional. The embedding model used for vectorization. This parameter cannot be modified after the knowledge base is created. Valid values: text-embedding-v3, text-embedding-v4, qwen3.7-text-embedding, and qwen3.7-text-embedding-flash. Only Bailian Tongyi models are supported. Third-party models are not supported. Default value: text-embedding-v4.
40
+ *
41
+ * @example
42
+ * text-embedding-v4
43
+ */
44
+ embeddingModel?: string;
45
+ /**
46
+ * @remarks
47
+ * The name of the knowledge base. The name must be unique within the namespace.
48
+ *
49
+ * This parameter is required.
50
+ *
51
+ * @example
52
+ * product-docs
53
+ */
54
+ knowledgeBaseName?: string;
55
+ /**
56
+ * @remarks
57
+ * Declares the metadata fields of the knowledge base. When you upload documents, the metadata can contain only the fields declared here. This parameter cannot be modified after the knowledge base is created.
58
+ *
59
+ * @example
60
+ * [{"Name":"department","Type":"STRING"}]
61
+ */
62
+ metadataSchemaShrink?: string;
63
+ /**
64
+ * @remarks
65
+ * The EventHouse namespace to which the knowledge base belongs. The namespace must belong to the specified catalog. This parameter, together with Catalog and KnowledgeBaseName, uniquely identifies the knowledge base. This parameter cannot be modified after the knowledge base is created.
66
+ *
67
+ * This parameter is required.
68
+ *
69
+ * @example
70
+ * my_namespace
71
+ */
72
+ namespace?: string;
73
+ /**
74
+ * @remarks
75
+ * Optional. The default search configuration at the knowledge base level. This configuration takes effect when the corresponding parameters are not specified in search requests. You can modify this configuration after creation by calling UpdateKnowledgeBase.
76
+ */
77
+ searchConfigurationShrink?: string;
78
+ static names(): { [key: string]: string } {
79
+ return {
80
+ catalog: 'Catalog',
81
+ chunkConfigurationShrink: 'ChunkConfiguration',
82
+ description: 'Description',
83
+ embeddingDimension: 'EmbeddingDimension',
84
+ embeddingModel: 'EmbeddingModel',
85
+ knowledgeBaseName: 'KnowledgeBaseName',
86
+ metadataSchemaShrink: 'MetadataSchema',
87
+ namespace: 'Namespace',
88
+ searchConfigurationShrink: 'SearchConfiguration',
89
+ };
90
+ }
91
+
92
+ static types(): { [key: string]: any } {
93
+ return {
94
+ catalog: 'string',
95
+ chunkConfigurationShrink: 'string',
96
+ description: 'string',
97
+ embeddingDimension: 'number',
98
+ embeddingModel: 'string',
99
+ knowledgeBaseName: 'string',
100
+ metadataSchemaShrink: 'string',
101
+ namespace: 'string',
102
+ searchConfigurationShrink: 'string',
103
+ };
104
+ }
105
+
106
+ validate() {
107
+ super.validate();
108
+ }
109
+
110
+ constructor(map?: { [key: string]: any }) {
111
+ super(map);
112
+ }
113
+ }
114
+