@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
@@ -0,0 +1,118 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { KnowledgeBaseSearchChunk } from "./KnowledgeBaseSearchChunk";
4
+
5
+
6
+ export class SearchKnowledgeBaseResponseBodyData extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The list of matched chunks, sorted by relevance.
10
+ *
11
+ * @example
12
+ * [{"DocumentId":"doc-bp1xxxxxxxxxxxx","ChunkSeq":3,"Content":"EventBridge supports event routing"}]
13
+ */
14
+ chunks?: KnowledgeBaseSearchChunk[];
15
+ /**
16
+ * @remarks
17
+ * The server-side processing duration of this search. Unit: milliseconds.
18
+ *
19
+ * @example
20
+ * 128
21
+ */
22
+ timeSpent?: number;
23
+ static names(): { [key: string]: string } {
24
+ return {
25
+ chunks: 'Chunks',
26
+ timeSpent: 'TimeSpent',
27
+ };
28
+ }
29
+
30
+ static types(): { [key: string]: any } {
31
+ return {
32
+ chunks: { 'type': 'array', 'itemType': KnowledgeBaseSearchChunk },
33
+ timeSpent: 'number',
34
+ };
35
+ }
36
+
37
+ validate() {
38
+ if(Array.isArray(this.chunks)) {
39
+ $dara.Model.validateArray(this.chunks);
40
+ }
41
+ super.validate();
42
+ }
43
+
44
+ constructor(map?: { [key: string]: any }) {
45
+ super(map);
46
+ }
47
+ }
48
+
49
+ export class SearchKnowledgeBaseResponseBody extends $dara.Model {
50
+ /**
51
+ * @remarks
52
+ * The response code. A value of Success indicates a successful call. If the call fails, a specific error code is returned.
53
+ *
54
+ * @example
55
+ * Success
56
+ */
57
+ code?: string;
58
+ /**
59
+ * @remarks
60
+ * The search results, including the list of matched chunks and the time spent.
61
+ */
62
+ data?: SearchKnowledgeBaseResponseBodyData;
63
+ /**
64
+ * @remarks
65
+ * The response message. A value of Operation success is returned for a successful call. A specific error description is returned for a failed call.
66
+ *
67
+ * @example
68
+ * Operation success
69
+ */
70
+ message?: string;
71
+ /**
72
+ * @remarks
73
+ * The request ID.
74
+ *
75
+ * @example
76
+ * 34AD682D-5B91-5773-8132-AA38C130****
77
+ */
78
+ requestId?: string;
79
+ /**
80
+ * @remarks
81
+ * Indicates whether the call was successful. A value of true indicates success.
82
+ *
83
+ * @example
84
+ * true
85
+ */
86
+ success?: boolean;
87
+ static names(): { [key: string]: string } {
88
+ return {
89
+ code: 'Code',
90
+ data: 'Data',
91
+ message: 'Message',
92
+ requestId: 'RequestId',
93
+ success: 'Success',
94
+ };
95
+ }
96
+
97
+ static types(): { [key: string]: any } {
98
+ return {
99
+ code: 'string',
100
+ data: SearchKnowledgeBaseResponseBodyData,
101
+ message: 'string',
102
+ requestId: 'string',
103
+ success: 'boolean',
104
+ };
105
+ }
106
+
107
+ validate() {
108
+ if(this.data && typeof (this.data as any).validate === 'function') {
109
+ (this.data as any).validate();
110
+ }
111
+ super.validate();
112
+ }
113
+
114
+ constructor(map?: { [key: string]: any }) {
115
+ super(map);
116
+ }
117
+ }
118
+
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class UpdateAgentRequestMetadataAttachments extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The ARN of the attached metadata object.
8
+ * The Alibaba Cloud Resource Name (ARN) of the bound metadata object.
9
9
  *
10
10
  * @example
11
11
  * acs:eventbridge:cn-hangzhou:12345:eventhouse/system-rocketmq/namespace/rmq-cn-xxx/table/order
@@ -45,7 +45,7 @@ export class UpdateAgentRequestMetadataAttachments extends $dara.Model {
45
45
  export class UpdateAgentRequestMetadata extends $dara.Model {
46
46
  /**
47
47
  * @remarks
48
- * The attached metadata objects.
48
+ * The bound metadata objects.
49
49
  */
50
50
  attachments?: UpdateAgentRequestMetadataAttachments[];
51
51
  static names(): { [key: string]: string } {
@@ -75,7 +75,7 @@ export class UpdateAgentRequestMetadata extends $dara.Model {
75
75
  export class UpdateAgentRequest extends $dara.Model {
76
76
  /**
77
77
  * @remarks
78
- * The client-generated request token. Used to ensure idempotence of the request. Note: This parameter value is generated by the client and must be unique across different requests. The maximum length is 64 ASCII characters.
78
+ * The client-generated request token. This parameter is used to ensure the idempotence of the request. The token must be unique across different requests and can contain up to 64 ASCII characters.
79
79
  *
80
80
  * @example
81
81
  * TF-CreateRule-1652253755-aa33f762-7e99-4aee-bd27-d3370afa5625
@@ -86,15 +86,21 @@ export class UpdateAgentRequest extends $dara.Model {
86
86
  * The description of the event source.
87
87
  *
88
88
  * @example
89
- * MNS的过滤规则
89
+ * Filtering rule for MNS
90
90
  */
91
91
  description?: string;
92
92
  /**
93
+ * @remarks
94
+ * The ID of the MCP server bound to the agent.
95
+ *
93
96
  * @example
94
97
  * bGXX51ULuGl10xrr
95
98
  */
96
99
  mcpServerId?: string;
97
100
  /**
101
+ * @remarks
102
+ * The name of the MCP server bound to the agent.
103
+ *
98
104
  * @example
99
105
  * eventhouse-agentbridge
100
106
  */
@@ -116,7 +122,7 @@ export class UpdateAgentRequest extends $dara.Model {
116
122
  name?: string;
117
123
  /**
118
124
  * @remarks
119
- * You are an IoT data analytics assistant...
125
+ * The prompt for the agent, such as "You are an IoT data analytics assistant..."
120
126
  *
121
127
  * @example
122
128
  * 瑞士冻结马杜罗在瑞资产
@@ -36,8 +36,8 @@ export class UpdateAgentResponseBody extends $dara.Model {
36
36
  /**
37
37
  * @remarks
38
38
  * The response code. Valid values:
39
- * - Success: The operation was successful.
40
- * - Other values: An error code was returned. For more information, see error codes.
39
+ * - Success: The request was successful.
40
+ * - Other values: An error occurred. For more information, see Error codes.
41
41
  *
42
42
  * @example
43
43
  * Success
@@ -66,7 +66,7 @@ export class UpdateAgentResponseBody extends $dara.Model {
66
66
  requestId?: string;
67
67
  /**
68
68
  * @remarks
69
- * Returns true if the operation is successful.
69
+ * Returns true if the operation was successful.
70
70
  *
71
71
  * @example
72
72
  * true
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class UpdateAgentShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The client-generated request token. Used to ensure idempotence of the request. Note: This parameter value is generated by the client and must be unique across different requests. The maximum length is 64 ASCII characters.
8
+ * The client-generated request token. This parameter is used to ensure the idempotence of the request. The token must be unique across different requests and can contain up to 64 ASCII characters.
9
9
  *
10
10
  * @example
11
11
  * TF-CreateRule-1652253755-aa33f762-7e99-4aee-bd27-d3370afa5625
@@ -16,15 +16,21 @@ export class UpdateAgentShrinkRequest extends $dara.Model {
16
16
  * The description of the event source.
17
17
  *
18
18
  * @example
19
- * MNS的过滤规则
19
+ * Filtering rule for MNS
20
20
  */
21
21
  description?: string;
22
22
  /**
23
+ * @remarks
24
+ * The ID of the MCP server bound to the agent.
25
+ *
23
26
  * @example
24
27
  * bGXX51ULuGl10xrr
25
28
  */
26
29
  mcpServerId?: string;
27
30
  /**
31
+ * @remarks
32
+ * The name of the MCP server bound to the agent.
33
+ *
28
34
  * @example
29
35
  * eventhouse-agentbridge
30
36
  */
@@ -46,7 +52,7 @@ export class UpdateAgentShrinkRequest extends $dara.Model {
46
52
  name?: string;
47
53
  /**
48
54
  * @remarks
49
- * You are an IoT data analytics assistant...
55
+ * The prompt for the agent, such as "You are an IoT data analytics assistant..."
50
56
  *
51
57
  * @example
52
58
  * 瑞士冻结马杜罗在瑞资产
@@ -0,0 +1,308 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateKnowledgeBaseRequestChunkConfigurationPreprocessRules 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 tab characters) 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 UpdateKnowledgeBaseRequestChunkConfiguration 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 content is split by paragraph or sentence as a fallback. Documents without headings fall back to intelligent chunking.
49
+ *
50
+ * @example
51
+ * 2
52
+ */
53
+ headingLevel?: number;
54
+ /**
55
+ * @remarks
56
+ * The maximum token length of a single chunk.
57
+ *
58
+ * @example
59
+ * 512
60
+ */
61
+ maxChunkSize?: number;
62
+ /**
63
+ * @remarks
64
+ * The overlap token length between adjacent chunks.
65
+ *
66
+ * @example
67
+ * 6
68
+ */
69
+ overlapSize?: number;
70
+ /**
71
+ * @remarks
72
+ * The preprocessing rules.
73
+ */
74
+ preprocessRules?: UpdateKnowledgeBaseRequestChunkConfigurationPreprocessRules;
75
+ /**
76
+ * @remarks
77
+ * The segment identifier for the LINE_BREAK strategy, such as a line feed.
78
+ *
79
+ * @example
80
+ * \\\\n\\\\n
81
+ */
82
+ separator?: string;
83
+ /**
84
+ * @remarks
85
+ * The chunking strategy. Valid values:
86
+ * - AUTO: automatic chunking.
87
+ * - LINE_BREAK: chunking by segment identifier.
88
+ *
89
+ * This parameter is required.
90
+ *
91
+ * @example
92
+ * LINE_BREAK
93
+ */
94
+ strategy?: string;
95
+ static names(): { [key: string]: string } {
96
+ return {
97
+ headingLevel: 'HeadingLevel',
98
+ maxChunkSize: 'MaxChunkSize',
99
+ overlapSize: 'OverlapSize',
100
+ preprocessRules: 'PreprocessRules',
101
+ separator: 'Separator',
102
+ strategy: 'Strategy',
103
+ };
104
+ }
105
+
106
+ static types(): { [key: string]: any } {
107
+ return {
108
+ headingLevel: 'number',
109
+ maxChunkSize: 'number',
110
+ overlapSize: 'number',
111
+ preprocessRules: UpdateKnowledgeBaseRequestChunkConfigurationPreprocessRules,
112
+ separator: 'string',
113
+ strategy: 'string',
114
+ };
115
+ }
116
+
117
+ validate() {
118
+ if(this.preprocessRules && typeof (this.preprocessRules as any).validate === 'function') {
119
+ (this.preprocessRules as any).validate();
120
+ }
121
+ super.validate();
122
+ }
123
+
124
+ constructor(map?: { [key: string]: any }) {
125
+ super(map);
126
+ }
127
+ }
128
+
129
+ export class UpdateKnowledgeBaseRequestSearchConfiguration extends $dara.Model {
130
+ /**
131
+ * @remarks
132
+ * The retrieve mode. Valid values:
133
+ * - KEYWORD: keyword retrieve.
134
+ * - VECTOR: vector retrieve.
135
+ * - HYBRID: hybrid retrieve.
136
+ *
137
+ * @example
138
+ * HYBRID
139
+ */
140
+ mode?: string;
141
+ /**
142
+ * @remarks
143
+ * Takes effect only in hybrid search mode. Valid values:
144
+ * - RRF: reciprocal rank fusion.
145
+ *
146
+ * @example
147
+ * RRF
148
+ */
149
+ rankAlgorithm?: string;
150
+ /**
151
+ * @remarks
152
+ * Takes effect only in hybrid search mode. This default value is used when the search request does not specify Rerank.
153
+ *
154
+ * @example
155
+ * false
156
+ */
157
+ rerankEnabled?: boolean;
158
+ /**
159
+ * @remarks
160
+ * The default reranking model used when the search request does not specify RerankModel. Valid values: qwen3-rerank. Default value: qwen3-rerank.
161
+ *
162
+ * @example
163
+ * qwen3-rerank
164
+ */
165
+ rerankModel?: string;
166
+ /**
167
+ * @remarks
168
+ * The parameter k for the RRF fusion algorithm. Default value: 60. The value must be greater than 0.
169
+ *
170
+ * @example
171
+ * 60
172
+ */
173
+ rrfK?: number;
174
+ /**
175
+ * @remarks
176
+ * The default number of results to return.
177
+ *
178
+ * @example
179
+ * 20
180
+ */
181
+ topK?: number;
182
+ /**
183
+ * @remarks
184
+ * The vector path weight for the WEIGHTED fusion algorithm. Valid values: 0 to 1. The keyword path weight equals 1 minus this value. Default value: 0.7.
185
+ *
186
+ * @example
187
+ * 0.7
188
+ */
189
+ vectorWeight?: number;
190
+ static names(): { [key: string]: string } {
191
+ return {
192
+ mode: 'Mode',
193
+ rankAlgorithm: 'RankAlgorithm',
194
+ rerankEnabled: 'RerankEnabled',
195
+ rerankModel: 'RerankModel',
196
+ rrfK: 'RrfK',
197
+ topK: 'TopK',
198
+ vectorWeight: 'VectorWeight',
199
+ };
200
+ }
201
+
202
+ static types(): { [key: string]: any } {
203
+ return {
204
+ mode: 'string',
205
+ rankAlgorithm: 'string',
206
+ rerankEnabled: 'boolean',
207
+ rerankModel: 'string',
208
+ rrfK: 'number',
209
+ topK: 'number',
210
+ vectorWeight: 'number',
211
+ };
212
+ }
213
+
214
+ validate() {
215
+ super.validate();
216
+ }
217
+
218
+ constructor(map?: { [key: string]: any }) {
219
+ super(map);
220
+ }
221
+ }
222
+
223
+ export class UpdateKnowledgeBaseRequest extends $dara.Model {
224
+ /**
225
+ * @remarks
226
+ * The data catalog to which the knowledge base belongs. This parameter, together with Namespace and KnowledgeBaseName, uniquely identifies a knowledge base. You can call ListCatalogs to obtain the value.
227
+ *
228
+ * This parameter is required.
229
+ *
230
+ * @example
231
+ * my_catalog
232
+ */
233
+ catalog?: string;
234
+ /**
235
+ * @remarks
236
+ * Optional. Updates the default chunking strategy of the knowledge base. The update takes effect only for documents uploaded after the update. Existing documents are not re-chunked. If this parameter is not specified, the configuration remains unchanged.
237
+ */
238
+ chunkConfiguration?: UpdateKnowledgeBaseRequestChunkConfiguration;
239
+ /**
240
+ * @remarks
241
+ * The description of the knowledge base to update. If this parameter is not specified, the description remains unchanged.
242
+ *
243
+ * @example
244
+ * Product documentation knowledge base
245
+ */
246
+ description?: string;
247
+ /**
248
+ * @remarks
249
+ * The name of the knowledge base. The name must be unique within the namespace. The name is specified during creation and cannot be modified.
250
+ *
251
+ * This parameter is required.
252
+ *
253
+ * @example
254
+ * my-knowledge-base
255
+ */
256
+ knowledgeBaseName?: string;
257
+ /**
258
+ * @remarks
259
+ * The namespace to which the knowledge base belongs. The namespace must belong to the specified data catalog. This parameter, together with Catalog and KnowledgeBaseName, uniquely identifies a knowledge base. You can call ListNamespaces to obtain the value.
260
+ *
261
+ * This parameter is required.
262
+ *
263
+ * @example
264
+ * my_namespace
265
+ */
266
+ namespace?: string;
267
+ /**
268
+ * @remarks
269
+ * Optional. Updates the default search configuration at the knowledge base level. The update takes effect immediately for subsequent search requests. If this parameter is not specified, the configuration remains unchanged.
270
+ */
271
+ searchConfiguration?: UpdateKnowledgeBaseRequestSearchConfiguration;
272
+ static names(): { [key: string]: string } {
273
+ return {
274
+ catalog: 'Catalog',
275
+ chunkConfiguration: 'ChunkConfiguration',
276
+ description: 'Description',
277
+ knowledgeBaseName: 'KnowledgeBaseName',
278
+ namespace: 'Namespace',
279
+ searchConfiguration: 'SearchConfiguration',
280
+ };
281
+ }
282
+
283
+ static types(): { [key: string]: any } {
284
+ return {
285
+ catalog: 'string',
286
+ chunkConfiguration: UpdateKnowledgeBaseRequestChunkConfiguration,
287
+ description: 'string',
288
+ knowledgeBaseName: 'string',
289
+ namespace: 'string',
290
+ searchConfiguration: UpdateKnowledgeBaseRequestSearchConfiguration,
291
+ };
292
+ }
293
+
294
+ validate() {
295
+ if(this.chunkConfiguration && typeof (this.chunkConfiguration as any).validate === 'function') {
296
+ (this.chunkConfiguration as any).validate();
297
+ }
298
+ if(this.searchConfiguration && typeof (this.searchConfiguration as any).validate === 'function') {
299
+ (this.searchConfiguration as any).validate();
300
+ }
301
+ super.validate();
302
+ }
303
+
304
+ constructor(map?: { [key: string]: any }) {
305
+ super(map);
306
+ }
307
+ }
308
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { UpdateKnowledgeBaseResponseBody } from "./UpdateKnowledgeBaseResponseBody";
4
+
5
+
6
+ export class UpdateKnowledgeBaseResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: UpdateKnowledgeBaseResponseBody;
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: UpdateKnowledgeBaseResponseBody,
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 UpdateKnowledgeBaseResponseBody extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The response code. A value of Success indicates that the call was successful. If the call fails, a specific error code is returned.
10
+ *
11
+ * @example
12
+ * Success
13
+ */
14
+ code?: string;
15
+ /**
16
+ * @remarks
17
+ * The details of the knowledge base after the update.
18
+ */
19
+ data?: KnowledgeBase;
20
+ /**
21
+ * @remarks
22
+ * The message returned by the operation. A value of Operation success is returned if the call was successful. If the call fails, a specific error description is returned.
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 call was 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
+