@alicloud/eventbridge20200401 6.5.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 (267) hide show
  1. package/dist/client.d.ts +321 -6
  2. package/dist/client.js +1050 -216
  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/QueryAskLumaLogRequest.d.ts +2 -2
  162. package/dist/models/QueryLumaWithSqlrequest.d.ts +41 -0
  163. package/dist/models/QueryLumaWithSqlrequest.js +62 -0
  164. package/dist/models/QueryLumaWithSqlrequest.js.map +1 -0
  165. package/dist/models/QueryLumaWithSqlresponse.d.ts +19 -0
  166. package/dist/models/QueryLumaWithSqlresponse.js +69 -0
  167. package/dist/models/QueryLumaWithSqlresponse.js.map +1 -0
  168. package/dist/models/QueryLumaWithSqlresponseBody.d.ts +51 -0
  169. package/dist/models/QueryLumaWithSqlresponseBody.js +70 -0
  170. package/dist/models/QueryLumaWithSqlresponseBody.js.map +1 -0
  171. package/dist/models/SchemaColumn.d.ts +2 -2
  172. package/dist/models/SearchLumaKnowledgeBaseRequest.d.ts +95 -0
  173. package/dist/models/SearchLumaKnowledgeBaseRequest.js +74 -0
  174. package/dist/models/SearchLumaKnowledgeBaseRequest.js.map +1 -0
  175. package/dist/models/SearchLumaKnowledgeBaseResponse.d.ts +19 -0
  176. package/dist/models/SearchLumaKnowledgeBaseResponse.js +69 -0
  177. package/dist/models/SearchLumaKnowledgeBaseResponse.js.map +1 -0
  178. package/dist/models/SearchLumaKnowledgeBaseResponseBody.d.ts +79 -0
  179. package/dist/models/SearchLumaKnowledgeBaseResponseBody.js +94 -0
  180. package/dist/models/SearchLumaKnowledgeBaseResponseBody.js.map +1 -0
  181. package/dist/models/SinkKnowledgeBaseParameters.d.ts +37 -0
  182. package/dist/models/SinkKnowledgeBaseParameters.js +62 -0
  183. package/dist/models/SinkKnowledgeBaseParameters.js.map +1 -0
  184. package/dist/models/SourceFeiShuDocsParameters.d.ts +28 -0
  185. package/dist/models/SourceFeiShuDocsParameters.js.map +1 -1
  186. package/dist/models/UpdateEventStreamingRequest.d.ts +302 -161
  187. package/dist/models/UpdateEventStreamingRequest.js +11 -0
  188. package/dist/models/UpdateEventStreamingRequest.js.map +1 -1
  189. package/dist/models/UpdateEventStreamingResponseBody.d.ts +2 -4
  190. package/dist/models/UpdateEventStreamingResponseBody.js.map +1 -1
  191. package/dist/models/UpdateEventStreamingShrinkRequest.d.ts +4 -4
  192. package/dist/models/model.d.ts +70 -0
  193. package/dist/models/model.js +164 -22
  194. package/dist/models/model.js.map +1 -1
  195. package/package.json +1 -1
  196. package/src/client.ts +1149 -217
  197. package/src/models/AgentBridgeRuntime.ts +104 -0
  198. package/src/models/CreateEventStreamingRequest.ts +250 -119
  199. package/src/models/CreateEventStreamingResponseBody.ts +3 -1
  200. package/src/models/CreateEventStreamingShrinkRequest.ts +6 -6
  201. package/src/models/DeleteNamespaceRequest.ts +3 -3
  202. package/src/models/DeleteNamespaceResponseBody.ts +4 -4
  203. package/src/models/ExecutionResult.ts +9 -6
  204. package/src/models/GetEventStreamingRequest.ts +1 -1
  205. package/src/models/GetEventStreamingResponseBody.ts +282 -154
  206. package/src/models/GetLumaCatalogRequest.ts +48 -0
  207. package/src/models/GetLumaCatalogResponse.ts +40 -0
  208. package/src/models/GetLumaCatalogResponseBody.ts +75 -0
  209. package/src/models/GetLumaChunkRequest.ts +96 -0
  210. package/src/models/GetLumaChunkResponse.ts +40 -0
  211. package/src/models/GetLumaChunkResponseBody.ts +75 -0
  212. package/src/models/GetLumaDocumentDownloadUrlRequest.ts +98 -0
  213. package/src/models/GetLumaDocumentDownloadUrlResponse.ts +40 -0
  214. package/src/models/GetLumaDocumentDownloadUrlResponseBody.ts +114 -0
  215. package/src/models/GetLumaDocumentRequest.ts +84 -0
  216. package/src/models/GetLumaDocumentResponse.ts +40 -0
  217. package/src/models/GetLumaDocumentResponseBody.ts +75 -0
  218. package/src/models/GetLumaKnowledgeBaseRequest.ts +72 -0
  219. package/src/models/GetLumaKnowledgeBaseResponse.ts +40 -0
  220. package/src/models/GetLumaKnowledgeBaseResponseBody.ts +75 -0
  221. package/src/models/GetLumaNamespaceRequest.ts +60 -0
  222. package/src/models/GetLumaNamespaceResponse.ts +40 -0
  223. package/src/models/GetLumaNamespaceResponseBody.ts +75 -0
  224. package/src/models/GetLumaTableRequest.ts +72 -0
  225. package/src/models/GetLumaTableResponse.ts +40 -0
  226. package/src/models/GetLumaTableResponseBody.ts +75 -0
  227. package/src/models/KnowledgeBase.ts +384 -0
  228. package/src/models/KnowledgeBaseChunk.ts +124 -0
  229. package/src/models/KnowledgeBaseDocument.ts +341 -0
  230. package/src/models/KnowledgeBaseSearchChunk.ts +164 -0
  231. package/src/models/ListEventStreamingsRequest.ts +3 -3
  232. package/src/models/ListEventStreamingsResponseBody.ts +177 -167
  233. package/src/models/ListLumaCatalogsRequest.ts +36 -0
  234. package/src/models/ListLumaCatalogsResponse.ts +40 -0
  235. package/src/models/ListLumaCatalogsResponseBody.ts +108 -0
  236. package/src/models/ListLumaChunksRequest.ts +122 -0
  237. package/src/models/ListLumaChunksResponse.ts +40 -0
  238. package/src/models/ListLumaChunksResponseBody.ts +128 -0
  239. package/src/models/ListLumaDocumentsRequest.ts +112 -0
  240. package/src/models/ListLumaDocumentsResponse.ts +40 -0
  241. package/src/models/ListLumaDocumentsResponseBody.ts +128 -0
  242. package/src/models/ListLumaKnowledgeBasesRequest.ts +60 -0
  243. package/src/models/ListLumaKnowledgeBasesResponse.ts +40 -0
  244. package/src/models/ListLumaKnowledgeBasesResponseBody.ts +108 -0
  245. package/src/models/ListLumaNamespacesRequest.ts +48 -0
  246. package/src/models/ListLumaNamespacesResponse.ts +40 -0
  247. package/src/models/ListLumaNamespacesResponseBody.ts +108 -0
  248. package/src/models/ListLumaTablesRequest.ts +60 -0
  249. package/src/models/ListLumaTablesResponse.ts +40 -0
  250. package/src/models/ListLumaTablesResponseBody.ts +108 -0
  251. package/src/models/LumaTable.ts +197 -0
  252. package/src/models/MetadataSchemaField.ts +68 -0
  253. package/src/models/PollAskResultResponseBody.ts +4 -4
  254. package/src/models/QueryAskLumaLogRequest.ts +2 -2
  255. package/src/models/QueryLumaWithSqlrequest.ts +58 -0
  256. package/src/models/QueryLumaWithSqlresponse.ts +40 -0
  257. package/src/models/QueryLumaWithSqlresponseBody.ts +75 -0
  258. package/src/models/SchemaColumn.ts +2 -2
  259. package/src/models/SearchLumaKnowledgeBaseRequest.ts +124 -0
  260. package/src/models/SearchLumaKnowledgeBaseResponse.ts +40 -0
  261. package/src/models/SearchLumaKnowledgeBaseResponseBody.ts +118 -0
  262. package/src/models/SinkKnowledgeBaseParameters.ts +54 -0
  263. package/src/models/SourceFeiShuDocsParameters.ts +28 -0
  264. package/src/models/UpdateEventStreamingRequest.ts +312 -161
  265. package/src/models/UpdateEventStreamingResponseBody.ts +2 -4
  266. package/src/models/UpdateEventStreamingShrinkRequest.ts +4 -4
  267. package/src/models/model.ts +70 -0
@@ -0,0 +1,108 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { LumaTable } from "./LumaTable";
4
+
5
+
6
+ export class ListLumaTablesResponseBodyData extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The list of event tables bound to the Agent.
10
+ *
11
+ * @example
12
+ * [{"Name":"my_table","Namespace":"my_namespace"}]
13
+ */
14
+ tables?: LumaTable[];
15
+ static names(): { [key: string]: string } {
16
+ return {
17
+ tables: 'Tables',
18
+ };
19
+ }
20
+
21
+ static types(): { [key: string]: any } {
22
+ return {
23
+ tables: { 'type': 'array', 'itemType': LumaTable },
24
+ };
25
+ }
26
+
27
+ validate() {
28
+ if(Array.isArray(this.tables)) {
29
+ $dara.Model.validateArray(this.tables);
30
+ }
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
39
+ export class ListLumaTablesResponseBody extends $dara.Model {
40
+ /**
41
+ * @remarks
42
+ * The response code of the operation. A value of Success indicates success. An error code is returned if the call fails.
43
+ *
44
+ * @example
45
+ * Success
46
+ */
47
+ code?: string;
48
+ /**
49
+ * @remarks
50
+ * The list of event tables bound to the Agent. All results are returned at once without pagination.
51
+ */
52
+ data?: ListLumaTablesResponseBodyData;
53
+ /**
54
+ * @remarks
55
+ * The message returned by the operation. The value is Operation success if the call succeeds, or a specific error description if 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 feedback.
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: ListLumaTablesResponseBodyData,
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,197 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class LumaTableColumns extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The comment of the column.
9
+ *
10
+ * @example
11
+ * Primary key ID
12
+ */
13
+ comment?: string;
14
+ /**
15
+ * @remarks
16
+ * The name of the column.
17
+ *
18
+ * @example
19
+ * id
20
+ */
21
+ name?: string;
22
+ /**
23
+ * @remarks
24
+ * The data type of the column.
25
+ *
26
+ * @example
27
+ * bigint
28
+ */
29
+ type?: string;
30
+ static names(): { [key: string]: string } {
31
+ return {
32
+ comment: 'Comment',
33
+ name: 'Name',
34
+ type: 'Type',
35
+ };
36
+ }
37
+
38
+ static types(): { [key: string]: any } {
39
+ return {
40
+ comment: 'string',
41
+ name: 'string',
42
+ type: 'string',
43
+ };
44
+ }
45
+
46
+ validate() {
47
+ super.validate();
48
+ }
49
+
50
+ constructor(map?: { [key: string]: any }) {
51
+ super(map);
52
+ }
53
+ }
54
+
55
+ export class LumaTableRetentionPolicy extends $dara.Model {
56
+ /**
57
+ * @remarks
58
+ * The number of days to retain cold data in low-cost archival storage.
59
+ *
60
+ * @example
61
+ * 30
62
+ */
63
+ coldTTL?: number;
64
+ /**
65
+ * @remarks
66
+ * The number of days to retain hot data in high-performance query storage.
67
+ *
68
+ * @example
69
+ * 7
70
+ */
71
+ hotTTL?: number;
72
+ static names(): { [key: string]: string } {
73
+ return {
74
+ coldTTL: 'ColdTTL',
75
+ hotTTL: 'HotTTL',
76
+ };
77
+ }
78
+
79
+ static types(): { [key: string]: any } {
80
+ return {
81
+ coldTTL: 'number',
82
+ hotTTL: 'number',
83
+ };
84
+ }
85
+
86
+ validate() {
87
+ super.validate();
88
+ }
89
+
90
+ constructor(map?: { [key: string]: any }) {
91
+ super(map);
92
+ }
93
+ }
94
+
95
+ export class LumaTable extends $dara.Model {
96
+ /**
97
+ * @remarks
98
+ * The name of the data catalog to which the table belongs.
99
+ *
100
+ * @example
101
+ * my_catalog
102
+ */
103
+ catalog?: string;
104
+ /**
105
+ * @remarks
106
+ * The list of column definitions for the table. Each column contains Name (column name), Type (data type), and Comment (comment).
107
+ *
108
+ * @example
109
+ * [{"Name":"id","Type":"bigint","Comment":"Primary key"}]
110
+ */
111
+ columns?: LumaTableColumns[];
112
+ /**
113
+ * @remarks
114
+ * The comment of the table.
115
+ *
116
+ * @example
117
+ * Test event table
118
+ */
119
+ comment?: string;
120
+ /**
121
+ * @remarks
122
+ * The creation time of the table. This value is a UNIX timestamp in milliseconds.
123
+ *
124
+ * @example
125
+ * 1717948800000
126
+ */
127
+ createTime?: number;
128
+ /**
129
+ * @remarks
130
+ * The unique name of the event table.
131
+ *
132
+ * @example
133
+ * my_table
134
+ */
135
+ name?: string;
136
+ /**
137
+ * @remarks
138
+ * The name of the namespace to which the table belongs.
139
+ *
140
+ * @example
141
+ * my_namespace
142
+ */
143
+ namespace?: string;
144
+ /**
145
+ * @remarks
146
+ * The data retention policy, including the retention days for hot data and cold data.
147
+ */
148
+ retentionPolicy?: LumaTableRetentionPolicy;
149
+ /**
150
+ * @remarks
151
+ * The last update time of the table. This value is a UNIX timestamp in milliseconds.
152
+ *
153
+ * @example
154
+ * 1717948800000
155
+ */
156
+ updateTime?: number;
157
+ static names(): { [key: string]: string } {
158
+ return {
159
+ catalog: 'Catalog',
160
+ columns: 'Columns',
161
+ comment: 'Comment',
162
+ createTime: 'CreateTime',
163
+ name: 'Name',
164
+ namespace: 'Namespace',
165
+ retentionPolicy: 'RetentionPolicy',
166
+ updateTime: 'UpdateTime',
167
+ };
168
+ }
169
+
170
+ static types(): { [key: string]: any } {
171
+ return {
172
+ catalog: 'string',
173
+ columns: { 'type': 'array', 'itemType': LumaTableColumns },
174
+ comment: 'string',
175
+ createTime: 'number',
176
+ name: 'string',
177
+ namespace: 'string',
178
+ retentionPolicy: LumaTableRetentionPolicy,
179
+ updateTime: 'number',
180
+ };
181
+ }
182
+
183
+ validate() {
184
+ if(Array.isArray(this.columns)) {
185
+ $dara.Model.validateArray(this.columns);
186
+ }
187
+ if(this.retentionPolicy && typeof (this.retentionPolicy as any).validate === 'function') {
188
+ (this.retentionPolicy as any).validate();
189
+ }
190
+ super.validate();
191
+ }
192
+
193
+ constructor(map?: { [key: string]: any }) {
194
+ super(map);
195
+ }
196
+ }
197
+
@@ -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 MetadataSchemaField extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The name of the metadata field.
9
+ *
10
+ * @example
11
+ * department
12
+ */
13
+ name?: string;
14
+ /**
15
+ * @remarks
16
+ * Valid values: STRING, LONG, DOUBLE, BOOLEAN, and DATETIME. This field is ignored when ValueMode is set to SYSTEM_VARIABLE. The system enforces the inherent type of the bound variable: DOCUMENT_NAME, FILE_TYPE, SOURCE_TYPE, and SOURCE_URI use STRING. FILE_SIZE, DOCUMENT_UPLOAD_TIME, and SOURCE_MODIFIED_TIME use LONG. An incorrect value specified by the user has no effect.
17
+ *
18
+ * @example
19
+ * STRING
20
+ */
21
+ type?: string;
22
+ /**
23
+ * @remarks
24
+ * When ValueMode is set to CONSTANT, this field specifies a fixed value. An empty value indicates that the value can be assigned during document upload. When ValueMode is set to SYSTEM_VARIABLE, this field specifies a system variable name. Valid system variable names: DOCUMENT_NAME, FILE_TYPE, FILE_SIZE, DOCUMENT_UPLOAD_TIME, SOURCE_TYPE, SOURCE_URI, and SOURCE_MODIFIED_TIME. The system maintains the values of system variables. For manual uploads, the source is fixed to UPLOAD, and SOURCE_URI and SOURCE_MODIFIED_TIME use the values declared by the user. For event stream imports, the system automatically maintains the values. For example, for an OSS import, the source is OSS, SOURCE_URI is oss://bucket/key, and SOURCE_MODIFIED_TIME is the object modification time.
25
+ *
26
+ * @example
27
+ * EventHouse
28
+ */
29
+ value?: string;
30
+ /**
31
+ * @remarks
32
+ * This field is optional. If omitted, the user assigns the value during document upload. Valid values:
33
+ * - CONSTANT: The field uses a constant. If Value is not empty, the fixed value is automatically applied to the document. If Value is empty, the value can be assigned during upload.
34
+ * - SYSTEM_VARIABLE: The field is bound to a system variable. Value specifies the variable name, and the system automatically populates the value from the document facts.
35
+ *
36
+ * A value explicitly provided by the user during document upload always takes precedence. The backend does not override user-specified values.
37
+ *
38
+ * @example
39
+ * CONSTANT
40
+ */
41
+ valueMode?: string;
42
+ static names(): { [key: string]: string } {
43
+ return {
44
+ name: 'Name',
45
+ type: 'Type',
46
+ value: 'Value',
47
+ valueMode: 'ValueMode',
48
+ };
49
+ }
50
+
51
+ static types(): { [key: string]: any } {
52
+ return {
53
+ name: 'string',
54
+ type: 'string',
55
+ value: 'string',
56
+ valueMode: 'string',
57
+ };
58
+ }
59
+
60
+ validate() {
61
+ super.validate();
62
+ }
63
+
64
+ constructor(map?: { [key: string]: any }) {
65
+ super(map);
66
+ }
67
+ }
68
+
@@ -6,9 +6,9 @@ import { AskLumaResult } from "./AskLumaResult";
6
6
  export class PollAskResultResponseBody extends $dara.Model {
7
7
  /**
8
8
  * @remarks
9
- * The API return code. Valid values:
10
- * - Success: The operation was successful.
11
- * - Other values: An error code was returned. For more information, see error codes.
9
+ * The response code. Valid values:
10
+ * - Success: The request was successful.
11
+ * - Other values: An error occurred. For more information, see error codes.
12
12
  *
13
13
  * @example
14
14
  * Success
@@ -32,7 +32,7 @@ export class PollAskResultResponseBody extends $dara.Model {
32
32
  message?: string;
33
33
  /**
34
34
  * @remarks
35
- * The unique request ID generated by Alibaba Cloud for this request.
35
+ * The unique identifier that Alibaba Cloud generates for the request.
36
36
  *
37
37
  * @example
38
38
  * A995F07C-E503-XXXXXX-9CECA8566876
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class QueryAskLumaLogRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The cursor. Set this parameter to the messageId of the last entry on the previous page.
8
+ * The cursor for pagination. Set this parameter to the messageId of the last entry on the previous page.
9
9
  *
10
10
  * @example
11
11
  * eyJ0cyI6MTcxN...
@@ -13,7 +13,7 @@ export class QueryAskLumaLogRequest extends $dara.Model {
13
13
  after?: string;
14
14
  /**
15
15
  * @remarks
16
- * The agent name. If this parameter is left empty, all agents are queried.
16
+ * The agent name. If this parameter is not specified, all agent call logs are queried.
17
17
  *
18
18
  * @example
19
19
  * demo-luma-agent
@@ -0,0 +1,58 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class QueryLumaWithSQLRequest 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
+ * Rows exceeding this limit are truncated. The IsTruncated field in the response indicates whether truncation occurred.
19
+ *
20
+ * @example
21
+ * 100
22
+ */
23
+ maxRows?: number;
24
+ /**
25
+ * @remarks
26
+ * Only query statements are supported.
27
+ *
28
+ * This parameter is required.
29
+ *
30
+ * @example
31
+ * SELECT * FROM my_table LIMIT 10
32
+ */
33
+ sql?: string;
34
+ static names(): { [key: string]: string } {
35
+ return {
36
+ agentName: 'AgentName',
37
+ maxRows: 'MaxRows',
38
+ sql: 'Sql',
39
+ };
40
+ }
41
+
42
+ static types(): { [key: string]: any } {
43
+ return {
44
+ agentName: 'string',
45
+ maxRows: 'number',
46
+ sql: 'string',
47
+ };
48
+ }
49
+
50
+ validate() {
51
+ super.validate();
52
+ }
53
+
54
+ constructor(map?: { [key: string]: any }) {
55
+ super(map);
56
+ }
57
+ }
58
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { QueryLumaWithSQLResponseBody } from "./QueryLumaWithSqlresponseBody";
4
+
5
+
6
+ export class QueryLumaWithSQLResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: QueryLumaWithSQLResponseBody;
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: QueryLumaWithSQLResponseBody,
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 { ExecutionResult } from "./ExecutionResult";
4
+
5
+
6
+ export class QueryLumaWithSQLResponseBody extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The response code of the operation. A value of Success indicates that the call succeeded. Otherwise, a specific error code is returned.
10
+ *
11
+ * @example
12
+ * Success
13
+ */
14
+ code?: string;
15
+ /**
16
+ * @remarks
17
+ * The execution result of the SQL query, including column definitions and row data.
18
+ */
19
+ data?: ExecutionResult;
20
+ /**
21
+ * @remarks
22
+ * The message returned by the operation. The value is Operation success if the call succeeds, or a specific error description if the call fails.
23
+ *
24
+ * @example
25
+ * Operation success
26
+ */
27
+ message?: string;
28
+ /**
29
+ * @remarks
30
+ * The unique identifier of the request. Use this ID for troubleshooting and when submitting a ticket.
31
+ *
32
+ * @example
33
+ * 34AD682D-5B91-5773-8132-AA38C130****
34
+ */
35
+ requestId?: string;
36
+ /**
37
+ * @remarks
38
+ * Indicates whether the call is successful. A value of true indicates success.
39
+ *
40
+ * @example
41
+ * true
42
+ */
43
+ success?: boolean;
44
+ static names(): { [key: string]: string } {
45
+ return {
46
+ code: 'Code',
47
+ data: 'Data',
48
+ message: 'Message',
49
+ requestId: 'RequestId',
50
+ success: 'Success',
51
+ };
52
+ }
53
+
54
+ static types(): { [key: string]: any } {
55
+ return {
56
+ code: 'string',
57
+ data: ExecutionResult,
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 SchemaColumn extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Column name
8
+ * The column name.
9
9
  *
10
10
  * @example
11
11
  * name
@@ -13,7 +13,7 @@ export class SchemaColumn extends $dara.Model {
13
13
  name?: string;
14
14
  /**
15
15
  * @remarks
16
- * Column type
16
+ * The column type.
17
17
  *
18
18
  * @example
19
19
  * VARCHAR