@alicloud/agentloop20260520 2.7.1 → 2.8.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 +110 -2
- package/dist/client.js +167 -2
- package/dist/client.js.map +1 -1
- package/dist/models/AddAuditConversionSourceRequest.d.ts +13 -0
- package/dist/models/AddAuditConversionSourceRequest.js +54 -0
- package/dist/models/AddAuditConversionSourceRequest.js.map +1 -0
- package/dist/models/AddAuditConversionSourceResponse.d.ts +17 -0
- package/dist/models/AddAuditConversionSourceResponse.js +63 -0
- package/dist/models/AddAuditConversionSourceResponse.js.map +1 -0
- package/dist/models/ExperimentConfig.d.ts +3 -0
- package/dist/models/ExperimentConfig.js.map +1 -1
- package/dist/models/GetAuditConversionSourceRequest.d.ts +13 -0
- package/dist/models/GetAuditConversionSourceRequest.js +54 -0
- package/dist/models/GetAuditConversionSourceRequest.js.map +1 -0
- package/dist/models/GetAuditConversionSourceResponse.d.ts +19 -0
- package/dist/models/GetAuditConversionSourceResponse.js +69 -0
- package/dist/models/GetAuditConversionSourceResponse.js.map +1 -0
- package/dist/models/GetAuditConversionSourceResponseBody.d.ts +35 -0
- package/dist/models/GetAuditConversionSourceResponseBody.js +60 -0
- package/dist/models/GetAuditConversionSourceResponseBody.js.map +1 -0
- package/dist/models/GetContextStoreResponseBody.d.ts +49 -49
- package/dist/models/ListContextStoresRequest.d.ts +3 -3
- package/dist/models/ListContextStoresResponseBody.d.ts +8 -8
- package/dist/models/RemoveAuditConversionSourceRequest.d.ts +13 -0
- package/dist/models/RemoveAuditConversionSourceRequest.js +54 -0
- package/dist/models/RemoveAuditConversionSourceRequest.js.map +1 -0
- package/dist/models/RemoveAuditConversionSourceResponse.d.ts +17 -0
- package/dist/models/RemoveAuditConversionSourceResponse.js +63 -0
- package/dist/models/RemoveAuditConversionSourceResponse.js.map +1 -0
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +20 -6
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +173 -2
- package/src/models/AddAuditConversionSourceRequest.ts +24 -0
- package/src/models/AddAuditConversionSourceResponse.ts +33 -0
- package/src/models/ExperimentConfig.ts +3 -0
- package/src/models/GetAuditConversionSourceRequest.ts +24 -0
- package/src/models/GetAuditConversionSourceResponse.ts +40 -0
- package/src/models/GetAuditConversionSourceResponseBody.ts +50 -0
- package/src/models/GetContextStoreResponseBody.ts +49 -49
- package/src/models/ListContextStoresRequest.ts +3 -3
- package/src/models/ListContextStoresResponseBody.ts +8 -8
- package/src/models/RemoveAuditConversionSourceRequest.ts +24 -0
- package/src/models/RemoveAuditConversionSourceResponse.ts +33 -0
- package/src/models/model.ts +7 -0
package/dist/client.d.ts
CHANGED
|
@@ -8,6 +8,44 @@ export default class Client extends OpenApi {
|
|
|
8
8
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
9
9
|
[key: string]: string;
|
|
10
10
|
}, endpoint: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* Adds an audit transformation object to the list.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* ## Request description
|
|
16
|
+
* - PUT /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} contains only three required path parameters and no JSON request body or query parameters.
|
|
17
|
+
* - Data is isolated by the complete tenant key consisting of user_id, agent_space, and region_id. The agentSpace parameter is obtained from the path. The user ID and region are obtained from the trusted identity headers of the gateway. The region header is X-Acs-System-Region-Id and cannot be overridden by the request body or query parameters. The service verifies the access permissions for the AgentSpace and the region matching.
|
|
18
|
+
* - If type is set to gateway, only configJson.audit_enabled_gateway_instances is modified. If type is set to trace, only configJson.audit_enabled_trace_apps is modified. Other fields in the configuration remain unchanged.
|
|
19
|
+
* - Each list can contain a maximum of 100 distinct objects. The total number of UTF-8 bytes for all IDs after normalization cannot exceed 8,192. If the list limit is exceeded after the addition, a 400 InvalidParameter.Config error is returned. This limit is verified by the backend.
|
|
20
|
+
* - An HTTP 204 response with no response body indicates that the member is already in the selected state. The configuration is written upon the first addition. Repeated additions also return a 204 response without duplicate writes.
|
|
21
|
+
* - The addition operation only modifies the list membership and does not synchronously start the transformation task. The coordinator processes task changes asynchronously afterward. A 204 response does not indicate that the task has been started or is running properly.
|
|
22
|
+
* - The error response is an ErrorResponse object that includes requestId (the value of the request ID header, which may be an empty string if missing), code, and message. The HTTP status code and response body for errors are passed through exactly as returned by the backend.
|
|
23
|
+
*
|
|
24
|
+
* @param request - AddAuditConversionSourceRequest
|
|
25
|
+
* @param headers - map
|
|
26
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
27
|
+
* @returns AddAuditConversionSourceResponse
|
|
28
|
+
*/
|
|
29
|
+
addAuditConversionSourceWithOptions(agentSpace: string, type: string, instanceID: string, request: $_model.AddAuditConversionSourceRequest, headers: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.AddAuditConversionSourceResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Adds an audit transformation object to the list.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* ## Request description
|
|
37
|
+
* - PUT /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} contains only three required path parameters and no JSON request body or query parameters.
|
|
38
|
+
* - Data is isolated by the complete tenant key consisting of user_id, agent_space, and region_id. The agentSpace parameter is obtained from the path. The user ID and region are obtained from the trusted identity headers of the gateway. The region header is X-Acs-System-Region-Id and cannot be overridden by the request body or query parameters. The service verifies the access permissions for the AgentSpace and the region matching.
|
|
39
|
+
* - If type is set to gateway, only configJson.audit_enabled_gateway_instances is modified. If type is set to trace, only configJson.audit_enabled_trace_apps is modified. Other fields in the configuration remain unchanged.
|
|
40
|
+
* - Each list can contain a maximum of 100 distinct objects. The total number of UTF-8 bytes for all IDs after normalization cannot exceed 8,192. If the list limit is exceeded after the addition, a 400 InvalidParameter.Config error is returned. This limit is verified by the backend.
|
|
41
|
+
* - An HTTP 204 response with no response body indicates that the member is already in the selected state. The configuration is written upon the first addition. Repeated additions also return a 204 response without duplicate writes.
|
|
42
|
+
* - The addition operation only modifies the list membership and does not synchronously start the transformation task. The coordinator processes task changes asynchronously afterward. A 204 response does not indicate that the task has been started or is running properly.
|
|
43
|
+
* - The error response is an ErrorResponse object that includes requestId (the value of the request ID header, which may be an empty string if missing), code, and message. The HTTP status code and response body for errors are passed through exactly as returned by the backend.
|
|
44
|
+
*
|
|
45
|
+
* @param request - AddAuditConversionSourceRequest
|
|
46
|
+
* @returns AddAuditConversionSourceResponse
|
|
47
|
+
*/
|
|
48
|
+
addAuditConversionSource(agentSpace: string, type: string, instanceID: string, request: $_model.AddAuditConversionSourceRequest): Promise<$_model.AddAuditConversionSourceResponse>;
|
|
11
49
|
/**
|
|
12
50
|
* Appends structured data rows to a specified dataset without requiring the client to construct SQL statements.
|
|
13
51
|
*
|
|
@@ -624,6 +662,40 @@ export default class Client extends OpenApi {
|
|
|
624
662
|
* @returns GetAgentSpaceResponse
|
|
625
663
|
*/
|
|
626
664
|
getAgentSpace(agentSpace: string, request: $_model.GetAgentSpaceRequest): Promise<$_model.GetAgentSpaceResponse>;
|
|
665
|
+
/**
|
|
666
|
+
* Queries whether an audit transformation object is selected.
|
|
667
|
+
*
|
|
668
|
+
* @remarks
|
|
669
|
+
* ## Request description
|
|
670
|
+
* - GET /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} contains only three required path parameters, with no JSON request body or query parameters.
|
|
671
|
+
* - Isolated by the complete tenant key of user_id + agent_space + region_id. The agentSpace parameter comes from the path. The user ID and region come from the trusted identity headers of the gateway. The region header is X-Acs-System-Region-Id and cannot be overridden by the request body or query parameters. The service verifies the AgentSpace access permissions and region matching.
|
|
672
|
+
* - Reads only the transformation list of the corresponding type. It does not create audit configurations or check whether the transformation object is online or the transformation task is healthy.
|
|
673
|
+
* - An HTTP 200 response returns id and selected, excluding requestId. If the object is not selected or the current AgentSpace has no audit configuration, selected is false, and a 404 error is not returned.
|
|
674
|
+
* - The error response is ErrorResponse: requestId (the value of the request ID header, which may be an empty string if missing), code, and message. Error HTTP status codes and response bodies are passed through as-is from the backend.
|
|
675
|
+
*
|
|
676
|
+
* @param request - GetAuditConversionSourceRequest
|
|
677
|
+
* @param headers - map
|
|
678
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
679
|
+
* @returns GetAuditConversionSourceResponse
|
|
680
|
+
*/
|
|
681
|
+
getAuditConversionSourceWithOptions(agentSpace: string, type: string, instanceID: string, request: $_model.GetAuditConversionSourceRequest, headers: {
|
|
682
|
+
[key: string]: string;
|
|
683
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetAuditConversionSourceResponse>;
|
|
684
|
+
/**
|
|
685
|
+
* Queries whether an audit transformation object is selected.
|
|
686
|
+
*
|
|
687
|
+
* @remarks
|
|
688
|
+
* ## Request description
|
|
689
|
+
* - GET /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} contains only three required path parameters, with no JSON request body or query parameters.
|
|
690
|
+
* - Isolated by the complete tenant key of user_id + agent_space + region_id. The agentSpace parameter comes from the path. The user ID and region come from the trusted identity headers of the gateway. The region header is X-Acs-System-Region-Id and cannot be overridden by the request body or query parameters. The service verifies the AgentSpace access permissions and region matching.
|
|
691
|
+
* - Reads only the transformation list of the corresponding type. It does not create audit configurations or check whether the transformation object is online or the transformation task is healthy.
|
|
692
|
+
* - An HTTP 200 response returns id and selected, excluding requestId. If the object is not selected or the current AgentSpace has no audit configuration, selected is false, and a 404 error is not returned.
|
|
693
|
+
* - The error response is ErrorResponse: requestId (the value of the request ID header, which may be an empty string if missing), code, and message. Error HTTP status codes and response bodies are passed through as-is from the backend.
|
|
694
|
+
*
|
|
695
|
+
* @param request - GetAuditConversionSourceRequest
|
|
696
|
+
* @returns GetAuditConversionSourceResponse
|
|
697
|
+
*/
|
|
698
|
+
getAuditConversionSource(agentSpace: string, type: string, instanceID: string, request: $_model.GetAuditConversionSourceRequest): Promise<$_model.GetAuditConversionSourceResponse>;
|
|
627
699
|
/**
|
|
628
700
|
* Queries the context store.
|
|
629
701
|
*
|
|
@@ -937,7 +1009,7 @@ export default class Client extends OpenApi {
|
|
|
937
1009
|
*/
|
|
938
1010
|
listContextStoreAPIKeys(agentSpace: string, contextStoreName: string, request: $_model.ListContextStoreAPIKeysRequest): Promise<$_model.ListContextStoreAPIKeysResponse>;
|
|
939
1011
|
/**
|
|
940
|
-
* Queries
|
|
1012
|
+
* Queries a list of context stores.
|
|
941
1013
|
*
|
|
942
1014
|
* @param request - ListContextStoresRequest
|
|
943
1015
|
* @param headers - map
|
|
@@ -948,7 +1020,7 @@ export default class Client extends OpenApi {
|
|
|
948
1020
|
[key: string]: string;
|
|
949
1021
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListContextStoresResponse>;
|
|
950
1022
|
/**
|
|
951
|
-
* Queries
|
|
1023
|
+
* Queries a list of context stores.
|
|
952
1024
|
*
|
|
953
1025
|
* @param request - ListContextStoresRequest
|
|
954
1026
|
* @returns ListContextStoresResponse
|
|
@@ -1258,6 +1330,42 @@ export default class Client extends OpenApi {
|
|
|
1258
1330
|
* @returns PreviewPipelineResponse
|
|
1259
1331
|
*/
|
|
1260
1332
|
previewPipeline(agentSpace: string, request: $_model.PreviewPipelineRequest): Promise<$_model.PreviewPipelineResponse>;
|
|
1333
|
+
/**
|
|
1334
|
+
* Removes an audit transformation object from the list.
|
|
1335
|
+
*
|
|
1336
|
+
* @remarks
|
|
1337
|
+
* ## Request description
|
|
1338
|
+
* - The DELETE /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} operation includes only three required path parameters and does not contain a JSON request body or query parameters.
|
|
1339
|
+
* - Isolation is based on the complete tenant key that consists of user_id, agent_space, and region_id. The agentSpace parameter is obtained from the path. The user ID and region are obtained from the trusted identity headers of the gateway. The region header is X-Acs-System-Region-Id and cannot be overridden by the request body or query parameters. The service verifies the access permissions and region matching for the AgentSpace.
|
|
1340
|
+
* - If type is set to gateway, only the ID in configJson.audit_enabled_gateway_instances is removed. If type is set to trace, only the ID in configJson.audit_enabled_trace_apps is removed, and other configuration fields are retained.
|
|
1341
|
+
* - An HTTP 204 response with no response body indicates that the member is already in the unselected state. Repeated calls when the member is unselected also return 204 instead of 404. If the current AgentSpace does not have an audit configuration, no new configuration is created for the delete operation.
|
|
1342
|
+
* - The removal operation only modifies the list membership and does not synchronously stop the transformation task. After the actual change occurs, the coordinator asynchronously processes the task changes.
|
|
1343
|
+
* - The error response is an ErrorResponse object, which includes requestId (the value of the request ID header, which may be an empty string if missing), code, and message. Error HTTP status codes and response bodies are passed through as-is from the backend.
|
|
1344
|
+
*
|
|
1345
|
+
* @param request - RemoveAuditConversionSourceRequest
|
|
1346
|
+
* @param headers - map
|
|
1347
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1348
|
+
* @returns RemoveAuditConversionSourceResponse
|
|
1349
|
+
*/
|
|
1350
|
+
removeAuditConversionSourceWithOptions(agentSpace: string, type: string, instanceID: string, request: $_model.RemoveAuditConversionSourceRequest, headers: {
|
|
1351
|
+
[key: string]: string;
|
|
1352
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.RemoveAuditConversionSourceResponse>;
|
|
1353
|
+
/**
|
|
1354
|
+
* Removes an audit transformation object from the list.
|
|
1355
|
+
*
|
|
1356
|
+
* @remarks
|
|
1357
|
+
* ## Request description
|
|
1358
|
+
* - The DELETE /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} operation includes only three required path parameters and does not contain a JSON request body or query parameters.
|
|
1359
|
+
* - Isolation is based on the complete tenant key that consists of user_id, agent_space, and region_id. The agentSpace parameter is obtained from the path. The user ID and region are obtained from the trusted identity headers of the gateway. The region header is X-Acs-System-Region-Id and cannot be overridden by the request body or query parameters. The service verifies the access permissions and region matching for the AgentSpace.
|
|
1360
|
+
* - If type is set to gateway, only the ID in configJson.audit_enabled_gateway_instances is removed. If type is set to trace, only the ID in configJson.audit_enabled_trace_apps is removed, and other configuration fields are retained.
|
|
1361
|
+
* - An HTTP 204 response with no response body indicates that the member is already in the unselected state. Repeated calls when the member is unselected also return 204 instead of 404. If the current AgentSpace does not have an audit configuration, no new configuration is created for the delete operation.
|
|
1362
|
+
* - The removal operation only modifies the list membership and does not synchronously stop the transformation task. After the actual change occurs, the coordinator asynchronously processes the task changes.
|
|
1363
|
+
* - The error response is an ErrorResponse object, which includes requestId (the value of the request ID header, which may be an empty string if missing), code, and message. Error HTTP status codes and response bodies are passed through as-is from the backend.
|
|
1364
|
+
*
|
|
1365
|
+
* @param request - RemoveAuditConversionSourceRequest
|
|
1366
|
+
* @returns RemoveAuditConversionSourceResponse
|
|
1367
|
+
*/
|
|
1368
|
+
removeAuditConversionSource(agentSpace: string, type: string, instanceID: string, request: $_model.RemoveAuditConversionSourceRequest): Promise<$_model.RemoveAuditConversionSourceResponse>;
|
|
1261
1369
|
/**
|
|
1262
1370
|
* Resumes a pipeline.
|
|
1263
1371
|
*
|
package/dist/client.js
CHANGED
|
@@ -65,6 +65,63 @@ class Client extends openapi_core_1.default {
|
|
|
65
65
|
}
|
|
66
66
|
return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Adds an audit transformation object to the list.
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
* ## Request description
|
|
73
|
+
* - PUT /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} contains only three required path parameters and no JSON request body or query parameters.
|
|
74
|
+
* - Data is isolated by the complete tenant key consisting of user_id, agent_space, and region_id. The agentSpace parameter is obtained from the path. The user ID and region are obtained from the trusted identity headers of the gateway. The region header is X-Acs-System-Region-Id and cannot be overridden by the request body or query parameters. The service verifies the access permissions for the AgentSpace and the region matching.
|
|
75
|
+
* - If type is set to gateway, only configJson.audit_enabled_gateway_instances is modified. If type is set to trace, only configJson.audit_enabled_trace_apps is modified. Other fields in the configuration remain unchanged.
|
|
76
|
+
* - Each list can contain a maximum of 100 distinct objects. The total number of UTF-8 bytes for all IDs after normalization cannot exceed 8,192. If the list limit is exceeded after the addition, a 400 InvalidParameter.Config error is returned. This limit is verified by the backend.
|
|
77
|
+
* - An HTTP 204 response with no response body indicates that the member is already in the selected state. The configuration is written upon the first addition. Repeated additions also return a 204 response without duplicate writes.
|
|
78
|
+
* - The addition operation only modifies the list membership and does not synchronously start the transformation task. The coordinator processes task changes asynchronously afterward. A 204 response does not indicate that the task has been started or is running properly.
|
|
79
|
+
* - The error response is an ErrorResponse object that includes requestId (the value of the request ID header, which may be an empty string if missing), code, and message. The HTTP status code and response body for errors are passed through exactly as returned by the backend.
|
|
80
|
+
*
|
|
81
|
+
* @param request - AddAuditConversionSourceRequest
|
|
82
|
+
* @param headers - map
|
|
83
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
84
|
+
* @returns AddAuditConversionSourceResponse
|
|
85
|
+
*/
|
|
86
|
+
async addAuditConversionSourceWithOptions(agentSpace, type, instanceID, request, headers, runtime) {
|
|
87
|
+
request.validate();
|
|
88
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
89
|
+
headers: headers,
|
|
90
|
+
});
|
|
91
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
92
|
+
action: "AddAuditConversionSource",
|
|
93
|
+
version: "2026-05-20",
|
|
94
|
+
protocol: "HTTPS",
|
|
95
|
+
pathname: `/agentspace/${$dara.URL.percentEncode(agentSpace)}/audit/sources/${$dara.URL.percentEncode(type)}/${$dara.URL.percentEncode(instanceID)}`,
|
|
96
|
+
method: "PUT",
|
|
97
|
+
authType: "AK",
|
|
98
|
+
style: "ROA",
|
|
99
|
+
reqBodyType: "json",
|
|
100
|
+
bodyType: "none",
|
|
101
|
+
});
|
|
102
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddAuditConversionSourceResponse({}));
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Adds an audit transformation object to the list.
|
|
106
|
+
*
|
|
107
|
+
* @remarks
|
|
108
|
+
* ## Request description
|
|
109
|
+
* - PUT /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} contains only three required path parameters and no JSON request body or query parameters.
|
|
110
|
+
* - Data is isolated by the complete tenant key consisting of user_id, agent_space, and region_id. The agentSpace parameter is obtained from the path. The user ID and region are obtained from the trusted identity headers of the gateway. The region header is X-Acs-System-Region-Id and cannot be overridden by the request body or query parameters. The service verifies the access permissions for the AgentSpace and the region matching.
|
|
111
|
+
* - If type is set to gateway, only configJson.audit_enabled_gateway_instances is modified. If type is set to trace, only configJson.audit_enabled_trace_apps is modified. Other fields in the configuration remain unchanged.
|
|
112
|
+
* - Each list can contain a maximum of 100 distinct objects. The total number of UTF-8 bytes for all IDs after normalization cannot exceed 8,192. If the list limit is exceeded after the addition, a 400 InvalidParameter.Config error is returned. This limit is verified by the backend.
|
|
113
|
+
* - An HTTP 204 response with no response body indicates that the member is already in the selected state. The configuration is written upon the first addition. Repeated additions also return a 204 response without duplicate writes.
|
|
114
|
+
* - The addition operation only modifies the list membership and does not synchronously start the transformation task. The coordinator processes task changes asynchronously afterward. A 204 response does not indicate that the task has been started or is running properly.
|
|
115
|
+
* - The error response is an ErrorResponse object that includes requestId (the value of the request ID header, which may be an empty string if missing), code, and message. The HTTP status code and response body for errors are passed through exactly as returned by the backend.
|
|
116
|
+
*
|
|
117
|
+
* @param request - AddAuditConversionSourceRequest
|
|
118
|
+
* @returns AddAuditConversionSourceResponse
|
|
119
|
+
*/
|
|
120
|
+
async addAuditConversionSource(agentSpace, type, instanceID, request) {
|
|
121
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
122
|
+
let headers = {};
|
|
123
|
+
return await this.addAuditConversionSourceWithOptions(agentSpace, type, instanceID, request, headers, runtime);
|
|
124
|
+
}
|
|
68
125
|
/**
|
|
69
126
|
* Appends structured data rows to a specified dataset without requiring the client to construct SQL statements.
|
|
70
127
|
*
|
|
@@ -1713,6 +1770,59 @@ class Client extends openapi_core_1.default {
|
|
|
1713
1770
|
let headers = {};
|
|
1714
1771
|
return await this.getAgentSpaceWithOptions(agentSpace, request, headers, runtime);
|
|
1715
1772
|
}
|
|
1773
|
+
/**
|
|
1774
|
+
* Queries whether an audit transformation object is selected.
|
|
1775
|
+
*
|
|
1776
|
+
* @remarks
|
|
1777
|
+
* ## Request description
|
|
1778
|
+
* - GET /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} contains only three required path parameters, with no JSON request body or query parameters.
|
|
1779
|
+
* - Isolated by the complete tenant key of user_id + agent_space + region_id. The agentSpace parameter comes from the path. The user ID and region come from the trusted identity headers of the gateway. The region header is X-Acs-System-Region-Id and cannot be overridden by the request body or query parameters. The service verifies the AgentSpace access permissions and region matching.
|
|
1780
|
+
* - Reads only the transformation list of the corresponding type. It does not create audit configurations or check whether the transformation object is online or the transformation task is healthy.
|
|
1781
|
+
* - An HTTP 200 response returns id and selected, excluding requestId. If the object is not selected or the current AgentSpace has no audit configuration, selected is false, and a 404 error is not returned.
|
|
1782
|
+
* - The error response is ErrorResponse: requestId (the value of the request ID header, which may be an empty string if missing), code, and message. Error HTTP status codes and response bodies are passed through as-is from the backend.
|
|
1783
|
+
*
|
|
1784
|
+
* @param request - GetAuditConversionSourceRequest
|
|
1785
|
+
* @param headers - map
|
|
1786
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1787
|
+
* @returns GetAuditConversionSourceResponse
|
|
1788
|
+
*/
|
|
1789
|
+
async getAuditConversionSourceWithOptions(agentSpace, type, instanceID, request, headers, runtime) {
|
|
1790
|
+
request.validate();
|
|
1791
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1792
|
+
headers: headers,
|
|
1793
|
+
});
|
|
1794
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1795
|
+
action: "GetAuditConversionSource",
|
|
1796
|
+
version: "2026-05-20",
|
|
1797
|
+
protocol: "HTTPS",
|
|
1798
|
+
pathname: `/agentspace/${$dara.URL.percentEncode(agentSpace)}/audit/sources/${$dara.URL.percentEncode(type)}/${$dara.URL.percentEncode(instanceID)}`,
|
|
1799
|
+
method: "GET",
|
|
1800
|
+
authType: "AK",
|
|
1801
|
+
style: "ROA",
|
|
1802
|
+
reqBodyType: "json",
|
|
1803
|
+
bodyType: "json",
|
|
1804
|
+
});
|
|
1805
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAuditConversionSourceResponse({}));
|
|
1806
|
+
}
|
|
1807
|
+
/**
|
|
1808
|
+
* Queries whether an audit transformation object is selected.
|
|
1809
|
+
*
|
|
1810
|
+
* @remarks
|
|
1811
|
+
* ## Request description
|
|
1812
|
+
* - GET /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} contains only three required path parameters, with no JSON request body or query parameters.
|
|
1813
|
+
* - Isolated by the complete tenant key of user_id + agent_space + region_id. The agentSpace parameter comes from the path. The user ID and region come from the trusted identity headers of the gateway. The region header is X-Acs-System-Region-Id and cannot be overridden by the request body or query parameters. The service verifies the AgentSpace access permissions and region matching.
|
|
1814
|
+
* - Reads only the transformation list of the corresponding type. It does not create audit configurations or check whether the transformation object is online or the transformation task is healthy.
|
|
1815
|
+
* - An HTTP 200 response returns id and selected, excluding requestId. If the object is not selected or the current AgentSpace has no audit configuration, selected is false, and a 404 error is not returned.
|
|
1816
|
+
* - The error response is ErrorResponse: requestId (the value of the request ID header, which may be an empty string if missing), code, and message. Error HTTP status codes and response bodies are passed through as-is from the backend.
|
|
1817
|
+
*
|
|
1818
|
+
* @param request - GetAuditConversionSourceRequest
|
|
1819
|
+
* @returns GetAuditConversionSourceResponse
|
|
1820
|
+
*/
|
|
1821
|
+
async getAuditConversionSource(agentSpace, type, instanceID, request) {
|
|
1822
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1823
|
+
let headers = {};
|
|
1824
|
+
return await this.getAuditConversionSourceWithOptions(agentSpace, type, instanceID, request, headers, runtime);
|
|
1825
|
+
}
|
|
1716
1826
|
/**
|
|
1717
1827
|
* Queries the context store.
|
|
1718
1828
|
*
|
|
@@ -2392,7 +2502,7 @@ class Client extends openapi_core_1.default {
|
|
|
2392
2502
|
return await this.listContextStoreAPIKeysWithOptions(agentSpace, contextStoreName, request, headers, runtime);
|
|
2393
2503
|
}
|
|
2394
2504
|
/**
|
|
2395
|
-
* Queries
|
|
2505
|
+
* Queries a list of context stores.
|
|
2396
2506
|
*
|
|
2397
2507
|
* @param request - ListContextStoresRequest
|
|
2398
2508
|
* @param headers - map
|
|
@@ -2435,7 +2545,7 @@ class Client extends openapi_core_1.default {
|
|
|
2435
2545
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListContextStoresResponse({}));
|
|
2436
2546
|
}
|
|
2437
2547
|
/**
|
|
2438
|
-
* Queries
|
|
2548
|
+
* Queries a list of context stores.
|
|
2439
2549
|
*
|
|
2440
2550
|
* @param request - ListContextStoresRequest
|
|
2441
2551
|
* @returns ListContextStoresResponse
|
|
@@ -3296,6 +3406,61 @@ class Client extends openapi_core_1.default {
|
|
|
3296
3406
|
let headers = {};
|
|
3297
3407
|
return await this.previewPipelineWithOptions(agentSpace, request, headers, runtime);
|
|
3298
3408
|
}
|
|
3409
|
+
/**
|
|
3410
|
+
* Removes an audit transformation object from the list.
|
|
3411
|
+
*
|
|
3412
|
+
* @remarks
|
|
3413
|
+
* ## Request description
|
|
3414
|
+
* - The DELETE /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} operation includes only three required path parameters and does not contain a JSON request body or query parameters.
|
|
3415
|
+
* - Isolation is based on the complete tenant key that consists of user_id, agent_space, and region_id. The agentSpace parameter is obtained from the path. The user ID and region are obtained from the trusted identity headers of the gateway. The region header is X-Acs-System-Region-Id and cannot be overridden by the request body or query parameters. The service verifies the access permissions and region matching for the AgentSpace.
|
|
3416
|
+
* - If type is set to gateway, only the ID in configJson.audit_enabled_gateway_instances is removed. If type is set to trace, only the ID in configJson.audit_enabled_trace_apps is removed, and other configuration fields are retained.
|
|
3417
|
+
* - An HTTP 204 response with no response body indicates that the member is already in the unselected state. Repeated calls when the member is unselected also return 204 instead of 404. If the current AgentSpace does not have an audit configuration, no new configuration is created for the delete operation.
|
|
3418
|
+
* - The removal operation only modifies the list membership and does not synchronously stop the transformation task. After the actual change occurs, the coordinator asynchronously processes the task changes.
|
|
3419
|
+
* - The error response is an ErrorResponse object, which includes requestId (the value of the request ID header, which may be an empty string if missing), code, and message. Error HTTP status codes and response bodies are passed through as-is from the backend.
|
|
3420
|
+
*
|
|
3421
|
+
* @param request - RemoveAuditConversionSourceRequest
|
|
3422
|
+
* @param headers - map
|
|
3423
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3424
|
+
* @returns RemoveAuditConversionSourceResponse
|
|
3425
|
+
*/
|
|
3426
|
+
async removeAuditConversionSourceWithOptions(agentSpace, type, instanceID, request, headers, runtime) {
|
|
3427
|
+
request.validate();
|
|
3428
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3429
|
+
headers: headers,
|
|
3430
|
+
});
|
|
3431
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3432
|
+
action: "RemoveAuditConversionSource",
|
|
3433
|
+
version: "2026-05-20",
|
|
3434
|
+
protocol: "HTTPS",
|
|
3435
|
+
pathname: `/agentspace/${$dara.URL.percentEncode(agentSpace)}/audit/sources/${$dara.URL.percentEncode(type)}/${$dara.URL.percentEncode(instanceID)}`,
|
|
3436
|
+
method: "DELETE",
|
|
3437
|
+
authType: "AK",
|
|
3438
|
+
style: "ROA",
|
|
3439
|
+
reqBodyType: "json",
|
|
3440
|
+
bodyType: "none",
|
|
3441
|
+
});
|
|
3442
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.RemoveAuditConversionSourceResponse({}));
|
|
3443
|
+
}
|
|
3444
|
+
/**
|
|
3445
|
+
* Removes an audit transformation object from the list.
|
|
3446
|
+
*
|
|
3447
|
+
* @remarks
|
|
3448
|
+
* ## Request description
|
|
3449
|
+
* - The DELETE /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} operation includes only three required path parameters and does not contain a JSON request body or query parameters.
|
|
3450
|
+
* - Isolation is based on the complete tenant key that consists of user_id, agent_space, and region_id. The agentSpace parameter is obtained from the path. The user ID and region are obtained from the trusted identity headers of the gateway. The region header is X-Acs-System-Region-Id and cannot be overridden by the request body or query parameters. The service verifies the access permissions and region matching for the AgentSpace.
|
|
3451
|
+
* - If type is set to gateway, only the ID in configJson.audit_enabled_gateway_instances is removed. If type is set to trace, only the ID in configJson.audit_enabled_trace_apps is removed, and other configuration fields are retained.
|
|
3452
|
+
* - An HTTP 204 response with no response body indicates that the member is already in the unselected state. Repeated calls when the member is unselected also return 204 instead of 404. If the current AgentSpace does not have an audit configuration, no new configuration is created for the delete operation.
|
|
3453
|
+
* - The removal operation only modifies the list membership and does not synchronously stop the transformation task. After the actual change occurs, the coordinator asynchronously processes the task changes.
|
|
3454
|
+
* - The error response is an ErrorResponse object, which includes requestId (the value of the request ID header, which may be an empty string if missing), code, and message. Error HTTP status codes and response bodies are passed through as-is from the backend.
|
|
3455
|
+
*
|
|
3456
|
+
* @param request - RemoveAuditConversionSourceRequest
|
|
3457
|
+
* @returns RemoveAuditConversionSourceResponse
|
|
3458
|
+
*/
|
|
3459
|
+
async removeAuditConversionSource(agentSpace, type, instanceID, request) {
|
|
3460
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3461
|
+
let headers = {};
|
|
3462
|
+
return await this.removeAuditConversionSourceWithOptions(agentSpace, type, instanceID, request, headers, runtime);
|
|
3463
|
+
}
|
|
3299
3464
|
/**
|
|
3300
3465
|
* Resumes a pipeline.
|
|
3301
3466
|
*
|