@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,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GetDocumentResponseBody } from "./GetDocumentResponseBody";
4
+
5
+
6
+ export class GetDocumentResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetDocumentResponseBody;
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: GetDocumentResponseBody,
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 { KnowledgeBaseDocument } from "./KnowledgeBaseDocument";
4
+
5
+
6
+ export class GetDocumentResponseBody extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The response code. A value of Success indicates a successful call. If the call fails, a specific error code is returned.
10
+ *
11
+ * @example
12
+ * Success
13
+ */
14
+ code?: string;
15
+ /**
16
+ * @remarks
17
+ * The document details, including the processing status, number of chunks, and metadata.
18
+ */
19
+ data?: KnowledgeBaseDocument;
20
+ /**
21
+ * @remarks
22
+ * The response message. A value of Operation success is returned if the call succeeds. A specific error description is returned if the call 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 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: KnowledgeBaseDocument,
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,60 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetKnowledgeBaseRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * 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.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * my_catalog
14
+ */
15
+ catalog?: string;
16
+ /**
17
+ * @remarks
18
+ * The name of the knowledge base. The name is unique within a namespace and is determined at creation time. It cannot be modified.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * my-knowledge-base
24
+ */
25
+ knowledgeBaseName?: string;
26
+ /**
27
+ * @remarks
28
+ * 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.
29
+ *
30
+ * This parameter is required.
31
+ *
32
+ * @example
33
+ * my_namespace
34
+ */
35
+ namespace?: string;
36
+ static names(): { [key: string]: string } {
37
+ return {
38
+ catalog: 'Catalog',
39
+ knowledgeBaseName: 'KnowledgeBaseName',
40
+ namespace: 'Namespace',
41
+ };
42
+ }
43
+
44
+ static types(): { [key: string]: any } {
45
+ return {
46
+ catalog: 'string',
47
+ knowledgeBaseName: 'string',
48
+ namespace: 'string',
49
+ };
50
+ }
51
+
52
+ validate() {
53
+ super.validate();
54
+ }
55
+
56
+ constructor(map?: { [key: string]: any }) {
57
+ super(map);
58
+ }
59
+ }
60
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GetKnowledgeBaseResponseBody } from "./GetKnowledgeBaseResponseBody";
4
+
5
+
6
+ export class GetKnowledgeBaseResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetKnowledgeBaseResponseBody;
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: GetKnowledgeBaseResponseBody,
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 GetKnowledgeBaseResponseBody extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The response code. Success indicates a successful call. If the call fails, a specific error code is returned.
10
+ *
11
+ * @example
12
+ * Success
13
+ */
14
+ code?: string;
15
+ /**
16
+ * @remarks
17
+ * The knowledge base details, including basic information, metadata schema, and chunking and retrieval configurations.
18
+ */
19
+ data?: KnowledgeBase;
20
+ /**
21
+ * @remarks
22
+ * The response message. Operation success is returned for a successful call. A specific error description is returned for a failed call.
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
+
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ListAgentsRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The name of the agent from which the next page of results starts.
8
+ * The name of the agent from which to start querying the next page.
9
9
  *
10
10
  * @example
11
11
  * my-agent
@@ -13,7 +13,7 @@ export class ListAgentsRequest extends $dara.Model {
13
13
  after?: string;
14
14
  /**
15
15
  * @remarks
16
- * The maximum number of entries to return per request. You can use this parameter together with NextToken to implement paging.
16
+ * The maximum number of entries to return per request. You can use this parameter together with NextToken to implement pagination.
17
17
  *
18
18
  * @example
19
19
  * 50
@@ -24,7 +24,7 @@ export class ListAgentsRequest extends $dara.Model {
24
24
  * The sort order. Valid values:
25
25
  *
26
26
  * - desc
27
- * - asc.
27
+ * - asc
28
28
  *
29
29
  * @example
30
30
  * acs
@@ -11,7 +11,7 @@ export class ListAgentsResponseBodyData extends $dara.Model {
11
11
  agents?: Agent[];
12
12
  /**
13
13
  * @remarks
14
- * The ID of the first record.
14
+ * The ID of the first entry.
15
15
  *
16
16
  * @example
17
17
  * uat-agent
@@ -19,11 +19,11 @@ export class ListAgentsResponseBodyData extends $dara.Model {
19
19
  firstId?: string;
20
20
  /**
21
21
  * @remarks
22
- * Indicates whether more pages are available. Valid values:
22
+ * Indicates whether there is a next page. Valid values:
23
23
  *
24
- * - true: More pages are available.
24
+ * - true: There is a next page.
25
25
  *
26
- * - false: No more pages are available.
26
+ * - false: There is no next page.
27
27
  *
28
28
  * @example
29
29
  * false
@@ -31,7 +31,7 @@ export class ListAgentsResponseBodyData extends $dara.Model {
31
31
  hasMore?: string;
32
32
  /**
33
33
  * @remarks
34
- * The ID of the last record.
34
+ * The ID of the last conversation record.
35
35
  *
36
36
  * @example
37
37
  * last-agent
@@ -70,7 +70,7 @@ export class ListAgentsResponseBodyData extends $dara.Model {
70
70
  export class ListAgentsResponseBody extends $dara.Model {
71
71
  /**
72
72
  * @remarks
73
- * The API status code or POP error code. Valid values: Success: The operation was successful.
73
+ * The API status or POP error code. Valid values: Success: The operation was successful.
74
74
  *
75
75
  * @example
76
76
  * Success
@@ -0,0 +1,110 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListChunksRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * 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 this value.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * my_catalog
14
+ */
15
+ catalog?: string;
16
+ /**
17
+ * @remarks
18
+ * Optional. If specified, only chunks of the specified document are returned, sorted by ChunkSeq in ascending order within the document. If not specified, chunks of all documents in the knowledge base are returned, sorted by DocumentId in lexicographic ascending order, and within the same document by ChunkSeq in ascending order, with chunks listed contiguously. In full knowledge base mode, Keyword filtering is not supported (use SearchKnowledgeBase instead), and TotalCount is not returned. Pagination ends when NextToken is empty.
19
+ *
20
+ * @example
21
+ * doc-bp1xxxxxxxxxxxx
22
+ */
23
+ documentId?: string;
24
+ /**
25
+ * @remarks
26
+ * Optional. Set to true to return only enabled chunks, or false to return only disabled chunks. If not specified, all chunks are returned.
27
+ *
28
+ * @example
29
+ * true
30
+ */
31
+ enabled?: boolean;
32
+ /**
33
+ * @remarks
34
+ * Optional. Active only when DocumentId is specified. Filters chunks by keyword in the chunk body. Only chunks that contain the specified keyword are returned. In full knowledge base pattern (when DocumentId is not specified), passing this parameter causes an error. To retrieve content across the full text, use SearchKnowledgeBase (set Mode to KEYWORD for full-text index).
35
+ *
36
+ * @example
37
+ * Installation
38
+ */
39
+ keyword?: string;
40
+ /**
41
+ * @remarks
42
+ * The name of the knowledge base. The name is unique within a namespace and is determined at creation time. It cannot be modified.
43
+ *
44
+ * This parameter is required.
45
+ *
46
+ * @example
47
+ * my-knowledge-base
48
+ */
49
+ knowledgeBaseName?: string;
50
+ /**
51
+ * @remarks
52
+ * The maximum number of results to return per page. If not specified or set to 0, the default value 20 is used. The maximum value is 100.
53
+ *
54
+ * @example
55
+ * 20
56
+ */
57
+ maxResults?: number;
58
+ /**
59
+ * @remarks
60
+ * 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 this value.
61
+ *
62
+ * This parameter is required.
63
+ *
64
+ * @example
65
+ * my_namespace
66
+ */
67
+ namespace?: string;
68
+ /**
69
+ * @remarks
70
+ * Not required for the first query. For subsequent queries, pass the NextToken returned in the previous response. An empty value indicates that no more pages are available.
71
+ *
72
+ * @example
73
+ * ca1eb85f5d99c7d6a97e6****
74
+ */
75
+ nextToken?: string;
76
+ static names(): { [key: string]: string } {
77
+ return {
78
+ catalog: 'Catalog',
79
+ documentId: 'DocumentId',
80
+ enabled: 'Enabled',
81
+ keyword: 'Keyword',
82
+ knowledgeBaseName: 'KnowledgeBaseName',
83
+ maxResults: 'MaxResults',
84
+ namespace: 'Namespace',
85
+ nextToken: 'NextToken',
86
+ };
87
+ }
88
+
89
+ static types(): { [key: string]: any } {
90
+ return {
91
+ catalog: 'string',
92
+ documentId: 'string',
93
+ enabled: 'boolean',
94
+ keyword: 'string',
95
+ knowledgeBaseName: 'string',
96
+ maxResults: 'number',
97
+ namespace: 'string',
98
+ nextToken: 'string',
99
+ };
100
+ }
101
+
102
+ validate() {
103
+ super.validate();
104
+ }
105
+
106
+ constructor(map?: { [key: string]: any }) {
107
+ super(map);
108
+ }
109
+ }
110
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListChunksResponseBody } from "./ListChunksResponseBody";
4
+
5
+
6
+ export class ListChunksResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListChunksResponseBody;
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: ListChunksResponseBody,
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,138 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { KnowledgeBaseChunk } from "./KnowledgeBaseChunk";
4
+
5
+
6
+ export class ListChunksResponseBodyData extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The list of chunk entries.
10
+ *
11
+ * @example
12
+ * [{"DocumentId":"doc-bp1xxxxxxxxxxxx","ChunkSeq":1,"Content":"EventBridge supports event routing"}]
13
+ */
14
+ chunks?: KnowledgeBaseChunk[];
15
+ /**
16
+ * @remarks
17
+ * The maximum number of results per page that took effect for this request.
18
+ *
19
+ * @example
20
+ * 20
21
+ */
22
+ maxResults?: number;
23
+ /**
24
+ * @remarks
25
+ * The pagination token for the next page (an opaque string). Pass this value as the NextToken parameter in the next request to retrieve the next page. An empty value indicates that no more data is available.
26
+ *
27
+ * @example
28
+ * ca1eb85f5d99c7d6a97e6****
29
+ */
30
+ nextToken?: string;
31
+ /**
32
+ * @remarks
33
+ * The total number of chunks in the specified document when DocumentId is specified. In full knowledge base mode (when DocumentId is not specified), this field is not returned. Pagination ends when NextToken is empty.
34
+ *
35
+ * @example
36
+ * 120
37
+ */
38
+ totalCount?: number;
39
+ static names(): { [key: string]: string } {
40
+ return {
41
+ chunks: 'Chunks',
42
+ maxResults: 'MaxResults',
43
+ nextToken: 'NextToken',
44
+ totalCount: 'TotalCount',
45
+ };
46
+ }
47
+
48
+ static types(): { [key: string]: any } {
49
+ return {
50
+ chunks: { 'type': 'array', 'itemType': KnowledgeBaseChunk },
51
+ maxResults: 'number',
52
+ nextToken: 'string',
53
+ totalCount: 'number',
54
+ };
55
+ }
56
+
57
+ validate() {
58
+ if(Array.isArray(this.chunks)) {
59
+ $dara.Model.validateArray(this.chunks);
60
+ }
61
+ super.validate();
62
+ }
63
+
64
+ constructor(map?: { [key: string]: any }) {
65
+ super(map);
66
+ }
67
+ }
68
+
69
+ export class ListChunksResponseBody extends $dara.Model {
70
+ /**
71
+ * @remarks
72
+ * The response code. A value of Success indicates a successful call. If the call fails, a specific error code is returned.
73
+ *
74
+ * @example
75
+ * Success
76
+ */
77
+ code?: string;
78
+ /**
79
+ * @remarks
80
+ * The chunk list query result, which contains chunk entries and pagination information.
81
+ */
82
+ data?: ListChunksResponseBodyData;
83
+ /**
84
+ * @remarks
85
+ * The message returned by the operation. The value is Operation success if the call succeeds, or a specific error description if the call fails.
86
+ *
87
+ * @example
88
+ * Operation success
89
+ */
90
+ message?: string;
91
+ /**
92
+ * @remarks
93
+ * The request ID.
94
+ *
95
+ * @example
96
+ * 34AD682D-5B91-5773-8132-AA38C130****
97
+ */
98
+ requestId?: string;
99
+ /**
100
+ * @remarks
101
+ * Indicates whether the call was successful. A value of true indicates success.
102
+ *
103
+ * @example
104
+ * true
105
+ */
106
+ success?: boolean;
107
+ static names(): { [key: string]: string } {
108
+ return {
109
+ code: 'Code',
110
+ data: 'Data',
111
+ message: 'Message',
112
+ requestId: 'RequestId',
113
+ success: 'Success',
114
+ };
115
+ }
116
+
117
+ static types(): { [key: string]: any } {
118
+ return {
119
+ code: 'string',
120
+ data: ListChunksResponseBodyData,
121
+ message: 'string',
122
+ requestId: 'string',
123
+ success: 'boolean',
124
+ };
125
+ }
126
+
127
+ validate() {
128
+ if(this.data && typeof (this.data as any).validate === 'function') {
129
+ (this.data as any).validate();
130
+ }
131
+ super.validate();
132
+ }
133
+
134
+ constructor(map?: { [key: string]: any }) {
135
+ super(map);
136
+ }
137
+ }
138
+
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ListConnectionsRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The prefix of the connection configuration name. Supports fuzzy match by prefix.
8
+ * The connection configuration name prefix used to filter results. Supports prefix matching.
9
9
  *
10
10
  * @example
11
11
  * connection-name
@@ -13,7 +13,7 @@ export class ListConnectionsRequest extends $dara.Model {
13
13
  connectionNamePrefix?: string;
14
14
  /**
15
15
  * @remarks
16
- * 排除单个连接类型,取值范围与 Type 相同。传入单个类型名称,不支持数组或逗号分隔的多个值。例如传入 Http 可排除 HTTP 类型的连接。未传或传入空字符串时不排除任何类型;与 Type 相同时返回空列表。分页与总数均在过滤后计算。
16
+ * Excludes a single connection type. Valid values are the same as those for Type. Specify a single type name. Arrays or comma-separated values are not supported. For example, specify Http to exclude HTTP connections. If this parameter is not specified or is set to an empty string, no types are excluded. If this parameter is set to the same value as Type, an empty list is returned. Pagination and total count are calculated after filtering.
17
17
  *
18
18
  * @example
19
19
  * Http
@@ -21,7 +21,7 @@ export class ListConnectionsRequest extends $dara.Model {
21
21
  excludeType?: string;
22
22
  /**
23
23
  * @remarks
24
- * The maximum number of entries to return per request. You can use this parameter together with NextToken to implement paging.
24
+ * The maximum number of entries to return per request. You can use this parameter together with NextToken to implement pagination.
25
25
  *
26
26
  * - Default value: 10.
27
27
  *
@@ -31,7 +31,7 @@ export class ListConnectionsRequest extends $dara.Model {
31
31
  maxResults?: number;
32
32
  /**
33
33
  * @remarks
34
- * The pagination token. If the number of results exceeds the value of MaxResults, a NextToken value is returned.
34
+ * If the number of entries exceeds the value of MaxResults, NextToken is returned in the response.
35
35
  *
36
36
  * - The NextToken value starts from 0. Default value: 0.
37
37
  *
@@ -41,7 +41,7 @@ export class ListConnectionsRequest extends $dara.Model {
41
41
  nextToken?: string;
42
42
  /**
43
43
  * @remarks
44
- * Filters query results by connection type. Valid values: Http, MySQL, PostgreSQL, Elasticsearch, OSS_TABLES, SLS, OTS, MaxCompute, MongoDB, Redis, SQLServer, ClickHouse, Oracle, Hive, Iceberg, and lakehouse. If this parameter is not specified, all types are returned.
44
+ * Filters query results by connection type. Valid values: Http, MySQL, PostgreSQL, Elasticsearch, OSS_TABLES, SLS, OTS, MaxCompute, MongoDB, Redis, SQLServer, ClickHouse, Oracle, Hive, Iceberg, lakehouse. If this parameter is not specified, all types are returned.
45
45
  *
46
46
  * @example
47
47
  * Http