@alicloud/eventbridge20200401 6.0.10 → 6.1.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.
- package/dist/client.d.ts +120 -0
- package/dist/client.js +367 -0
- package/dist/client.js.map +1 -1
- package/dist/models/AguiMessage.d.ts +36 -0
- package/dist/models/AguiMessage.js.map +1 -1
- package/dist/models/AskLumaLogEntry.d.ts +72 -0
- package/dist/models/AskLumaLogEntry.js +88 -0
- package/dist/models/AskLumaLogEntry.js.map +1 -0
- package/dist/models/AskLumaRequest.d.ts +36 -0
- package/dist/models/AskLumaRequest.js +64 -0
- package/dist/models/AskLumaRequest.js.map +1 -0
- package/dist/models/AskLumaResponse.d.ts +19 -0
- package/dist/models/AskLumaResponse.js +69 -0
- package/dist/models/AskLumaResponse.js.map +1 -0
- package/dist/models/AskLumaResponseBody.d.ts +35 -0
- package/dist/models/AskLumaResponseBody.js +70 -0
- package/dist/models/AskLumaResponseBody.js.map +1 -0
- package/dist/models/AskLumaResult.d.ts +58 -0
- package/dist/models/AskLumaResult.js +86 -0
- package/dist/models/AskLumaResult.js.map +1 -0
- package/dist/models/Constraints.d.ts +23 -0
- package/dist/models/Constraints.js +60 -0
- package/dist/models/Constraints.js.map +1 -0
- package/dist/models/Content.d.ts +18 -0
- package/dist/models/Content.js +73 -0
- package/dist/models/Content.js.map +1 -0
- package/dist/models/CreateAgentRequest.d.ts +56 -0
- package/dist/models/CreateAgentRequest.js +110 -0
- package/dist/models/CreateAgentRequest.js.map +1 -0
- package/dist/models/CreateAgentResponse.d.ts +19 -0
- package/dist/models/CreateAgentResponse.js +69 -0
- package/dist/models/CreateAgentResponse.js.map +1 -0
- package/dist/models/CreateAgentResponseBody.d.ts +54 -0
- package/dist/models/CreateAgentResponseBody.js +88 -0
- package/dist/models/CreateAgentResponseBody.js.map +1 -0
- package/dist/models/CreateAgentShrinkRequest.d.ts +21 -0
- package/dist/models/CreateAgentShrinkRequest.js +64 -0
- package/dist/models/CreateAgentShrinkRequest.js.map +1 -0
- package/dist/models/DeleteAgentRequest.d.ts +18 -0
- package/dist/models/DeleteAgentRequest.js +58 -0
- package/dist/models/DeleteAgentRequest.js.map +1 -0
- package/dist/models/DeleteAgentResponse.d.ts +19 -0
- package/dist/models/DeleteAgentResponse.js +69 -0
- package/dist/models/DeleteAgentResponse.js.map +1 -0
- package/dist/models/DeleteAgentResponseBody.d.ts +28 -0
- package/dist/models/DeleteAgentResponseBody.js +62 -0
- package/dist/models/DeleteAgentResponseBody.js.map +1 -0
- package/dist/models/ExecutionResult.d.ts +31 -0
- package/dist/models/ExecutionResult.js +70 -0
- package/dist/models/ExecutionResult.js.map +1 -0
- package/dist/models/GetAgentRequest.d.ts +21 -0
- package/dist/models/GetAgentRequest.js +58 -0
- package/dist/models/GetAgentRequest.js.map +1 -0
- package/dist/models/GetAgentResponse.d.ts +19 -0
- package/dist/models/GetAgentResponse.js +69 -0
- package/dist/models/GetAgentResponse.js.map +1 -0
- package/dist/models/GetAgentResponseBody.d.ts +39 -0
- package/dist/models/GetAgentResponseBody.js +70 -0
- package/dist/models/GetAgentResponseBody.js.map +1 -0
- package/dist/models/ListAgentsRequest.d.ts +28 -0
- package/dist/models/ListAgentsRequest.js +62 -0
- package/dist/models/ListAgentsRequest.js.map +1 -0
- package/dist/models/ListAgentsResponse.d.ts +19 -0
- package/dist/models/ListAgentsResponse.js +69 -0
- package/dist/models/ListAgentsResponse.js.map +1 -0
- package/dist/models/ListAgentsResponseBody.d.ts +63 -0
- package/dist/models/ListAgentsResponseBody.js +98 -0
- package/dist/models/ListAgentsResponseBody.js.map +1 -0
- package/dist/models/Metadata.d.ts +8 -0
- package/dist/models/Metadata.js.map +1 -1
- package/dist/models/PollAskResultRequest.d.ts +29 -0
- package/dist/models/PollAskResultRequest.js +60 -0
- package/dist/models/PollAskResultRequest.js.map +1 -0
- package/dist/models/PollAskResultResponse.d.ts +19 -0
- package/dist/models/PollAskResultResponse.js +69 -0
- package/dist/models/PollAskResultResponse.js.map +1 -0
- package/dist/models/PollAskResultResponseBody.d.ts +39 -0
- package/dist/models/PollAskResultResponseBody.js +70 -0
- package/dist/models/PollAskResultResponseBody.js.map +1 -0
- package/dist/models/QueryAskLumaLogRequest.d.ts +28 -0
- package/dist/models/QueryAskLumaLogRequest.js +62 -0
- package/dist/models/QueryAskLumaLogRequest.js.map +1 -0
- package/dist/models/QueryAskLumaLogResponse.d.ts +19 -0
- package/dist/models/QueryAskLumaLogResponse.js +69 -0
- package/dist/models/QueryAskLumaLogResponse.js.map +1 -0
- package/dist/models/QueryAskLumaLogResponseBody.d.ts +39 -0
- package/dist/models/QueryAskLumaLogResponseBody.js +70 -0
- package/dist/models/QueryAskLumaLogResponseBody.js.map +1 -0
- package/dist/models/QueryAskLumaLogResult.d.ts +17 -0
- package/dist/models/QueryAskLumaLogResult.js +66 -0
- package/dist/models/QueryAskLumaLogResult.js.map +1 -0
- package/dist/models/QueryAttachment.d.ts +20 -0
- package/dist/models/QueryAttachment.js +64 -0
- package/dist/models/QueryAttachment.js.map +1 -0
- package/dist/models/SchemaColumn.d.ts +23 -0
- package/dist/models/SchemaColumn.js +60 -0
- package/dist/models/SchemaColumn.js.map +1 -0
- package/dist/models/UpdateAgentRequest.d.ts +61 -0
- package/dist/models/UpdateAgentRequest.js +112 -0
- package/dist/models/UpdateAgentRequest.js.map +1 -0
- package/dist/models/UpdateAgentResponse.d.ts +19 -0
- package/dist/models/UpdateAgentResponse.js +69 -0
- package/dist/models/UpdateAgentResponse.js.map +1 -0
- package/dist/models/UpdateAgentResponseBody.d.ts +54 -0
- package/dist/models/UpdateAgentResponseBody.js +88 -0
- package/dist/models/UpdateAgentResponseBody.js.map +1 -0
- package/dist/models/UpdateAgentShrinkRequest.d.ts +26 -0
- package/dist/models/UpdateAgentShrinkRequest.js +66 -0
- package/dist/models/UpdateAgentShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +41 -0
- package/dist/models/model.js +102 -19
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +408 -0
- package/src/models/AguiMessage.ts +36 -0
- package/src/models/AskLumaLogEntry.ts +114 -0
- package/src/models/AskLumaRequest.ts +55 -0
- package/src/models/AskLumaResponse.ts +40 -0
- package/src/models/AskLumaResponseBody.ts +59 -0
- package/src/models/AskLumaResult.ts +97 -0
- package/src/models/Constraints.ts +38 -0
- package/src/models/Content.ts +44 -0
- package/src/models/CreateAgentRequest.ts +103 -0
- package/src/models/CreateAgentResponse.ts +40 -0
- package/src/models/CreateAgentResponseBody.ts +88 -0
- package/src/models/CreateAgentShrinkRequest.ts +40 -0
- package/src/models/DeleteAgentRequest.ts +31 -0
- package/src/models/DeleteAgentResponse.ts +40 -0
- package/src/models/DeleteAgentResponseBody.ts +45 -0
- package/src/models/ExecutionResult.ts +55 -0
- package/src/models/GetAgentRequest.ts +34 -0
- package/src/models/GetAgentResponse.ts +40 -0
- package/src/models/GetAgentResponseBody.ts +63 -0
- package/src/models/ListAgentsRequest.ts +45 -0
- package/src/models/ListAgentsResponse.ts +40 -0
- package/src/models/ListAgentsResponseBody.ts +106 -0
- package/src/models/Metadata.ts +8 -0
- package/src/models/PollAskResultRequest.ts +44 -0
- package/src/models/PollAskResultResponse.ts +40 -0
- package/src/models/PollAskResultResponseBody.ts +63 -0
- package/src/models/QueryAskLumaLogRequest.ts +45 -0
- package/src/models/QueryAskLumaLogResponse.ts +40 -0
- package/src/models/QueryAskLumaLogResponseBody.ts +63 -0
- package/src/models/QueryAskLumaLogResult.ts +37 -0
- package/src/models/QueryAttachment.ts +38 -0
- package/src/models/SchemaColumn.ts +38 -0
- package/src/models/UpdateAgentRequest.ts +110 -0
- package/src/models/UpdateAgentResponse.ts +40 -0
- package/src/models/UpdateAgentResponseBody.ts +88 -0
- package/src/models/UpdateAgentShrinkRequest.ts +47 -0
- package/src/models/model.ts +41 -0
|
@@ -5,7 +5,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
/**
|
|
6
6
|
*/
|
|
7
7
|
export class AguiMessageMetadataAttachments extends $dara.Model {
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* acs:eventbridge:cn-hangzhou:12345:eventhouse/system-rocketmq/namespace/rmq-cn-xxx/table/order
|
|
11
|
+
*/
|
|
8
12
|
name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @example
|
|
15
|
+
* inner-resource/event-table
|
|
16
|
+
*/
|
|
9
17
|
type?: string;
|
|
10
18
|
static names(): { [key: string]: string } {
|
|
11
19
|
return {
|
|
@@ -57,7 +65,15 @@ export class AguiMessageMetadata extends $dara.Model {
|
|
|
57
65
|
}
|
|
58
66
|
|
|
59
67
|
export class AguiMessageToolCallsFunction extends $dara.Model {
|
|
68
|
+
/**
|
|
69
|
+
* @example
|
|
70
|
+
* {}
|
|
71
|
+
*/
|
|
60
72
|
arguments?: string;
|
|
73
|
+
/**
|
|
74
|
+
* @example
|
|
75
|
+
* discoverMetadata
|
|
76
|
+
*/
|
|
61
77
|
name?: string;
|
|
62
78
|
static names(): { [key: string]: string } {
|
|
63
79
|
return {
|
|
@@ -84,7 +100,15 @@ export class AguiMessageToolCallsFunction extends $dara.Model {
|
|
|
84
100
|
|
|
85
101
|
export class AguiMessageToolCalls extends $dara.Model {
|
|
86
102
|
function?: AguiMessageToolCallsFunction;
|
|
103
|
+
/**
|
|
104
|
+
* @example
|
|
105
|
+
* call_xxx
|
|
106
|
+
*/
|
|
87
107
|
id?: string;
|
|
108
|
+
/**
|
|
109
|
+
* @example
|
|
110
|
+
* function
|
|
111
|
+
*/
|
|
88
112
|
type?: string;
|
|
89
113
|
static names(): { [key: string]: string } {
|
|
90
114
|
return {
|
|
@@ -116,9 +140,21 @@ export class AguiMessageToolCalls extends $dara.Model {
|
|
|
116
140
|
|
|
117
141
|
export class AguiMessage extends $dara.Model {
|
|
118
142
|
content?: string;
|
|
143
|
+
/**
|
|
144
|
+
* @example
|
|
145
|
+
* msg_123456_a1b2c3d4
|
|
146
|
+
*/
|
|
119
147
|
id?: string;
|
|
120
148
|
metadata?: AguiMessageMetadata;
|
|
149
|
+
/**
|
|
150
|
+
* @example
|
|
151
|
+
* assistant
|
|
152
|
+
*/
|
|
121
153
|
role?: string;
|
|
154
|
+
/**
|
|
155
|
+
* @example
|
|
156
|
+
* call_xxx
|
|
157
|
+
*/
|
|
122
158
|
toolCallId?: string;
|
|
123
159
|
toolCalls?: AguiMessageToolCalls[];
|
|
124
160
|
static names(): { [key: string]: string } {
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { Content } from "./Content";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class AskLumaLogEntry extends $dara.Model {
|
|
7
|
+
/**
|
|
8
|
+
* @example
|
|
9
|
+
* my-agent
|
|
10
|
+
*/
|
|
11
|
+
agentName?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @example
|
|
14
|
+
* false
|
|
15
|
+
*/
|
|
16
|
+
clarificationNeeded?: boolean;
|
|
17
|
+
clarificationQuestion?: string;
|
|
18
|
+
content?: Content;
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* conv_xxx
|
|
22
|
+
*/
|
|
23
|
+
conversationId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* 1717200000000
|
|
27
|
+
*/
|
|
28
|
+
createdAt?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @example
|
|
31
|
+
* 3200
|
|
32
|
+
*/
|
|
33
|
+
durationMs?: number;
|
|
34
|
+
/**
|
|
35
|
+
* @example
|
|
36
|
+
* ExecutionFailed
|
|
37
|
+
*/
|
|
38
|
+
errorCode?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @example
|
|
41
|
+
* Agent with name \\"xxx\\" not found for account 1186xxx
|
|
42
|
+
*/
|
|
43
|
+
errorMessage?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @example
|
|
46
|
+
* false
|
|
47
|
+
*/
|
|
48
|
+
isError?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* @example
|
|
51
|
+
* msg_xxx
|
|
52
|
+
*/
|
|
53
|
+
messageId?: string;
|
|
54
|
+
question?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @example
|
|
57
|
+
* MCP, CHAT
|
|
58
|
+
*/
|
|
59
|
+
source?: string;
|
|
60
|
+
/**
|
|
61
|
+
* @example
|
|
62
|
+
* RUNNING, SUCCEEDED, FAILED, TIMEOUT
|
|
63
|
+
*/
|
|
64
|
+
status?: string;
|
|
65
|
+
static names(): { [key: string]: string } {
|
|
66
|
+
return {
|
|
67
|
+
agentName: 'AgentName',
|
|
68
|
+
clarificationNeeded: 'ClarificationNeeded',
|
|
69
|
+
clarificationQuestion: 'ClarificationQuestion',
|
|
70
|
+
content: 'Content',
|
|
71
|
+
conversationId: 'ConversationId',
|
|
72
|
+
createdAt: 'CreatedAt',
|
|
73
|
+
durationMs: 'DurationMs',
|
|
74
|
+
errorCode: 'ErrorCode',
|
|
75
|
+
errorMessage: 'ErrorMessage',
|
|
76
|
+
isError: 'IsError',
|
|
77
|
+
messageId: 'MessageId',
|
|
78
|
+
question: 'Question',
|
|
79
|
+
source: 'Source',
|
|
80
|
+
status: 'Status',
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
static types(): { [key: string]: any } {
|
|
85
|
+
return {
|
|
86
|
+
agentName: 'string',
|
|
87
|
+
clarificationNeeded: 'boolean',
|
|
88
|
+
clarificationQuestion: 'string',
|
|
89
|
+
content: Content,
|
|
90
|
+
conversationId: 'string',
|
|
91
|
+
createdAt: 'string',
|
|
92
|
+
durationMs: 'number',
|
|
93
|
+
errorCode: 'string',
|
|
94
|
+
errorMessage: 'string',
|
|
95
|
+
isError: 'boolean',
|
|
96
|
+
messageId: 'string',
|
|
97
|
+
question: 'string',
|
|
98
|
+
source: 'string',
|
|
99
|
+
status: 'string',
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
validate() {
|
|
104
|
+
if(this.content && typeof (this.content as any).validate === 'function') {
|
|
105
|
+
(this.content as any).validate();
|
|
106
|
+
}
|
|
107
|
+
super.validate();
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
constructor(map?: { [key: string]: any }) {
|
|
111
|
+
super(map);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class AskLumaRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* demo-luma-agent
|
|
12
|
+
*/
|
|
13
|
+
agentName?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @example
|
|
16
|
+
* conv_1474xxx32_593b9d08-9
|
|
17
|
+
*/
|
|
18
|
+
conversationId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* 100
|
|
22
|
+
*/
|
|
23
|
+
maxRows?: number;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* This parameter is required.
|
|
27
|
+
*/
|
|
28
|
+
question?: string;
|
|
29
|
+
static names(): { [key: string]: string } {
|
|
30
|
+
return {
|
|
31
|
+
agentName: 'AgentName',
|
|
32
|
+
conversationId: 'ConversationId',
|
|
33
|
+
maxRows: 'MaxRows',
|
|
34
|
+
question: 'Question',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static types(): { [key: string]: any } {
|
|
39
|
+
return {
|
|
40
|
+
agentName: 'string',
|
|
41
|
+
conversationId: 'string',
|
|
42
|
+
maxRows: 'number',
|
|
43
|
+
question: 'string',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
validate() {
|
|
48
|
+
super.validate();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
constructor(map?: { [key: string]: any }) {
|
|
52
|
+
super(map);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { AskLumaResponseBody } from "./AskLumaResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class AskLumaResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: AskLumaResponseBody;
|
|
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: AskLumaResponseBody,
|
|
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,59 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { AskLumaResult } from "./AskLumaResult";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class AskLumaResponseBody extends $dara.Model {
|
|
7
|
+
/**
|
|
8
|
+
* @example
|
|
9
|
+
* AgentNotFound
|
|
10
|
+
*/
|
|
11
|
+
code?: string;
|
|
12
|
+
data?: AskLumaResult;
|
|
13
|
+
/**
|
|
14
|
+
* @example
|
|
15
|
+
* Agent with name \\"xxx\\" not found for account 1186xxx
|
|
16
|
+
*/
|
|
17
|
+
message?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @example
|
|
20
|
+
* 97FB3BAE-XXXXXX-36435495B7EB
|
|
21
|
+
*/
|
|
22
|
+
requestId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @example
|
|
25
|
+
* true
|
|
26
|
+
*/
|
|
27
|
+
success?: boolean;
|
|
28
|
+
static names(): { [key: string]: string } {
|
|
29
|
+
return {
|
|
30
|
+
code: 'Code',
|
|
31
|
+
data: 'Data',
|
|
32
|
+
message: 'Message',
|
|
33
|
+
requestId: 'RequestId',
|
|
34
|
+
success: 'Success',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static types(): { [key: string]: any } {
|
|
39
|
+
return {
|
|
40
|
+
code: 'string',
|
|
41
|
+
data: AskLumaResult,
|
|
42
|
+
message: 'string',
|
|
43
|
+
requestId: 'string',
|
|
44
|
+
success: 'boolean',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
validate() {
|
|
49
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
50
|
+
(this.data as any).validate();
|
|
51
|
+
}
|
|
52
|
+
super.validate();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
constructor(map?: { [key: string]: any }) {
|
|
56
|
+
super(map);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { Constraints } from "./Constraints";
|
|
4
|
+
import { Content } from "./Content";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class AskLumaResult extends $dara.Model {
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* false
|
|
11
|
+
*/
|
|
12
|
+
clarificationNeeded?: boolean;
|
|
13
|
+
clarificationQuestion?: string;
|
|
14
|
+
constraints?: Constraints;
|
|
15
|
+
content?: Content;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* conv_xxx
|
|
19
|
+
*/
|
|
20
|
+
conversationId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* ExecutionFailed, Timeout, RateLimited, InternalError, ConversationExpired
|
|
24
|
+
*/
|
|
25
|
+
errorCode?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* Agent with name \\"xxx\\" not found for account 1186xxx
|
|
29
|
+
*/
|
|
30
|
+
errorMessage?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* false
|
|
34
|
+
*/
|
|
35
|
+
isError?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* msg_xxx
|
|
39
|
+
*/
|
|
40
|
+
messageId?: string;
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* RUNNING, SUCCEEDED, FAILED, TIMEOUT
|
|
44
|
+
*/
|
|
45
|
+
status?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @example
|
|
48
|
+
* true
|
|
49
|
+
*/
|
|
50
|
+
storageTruncated?: boolean;
|
|
51
|
+
static names(): { [key: string]: string } {
|
|
52
|
+
return {
|
|
53
|
+
clarificationNeeded: 'ClarificationNeeded',
|
|
54
|
+
clarificationQuestion: 'ClarificationQuestion',
|
|
55
|
+
constraints: 'Constraints',
|
|
56
|
+
content: 'Content',
|
|
57
|
+
conversationId: 'ConversationId',
|
|
58
|
+
errorCode: 'ErrorCode',
|
|
59
|
+
errorMessage: 'ErrorMessage',
|
|
60
|
+
isError: 'IsError',
|
|
61
|
+
messageId: 'MessageId',
|
|
62
|
+
status: 'Status',
|
|
63
|
+
storageTruncated: 'StorageTruncated',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static types(): { [key: string]: any } {
|
|
68
|
+
return {
|
|
69
|
+
clarificationNeeded: 'boolean',
|
|
70
|
+
clarificationQuestion: 'string',
|
|
71
|
+
constraints: Constraints,
|
|
72
|
+
content: Content,
|
|
73
|
+
conversationId: 'string',
|
|
74
|
+
errorCode: 'string',
|
|
75
|
+
errorMessage: 'string',
|
|
76
|
+
isError: 'boolean',
|
|
77
|
+
messageId: 'string',
|
|
78
|
+
status: 'string',
|
|
79
|
+
storageTruncated: 'boolean',
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
validate() {
|
|
84
|
+
if(this.constraints && typeof (this.constraints as any).validate === 'function') {
|
|
85
|
+
(this.constraints as any).validate();
|
|
86
|
+
}
|
|
87
|
+
if(this.content && typeof (this.content as any).validate === 'function') {
|
|
88
|
+
(this.content as any).validate();
|
|
89
|
+
}
|
|
90
|
+
super.validate();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
constructor(map?: { [key: string]: any }) {
|
|
94
|
+
super(map);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class Constraints extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 1717200000000
|
|
9
|
+
*/
|
|
10
|
+
beginTime?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 1717200000000
|
|
14
|
+
*/
|
|
15
|
+
endTime?: number;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
beginTime: 'BeginTime',
|
|
19
|
+
endTime: 'EndTime',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
beginTime: 'number',
|
|
26
|
+
endTime: 'number',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { AguiMessage } from "./AguiMessage";
|
|
4
|
+
import { QueryAttachment } from "./QueryAttachment";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class Content extends $dara.Model {
|
|
8
|
+
messageAttachments?: AguiMessage[];
|
|
9
|
+
queryAttachments?: QueryAttachment[];
|
|
10
|
+
textAttachments?: string[];
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
messageAttachments: 'MessageAttachments',
|
|
14
|
+
queryAttachments: 'QueryAttachments',
|
|
15
|
+
textAttachments: 'TextAttachments',
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static types(): { [key: string]: any } {
|
|
20
|
+
return {
|
|
21
|
+
messageAttachments: { 'type': 'array', 'itemType': AguiMessage },
|
|
22
|
+
queryAttachments: { 'type': 'array', 'itemType': QueryAttachment },
|
|
23
|
+
textAttachments: { 'type': 'array', 'itemType': 'string' },
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
validate() {
|
|
28
|
+
if(Array.isArray(this.messageAttachments)) {
|
|
29
|
+
$dara.Model.validateArray(this.messageAttachments);
|
|
30
|
+
}
|
|
31
|
+
if(Array.isArray(this.queryAttachments)) {
|
|
32
|
+
$dara.Model.validateArray(this.queryAttachments);
|
|
33
|
+
}
|
|
34
|
+
if(Array.isArray(this.textAttachments)) {
|
|
35
|
+
$dara.Model.validateArray(this.textAttachments);
|
|
36
|
+
}
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateAgentRequestMetadataAttachments extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* acs:eventbridge:cn-hangzhou:12345:eventhouse/system-rocketmq/namespace/rmq-cn-XXX/table/order
|
|
9
|
+
*/
|
|
10
|
+
arn?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* inner-resource/event-table
|
|
14
|
+
*/
|
|
15
|
+
mimeType?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
arn: 'Arn',
|
|
19
|
+
mimeType: 'MimeType',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
arn: 'string',
|
|
26
|
+
mimeType: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class CreateAgentRequestMetadata extends $dara.Model {
|
|
40
|
+
attachments?: CreateAgentRequestMetadataAttachments[];
|
|
41
|
+
static names(): { [key: string]: string } {
|
|
42
|
+
return {
|
|
43
|
+
attachments: 'Attachments',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static types(): { [key: string]: any } {
|
|
48
|
+
return {
|
|
49
|
+
attachments: { 'type': 'array', 'itemType': CreateAgentRequestMetadataAttachments },
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
validate() {
|
|
54
|
+
if(Array.isArray(this.attachments)) {
|
|
55
|
+
$dara.Model.validateArray(this.attachments);
|
|
56
|
+
}
|
|
57
|
+
super.validate();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
constructor(map?: { [key: string]: any }) {
|
|
61
|
+
super(map);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export class CreateAgentRequest extends $dara.Model {
|
|
66
|
+
description?: string;
|
|
67
|
+
metadata?: CreateAgentRequestMetadata;
|
|
68
|
+
/**
|
|
69
|
+
* @example
|
|
70
|
+
* my-agent
|
|
71
|
+
*/
|
|
72
|
+
name?: string;
|
|
73
|
+
prompt?: string;
|
|
74
|
+
static names(): { [key: string]: string } {
|
|
75
|
+
return {
|
|
76
|
+
description: 'Description',
|
|
77
|
+
metadata: 'Metadata',
|
|
78
|
+
name: 'Name',
|
|
79
|
+
prompt: 'Prompt',
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
static types(): { [key: string]: any } {
|
|
84
|
+
return {
|
|
85
|
+
description: 'string',
|
|
86
|
+
metadata: CreateAgentRequestMetadata,
|
|
87
|
+
name: 'string',
|
|
88
|
+
prompt: 'string',
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
validate() {
|
|
93
|
+
if(this.metadata && typeof (this.metadata as any).validate === 'function') {
|
|
94
|
+
(this.metadata as any).validate();
|
|
95
|
+
}
|
|
96
|
+
super.validate();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
constructor(map?: { [key: string]: any }) {
|
|
100
|
+
super(map);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateAgentResponseBody } from "./CreateAgentResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateAgentResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateAgentResponseBody;
|
|
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: CreateAgentResponseBody,
|
|
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
|
+
|