@alicloud/agentcore20260804 2.2.1 → 2.3.1

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 (105) hide show
  1. package/dist/client.d.ts +148 -2
  2. package/dist/client.js +284 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateCustomAgentRequest.d.ts +765 -0
  5. package/dist/models/CreateCustomAgentRequest.js +591 -0
  6. package/dist/models/CreateCustomAgentRequest.js.map +1 -0
  7. package/dist/models/CreateCustomAgentResponse.d.ts +19 -0
  8. package/dist/models/CreateCustomAgentResponse.js +69 -0
  9. package/dist/models/CreateCustomAgentResponse.js.map +1 -0
  10. package/dist/models/CreateCustomAgentResponseBody.d.ts +923 -0
  11. package/dist/models/CreateCustomAgentResponseBody.js +652 -0
  12. package/dist/models/CreateCustomAgentResponseBody.js.map +1 -0
  13. package/dist/models/CreateCustomAgentShrinkRequest.d.ts +26 -0
  14. package/dist/models/CreateCustomAgentShrinkRequest.js +60 -0
  15. package/dist/models/CreateCustomAgentShrinkRequest.js.map +1 -0
  16. package/dist/models/CreateExternalAgentRequest.d.ts +61 -14
  17. package/dist/models/CreateExternalAgentRequest.js +29 -1
  18. package/dist/models/CreateExternalAgentRequest.js.map +1 -1
  19. package/dist/models/CreateExternalAgentResponseBody.d.ts +171 -39
  20. package/dist/models/CreateExternalAgentResponseBody.js +89 -1
  21. package/dist/models/CreateExternalAgentResponseBody.js.map +1 -1
  22. package/dist/models/CreateExternalAgentShrinkRequest.d.ts +1 -1
  23. package/dist/models/DeleteCustomAgentRequest.d.ts +13 -0
  24. package/dist/models/DeleteCustomAgentRequest.js +54 -0
  25. package/dist/models/DeleteCustomAgentRequest.js.map +1 -0
  26. package/dist/models/DeleteCustomAgentResponse.d.ts +19 -0
  27. package/dist/models/DeleteCustomAgentResponse.js +69 -0
  28. package/dist/models/DeleteCustomAgentResponse.js.map +1 -0
  29. package/dist/models/DeleteCustomAgentResponseBody.d.ts +155 -0
  30. package/dist/models/DeleteCustomAgentResponseBody.js +110 -0
  31. package/dist/models/DeleteCustomAgentResponseBody.js.map +1 -0
  32. package/dist/models/GetCustomAgentRequest.d.ts +13 -0
  33. package/dist/models/GetCustomAgentRequest.js +54 -0
  34. package/dist/models/GetCustomAgentRequest.js.map +1 -0
  35. package/dist/models/GetCustomAgentResponse.d.ts +19 -0
  36. package/dist/models/GetCustomAgentResponse.js +69 -0
  37. package/dist/models/GetCustomAgentResponse.js.map +1 -0
  38. package/dist/models/GetCustomAgentResponseBody.d.ts +655 -0
  39. package/dist/models/GetCustomAgentResponseBody.js +652 -0
  40. package/dist/models/GetCustomAgentResponseBody.js.map +1 -0
  41. package/dist/models/GetExternalAgentResponseBody.d.ts +164 -43
  42. package/dist/models/GetExternalAgentResponseBody.js +89 -1
  43. package/dist/models/GetExternalAgentResponseBody.js.map +1 -1
  44. package/dist/models/ListCustomAgentsRequest.d.ts +29 -0
  45. package/dist/models/ListCustomAgentsRequest.js +60 -0
  46. package/dist/models/ListCustomAgentsRequest.js.map +1 -0
  47. package/dist/models/ListCustomAgentsResponse.d.ts +19 -0
  48. package/dist/models/ListCustomAgentsResponse.js +69 -0
  49. package/dist/models/ListCustomAgentsResponse.js.map +1 -0
  50. package/dist/models/ListCustomAgentsResponseBody.d.ts +248 -0
  51. package/dist/models/ListCustomAgentsResponseBody.js +171 -0
  52. package/dist/models/ListCustomAgentsResponseBody.js.map +1 -0
  53. package/dist/models/ListUsersRequest.d.ts +12 -4
  54. package/dist/models/ListUsersRequest.js +2 -0
  55. package/dist/models/ListUsersRequest.js.map +1 -1
  56. package/dist/models/ListUsersResponseBody.d.ts +14 -14
  57. package/dist/models/UpdateCustomAgentRequest.d.ts +757 -0
  58. package/dist/models/UpdateCustomAgentRequest.js +591 -0
  59. package/dist/models/UpdateCustomAgentRequest.js.map +1 -0
  60. package/dist/models/UpdateCustomAgentResponse.d.ts +19 -0
  61. package/dist/models/UpdateCustomAgentResponse.js +69 -0
  62. package/dist/models/UpdateCustomAgentResponse.js.map +1 -0
  63. package/dist/models/UpdateCustomAgentResponseBody.d.ts +910 -0
  64. package/dist/models/UpdateCustomAgentResponseBody.js +652 -0
  65. package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -0
  66. package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +26 -0
  67. package/dist/models/UpdateCustomAgentShrinkRequest.js +60 -0
  68. package/dist/models/UpdateCustomAgentShrinkRequest.js.map +1 -0
  69. package/dist/models/UpdateExternalAgentRequest.d.ts +59 -12
  70. package/dist/models/UpdateExternalAgentRequest.js +29 -1
  71. package/dist/models/UpdateExternalAgentRequest.js.map +1 -1
  72. package/dist/models/UpdateExternalAgentResponseBody.d.ts +175 -34
  73. package/dist/models/UpdateExternalAgentResponseBody.js +89 -1
  74. package/dist/models/UpdateExternalAgentResponseBody.js.map +1 -1
  75. package/dist/models/model.d.ts +135 -0
  76. package/dist/models/model.js +337 -65
  77. package/dist/models/model.js.map +1 -1
  78. package/package.json +1 -1
  79. package/src/client.ts +303 -2
  80. package/src/models/CreateCustomAgentRequest.ts +1129 -0
  81. package/src/models/CreateCustomAgentResponse.ts +40 -0
  82. package/src/models/CreateCustomAgentResponseBody.ts +1337 -0
  83. package/src/models/CreateCustomAgentShrinkRequest.ts +41 -0
  84. package/src/models/CreateExternalAgentRequest.ts +80 -14
  85. package/src/models/CreateExternalAgentResponseBody.ts +232 -39
  86. package/src/models/CreateExternalAgentShrinkRequest.ts +1 -1
  87. package/src/models/DeleteCustomAgentRequest.ts +24 -0
  88. package/src/models/DeleteCustomAgentResponse.ts +40 -0
  89. package/src/models/DeleteCustomAgentResponseBody.ts +211 -0
  90. package/src/models/GetCustomAgentRequest.ts +24 -0
  91. package/src/models/GetCustomAgentResponse.ts +40 -0
  92. package/src/models/GetCustomAgentResponseBody.ts +1069 -0
  93. package/src/models/GetExternalAgentResponseBody.ts +225 -43
  94. package/src/models/ListCustomAgentsRequest.ts +44 -0
  95. package/src/models/ListCustomAgentsResponse.ts +40 -0
  96. package/src/models/ListCustomAgentsResponseBody.ts +345 -0
  97. package/src/models/ListUsersRequest.ts +14 -4
  98. package/src/models/ListUsersResponseBody.ts +14 -14
  99. package/src/models/UpdateCustomAgentRequest.ts +1121 -0
  100. package/src/models/UpdateCustomAgentResponse.ts +40 -0
  101. package/src/models/UpdateCustomAgentResponseBody.ts +1324 -0
  102. package/src/models/UpdateCustomAgentShrinkRequest.ts +41 -0
  103. package/src/models/UpdateExternalAgentRequest.ts +78 -12
  104. package/src/models/UpdateExternalAgentResponseBody.ts +236 -34
  105. package/src/models/model.ts +135 -0
@@ -0,0 +1,211 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DeleteCustomAgentResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The unique identifier of the custom agent. You can retrieve it from the response of CreateCustomAgent or ListCustomAgents.
9
+ *
10
+ * @example
11
+ * agent-550e8400e29b41d4a716446655440000
12
+ */
13
+ agentId?: string;
14
+ /**
15
+ * @remarks
16
+ * The creation method of the agent. The value is CUSTOM for custom agents.
17
+ *
18
+ * @example
19
+ * CUSTOM
20
+ */
21
+ createMode?: string;
22
+ /**
23
+ * @remarks
24
+ * The time when the agent was created. The time is in ISO 8601 format. A trailing Z indicates the UTC time zone. Fractional seconds may be included.
25
+ *
26
+ * @example
27
+ * 2026-10-10T06:00:00Z
28
+ */
29
+ createdAt?: string;
30
+ /**
31
+ * @remarks
32
+ * The deployment method of the agent. Custom agents are deployed and managed by the platform, and the value is MANAGED.
33
+ *
34
+ * @example
35
+ * MANAGED
36
+ */
37
+ deployType?: string;
38
+ /**
39
+ * @remarks
40
+ * The description of the agent\\"s purpose.
41
+ *
42
+ * @example
43
+ * Custom agent that provides conversation services
44
+ */
45
+ description?: string;
46
+ /**
47
+ * @remarks
48
+ * The latest configuration version number. Updates with the same configuration may retain the original version number. This field does not indicate that the configuration has taken effect.
49
+ *
50
+ * @example
51
+ * 1
52
+ */
53
+ latestSpecVersion?: number;
54
+ /**
55
+ * @remarks
56
+ * The name of the custom agent.
57
+ *
58
+ * @example
59
+ * my-custom-agent
60
+ */
61
+ name?: string;
62
+ /**
63
+ * @remarks
64
+ * The compute specifications of the agent. Valid values: INTERACTIVE, STANDARD, and HEAVY.
65
+ *
66
+ * @example
67
+ * STANDARD
68
+ */
69
+ runtime?: string;
70
+ /**
71
+ * @remarks
72
+ * The overall status of the agent. Valid values: Creating: The agent is being created. Running: The agent is running. Failed: The agent failed. Updating: The agent is being updated. Deleting: The agent is being deleted. Deleted: The agent is deleted. To query the execution progress of the latest configuration, call GetCustomAgent.
73
+ *
74
+ * @example
75
+ * Running
76
+ */
77
+ status?: string;
78
+ /**
79
+ * @remarks
80
+ * The time when the agent was last updated. The time is in ISO 8601 format. A trailing Z indicates the UTC time zone. Fractional seconds may be included.
81
+ *
82
+ * @example
83
+ * 2026-10-10T06:05:00Z
84
+ */
85
+ updatedAt?: string;
86
+ /**
87
+ * @remarks
88
+ * The ID of the workspace to which the custom agent belongs.
89
+ *
90
+ * @example
91
+ * ws-a1b2c3d4e5f6
92
+ */
93
+ workspaceId?: string;
94
+ static names(): { [key: string]: string } {
95
+ return {
96
+ agentId: 'agentId',
97
+ createMode: 'createMode',
98
+ createdAt: 'createdAt',
99
+ deployType: 'deployType',
100
+ description: 'description',
101
+ latestSpecVersion: 'latestSpecVersion',
102
+ name: 'name',
103
+ runtime: 'runtime',
104
+ status: 'status',
105
+ updatedAt: 'updatedAt',
106
+ workspaceId: 'workspaceId',
107
+ };
108
+ }
109
+
110
+ static types(): { [key: string]: any } {
111
+ return {
112
+ agentId: 'string',
113
+ createMode: 'string',
114
+ createdAt: 'string',
115
+ deployType: 'string',
116
+ description: 'string',
117
+ latestSpecVersion: 'number',
118
+ name: 'string',
119
+ runtime: 'string',
120
+ status: 'string',
121
+ updatedAt: 'string',
122
+ workspaceId: 'string',
123
+ };
124
+ }
125
+
126
+ validate() {
127
+ super.validate();
128
+ }
129
+
130
+ constructor(map?: { [key: string]: any }) {
131
+ super(map);
132
+ }
133
+ }
134
+
135
+ export class DeleteCustomAgentResponseBody extends $dara.Model {
136
+ /**
137
+ * @remarks
138
+ * The result code of the request. The value is SUCCESS if the request is successful.
139
+ *
140
+ * @example
141
+ * SUCCESS
142
+ */
143
+ code?: string;
144
+ /**
145
+ * @remarks
146
+ * The summary of the custom agent whose deletion is accepted. The runtime resources are subsequently cleaned up in the background.
147
+ */
148
+ data?: DeleteCustomAgentResponseBodyData;
149
+ /**
150
+ * @remarks
151
+ * The HTTP status code of the request. The value is 200 if the request is successful.
152
+ *
153
+ * @example
154
+ * 200
155
+ */
156
+ httpStatusCode?: number;
157
+ /**
158
+ * @remarks
159
+ * The processing result message of the request. The value is success if the request is successful.
160
+ *
161
+ * @example
162
+ * success
163
+ */
164
+ message?: string;
165
+ /**
166
+ * @remarks
167
+ * The unique identifier of the request. You can use this ID to locate and troubleshoot issues.
168
+ *
169
+ * @example
170
+ * 550E8400-E29B-41D4-A716-446655440000
171
+ */
172
+ requestId?: string;
173
+ /**
174
+ * @remarks
175
+ * Indicates whether the request was processed successfully. A value of true indicates that the request was processed successfully. A successful creation, update, or deletion does not mean that the background operation is complete.
176
+ */
177
+ success?: boolean;
178
+ static names(): { [key: string]: string } {
179
+ return {
180
+ code: 'code',
181
+ data: 'data',
182
+ httpStatusCode: 'httpStatusCode',
183
+ message: 'message',
184
+ requestId: 'requestId',
185
+ success: 'success',
186
+ };
187
+ }
188
+
189
+ static types(): { [key: string]: any } {
190
+ return {
191
+ code: 'string',
192
+ data: DeleteCustomAgentResponseBodyData,
193
+ httpStatusCode: 'number',
194
+ message: 'string',
195
+ requestId: 'string',
196
+ success: 'boolean',
197
+ };
198
+ }
199
+
200
+ validate() {
201
+ if(this.data && typeof (this.data as any).validate === 'function') {
202
+ (this.data as any).validate();
203
+ }
204
+ super.validate();
205
+ }
206
+
207
+ constructor(map?: { [key: string]: any }) {
208
+ super(map);
209
+ }
210
+ }
211
+
@@ -0,0 +1,24 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetCustomAgentRequest extends $dara.Model {
6
+ static names(): { [key: string]: string } {
7
+ return {
8
+ };
9
+ }
10
+
11
+ static types(): { [key: string]: any } {
12
+ return {
13
+ };
14
+ }
15
+
16
+ validate() {
17
+ super.validate();
18
+ }
19
+
20
+ constructor(map?: { [key: string]: any }) {
21
+ super(map);
22
+ }
23
+ }
24
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GetCustomAgentResponseBody } from "./GetCustomAgentResponseBody";
4
+
5
+
6
+ export class GetCustomAgentResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetCustomAgentResponseBody;
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: GetCustomAgentResponseBody,
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
+