@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
@@ -275,7 +275,7 @@ export class ListConnectionsResponseBodyDataConnectionsAuthParametersOAuthParame
275
275
  export class ListConnectionsResponseBodyDataConnectionsAuthParametersOAuthParametersOAuthHttpParameters extends $dara.Model {
276
276
  /**
277
277
  * @remarks
278
- * The list of body request parameter data structures.
278
+ * The list of request parameter data structures for the body.
279
279
  */
280
280
  bodyParameters?: ListConnectionsResponseBodyDataConnectionsAuthParametersOAuthParametersOAuthHttpParametersBodyParameters[];
281
281
  /**
@@ -325,7 +325,7 @@ export class ListConnectionsResponseBodyDataConnectionsAuthParametersOAuthParame
325
325
  export class ListConnectionsResponseBodyDataConnectionsAuthParametersOAuthParameters extends $dara.Model {
326
326
  /**
327
327
  * @remarks
328
- * The endpoint URL for obtaining the OAuth token.
328
+ * The endpoint for obtaining the OAuth token.
329
329
  *
330
330
  * @example
331
331
  * http://localhost:8080/oauth/token
@@ -338,7 +338,7 @@ export class ListConnectionsResponseBodyDataConnectionsAuthParametersOAuthParame
338
338
  clientParameters?: ListConnectionsResponseBodyDataConnectionsAuthParametersOAuthParametersClientParameters;
339
339
  /**
340
340
  * @remarks
341
- * The HTTP method for the probe request. Valid values:
341
+ * The HTTP method. Valid values:
342
342
  *
343
343
  * - GET
344
344
  * - POST
@@ -350,7 +350,7 @@ export class ListConnectionsResponseBodyDataConnectionsAuthParametersOAuthParame
350
350
  httpMethod?: string;
351
351
  /**
352
352
  * @remarks
353
- * The HTTP request parameters for OAuth authentication.
353
+ * The request parameters for OAuth authentication.
354
354
  */
355
355
  OAuthHttpParameters?: ListConnectionsResponseBodyDataConnectionsAuthParametersOAuthParametersOAuthHttpParameters;
356
356
  static names(): { [key: string]: string } {
@@ -394,7 +394,7 @@ export class ListConnectionsResponseBodyDataConnectionsAuthParameters extends $d
394
394
  apiKeyAuthParameters?: ListConnectionsResponseBodyDataConnectionsAuthParametersApiKeyAuthParameters;
395
395
  /**
396
396
  * @remarks
397
- * The authorization type:
397
+ * The authentication type. Valid values:
398
398
  *
399
399
  * - BASIC: BASIC_AUTH
400
400
  *
@@ -455,9 +455,10 @@ export class ListConnectionsResponseBodyDataConnectionsAuthParameters extends $d
455
455
  export class ListConnectionsResponseBodyDataConnectionsNetworkParameters extends $dara.Model {
456
456
  /**
457
457
  * @remarks
458
- * - Public network: PublicNetwork
458
+ * The network type. Valid values:
459
459
  *
460
- * - Virtual private cloud: PrivateNetwork
460
+ * - PublicNetwork: public network.
461
+ * - PrivateNetwork: virtual private cloud (VPC).
461
462
  *
462
463
  * @example
463
464
  * PublicNetwork
@@ -473,7 +474,7 @@ export class ListConnectionsResponseBodyDataConnectionsNetworkParameters extends
473
474
  securityGroupId?: string;
474
475
  /**
475
476
  * @remarks
476
- * The ID of the virtual private cloud (VPC).
477
+ * The VPC ID.
477
478
  *
478
479
  * @example
479
480
  * eb-test/vpc-bp1symadadwnwgmqud
@@ -538,7 +539,7 @@ export class ListConnectionsResponseBodyDataConnections extends $dara.Model {
538
539
  description?: string;
539
540
  /**
540
541
  * @remarks
541
- * The timestamp when the datasource was created.
542
+ * The timestamp when the data source was created.
542
543
  *
543
544
  * @example
544
545
  * 1592838994234
@@ -554,12 +555,12 @@ export class ListConnectionsResponseBodyDataConnections extends $dara.Model {
554
555
  id?: number;
555
556
  /**
556
557
  * @remarks
557
- * The data structure of the network configuration.
558
+ * The data structure of network configurations.
558
559
  */
559
560
  networkParameters?: ListConnectionsResponseBodyDataConnectionsNetworkParameters;
560
561
  /**
561
562
  * @remarks
562
- * The datasource connection parameters (JSON object). This field is returned only for datasource-type connections and is empty for Http type. For field definitions, refer to the ParamsSchema returned by GetConnectionType.
563
+ * The data source connection parameters (JSON object). Returned only for data source type connections. This field is empty for Http type connections. For field definitions, refer to the ParamsSchema returned by GetConnectionType.
563
564
  *
564
565
  * @example
565
566
  * {"HostName":"xxx.mysql.rds.aliyuncs.com","Port":"3306","User":"root","Password":"xxx","DatabaseName":"demo_db"}
@@ -567,7 +568,7 @@ export class ListConnectionsResponseBodyDataConnections extends $dara.Model {
567
568
  parameters?: any;
568
569
  /**
569
570
  * @remarks
570
- * The connection type. Valid values: Http, MySQL, PostgreSQL, Elasticsearch, OSS_TABLES, SLS, OTS, MaxCompute, MongoDB, Redis, SQLServer, ClickHouse, Oracle, Hive, Iceberg, and lakehouse.
571
+ * The connection type. Valid values: Http, MySQL, PostgreSQL, Elasticsearch, OSS_TABLES, SLS, OTS, MaxCompute, MongoDB, Redis, SQLServer, ClickHouse, Oracle, Hive, Iceberg, lakehouse.
571
572
  *
572
573
  * @example
573
574
  * Http
@@ -630,7 +631,7 @@ export class ListConnectionsResponseBodyData extends $dara.Model {
630
631
  maxResults?: number;
631
632
  /**
632
633
  * @remarks
633
- * The pagination token returned when additional results are available.
634
+ * If there are additional entries to return, NextToken is included in the response.
634
635
  *
635
636
  * @example
636
637
  * 0
@@ -698,7 +699,7 @@ export class ListConnectionsResponseBody extends $dara.Model {
698
699
  message?: string;
699
700
  /**
700
701
  * @remarks
701
- * The common parameter. The ID of the request. Each request has a unique ID, which is active for troubleshooting.
702
+ * The common parameter. The request ID. Each request has a unique ID, which is active for troubleshooting and locating issues.
702
703
  *
703
704
  * @example
704
705
  * E3619976-8714-5D88-BBA2-6983D798A8BB
@@ -0,0 +1,109 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListDocumentsRequest 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. Filters documents by file name prefix (prefix match, with the same semantics as the NamePrefix parameter of ListEventStreamings). If this parameter is not specified or is set to an empty string, no filtering is applied. Maximum length: 255 characters.
19
+ *
20
+ * @example
21
+ * AfterSalesPolicy
22
+ */
23
+ fileNamePrefix?: string;
24
+ /**
25
+ * @remarks
26
+ * The name of the knowledge base. The name is unique within a namespace and is determined at creation time. It cannot be modified.
27
+ *
28
+ * This parameter is required.
29
+ *
30
+ * @example
31
+ * my-knowledge-base
32
+ */
33
+ knowledgeBaseName?: string;
34
+ /**
35
+ * @remarks
36
+ * The maximum number of results to return per page. If this parameter is not specified or is set to 0, the default value of 20 is used. Maximum value: 100.
37
+ *
38
+ * @example
39
+ * 20
40
+ */
41
+ maxResults?: number;
42
+ /**
43
+ * @remarks
44
+ * 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.
45
+ *
46
+ * This parameter is required.
47
+ *
48
+ * @example
49
+ * my_namespace
50
+ */
51
+ namespace?: string;
52
+ /**
53
+ * @remarks
54
+ * Not required for the first query. For subsequent queries, use the NextToken value returned in the previous response. An empty value indicates that no more pages are available.
55
+ *
56
+ * @example
57
+ * ca1eb85f5d99c7d6a97e6****
58
+ */
59
+ nextToken?: string;
60
+ /**
61
+ * @remarks
62
+ * Optional. Filters documents by exact status match. Valid values:
63
+ *
64
+ * - UPLOADING: uploading
65
+ * - PENDING: pending processing
66
+ * - PROCESSING: processing
67
+ * - COMPLETED: completed
68
+ * - FAILED: failed
69
+ * - DELETING: deleting
70
+ *
71
+ * If this parameter is not specified, no filtering is applied.
72
+ *
73
+ * @example
74
+ * COMPLETED
75
+ */
76
+ status?: string;
77
+ static names(): { [key: string]: string } {
78
+ return {
79
+ catalog: 'Catalog',
80
+ fileNamePrefix: 'FileNamePrefix',
81
+ knowledgeBaseName: 'KnowledgeBaseName',
82
+ maxResults: 'MaxResults',
83
+ namespace: 'Namespace',
84
+ nextToken: 'NextToken',
85
+ status: 'Status',
86
+ };
87
+ }
88
+
89
+ static types(): { [key: string]: any } {
90
+ return {
91
+ catalog: 'string',
92
+ fileNamePrefix: 'string',
93
+ knowledgeBaseName: 'string',
94
+ maxResults: 'number',
95
+ namespace: 'string',
96
+ nextToken: 'string',
97
+ status: 'string',
98
+ };
99
+ }
100
+
101
+ validate() {
102
+ super.validate();
103
+ }
104
+
105
+ constructor(map?: { [key: string]: any }) {
106
+ super(map);
107
+ }
108
+ }
109
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListDocumentsResponseBody } from "./ListDocumentsResponseBody";
4
+
5
+
6
+ export class ListDocumentsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListDocumentsResponseBody;
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: ListDocumentsResponseBody,
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 { KnowledgeBaseDocument } from "./KnowledgeBaseDocument";
4
+
5
+
6
+ export class ListDocumentsResponseBodyData extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The list of document entries in the knowledge base. Each entry contains information such as the document ID, file name, processing status, size, number of chunks, and metadata.
10
+ *
11
+ * @example
12
+ * [{"DocumentId":"doc-bp1xxxxxxxxxxxx","FileName":"manual.pdf","Status":"COMPLETED","ChunkCount":120}]
13
+ */
14
+ documents?: KnowledgeBaseDocument[];
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 documents that match the filter conditions. Use an empty NextToken value as the termination condition for pagination.
34
+ *
35
+ * @example
36
+ * 10
37
+ */
38
+ totalCount?: number;
39
+ static names(): { [key: string]: string } {
40
+ return {
41
+ documents: 'Documents',
42
+ maxResults: 'MaxResults',
43
+ nextToken: 'NextToken',
44
+ totalCount: 'TotalCount',
45
+ };
46
+ }
47
+
48
+ static types(): { [key: string]: any } {
49
+ return {
50
+ documents: { 'type': 'array', 'itemType': KnowledgeBaseDocument },
51
+ maxResults: 'number',
52
+ nextToken: 'string',
53
+ totalCount: 'number',
54
+ };
55
+ }
56
+
57
+ validate() {
58
+ if(Array.isArray(this.documents)) {
59
+ $dara.Model.validateArray(this.documents);
60
+ }
61
+ super.validate();
62
+ }
63
+
64
+ constructor(map?: { [key: string]: any }) {
65
+ super(map);
66
+ }
67
+ }
68
+
69
+ export class ListDocumentsResponseBody extends $dara.Model {
70
+ /**
71
+ * @remarks
72
+ * The response code. A value of Success indicates a successful operation. If the operation fails, a specific error code is returned.
73
+ *
74
+ * @example
75
+ * Success
76
+ */
77
+ code?: string;
78
+ /**
79
+ * @remarks
80
+ * The document list query result, which contains document entries and pagination information.
81
+ */
82
+ data?: ListDocumentsResponseBodyData;
83
+ /**
84
+ * @remarks
85
+ * The message returned by the operation. The value is Operation success if the operation succeeds, or a specific error description if the operation fails.
86
+ *
87
+ * @example
88
+ * Operation success
89
+ */
90
+ message?: string;
91
+ /**
92
+ * @remarks
93
+ * The unique ID of the request. Use this ID for troubleshooting and when you submit a ticket.
94
+ *
95
+ * @example
96
+ * 34AD682D-5B91-5773-8132-AA38C130****
97
+ */
98
+ requestId?: string;
99
+ /**
100
+ * @remarks
101
+ * Indicates whether the call is 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: ListDocumentsResponseBodyData,
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
+
@@ -0,0 +1,68 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListKnowledgeBasesRequest 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
+ * The maximum number of entries to return per page. If this parameter is not specified or is set to 0, the default value 20 is used. Maximum value: 100.
19
+ *
20
+ * @example
21
+ * 20
22
+ */
23
+ maxResults?: number;
24
+ /**
25
+ * @remarks
26
+ * 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.
27
+ *
28
+ * This parameter is required.
29
+ *
30
+ * @example
31
+ * my_namespace
32
+ */
33
+ namespace?: string;
34
+ /**
35
+ * @remarks
36
+ * The pagination token. You do not need to specify this parameter for the first request. For subsequent requests, use the NextToken value returned in the previous response. An empty value indicates that no more pages are available.
37
+ *
38
+ * @example
39
+ * ca1eb85f5d99c7d6a97e6****
40
+ */
41
+ nextToken?: string;
42
+ static names(): { [key: string]: string } {
43
+ return {
44
+ catalog: 'Catalog',
45
+ maxResults: 'MaxResults',
46
+ namespace: 'Namespace',
47
+ nextToken: 'NextToken',
48
+ };
49
+ }
50
+
51
+ static types(): { [key: string]: any } {
52
+ return {
53
+ catalog: 'string',
54
+ maxResults: 'number',
55
+ namespace: 'string',
56
+ nextToken: 'string',
57
+ };
58
+ }
59
+
60
+ validate() {
61
+ super.validate();
62
+ }
63
+
64
+ constructor(map?: { [key: string]: any }) {
65
+ super(map);
66
+ }
67
+ }
68
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListKnowledgeBasesResponseBody } from "./ListKnowledgeBasesResponseBody";
4
+
5
+
6
+ export class ListKnowledgeBasesResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListKnowledgeBasesResponseBody;
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: ListKnowledgeBasesResponseBody,
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 { KnowledgeBase } from "./KnowledgeBase";
4
+
5
+
6
+ export class ListKnowledgeBasesResponseBodyData extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The list of knowledge base entries.
10
+ *
11
+ * @example
12
+ * [{"KnowledgeBaseName":"my-knowledge-base","Status":"ACTIVE"}]
13
+ */
14
+ knowledgeBases?: KnowledgeBase[];
15
+ /**
16
+ * @remarks
17
+ * The maximum number of results per page that was applied to this request.
18
+ *
19
+ * @example
20
+ * 20
21
+ */
22
+ maxResults?: number;
23
+ /**
24
+ * @remarks
25
+ * The pagination token (an opaque string) for the next page. 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 knowledge bases that match the filter conditions. Use an empty NextToken value as the termination condition for pagination.
34
+ *
35
+ * @example
36
+ * 1
37
+ */
38
+ totalCount?: number;
39
+ static names(): { [key: string]: string } {
40
+ return {
41
+ knowledgeBases: 'KnowledgeBases',
42
+ maxResults: 'MaxResults',
43
+ nextToken: 'NextToken',
44
+ totalCount: 'TotalCount',
45
+ };
46
+ }
47
+
48
+ static types(): { [key: string]: any } {
49
+ return {
50
+ knowledgeBases: { 'type': 'array', 'itemType': KnowledgeBase },
51
+ maxResults: 'number',
52
+ nextToken: 'string',
53
+ totalCount: 'number',
54
+ };
55
+ }
56
+
57
+ validate() {
58
+ if(Array.isArray(this.knowledgeBases)) {
59
+ $dara.Model.validateArray(this.knowledgeBases);
60
+ }
61
+ super.validate();
62
+ }
63
+
64
+ constructor(map?: { [key: string]: any }) {
65
+ super(map);
66
+ }
67
+ }
68
+
69
+ export class ListKnowledgeBasesResponseBody extends $dara.Model {
70
+ /**
71
+ * @remarks
72
+ * The response code. A value of Success indicates that the call was successful. If the call failed, a specific error code is returned.
73
+ *
74
+ * @example
75
+ * Success
76
+ */
77
+ code?: string;
78
+ /**
79
+ * @remarks
80
+ * The query result of the knowledge base list, including knowledge base entries and pagination information.
81
+ */
82
+ data?: ListKnowledgeBasesResponseBodyData;
83
+ /**
84
+ * @remarks
85
+ * The message returned by the operation. The value Operation success is returned if the call was successful. A specific error description is returned if the call failed.
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: ListKnowledgeBasesResponseBodyData,
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 ListLumaCatalogsRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The name of the Agent.
8
+ * The name of the agent.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -15,7 +15,7 @@ export class ListLumaCatalogsRequest extends $dara.Model {
15
15
  agentName?: string;
16
16
  /**
17
17
  * @remarks
18
- * 每页返回的最大数据条数。取值范围 1~100,不传时默认 100。每条记录都需回源查询一次元数据,因此该值同时限制单次调用的回源次数
18
+ * The maximum number of entries to return per page. Valid values: 1 to 100. Default value: 100. Each entry requires a back-to-origin metadata query, so this value also limits the number of back-to-origin requests per call.
19
19
  *
20
20
  * @example
21
21
  * 10
@@ -23,7 +23,7 @@ export class ListLumaCatalogsRequest extends $dara.Model {
23
23
  limit?: number;
24
24
  /**
25
25
  * @remarks
26
- * 分页查询的起始Token。首次查询不传或传 "0";后续翻页使用上一次响应中返回的 NextToken 值
26
+ * The token for the paging query. Leave this parameter empty or set it to "0" for the first query. For subsequent pages, use the NextToken value returned in the previous response.
27
27
  *
28
28
  * @example
29
29
  * 0