@alicloud/eventbridge20200401 6.3.0 → 6.4.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 (184) hide show
  1. package/dist/client.d.ts +99 -18
  2. package/dist/client.js +277 -38
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AgentDataSemanticsExample.d.ts +47 -0
  5. package/dist/models/AgentDataSemanticsExample.js +68 -0
  6. package/dist/models/AgentDataSemanticsExample.js.map +1 -0
  7. package/dist/models/AgentDataSemanticsExampleParameter.d.ts +51 -0
  8. package/dist/models/AgentDataSemanticsExampleParameter.js +64 -0
  9. package/dist/models/AgentDataSemanticsExampleParameter.js.map +1 -0
  10. package/dist/models/AgentDataSemanticsJoin.d.ts +57 -0
  11. package/dist/models/AgentDataSemanticsJoin.js +70 -0
  12. package/dist/models/AgentDataSemanticsJoin.js.map +1 -0
  13. package/dist/models/AgentDataSemanticsJoinCondition.d.ts +47 -0
  14. package/dist/models/AgentDataSemanticsJoinCondition.js +64 -0
  15. package/dist/models/AgentDataSemanticsJoinCondition.js.map +1 -0
  16. package/dist/models/AgentDataSemanticsMetric.d.ts +59 -0
  17. package/dist/models/AgentDataSemanticsMetric.js +69 -0
  18. package/dist/models/AgentDataSemanticsMetric.js.map +1 -0
  19. package/dist/models/AgentDataSemanticsStageProgress.d.ts +33 -0
  20. package/dist/models/AgentDataSemanticsStageProgress.js +60 -0
  21. package/dist/models/AgentDataSemanticsStageProgress.js.map +1 -0
  22. package/dist/models/AgentDataSemanticsText.d.ts +23 -0
  23. package/dist/models/AgentDataSemanticsText.js +58 -0
  24. package/dist/models/AgentDataSemanticsText.js.map +1 -0
  25. package/dist/models/AskLumaRequest.d.ts +1 -1
  26. package/dist/models/AskLumaResponseBody.d.ts +1 -1
  27. package/dist/models/AskLumaResult.d.ts +20 -12
  28. package/dist/models/AskLumaResult.js +2 -0
  29. package/dist/models/AskLumaResult.js.map +1 -1
  30. package/dist/models/Catalog.d.ts +7 -7
  31. package/dist/models/CreateConnectionRequest.d.ts +21 -21
  32. package/dist/models/CreateConnectionResponseBody.d.ts +1 -1
  33. package/dist/models/CreateConnectionShrinkRequest.d.ts +4 -4
  34. package/dist/models/CreateEventStreamingRequest.d.ts +121 -212
  35. package/dist/models/CreateEventStreamingRequest.js.map +1 -1
  36. package/dist/models/CreateEventStreamingResponseBody.d.ts +2 -4
  37. package/dist/models/CreateEventStreamingResponseBody.js.map +1 -1
  38. package/dist/models/CreateEventStreamingShrinkRequest.d.ts +8 -4
  39. package/dist/models/CreateEventStreamingShrinkRequest.js.map +1 -1
  40. package/dist/models/DeleteEventStreamingRequest.d.ts +5 -0
  41. package/dist/models/DeleteEventStreamingRequest.js +2 -0
  42. package/dist/models/DeleteEventStreamingRequest.js.map +1 -1
  43. package/dist/models/DeleteEventStreamingResponseBody.d.ts +4 -4
  44. package/dist/models/GenerateAgentDataSemanticsRequest.d.ts +23 -0
  45. package/dist/models/GenerateAgentDataSemanticsRequest.js +58 -0
  46. package/dist/models/GenerateAgentDataSemanticsRequest.js.map +1 -0
  47. package/dist/models/GenerateAgentDataSemanticsResponse.d.ts +19 -0
  48. package/dist/models/GenerateAgentDataSemanticsResponse.js +69 -0
  49. package/dist/models/GenerateAgentDataSemanticsResponse.js.map +1 -0
  50. package/dist/models/GenerateAgentDataSemanticsResponseBody.d.ts +55 -0
  51. package/dist/models/GenerateAgentDataSemanticsResponseBody.js +69 -0
  52. package/dist/models/GenerateAgentDataSemanticsResponseBody.js.map +1 -0
  53. package/dist/models/GetAgentDataSemanticsRequest.d.ts +23 -0
  54. package/dist/models/GetAgentDataSemanticsRequest.js +58 -0
  55. package/dist/models/GetAgentDataSemanticsRequest.js.map +1 -0
  56. package/dist/models/GetAgentDataSemanticsResponse.d.ts +19 -0
  57. package/dist/models/GetAgentDataSemanticsResponse.js +69 -0
  58. package/dist/models/GetAgentDataSemanticsResponse.js.map +1 -0
  59. package/dist/models/GetAgentDataSemanticsResponseBody.d.ts +94 -0
  60. package/dist/models/GetAgentDataSemanticsResponseBody.js +112 -0
  61. package/dist/models/GetAgentDataSemanticsResponseBody.js.map +1 -0
  62. package/dist/models/GetCatalogRequest.d.ts +2 -2
  63. package/dist/models/GetCatalogResponseBody.d.ts +5 -5
  64. package/dist/models/GetConnectionRequest.d.ts +1 -1
  65. package/dist/models/GetConnectionResponseBody.d.ts +32 -30
  66. package/dist/models/GetConnectionResponseBody.js.map +1 -1
  67. package/dist/models/GetEventStreamingRequest.d.ts +1 -1
  68. package/dist/models/GetEventStreamingResponseBody.d.ts +212 -329
  69. package/dist/models/GetEventStreamingResponseBody.js.map +1 -1
  70. package/dist/models/GetGenerateAgentDataSemanticsProgressRequest.d.ts +23 -0
  71. package/dist/models/GetGenerateAgentDataSemanticsProgressRequest.js +58 -0
  72. package/dist/models/GetGenerateAgentDataSemanticsProgressRequest.js.map +1 -0
  73. package/dist/models/GetGenerateAgentDataSemanticsProgressResponse.d.ts +19 -0
  74. package/dist/models/GetGenerateAgentDataSemanticsProgressResponse.js +69 -0
  75. package/dist/models/GetGenerateAgentDataSemanticsProgressResponse.js.map +1 -0
  76. package/dist/models/GetGenerateAgentDataSemanticsProgressResponseBody.d.ts +116 -0
  77. package/dist/models/GetGenerateAgentDataSemanticsProgressResponseBody.js +122 -0
  78. package/dist/models/GetGenerateAgentDataSemanticsProgressResponseBody.js.map +1 -0
  79. package/dist/models/ListCatalogsRequest.d.ts +2 -2
  80. package/dist/models/ListCatalogsResponseBody.d.ts +8 -8
  81. package/dist/models/ListConnectionsRequest.d.ts +6 -6
  82. package/dist/models/ListConnectionsResponseBody.d.ts +24 -24
  83. package/dist/models/PollAskResultResponseBody.d.ts +1 -1
  84. package/dist/models/QueryAskLumaLogRequest.d.ts +1 -1
  85. package/dist/models/QueryAskLumaLogResponseBody.d.ts +3 -3
  86. package/dist/models/QueryAttachment.d.ts +10 -2
  87. package/dist/models/QueryAttachment.js +2 -0
  88. package/dist/models/QueryAttachment.js.map +1 -1
  89. package/dist/models/QueryEventHouseWithTimeRangeRequest.d.ts +51 -0
  90. package/dist/models/QueryEventHouseWithTimeRangeRequest.js +64 -0
  91. package/dist/models/QueryEventHouseWithTimeRangeRequest.js.map +1 -0
  92. package/dist/models/QueryEventHouseWithTimeRangeResponse.d.ts +19 -0
  93. package/dist/models/QueryEventHouseWithTimeRangeResponse.js +69 -0
  94. package/dist/models/QueryEventHouseWithTimeRangeResponse.js.map +1 -0
  95. package/dist/models/QueryEventHouseWithTimeRangeResponseBody.d.ts +76 -0
  96. package/dist/models/QueryEventHouseWithTimeRangeResponseBody.js +94 -0
  97. package/dist/models/QueryEventHouseWithTimeRangeResponseBody.js.map +1 -0
  98. package/dist/models/SaveAgentDataSemanticsRequest.d.ts +47 -0
  99. package/dist/models/SaveAgentDataSemanticsRequest.js +82 -0
  100. package/dist/models/SaveAgentDataSemanticsRequest.js.map +1 -0
  101. package/dist/models/SaveAgentDataSemanticsResponse.d.ts +19 -0
  102. package/dist/models/SaveAgentDataSemanticsResponse.js +69 -0
  103. package/dist/models/SaveAgentDataSemanticsResponse.js.map +1 -0
  104. package/dist/models/SaveAgentDataSemanticsResponseBody.d.ts +55 -0
  105. package/dist/models/SaveAgentDataSemanticsResponseBody.js +69 -0
  106. package/dist/models/SaveAgentDataSemanticsResponseBody.js.map +1 -0
  107. package/dist/models/SaveAgentDataSemanticsShrinkRequest.d.ts +43 -0
  108. package/dist/models/SaveAgentDataSemanticsShrinkRequest.js +66 -0
  109. package/dist/models/SaveAgentDataSemanticsShrinkRequest.js.map +1 -0
  110. package/dist/models/SourceJdbcparameters.d.ts +60 -0
  111. package/dist/models/SourceJdbcparameters.js.map +1 -1
  112. package/dist/models/Table.d.ts +1 -1
  113. package/dist/models/UpdateConnectionRequest.d.ts +28 -28
  114. package/dist/models/UpdateConnectionResponseBody.d.ts +2 -2
  115. package/dist/models/UpdateConnectionShrinkRequest.d.ts +5 -5
  116. package/dist/models/UpdateEventStreamingRequest.d.ts +156 -281
  117. package/dist/models/UpdateEventStreamingRequest.js.map +1 -1
  118. package/dist/models/UpdateEventStreamingResponseBody.d.ts +4 -2
  119. package/dist/models/UpdateEventStreamingResponseBody.js.map +1 -1
  120. package/dist/models/UpdateEventStreamingShrinkRequest.d.ts +8 -4
  121. package/dist/models/UpdateEventStreamingShrinkRequest.js.map +1 -1
  122. package/dist/models/model.d.ts +26 -0
  123. package/dist/models/model.js +70 -18
  124. package/dist/models/model.js.map +1 -1
  125. package/package.json +1 -1
  126. package/src/client.ts +304 -38
  127. package/src/models/AgentDataSemanticsExample.ts +69 -0
  128. package/src/models/AgentDataSemanticsExampleParameter.ts +70 -0
  129. package/src/models/AgentDataSemanticsJoin.ts +81 -0
  130. package/src/models/AgentDataSemanticsJoinCondition.ts +66 -0
  131. package/src/models/AgentDataSemanticsMetric.ts +83 -0
  132. package/src/models/AgentDataSemanticsStageProgress.ts +48 -0
  133. package/src/models/AgentDataSemanticsText.ts +36 -0
  134. package/src/models/AskLumaRequest.ts +1 -1
  135. package/src/models/AskLumaResponseBody.ts +1 -1
  136. package/src/models/AskLumaResult.ts +22 -12
  137. package/src/models/Catalog.ts +7 -7
  138. package/src/models/CreateConnectionRequest.ts +21 -21
  139. package/src/models/CreateConnectionResponseBody.ts +1 -1
  140. package/src/models/CreateConnectionShrinkRequest.ts +4 -4
  141. package/src/models/CreateEventStreamingRequest.ts +121 -212
  142. package/src/models/CreateEventStreamingResponseBody.ts +2 -4
  143. package/src/models/CreateEventStreamingShrinkRequest.ts +8 -4
  144. package/src/models/DeleteEventStreamingRequest.ts +7 -0
  145. package/src/models/DeleteEventStreamingResponseBody.ts +4 -4
  146. package/src/models/GenerateAgentDataSemanticsRequest.ts +36 -0
  147. package/src/models/GenerateAgentDataSemanticsResponse.ts +40 -0
  148. package/src/models/GenerateAgentDataSemanticsResponseBody.ts +77 -0
  149. package/src/models/GetAgentDataSemanticsRequest.ts +36 -0
  150. package/src/models/GetAgentDataSemanticsResponse.ts +40 -0
  151. package/src/models/GetAgentDataSemanticsResponseBody.ts +148 -0
  152. package/src/models/GetCatalogRequest.ts +2 -2
  153. package/src/models/GetCatalogResponseBody.ts +5 -5
  154. package/src/models/GetConnectionRequest.ts +1 -1
  155. package/src/models/GetConnectionResponseBody.ts +32 -30
  156. package/src/models/GetEventStreamingRequest.ts +1 -1
  157. package/src/models/GetEventStreamingResponseBody.ts +212 -329
  158. package/src/models/GetGenerateAgentDataSemanticsProgressRequest.ts +36 -0
  159. package/src/models/GetGenerateAgentDataSemanticsProgressResponse.ts +40 -0
  160. package/src/models/GetGenerateAgentDataSemanticsProgressResponseBody.ts +179 -0
  161. package/src/models/ListCatalogsRequest.ts +2 -2
  162. package/src/models/ListCatalogsResponseBody.ts +8 -8
  163. package/src/models/ListConnectionsRequest.ts +6 -6
  164. package/src/models/ListConnectionsResponseBody.ts +24 -24
  165. package/src/models/PollAskResultResponseBody.ts +1 -1
  166. package/src/models/QueryAskLumaLogRequest.ts +1 -1
  167. package/src/models/QueryAskLumaLogResponseBody.ts +3 -3
  168. package/src/models/QueryAttachment.ts +12 -2
  169. package/src/models/QueryEventHouseWithTimeRangeRequest.ts +70 -0
  170. package/src/models/QueryEventHouseWithTimeRangeResponse.ts +40 -0
  171. package/src/models/QueryEventHouseWithTimeRangeResponseBody.ts +115 -0
  172. package/src/models/SaveAgentDataSemanticsRequest.ts +80 -0
  173. package/src/models/SaveAgentDataSemanticsResponse.ts +40 -0
  174. package/src/models/SaveAgentDataSemanticsResponseBody.ts +77 -0
  175. package/src/models/SaveAgentDataSemanticsShrinkRequest.ts +64 -0
  176. package/src/models/SourceJdbcparameters.ts +60 -0
  177. package/src/models/Table.ts +1 -1
  178. package/src/models/UpdateConnectionRequest.ts +28 -28
  179. package/src/models/UpdateConnectionResponseBody.ts +2 -2
  180. package/src/models/UpdateConnectionShrinkRequest.ts +5 -5
  181. package/src/models/UpdateEventStreamingRequest.ts +156 -281
  182. package/src/models/UpdateEventStreamingResponseBody.ts +4 -2
  183. package/src/models/UpdateEventStreamingShrinkRequest.ts +8 -4
  184. package/src/models/model.ts +26 -0
@@ -0,0 +1,70 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class QueryEventHouseWithTimeRangeRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The start time for querying internal EventHouse data. Specify a UNIX timestamp in seconds. The time range includes this point in time.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * 1787587200
14
+ */
15
+ beginTime?: number;
16
+ /**
17
+ * @remarks
18
+ * The end time for querying internal EventHouse data. Specify a UNIX timestamp in seconds. The time range excludes this point in time. The value must be greater than BeginTime.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * 1787590800
24
+ */
25
+ endTime?: number;
26
+ /**
27
+ * @remarks
28
+ * The maximum number of result rows that can be returned for this query.
29
+ *
30
+ * @example
31
+ * 100
32
+ */
33
+ limit?: number;
34
+ /**
35
+ * @remarks
36
+ * The single read-only SQL statement to execute. You can query internal EventHouse data or perform federated queries with mounted external data sources.
37
+ *
38
+ * This parameter is required.
39
+ *
40
+ * @example
41
+ * SELECT * FROM my_catalog.my_namespace.my_table LIMIT 100
42
+ */
43
+ query?: string;
44
+ static names(): { [key: string]: string } {
45
+ return {
46
+ beginTime: 'BeginTime',
47
+ endTime: 'EndTime',
48
+ limit: 'Limit',
49
+ query: 'Query',
50
+ };
51
+ }
52
+
53
+ static types(): { [key: string]: any } {
54
+ return {
55
+ beginTime: 'number',
56
+ endTime: 'number',
57
+ limit: 'number',
58
+ query: 'string',
59
+ };
60
+ }
61
+
62
+ validate() {
63
+ super.validate();
64
+ }
65
+
66
+ constructor(map?: { [key: string]: any }) {
67
+ super(map);
68
+ }
69
+ }
70
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { QueryEventHouseWithTimeRangeResponseBody } from "./QueryEventHouseWithTimeRangeResponseBody";
4
+
5
+
6
+ export class QueryEventHouseWithTimeRangeResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: QueryEventHouseWithTimeRangeResponseBody;
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: QueryEventHouseWithTimeRangeResponseBody,
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,115 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { Row } from "./Row";
4
+
5
+
6
+ export class QueryEventHouseWithTimeRangeResponseBodyData extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The list of result rows returned by the SQL query.
10
+ */
11
+ rows?: Row[];
12
+ /**
13
+ * @remarks
14
+ * The number of result rows actually returned by the query.
15
+ *
16
+ * @example
17
+ * 1
18
+ */
19
+ total?: number;
20
+ static names(): { [key: string]: string } {
21
+ return {
22
+ rows: 'Rows',
23
+ total: 'Total',
24
+ };
25
+ }
26
+
27
+ static types(): { [key: string]: any } {
28
+ return {
29
+ rows: { 'type': 'array', 'itemType': Row },
30
+ total: 'number',
31
+ };
32
+ }
33
+
34
+ validate() {
35
+ if(Array.isArray(this.rows)) {
36
+ $dara.Model.validateArray(this.rows);
37
+ }
38
+ super.validate();
39
+ }
40
+
41
+ constructor(map?: { [key: string]: any }) {
42
+ super(map);
43
+ }
44
+ }
45
+
46
+ export class QueryEventHouseWithTimeRangeResponseBody extends $dara.Model {
47
+ /**
48
+ * @remarks
49
+ * The return code of the operation. Success indicates a successful call. Other values indicate specific error codes.
50
+ *
51
+ * @example
52
+ * Success
53
+ */
54
+ code?: string;
55
+ /**
56
+ * @remarks
57
+ * The structured result data returned by the SQL query.
58
+ */
59
+ data?: QueryEventHouseWithTimeRangeResponseBodyData;
60
+ /**
61
+ * @remarks
62
+ * A success message if the call succeeds, or a specific error message if the call fails.
63
+ *
64
+ * @example
65
+ * success
66
+ */
67
+ message?: string;
68
+ /**
69
+ * @remarks
70
+ * The unique ID of the request. You can use this ID for troubleshooting.
71
+ *
72
+ * @example
73
+ * 34AD682D-5B91-5773-8132-AA38C130****
74
+ */
75
+ requestId?: string;
76
+ /**
77
+ * @remarks
78
+ * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
79
+ *
80
+ * @example
81
+ * true
82
+ */
83
+ success?: boolean;
84
+ static names(): { [key: string]: string } {
85
+ return {
86
+ code: 'Code',
87
+ data: 'Data',
88
+ message: 'Message',
89
+ requestId: 'RequestId',
90
+ success: 'Success',
91
+ };
92
+ }
93
+
94
+ static types(): { [key: string]: any } {
95
+ return {
96
+ code: 'string',
97
+ data: QueryEventHouseWithTimeRangeResponseBodyData,
98
+ message: 'string',
99
+ requestId: 'string',
100
+ success: 'boolean',
101
+ };
102
+ }
103
+
104
+ validate() {
105
+ if(this.data && typeof (this.data as any).validate === 'function') {
106
+ (this.data as any).validate();
107
+ }
108
+ super.validate();
109
+ }
110
+
111
+ constructor(map?: { [key: string]: any }) {
112
+ super(map);
113
+ }
114
+ }
115
+
@@ -0,0 +1,80 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { AgentDataSemanticsExample } from "./AgentDataSemanticsExample";
4
+ import { AgentDataSemanticsJoin } from "./AgentDataSemanticsJoin";
5
+ import { AgentDataSemanticsMetric } from "./AgentDataSemanticsMetric";
6
+ import { AgentDataSemanticsText } from "./AgentDataSemanticsText";
7
+
8
+
9
+ export class SaveAgentDataSemanticsRequest extends $dara.Model {
10
+ /**
11
+ * @remarks
12
+ * The name of the agent.
13
+ *
14
+ * This parameter is required.
15
+ *
16
+ * @example
17
+ * bakehouse_agent
18
+ */
19
+ agentName?: string;
20
+ /**
21
+ * @remarks
22
+ * The SQL example knowledge. If this parameter is specified, the current content is saved. If this parameter is not specified, the existing content is cleared. A maximum of 50 entries are supported, and the maximum size of each knowledge category is 16 KB.
23
+ */
24
+ examples?: AgentDataSemanticsExample[];
25
+ /**
26
+ * @remarks
27
+ * The data association knowledge. If this parameter is specified, the current content is saved. If this parameter is not specified, the existing content is cleared. A maximum of 100 entries are supported, and the maximum size of each knowledge category is 16 KB.
28
+ */
29
+ joins?: AgentDataSemanticsJoin[];
30
+ /**
31
+ * @remarks
32
+ * The SQL expression knowledge. If this parameter is specified, the current content is saved. If this parameter is not specified, the existing content is cleared. A maximum of 100 entries are supported, and the maximum size of each knowledge category is 16 KB.
33
+ */
34
+ metrics?: AgentDataSemanticsMetric[];
35
+ /**
36
+ * @remarks
37
+ * The text knowledge in Markdown format. If this parameter is specified, the current content is saved. If this parameter is not specified, the existing content is cleared. The maximum size of each knowledge category is 16 KB.
38
+ */
39
+ text?: AgentDataSemanticsText;
40
+ static names(): { [key: string]: string } {
41
+ return {
42
+ agentName: 'AgentName',
43
+ examples: 'Examples',
44
+ joins: 'Joins',
45
+ metrics: 'Metrics',
46
+ text: 'Text',
47
+ };
48
+ }
49
+
50
+ static types(): { [key: string]: any } {
51
+ return {
52
+ agentName: 'string',
53
+ examples: { 'type': 'array', 'itemType': AgentDataSemanticsExample },
54
+ joins: { 'type': 'array', 'itemType': AgentDataSemanticsJoin },
55
+ metrics: { 'type': 'array', 'itemType': AgentDataSemanticsMetric },
56
+ text: AgentDataSemanticsText,
57
+ };
58
+ }
59
+
60
+ validate() {
61
+ if(Array.isArray(this.examples)) {
62
+ $dara.Model.validateArray(this.examples);
63
+ }
64
+ if(Array.isArray(this.joins)) {
65
+ $dara.Model.validateArray(this.joins);
66
+ }
67
+ if(Array.isArray(this.metrics)) {
68
+ $dara.Model.validateArray(this.metrics);
69
+ }
70
+ if(this.text && typeof (this.text as any).validate === 'function') {
71
+ (this.text as any).validate();
72
+ }
73
+ super.validate();
74
+ }
75
+
76
+ constructor(map?: { [key: string]: any }) {
77
+ super(map);
78
+ }
79
+ }
80
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { SaveAgentDataSemanticsResponseBody } from "./SaveAgentDataSemanticsResponseBody";
4
+
5
+
6
+ export class SaveAgentDataSemanticsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: SaveAgentDataSemanticsResponseBody;
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: SaveAgentDataSemanticsResponseBody,
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,77 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class SaveAgentDataSemanticsResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The response code of the operation.
9
+ *
10
+ * @example
11
+ * Success
12
+ */
13
+ code?: string;
14
+ /**
15
+ * @remarks
16
+ * The update result. If the save is successful, an empty object is returned with no additional business fields. If none of the four knowledge categories are specified, the target state is all four categories empty: if a non-empty current version exists, an all-empty version is published. If the current version is already all empty or no current version exists, the operation succeeds idempotently and the current round of pending generation results is finalized.
17
+ *
18
+ * @example
19
+ * {}
20
+ */
21
+ data?: { [key: string]: any };
22
+ /**
23
+ * @remarks
24
+ * The response message. If the call fails, an error message is returned.
25
+ *
26
+ * @example
27
+ * Invalid data semantics request.
28
+ */
29
+ message?: string;
30
+ /**
31
+ * @remarks
32
+ * The unique identifier that Alibaba Cloud generates for the request.
33
+ *
34
+ * @example
35
+ * 5DAF96FB-A4DF-548C-B8A1-F2A8D2F4****
36
+ */
37
+ requestId?: string;
38
+ /**
39
+ * @remarks
40
+ * Indicates whether the call is successful.
41
+ *
42
+ * @example
43
+ * true
44
+ */
45
+ success?: boolean;
46
+ static names(): { [key: string]: string } {
47
+ return {
48
+ code: 'Code',
49
+ data: 'Data',
50
+ message: 'Message',
51
+ requestId: 'RequestId',
52
+ success: 'Success',
53
+ };
54
+ }
55
+
56
+ static types(): { [key: string]: any } {
57
+ return {
58
+ code: 'string',
59
+ data: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
60
+ message: 'string',
61
+ requestId: 'string',
62
+ success: 'boolean',
63
+ };
64
+ }
65
+
66
+ validate() {
67
+ if(this.data) {
68
+ $dara.Model.validateMap(this.data);
69
+ }
70
+ super.validate();
71
+ }
72
+
73
+ constructor(map?: { [key: string]: any }) {
74
+ super(map);
75
+ }
76
+ }
77
+
@@ -0,0 +1,64 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class SaveAgentDataSemanticsShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The name of the agent.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * bakehouse_agent
14
+ */
15
+ agentName?: string;
16
+ /**
17
+ * @remarks
18
+ * The SQL example knowledge. If this parameter is specified, the current content is saved. If this parameter is not specified, the existing content is cleared. A maximum of 50 entries are supported, and the maximum size of each knowledge category is 16 KB.
19
+ */
20
+ examplesShrink?: string;
21
+ /**
22
+ * @remarks
23
+ * The data association knowledge. If this parameter is specified, the current content is saved. If this parameter is not specified, the existing content is cleared. A maximum of 100 entries are supported, and the maximum size of each knowledge category is 16 KB.
24
+ */
25
+ joinsShrink?: string;
26
+ /**
27
+ * @remarks
28
+ * The SQL expression knowledge. If this parameter is specified, the current content is saved. If this parameter is not specified, the existing content is cleared. A maximum of 100 entries are supported, and the maximum size of each knowledge category is 16 KB.
29
+ */
30
+ metricsShrink?: string;
31
+ /**
32
+ * @remarks
33
+ * The text knowledge in Markdown format. If this parameter is specified, the current content is saved. If this parameter is not specified, the existing content is cleared. The maximum size of each knowledge category is 16 KB.
34
+ */
35
+ textShrink?: string;
36
+ static names(): { [key: string]: string } {
37
+ return {
38
+ agentName: 'AgentName',
39
+ examplesShrink: 'Examples',
40
+ joinsShrink: 'Joins',
41
+ metricsShrink: 'Metrics',
42
+ textShrink: 'Text',
43
+ };
44
+ }
45
+
46
+ static types(): { [key: string]: any } {
47
+ return {
48
+ agentName: 'string',
49
+ examplesShrink: 'string',
50
+ joinsShrink: 'string',
51
+ metricsShrink: 'string',
52
+ textShrink: 'string',
53
+ };
54
+ }
55
+
56
+ validate() {
57
+ super.validate();
58
+ }
59
+
60
+ constructor(map?: { [key: string]: any }) {
61
+ super(map);
62
+ }
63
+ }
64
+
@@ -3,20 +3,80 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class SourceJDBCParameters extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The maximum number of rows returned per query. Default value: 1000. Maximum value: 10000.
9
+ */
6
10
  batchSize?: number;
11
+ /**
12
+ * @remarks
13
+ * The custom SQL query statement (advanced mode). This parameter is mutually exclusive with TableName.
14
+ */
7
15
  customQuery?: string;
16
+ /**
17
+ * @remarks
18
+ * The incrementing column name. Required when QueryMode is set to `incrementing` or `timestamp_incrementing`.
19
+ */
8
20
  incrementingColumn?: string;
21
+ /**
22
+ * @remarks
23
+ * The JDBC connection URL. ClickHouse example: `jdbc:clickhouse://host:8123/database`; MySQL example: `jdbc:mysql://host:3306/database`. The system automatically identifies the database type.
24
+ */
9
25
  jdbcUrl?: string;
26
+ /**
27
+ * @remarks
28
+ * The network type. Valid values: `PublicNetwork` (public network); `PrivateNetwork` (VPC private network, requires VpcId, VSwitchIds, and SecurityGroupId to be configured).
29
+ */
10
30
  network?: string;
31
+ /**
32
+ * @remarks
33
+ * The database password.
34
+ */
11
35
  password?: string;
36
+ /**
37
+ * @remarks
38
+ * The polling interval, in seconds. Minimum value: 10. Default value: 60.
39
+ */
12
40
  pollingInterval?: number;
41
+ /**
42
+ * @remarks
43
+ * The query mode. Valid values: `bulk` (full query); `incrementing` (incrementing column tracking); `timestamp` (timestamp tracking); `timestamp_incrementing` (timestamp and incrementing column dual tracking).
44
+ */
13
45
  queryMode?: string;
46
+ /**
47
+ * @remarks
48
+ * The SQL query timeout period, in seconds. Default value: 30. Maximum value: 300.
49
+ */
14
50
  queryTimeout?: number;
51
+ /**
52
+ * @remarks
53
+ * The security group ID. Required when Network is set to PrivateNetwork.
54
+ */
15
55
  securityGroupId?: string;
56
+ /**
57
+ * @remarks
58
+ * The target table name. This parameter is mutually exclusive with CustomQuery. Required when custom SQL is not used.
59
+ */
16
60
  tableName?: string;
61
+ /**
62
+ * @remarks
63
+ * The timestamp column name. Required when QueryMode is set to `timestamp` or `timestamp_incrementing`.
64
+ */
17
65
  timestampColumn?: string;
66
+ /**
67
+ * @remarks
68
+ * The database username.
69
+ */
18
70
  username?: string;
71
+ /**
72
+ * @remarks
73
+ * The vSwitch ID. Required when Network is set to PrivateNetwork.
74
+ */
19
75
  vSwitchIds?: string;
76
+ /**
77
+ * @remarks
78
+ * The VPC ID. Required when Network is set to PrivateNetwork.
79
+ */
20
80
  vpcId?: string;
21
81
  static names(): { [key: string]: string } {
22
82
  return {
@@ -97,7 +97,7 @@ export class Table extends $dara.Model {
97
97
  * The column definition list of the table. Each column contains Name (column name), Type (data type), and Comment (remarks)
98
98
  *
99
99
  * @example
100
- * [{"Name":"id","Type":"bigint","Comment":"主键"}]
100
+ * [{"Name":"id","Type":"bigint","Comment":"Primary key"}]
101
101
  */
102
102
  columns?: TableColumns[];
103
103
  /**