@alicloud/eventbridge20200401 6.4.0 → 6.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/dist/client.d.ts +342 -6
  2. package/dist/client.js +1101 -214
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AgentBridgeRuntime.d.ts +77 -0
  5. package/dist/models/AgentBridgeRuntime.js +72 -0
  6. package/dist/models/AgentBridgeRuntime.js.map +1 -0
  7. package/dist/models/CreateEventStreamingRequest.d.ts +240 -119
  8. package/dist/models/CreateEventStreamingRequest.js +11 -0
  9. package/dist/models/CreateEventStreamingRequest.js.map +1 -1
  10. package/dist/models/CreateEventStreamingResponseBody.d.ts +3 -1
  11. package/dist/models/CreateEventStreamingResponseBody.js.map +1 -1
  12. package/dist/models/CreateEventStreamingShrinkRequest.d.ts +6 -6
  13. package/dist/models/DeleteNamespaceRequest.d.ts +3 -3
  14. package/dist/models/DeleteNamespaceResponseBody.d.ts +4 -4
  15. package/dist/models/ExecutionResult.d.ts +9 -6
  16. package/dist/models/ExecutionResult.js.map +1 -1
  17. package/dist/models/GetEventStreamingRequest.d.ts +1 -1
  18. package/dist/models/GetEventStreamingResponseBody.d.ts +277 -154
  19. package/dist/models/GetEventStreamingResponseBody.js +6 -0
  20. package/dist/models/GetEventStreamingResponseBody.js.map +1 -1
  21. package/dist/models/GetLumaCatalogRequest.d.ts +33 -0
  22. package/dist/models/GetLumaCatalogRequest.js +60 -0
  23. package/dist/models/GetLumaCatalogRequest.js.map +1 -0
  24. package/dist/models/GetLumaCatalogResponse.d.ts +19 -0
  25. package/dist/models/GetLumaCatalogResponse.js +69 -0
  26. package/dist/models/GetLumaCatalogResponse.js.map +1 -0
  27. package/dist/models/GetLumaCatalogResponseBody.d.ts +51 -0
  28. package/dist/models/GetLumaCatalogResponseBody.js +70 -0
  29. package/dist/models/GetLumaCatalogResponseBody.js.map +1 -0
  30. package/dist/models/GetLumaChunkRequest.d.ts +73 -0
  31. package/dist/models/GetLumaChunkRequest.js +68 -0
  32. package/dist/models/GetLumaChunkRequest.js.map +1 -0
  33. package/dist/models/GetLumaChunkResponse.d.ts +19 -0
  34. package/dist/models/GetLumaChunkResponse.js +69 -0
  35. package/dist/models/GetLumaChunkResponse.js.map +1 -0
  36. package/dist/models/GetLumaChunkResponseBody.d.ts +51 -0
  37. package/dist/models/GetLumaChunkResponseBody.js +70 -0
  38. package/dist/models/GetLumaChunkResponseBody.js.map +1 -0
  39. package/dist/models/GetLumaDocumentDownloadUrlRequest.d.ts +75 -0
  40. package/dist/models/GetLumaDocumentDownloadUrlRequest.js +68 -0
  41. package/dist/models/GetLumaDocumentDownloadUrlRequest.js.map +1 -0
  42. package/dist/models/GetLumaDocumentDownloadUrlResponse.d.ts +19 -0
  43. package/dist/models/GetLumaDocumentDownloadUrlResponse.js +69 -0
  44. package/dist/models/GetLumaDocumentDownloadUrlResponse.js.map +1 -0
  45. package/dist/models/GetLumaDocumentDownloadUrlResponseBody.d.ts +78 -0
  46. package/dist/models/GetLumaDocumentDownloadUrlResponseBody.js +90 -0
  47. package/dist/models/GetLumaDocumentDownloadUrlResponseBody.js.map +1 -0
  48. package/dist/models/GetLumaDocumentRequest.d.ts +63 -0
  49. package/dist/models/GetLumaDocumentRequest.js +66 -0
  50. package/dist/models/GetLumaDocumentRequest.js.map +1 -0
  51. package/dist/models/GetLumaDocumentResponse.d.ts +19 -0
  52. package/dist/models/GetLumaDocumentResponse.js +69 -0
  53. package/dist/models/GetLumaDocumentResponse.js.map +1 -0
  54. package/dist/models/GetLumaDocumentResponseBody.d.ts +51 -0
  55. package/dist/models/GetLumaDocumentResponseBody.js +70 -0
  56. package/dist/models/GetLumaDocumentResponseBody.js.map +1 -0
  57. package/dist/models/GetLumaKnowledgeBaseRequest.d.ts +53 -0
  58. package/dist/models/GetLumaKnowledgeBaseRequest.js +64 -0
  59. package/dist/models/GetLumaKnowledgeBaseRequest.js.map +1 -0
  60. package/dist/models/GetLumaKnowledgeBaseResponse.d.ts +19 -0
  61. package/dist/models/GetLumaKnowledgeBaseResponse.js +69 -0
  62. package/dist/models/GetLumaKnowledgeBaseResponse.js.map +1 -0
  63. package/dist/models/GetLumaKnowledgeBaseResponseBody.d.ts +51 -0
  64. package/dist/models/GetLumaKnowledgeBaseResponseBody.js +70 -0
  65. package/dist/models/GetLumaKnowledgeBaseResponseBody.js.map +1 -0
  66. package/dist/models/GetLumaNamespaceRequest.d.ts +43 -0
  67. package/dist/models/GetLumaNamespaceRequest.js +62 -0
  68. package/dist/models/GetLumaNamespaceRequest.js.map +1 -0
  69. package/dist/models/GetLumaNamespaceResponse.d.ts +19 -0
  70. package/dist/models/GetLumaNamespaceResponse.js +69 -0
  71. package/dist/models/GetLumaNamespaceResponse.js.map +1 -0
  72. package/dist/models/GetLumaNamespaceResponseBody.d.ts +51 -0
  73. package/dist/models/GetLumaNamespaceResponseBody.js +70 -0
  74. package/dist/models/GetLumaNamespaceResponseBody.js.map +1 -0
  75. package/dist/models/GetLumaTableRequest.d.ts +53 -0
  76. package/dist/models/GetLumaTableRequest.js +64 -0
  77. package/dist/models/GetLumaTableRequest.js.map +1 -0
  78. package/dist/models/GetLumaTableResponse.d.ts +19 -0
  79. package/dist/models/GetLumaTableResponse.js +69 -0
  80. package/dist/models/GetLumaTableResponse.js.map +1 -0
  81. package/dist/models/GetLumaTableResponseBody.d.ts +51 -0
  82. package/dist/models/GetLumaTableResponseBody.js +70 -0
  83. package/dist/models/GetLumaTableResponseBody.js.map +1 -0
  84. package/dist/models/KnowledgeBase.d.ts +281 -0
  85. package/dist/models/KnowledgeBase.js +176 -0
  86. package/dist/models/KnowledgeBase.js.map +1 -0
  87. package/dist/models/KnowledgeBaseChunk.d.ts +93 -0
  88. package/dist/models/KnowledgeBaseChunk.js +76 -0
  89. package/dist/models/KnowledgeBaseChunk.js.map +1 -0
  90. package/dist/models/KnowledgeBaseDocument.d.ts +249 -0
  91. package/dist/models/KnowledgeBaseDocument.js +164 -0
  92. package/dist/models/KnowledgeBaseDocument.js.map +1 -0
  93. package/dist/models/KnowledgeBaseSearchChunk.d.ts +118 -0
  94. package/dist/models/KnowledgeBaseSearchChunk.js +100 -0
  95. package/dist/models/KnowledgeBaseSearchChunk.js.map +1 -0
  96. package/dist/models/ListEventStreamingsRequest.d.ts +3 -3
  97. package/dist/models/ListEventStreamingsResponseBody.d.ts +171 -166
  98. package/dist/models/ListEventStreamingsResponseBody.js +6 -0
  99. package/dist/models/ListEventStreamingsResponseBody.js.map +1 -1
  100. package/dist/models/ListLumaCatalogsRequest.d.ts +23 -0
  101. package/dist/models/ListLumaCatalogsRequest.js +58 -0
  102. package/dist/models/ListLumaCatalogsRequest.js.map +1 -0
  103. package/dist/models/ListLumaCatalogsResponse.d.ts +19 -0
  104. package/dist/models/ListLumaCatalogsResponse.js +69 -0
  105. package/dist/models/ListLumaCatalogsResponse.js.map +1 -0
  106. package/dist/models/ListLumaCatalogsResponseBody.d.ts +71 -0
  107. package/dist/models/ListLumaCatalogsResponseBody.js +92 -0
  108. package/dist/models/ListLumaCatalogsResponseBody.js.map +1 -0
  109. package/dist/models/ListLumaChunksRequest.d.ts +93 -0
  110. package/dist/models/ListLumaChunksRequest.js +74 -0
  111. package/dist/models/ListLumaChunksRequest.js.map +1 -0
  112. package/dist/models/ListLumaChunksResponse.d.ts +19 -0
  113. package/dist/models/ListLumaChunksResponse.js +69 -0
  114. package/dist/models/ListLumaChunksResponse.js.map +1 -0
  115. package/dist/models/ListLumaChunksResponseBody.d.ts +87 -0
  116. package/dist/models/ListLumaChunksResponseBody.js +96 -0
  117. package/dist/models/ListLumaChunksResponseBody.js.map +1 -0
  118. package/dist/models/ListLumaDocumentsRequest.d.ts +85 -0
  119. package/dist/models/ListLumaDocumentsRequest.js +72 -0
  120. package/dist/models/ListLumaDocumentsRequest.js.map +1 -0
  121. package/dist/models/ListLumaDocumentsResponse.d.ts +19 -0
  122. package/dist/models/ListLumaDocumentsResponse.js +69 -0
  123. package/dist/models/ListLumaDocumentsResponse.js.map +1 -0
  124. package/dist/models/ListLumaDocumentsResponseBody.d.ts +87 -0
  125. package/dist/models/ListLumaDocumentsResponseBody.js +96 -0
  126. package/dist/models/ListLumaDocumentsResponseBody.js.map +1 -0
  127. package/dist/models/ListLumaKnowledgeBasesRequest.d.ts +43 -0
  128. package/dist/models/ListLumaKnowledgeBasesRequest.js +62 -0
  129. package/dist/models/ListLumaKnowledgeBasesRequest.js.map +1 -0
  130. package/dist/models/ListLumaKnowledgeBasesResponse.d.ts +19 -0
  131. package/dist/models/ListLumaKnowledgeBasesResponse.js +69 -0
  132. package/dist/models/ListLumaKnowledgeBasesResponse.js.map +1 -0
  133. package/dist/models/ListLumaKnowledgeBasesResponseBody.d.ts +71 -0
  134. package/dist/models/ListLumaKnowledgeBasesResponseBody.js +92 -0
  135. package/dist/models/ListLumaKnowledgeBasesResponseBody.js.map +1 -0
  136. package/dist/models/ListLumaNamespacesRequest.d.ts +33 -0
  137. package/dist/models/ListLumaNamespacesRequest.js +60 -0
  138. package/dist/models/ListLumaNamespacesRequest.js.map +1 -0
  139. package/dist/models/ListLumaNamespacesResponse.d.ts +19 -0
  140. package/dist/models/ListLumaNamespacesResponse.js +69 -0
  141. package/dist/models/ListLumaNamespacesResponse.js.map +1 -0
  142. package/dist/models/ListLumaNamespacesResponseBody.d.ts +71 -0
  143. package/dist/models/ListLumaNamespacesResponseBody.js +92 -0
  144. package/dist/models/ListLumaNamespacesResponseBody.js.map +1 -0
  145. package/dist/models/ListLumaTablesRequest.d.ts +43 -0
  146. package/dist/models/ListLumaTablesRequest.js +62 -0
  147. package/dist/models/ListLumaTablesRequest.js.map +1 -0
  148. package/dist/models/ListLumaTablesResponse.d.ts +19 -0
  149. package/dist/models/ListLumaTablesResponse.js +69 -0
  150. package/dist/models/ListLumaTablesResponse.js.map +1 -0
  151. package/dist/models/ListLumaTablesResponseBody.d.ts +71 -0
  152. package/dist/models/ListLumaTablesResponseBody.js +92 -0
  153. package/dist/models/ListLumaTablesResponseBody.js.map +1 -0
  154. package/dist/models/LumaTable.d.ts +138 -0
  155. package/dist/models/LumaTable.js +122 -0
  156. package/dist/models/LumaTable.js.map +1 -0
  157. package/dist/models/MetadataSchemaField.d.ts +49 -0
  158. package/dist/models/MetadataSchemaField.js +64 -0
  159. package/dist/models/MetadataSchemaField.js.map +1 -0
  160. package/dist/models/PollAskResultResponseBody.d.ts +4 -4
  161. package/dist/models/PutEventsRequest.d.ts +118 -0
  162. package/dist/models/PutEventsRequest.js +98 -0
  163. package/dist/models/PutEventsRequest.js.map +1 -0
  164. package/dist/models/PutEventsResponse.d.ts +19 -0
  165. package/dist/models/PutEventsResponse.js +69 -0
  166. package/dist/models/PutEventsResponse.js.map +1 -0
  167. package/dist/models/PutEventsResponseBody.d.ts +119 -0
  168. package/dist/models/PutEventsResponseBody.js +118 -0
  169. package/dist/models/PutEventsResponseBody.js.map +1 -0
  170. package/dist/models/PutEventsShrinkRequest.d.ts +28 -0
  171. package/dist/models/PutEventsShrinkRequest.js +60 -0
  172. package/dist/models/PutEventsShrinkRequest.js.map +1 -0
  173. package/dist/models/QueryAskLumaLogRequest.d.ts +2 -2
  174. package/dist/models/QueryLumaWithSqlrequest.d.ts +41 -0
  175. package/dist/models/QueryLumaWithSqlrequest.js +62 -0
  176. package/dist/models/QueryLumaWithSqlrequest.js.map +1 -0
  177. package/dist/models/QueryLumaWithSqlresponse.d.ts +19 -0
  178. package/dist/models/QueryLumaWithSqlresponse.js +69 -0
  179. package/dist/models/QueryLumaWithSqlresponse.js.map +1 -0
  180. package/dist/models/QueryLumaWithSqlresponseBody.d.ts +51 -0
  181. package/dist/models/QueryLumaWithSqlresponseBody.js +70 -0
  182. package/dist/models/QueryLumaWithSqlresponseBody.js.map +1 -0
  183. package/dist/models/SchemaColumn.d.ts +2 -2
  184. package/dist/models/SearchLumaKnowledgeBaseRequest.d.ts +95 -0
  185. package/dist/models/SearchLumaKnowledgeBaseRequest.js +74 -0
  186. package/dist/models/SearchLumaKnowledgeBaseRequest.js.map +1 -0
  187. package/dist/models/SearchLumaKnowledgeBaseResponse.d.ts +19 -0
  188. package/dist/models/SearchLumaKnowledgeBaseResponse.js +69 -0
  189. package/dist/models/SearchLumaKnowledgeBaseResponse.js.map +1 -0
  190. package/dist/models/SearchLumaKnowledgeBaseResponseBody.d.ts +79 -0
  191. package/dist/models/SearchLumaKnowledgeBaseResponseBody.js +94 -0
  192. package/dist/models/SearchLumaKnowledgeBaseResponseBody.js.map +1 -0
  193. package/dist/models/SinkKnowledgeBaseParameters.d.ts +37 -0
  194. package/dist/models/SinkKnowledgeBaseParameters.js +62 -0
  195. package/dist/models/SinkKnowledgeBaseParameters.js.map +1 -0
  196. package/dist/models/SourceFeiShuDocsParameters.d.ts +28 -0
  197. package/dist/models/SourceFeiShuDocsParameters.js.map +1 -1
  198. package/dist/models/UpdateEventStreamingRequest.d.ts +302 -161
  199. package/dist/models/UpdateEventStreamingRequest.js +11 -0
  200. package/dist/models/UpdateEventStreamingRequest.js.map +1 -1
  201. package/dist/models/UpdateEventStreamingResponseBody.d.ts +2 -4
  202. package/dist/models/UpdateEventStreamingResponseBody.js.map +1 -1
  203. package/dist/models/UpdateEventStreamingShrinkRequest.d.ts +4 -4
  204. package/dist/models/model.d.ts +77 -0
  205. package/dist/models/model.js +178 -22
  206. package/dist/models/model.js.map +1 -1
  207. package/package.json +1 -1
  208. package/src/client.ts +1206 -216
  209. package/src/models/AgentBridgeRuntime.ts +104 -0
  210. package/src/models/CreateEventStreamingRequest.ts +250 -119
  211. package/src/models/CreateEventStreamingResponseBody.ts +3 -1
  212. package/src/models/CreateEventStreamingShrinkRequest.ts +6 -6
  213. package/src/models/DeleteNamespaceRequest.ts +3 -3
  214. package/src/models/DeleteNamespaceResponseBody.ts +4 -4
  215. package/src/models/ExecutionResult.ts +9 -6
  216. package/src/models/GetEventStreamingRequest.ts +1 -1
  217. package/src/models/GetEventStreamingResponseBody.ts +282 -154
  218. package/src/models/GetLumaCatalogRequest.ts +48 -0
  219. package/src/models/GetLumaCatalogResponse.ts +40 -0
  220. package/src/models/GetLumaCatalogResponseBody.ts +75 -0
  221. package/src/models/GetLumaChunkRequest.ts +96 -0
  222. package/src/models/GetLumaChunkResponse.ts +40 -0
  223. package/src/models/GetLumaChunkResponseBody.ts +75 -0
  224. package/src/models/GetLumaDocumentDownloadUrlRequest.ts +98 -0
  225. package/src/models/GetLumaDocumentDownloadUrlResponse.ts +40 -0
  226. package/src/models/GetLumaDocumentDownloadUrlResponseBody.ts +114 -0
  227. package/src/models/GetLumaDocumentRequest.ts +84 -0
  228. package/src/models/GetLumaDocumentResponse.ts +40 -0
  229. package/src/models/GetLumaDocumentResponseBody.ts +75 -0
  230. package/src/models/GetLumaKnowledgeBaseRequest.ts +72 -0
  231. package/src/models/GetLumaKnowledgeBaseResponse.ts +40 -0
  232. package/src/models/GetLumaKnowledgeBaseResponseBody.ts +75 -0
  233. package/src/models/GetLumaNamespaceRequest.ts +60 -0
  234. package/src/models/GetLumaNamespaceResponse.ts +40 -0
  235. package/src/models/GetLumaNamespaceResponseBody.ts +75 -0
  236. package/src/models/GetLumaTableRequest.ts +72 -0
  237. package/src/models/GetLumaTableResponse.ts +40 -0
  238. package/src/models/GetLumaTableResponseBody.ts +75 -0
  239. package/src/models/KnowledgeBase.ts +384 -0
  240. package/src/models/KnowledgeBaseChunk.ts +124 -0
  241. package/src/models/KnowledgeBaseDocument.ts +341 -0
  242. package/src/models/KnowledgeBaseSearchChunk.ts +164 -0
  243. package/src/models/ListEventStreamingsRequest.ts +3 -3
  244. package/src/models/ListEventStreamingsResponseBody.ts +177 -167
  245. package/src/models/ListLumaCatalogsRequest.ts +36 -0
  246. package/src/models/ListLumaCatalogsResponse.ts +40 -0
  247. package/src/models/ListLumaCatalogsResponseBody.ts +108 -0
  248. package/src/models/ListLumaChunksRequest.ts +122 -0
  249. package/src/models/ListLumaChunksResponse.ts +40 -0
  250. package/src/models/ListLumaChunksResponseBody.ts +128 -0
  251. package/src/models/ListLumaDocumentsRequest.ts +112 -0
  252. package/src/models/ListLumaDocumentsResponse.ts +40 -0
  253. package/src/models/ListLumaDocumentsResponseBody.ts +128 -0
  254. package/src/models/ListLumaKnowledgeBasesRequest.ts +60 -0
  255. package/src/models/ListLumaKnowledgeBasesResponse.ts +40 -0
  256. package/src/models/ListLumaKnowledgeBasesResponseBody.ts +108 -0
  257. package/src/models/ListLumaNamespacesRequest.ts +48 -0
  258. package/src/models/ListLumaNamespacesResponse.ts +40 -0
  259. package/src/models/ListLumaNamespacesResponseBody.ts +108 -0
  260. package/src/models/ListLumaTablesRequest.ts +60 -0
  261. package/src/models/ListLumaTablesResponse.ts +40 -0
  262. package/src/models/ListLumaTablesResponseBody.ts +108 -0
  263. package/src/models/LumaTable.ts +197 -0
  264. package/src/models/MetadataSchemaField.ts +68 -0
  265. package/src/models/PollAskResultResponseBody.ts +4 -4
  266. package/src/models/PutEventsRequest.ts +162 -0
  267. package/src/models/PutEventsResponse.ts +40 -0
  268. package/src/models/PutEventsResponseBody.ts +174 -0
  269. package/src/models/PutEventsShrinkRequest.ts +43 -0
  270. package/src/models/QueryAskLumaLogRequest.ts +2 -2
  271. package/src/models/QueryLumaWithSqlrequest.ts +58 -0
  272. package/src/models/QueryLumaWithSqlresponse.ts +40 -0
  273. package/src/models/QueryLumaWithSqlresponseBody.ts +75 -0
  274. package/src/models/SchemaColumn.ts +2 -2
  275. package/src/models/SearchLumaKnowledgeBaseRequest.ts +124 -0
  276. package/src/models/SearchLumaKnowledgeBaseResponse.ts +40 -0
  277. package/src/models/SearchLumaKnowledgeBaseResponseBody.ts +118 -0
  278. package/src/models/SinkKnowledgeBaseParameters.ts +54 -0
  279. package/src/models/SourceFeiShuDocsParameters.ts +28 -0
  280. package/src/models/UpdateEventStreamingRequest.ts +312 -161
  281. package/src/models/UpdateEventStreamingResponseBody.ts +2 -4
  282. package/src/models/UpdateEventStreamingShrinkRequest.ts +4 -4
  283. package/src/models/model.ts +77 -0
@@ -0,0 +1,36 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListLumaCatalogsRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The name of the Agent.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * my_agent
14
+ */
15
+ agentName?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ agentName: 'AgentName',
19
+ };
20
+ }
21
+
22
+ static types(): { [key: string]: any } {
23
+ return {
24
+ agentName: 'string',
25
+ };
26
+ }
27
+
28
+ validate() {
29
+ super.validate();
30
+ }
31
+
32
+ constructor(map?: { [key: string]: any }) {
33
+ super(map);
34
+ }
35
+ }
36
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListLumaCatalogsResponseBody } from "./ListLumaCatalogsResponseBody";
4
+
5
+
6
+ export class ListLumaCatalogsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListLumaCatalogsResponseBody;
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: ListLumaCatalogsResponseBody,
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,108 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { Catalog } from "./Catalog";
4
+
5
+
6
+ export class ListLumaCatalogsResponseBodyData extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The list of data catalogs bound to the Agent.
10
+ *
11
+ * @example
12
+ * [{"Name":"my_catalog"}]
13
+ */
14
+ catalogs?: Catalog[];
15
+ static names(): { [key: string]: string } {
16
+ return {
17
+ catalogs: 'Catalogs',
18
+ };
19
+ }
20
+
21
+ static types(): { [key: string]: any } {
22
+ return {
23
+ catalogs: { 'type': 'array', 'itemType': Catalog },
24
+ };
25
+ }
26
+
27
+ validate() {
28
+ if(Array.isArray(this.catalogs)) {
29
+ $dara.Model.validateArray(this.catalogs);
30
+ }
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
39
+ export class ListLumaCatalogsResponseBody extends $dara.Model {
40
+ /**
41
+ * @remarks
42
+ * The response code. A value of Success indicates a successful call. A specific error code is returned when the call fails.
43
+ *
44
+ * @example
45
+ * Success
46
+ */
47
+ code?: string;
48
+ /**
49
+ * @remarks
50
+ * The list of data catalogs bound to the Agent. All results are returned at once without pagination.
51
+ */
52
+ data?: ListLumaCatalogsResponseBodyData;
53
+ /**
54
+ * @remarks
55
+ * The message returned by the operation. The value is Operation success when the call succeeds, or a specific error description when the call fails.
56
+ *
57
+ * @example
58
+ * Operation success
59
+ */
60
+ message?: string;
61
+ /**
62
+ * @remarks
63
+ * The unique identifier of the request, used for troubleshooting and ticket submission.
64
+ *
65
+ * @example
66
+ * 34AD682D-5B91-5773-8132-AA38C130****
67
+ */
68
+ requestId?: string;
69
+ /**
70
+ * @remarks
71
+ * Indicates whether the call was successful. A value of true indicates success.
72
+ *
73
+ * @example
74
+ * true
75
+ */
76
+ success?: boolean;
77
+ static names(): { [key: string]: string } {
78
+ return {
79
+ code: 'Code',
80
+ data: 'Data',
81
+ message: 'Message',
82
+ requestId: 'RequestId',
83
+ success: 'Success',
84
+ };
85
+ }
86
+
87
+ static types(): { [key: string]: any } {
88
+ return {
89
+ code: 'string',
90
+ data: ListLumaCatalogsResponseBodyData,
91
+ message: 'string',
92
+ requestId: 'string',
93
+ success: 'boolean',
94
+ };
95
+ }
96
+
97
+ validate() {
98
+ if(this.data && typeof (this.data as any).validate === 'function') {
99
+ (this.data as any).validate();
100
+ }
101
+ super.validate();
102
+ }
103
+
104
+ constructor(map?: { [key: string]: any }) {
105
+ super(map);
106
+ }
107
+ }
108
+
@@ -0,0 +1,122 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListLumaChunksRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The name of the agent.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * my_agent
14
+ */
15
+ agentName?: string;
16
+ /**
17
+ * @remarks
18
+ * The name of the data catalog bound to the agent. You can call ListLumaCatalogs to obtain this value.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * my_catalog
24
+ */
25
+ catalog?: string;
26
+ /**
27
+ * @remarks
28
+ * The ID of the document used to filter text chunks. If this parameter is not specified, text chunks of all documents in the knowledge base are returned.
29
+ *
30
+ * @example
31
+ * doc-a1b2c3d4
32
+ */
33
+ documentId?: string;
34
+ /**
35
+ * @remarks
36
+ * Specifies whether to return only enabled text chunks. If this parameter is not specified, text chunks are not filtered by enabled status.
37
+ *
38
+ * @example
39
+ * true
40
+ */
41
+ enabled?: boolean;
42
+ /**
43
+ * @remarks
44
+ * The keyword used to filter text chunks by content.
45
+ *
46
+ * @example
47
+ * Event rule
48
+ */
49
+ keyword?: string;
50
+ /**
51
+ * @remarks
52
+ * The name of the knowledge base bound to the agent. You can call ListLumaKnowledgeBases to obtain this value.
53
+ *
54
+ * This parameter is required.
55
+ *
56
+ * @example
57
+ * my-knowledge-base
58
+ */
59
+ knowledgeBaseName?: string;
60
+ /**
61
+ * @remarks
62
+ * The maximum number of records to return. Valid values: 1 to 100. If this parameter is not specified, the server uses a default value.
63
+ *
64
+ * @example
65
+ * 20
66
+ */
67
+ maxResults?: number;
68
+ /**
69
+ * @remarks
70
+ * The name of the namespace bound to the agent. You can call ListLumaNamespaces to obtain this value.
71
+ *
72
+ * This parameter is required.
73
+ *
74
+ * @example
75
+ * my_namespace
76
+ */
77
+ namespace?: string;
78
+ /**
79
+ * @remarks
80
+ * The pagination token. Do not specify this parameter for the first request. For subsequent requests, use the NextToken value returned in the previous response. This value is an opaque string. Do not parse it.
81
+ *
82
+ * @example
83
+ * ca1eb85f5d99c7d6a97e6****
84
+ */
85
+ nextToken?: string;
86
+ static names(): { [key: string]: string } {
87
+ return {
88
+ agentName: 'AgentName',
89
+ catalog: 'Catalog',
90
+ documentId: 'DocumentId',
91
+ enabled: 'Enabled',
92
+ keyword: 'Keyword',
93
+ knowledgeBaseName: 'KnowledgeBaseName',
94
+ maxResults: 'MaxResults',
95
+ namespace: 'Namespace',
96
+ nextToken: 'NextToken',
97
+ };
98
+ }
99
+
100
+ static types(): { [key: string]: any } {
101
+ return {
102
+ agentName: 'string',
103
+ catalog: 'string',
104
+ documentId: 'string',
105
+ enabled: 'boolean',
106
+ keyword: 'string',
107
+ knowledgeBaseName: 'string',
108
+ maxResults: 'number',
109
+ namespace: 'string',
110
+ nextToken: 'string',
111
+ };
112
+ }
113
+
114
+ validate() {
115
+ super.validate();
116
+ }
117
+
118
+ constructor(map?: { [key: string]: any }) {
119
+ super(map);
120
+ }
121
+ }
122
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListLumaChunksResponseBody } from "./ListLumaChunksResponseBody";
4
+
5
+
6
+ export class ListLumaChunksResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListLumaChunksResponseBody;
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: ListLumaChunksResponseBody,
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,128 @@
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 ListLumaChunksResponseBodyData extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The list of chunk entries.
10
+ *
11
+ * @example
12
+ * [{"DocumentId":"doc-bp1xxxxxxxxxxxx","ChunkSeq":1}]
13
+ */
14
+ chunks?: KnowledgeBaseChunk[];
15
+ /**
16
+ * @remarks
17
+ * 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.
18
+ *
19
+ * @example
20
+ * ca1eb85f5d99c7d6a97e6****
21
+ */
22
+ nextToken?: string;
23
+ /**
24
+ * @remarks
25
+ * The total number of chunks in the document.
26
+ *
27
+ * @example
28
+ * 120
29
+ */
30
+ totalCount?: number;
31
+ static names(): { [key: string]: string } {
32
+ return {
33
+ chunks: 'Chunks',
34
+ nextToken: 'NextToken',
35
+ totalCount: 'TotalCount',
36
+ };
37
+ }
38
+
39
+ static types(): { [key: string]: any } {
40
+ return {
41
+ chunks: { 'type': 'array', 'itemType': KnowledgeBaseChunk },
42
+ nextToken: 'string',
43
+ totalCount: 'number',
44
+ };
45
+ }
46
+
47
+ validate() {
48
+ if(Array.isArray(this.chunks)) {
49
+ $dara.Model.validateArray(this.chunks);
50
+ }
51
+ super.validate();
52
+ }
53
+
54
+ constructor(map?: { [key: string]: any }) {
55
+ super(map);
56
+ }
57
+ }
58
+
59
+ export class ListLumaChunksResponseBody extends $dara.Model {
60
+ /**
61
+ * @remarks
62
+ * The response code. A value of Success indicates that the call succeeded. If the call fails, a specific error code is returned.
63
+ *
64
+ * @example
65
+ * Success
66
+ */
67
+ code?: string;
68
+ /**
69
+ * @remarks
70
+ * The chunk list result, which contains chunk entries and pagination information.
71
+ */
72
+ data?: ListLumaChunksResponseBodyData;
73
+ /**
74
+ * @remarks
75
+ * The message returned by the operation. The value is Operation success if the call succeeds, or a specific error description if the call fails.
76
+ *
77
+ * @example
78
+ * Operation success
79
+ */
80
+ message?: string;
81
+ /**
82
+ * @remarks
83
+ * The unique ID of the request. Use this ID for troubleshooting and when submitting a ticket.
84
+ *
85
+ * @example
86
+ * 34AD682D-5B91-5773-8132-AA38C130****
87
+ */
88
+ requestId?: string;
89
+ /**
90
+ * @remarks
91
+ * Indicates whether the call is successful. A value of true indicates success.
92
+ *
93
+ * @example
94
+ * true
95
+ */
96
+ success?: boolean;
97
+ static names(): { [key: string]: string } {
98
+ return {
99
+ code: 'Code',
100
+ data: 'Data',
101
+ message: 'Message',
102
+ requestId: 'RequestId',
103
+ success: 'Success',
104
+ };
105
+ }
106
+
107
+ static types(): { [key: string]: any } {
108
+ return {
109
+ code: 'string',
110
+ data: ListLumaChunksResponseBodyData,
111
+ message: 'string',
112
+ requestId: 'string',
113
+ success: 'boolean',
114
+ };
115
+ }
116
+
117
+ validate() {
118
+ if(this.data && typeof (this.data as any).validate === 'function') {
119
+ (this.data as any).validate();
120
+ }
121
+ super.validate();
122
+ }
123
+
124
+ constructor(map?: { [key: string]: any }) {
125
+ super(map);
126
+ }
127
+ }
128
+
@@ -0,0 +1,112 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListLumaDocumentsRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The name of the agent.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * my_agent
14
+ */
15
+ agentName?: string;
16
+ /**
17
+ * @remarks
18
+ * The name of the data catalog bound to the agent. You can call ListLumaCatalogs to obtain the catalog name.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * my_catalog
24
+ */
25
+ catalog?: string;
26
+ /**
27
+ * @remarks
28
+ * The file name prefix used to filter documents.
29
+ *
30
+ * @example
31
+ * manual-
32
+ */
33
+ fileNamePrefix?: string;
34
+ /**
35
+ * @remarks
36
+ * The name of the knowledge base bound to the agent. You can call ListLumaKnowledgeBases to obtain the knowledge base name.
37
+ *
38
+ * This parameter is required.
39
+ *
40
+ * @example
41
+ * my-knowledge-base
42
+ */
43
+ knowledgeBaseName?: string;
44
+ /**
45
+ * @remarks
46
+ * The maximum number of records to return. Valid values: 1 to 100. If this parameter is not specified, the server uses a default value.
47
+ *
48
+ * @example
49
+ * 20
50
+ */
51
+ maxResults?: number;
52
+ /**
53
+ * @remarks
54
+ * The name of the namespace bound to the agent. You can call ListLumaNamespaces to obtain the namespace name.
55
+ *
56
+ * This parameter is required.
57
+ *
58
+ * @example
59
+ * my_namespace
60
+ */
61
+ namespace?: string;
62
+ /**
63
+ * @remarks
64
+ * The pagination token. Do not specify this parameter for the first request. For subsequent requests, use the NextToken value returned in the previous response. This value is an opaque string. Do not parse it.
65
+ *
66
+ * @example
67
+ * ca1eb85f5d99c7d6a97e6****
68
+ */
69
+ nextToken?: string;
70
+ /**
71
+ * @remarks
72
+ * The processing status used to filter documents. Valid values: Pending, Processing, Ready, and Failed.
73
+ *
74
+ * @example
75
+ * Ready
76
+ */
77
+ status?: string;
78
+ static names(): { [key: string]: string } {
79
+ return {
80
+ agentName: 'AgentName',
81
+ catalog: 'Catalog',
82
+ fileNamePrefix: 'FileNamePrefix',
83
+ knowledgeBaseName: 'KnowledgeBaseName',
84
+ maxResults: 'MaxResults',
85
+ namespace: 'Namespace',
86
+ nextToken: 'NextToken',
87
+ status: 'Status',
88
+ };
89
+ }
90
+
91
+ static types(): { [key: string]: any } {
92
+ return {
93
+ agentName: 'string',
94
+ catalog: 'string',
95
+ fileNamePrefix: 'string',
96
+ knowledgeBaseName: 'string',
97
+ maxResults: 'number',
98
+ namespace: 'string',
99
+ nextToken: 'string',
100
+ status: 'string',
101
+ };
102
+ }
103
+
104
+ validate() {
105
+ super.validate();
106
+ }
107
+
108
+ constructor(map?: { [key: string]: any }) {
109
+ super(map);
110
+ }
111
+ }
112
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListLumaDocumentsResponseBody } from "./ListLumaDocumentsResponseBody";
4
+
5
+
6
+ export class ListLumaDocumentsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListLumaDocumentsResponseBody;
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: ListLumaDocumentsResponseBody,
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
+