@alicloud/agentloop20260520 2.7.1 → 2.8.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 (92) hide show
  1. package/dist/client.d.ts +172 -20
  2. package/dist/client.js +229 -20
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddAuditConversionSourceRequest.d.ts +13 -0
  5. package/dist/models/AddAuditConversionSourceRequest.js +54 -0
  6. package/dist/models/AddAuditConversionSourceRequest.js.map +1 -0
  7. package/dist/models/AddAuditConversionSourceResponse.d.ts +17 -0
  8. package/dist/models/AddAuditConversionSourceResponse.js +63 -0
  9. package/dist/models/AddAuditConversionSourceResponse.js.map +1 -0
  10. package/dist/models/CreatePipelineRequest.d.ts +41 -32
  11. package/dist/models/CreatePipelineRequest.js +6 -0
  12. package/dist/models/CreatePipelineRequest.js.map +1 -1
  13. package/dist/models/CreatePipelineResponseBody.d.ts +1 -1
  14. package/dist/models/ExperimentConfig.d.ts +3 -0
  15. package/dist/models/ExperimentConfig.js.map +1 -1
  16. package/dist/models/GetAuditConversionSourceRequest.d.ts +13 -0
  17. package/dist/models/GetAuditConversionSourceRequest.js +54 -0
  18. package/dist/models/GetAuditConversionSourceRequest.js.map +1 -0
  19. package/dist/models/GetAuditConversionSourceResponse.d.ts +19 -0
  20. package/dist/models/GetAuditConversionSourceResponse.js +69 -0
  21. package/dist/models/GetAuditConversionSourceResponse.js.map +1 -0
  22. package/dist/models/GetAuditConversionSourceResponseBody.d.ts +35 -0
  23. package/dist/models/GetAuditConversionSourceResponseBody.js +60 -0
  24. package/dist/models/GetAuditConversionSourceResponseBody.js.map +1 -0
  25. package/dist/models/GetContextStoreResponseBody.d.ts +49 -49
  26. package/dist/models/GetPipelineResponseBody.d.ts +51 -42
  27. package/dist/models/GetPipelineResponseBody.js +6 -0
  28. package/dist/models/GetPipelineResponseBody.js.map +1 -1
  29. package/dist/models/GetPipelineRunResponseBody.d.ts +7 -7
  30. package/dist/models/ListContextStoresRequest.d.ts +3 -3
  31. package/dist/models/ListContextStoresResponseBody.d.ts +8 -8
  32. package/dist/models/ListPipelineRunsRequest.d.ts +1 -1
  33. package/dist/models/ListPipelineRunsResponseBody.d.ts +8 -6
  34. package/dist/models/ListPipelineRunsResponseBody.js.map +1 -1
  35. package/dist/models/ListPipelinesRequest.d.ts +5 -17
  36. package/dist/models/ListPipelinesRequest.js.map +1 -1
  37. package/dist/models/ListPipelinesResponseBody.d.ts +45 -33
  38. package/dist/models/ListPipelinesResponseBody.js +6 -0
  39. package/dist/models/ListPipelinesResponseBody.js.map +1 -1
  40. package/dist/models/PipelineOssSource.d.ts +69 -0
  41. package/dist/models/PipelineOssSource.js +69 -0
  42. package/dist/models/PipelineOssSource.js.map +1 -0
  43. package/dist/models/PreviewPipelineRequest.d.ts +24 -15
  44. package/dist/models/PreviewPipelineRequest.js +6 -0
  45. package/dist/models/PreviewPipelineRequest.js.map +1 -1
  46. package/dist/models/PreviewPipelineResponseBody.d.ts +28 -12
  47. package/dist/models/PreviewPipelineResponseBody.js +4 -0
  48. package/dist/models/PreviewPipelineResponseBody.js.map +1 -1
  49. package/dist/models/RemoveAuditConversionSourceRequest.d.ts +13 -0
  50. package/dist/models/RemoveAuditConversionSourceRequest.js +54 -0
  51. package/dist/models/RemoveAuditConversionSourceRequest.js.map +1 -0
  52. package/dist/models/RemoveAuditConversionSourceResponse.d.ts +17 -0
  53. package/dist/models/RemoveAuditConversionSourceResponse.js +63 -0
  54. package/dist/models/RemoveAuditConversionSourceResponse.js.map +1 -0
  55. package/dist/models/RunPipelineRequest.d.ts +3 -3
  56. package/dist/models/RunPipelineResponseBody.d.ts +1 -1
  57. package/dist/models/UpdatePipelineRequest.d.ts +44 -36
  58. package/dist/models/UpdatePipelineRequest.js +6 -0
  59. package/dist/models/UpdatePipelineRequest.js.map +1 -1
  60. package/dist/models/UpdatePipelineResponseBody.d.ts +1 -1
  61. package/dist/models/model.d.ts +8 -0
  62. package/dist/models/model.js +22 -6
  63. package/dist/models/model.js.map +1 -1
  64. package/package.json +1 -1
  65. package/src/client.ts +235 -20
  66. package/src/models/AddAuditConversionSourceRequest.ts +24 -0
  67. package/src/models/AddAuditConversionSourceResponse.ts +33 -0
  68. package/src/models/CreatePipelineRequest.ts +46 -32
  69. package/src/models/CreatePipelineResponseBody.ts +1 -1
  70. package/src/models/ExperimentConfig.ts +3 -0
  71. package/src/models/GetAuditConversionSourceRequest.ts +24 -0
  72. package/src/models/GetAuditConversionSourceResponse.ts +40 -0
  73. package/src/models/GetAuditConversionSourceResponseBody.ts +50 -0
  74. package/src/models/GetContextStoreResponseBody.ts +49 -49
  75. package/src/models/GetPipelineResponseBody.ts +56 -42
  76. package/src/models/GetPipelineRunResponseBody.ts +7 -7
  77. package/src/models/ListContextStoresRequest.ts +3 -3
  78. package/src/models/ListContextStoresResponseBody.ts +8 -8
  79. package/src/models/ListPipelineRunsRequest.ts +1 -1
  80. package/src/models/ListPipelineRunsResponseBody.ts +8 -6
  81. package/src/models/ListPipelinesRequest.ts +5 -17
  82. package/src/models/ListPipelinesResponseBody.ts +50 -33
  83. package/src/models/PipelineOssSource.ts +91 -0
  84. package/src/models/PreviewPipelineRequest.ts +29 -15
  85. package/src/models/PreviewPipelineResponseBody.ts +32 -12
  86. package/src/models/RemoveAuditConversionSourceRequest.ts +24 -0
  87. package/src/models/RemoveAuditConversionSourceResponse.ts +33 -0
  88. package/src/models/RunPipelineRequest.ts +3 -3
  89. package/src/models/RunPipelineResponseBody.ts +1 -1
  90. package/src/models/UpdatePipelineRequest.ts +49 -36
  91. package/src/models/UpdatePipelineResponseBody.ts +1 -1
  92. package/src/models/model.ts +8 -0
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
  *
@@ -965,6 +1022,23 @@ class Client extends openapi_core_1.default {
965
1022
  /**
966
1023
  * Creates a pipeline.
967
1024
  *
1025
+ * @remarks
1026
+ * ## OSS import
1027
+ * - When `source.type` is `oss`, `format`, `region`, `roleArn`, and `uri` in `source.oss` are required. You can omit `formatOptions` or pass an empty object `{}`. The initial version has no available configuration keys. Non-empty objects and other JSON types return a parameter error. Omit `source.inputFields`. When LeRobot has no processing nodes, you can pass `pipeline.nodes: []`. For MCAP, you must pass an empty array.
1028
+ * - `sink.type` must be `dataset`, and `sink.dataset` must point to an existing dataset.
1029
+ * - `executePolicy.mode` must be `RunOnce`. You can omit `runOnce`. OSS ignores time windows. If a time field is passed, the value must be an integer.
1030
+ * - A successful creation indicates that the submission has been accepted. Call `ListPipelineRuns` by using the pipeline name to query the import progress. A formal submission independently discovers the OSS input scope.
1031
+ * ### Sample OSS creation request
1032
+ * ```json
1033
+ * {
1034
+ * "pipelineName": "robot_import_example",
1035
+ * "pipeline": {"nodes": []},
1036
+ * "source": {"type": "oss", "oss": {"format": "lerobot", "region": "cn-beijing", "roleArn": "acs:ram::1234567890123456:role/oss-reader", "uri": "oss://example-bucket/robot-datasets/"}},
1037
+ * "sink": {"type": "dataset", "dataset": {"agentSpace": "my-agent-space", "dataset": "robot-import-target"}},
1038
+ * "executePolicy": {"mode": "RunOnce"}
1039
+ * }
1040
+ * ```
1041
+ *
968
1042
  * @param request - CreatePipelineRequest
969
1043
  * @param headers - map
970
1044
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1019,6 +1093,23 @@ class Client extends openapi_core_1.default {
1019
1093
  /**
1020
1094
  * Creates a pipeline.
1021
1095
  *
1096
+ * @remarks
1097
+ * ## OSS import
1098
+ * - When `source.type` is `oss`, `format`, `region`, `roleArn`, and `uri` in `source.oss` are required. You can omit `formatOptions` or pass an empty object `{}`. The initial version has no available configuration keys. Non-empty objects and other JSON types return a parameter error. Omit `source.inputFields`. When LeRobot has no processing nodes, you can pass `pipeline.nodes: []`. For MCAP, you must pass an empty array.
1099
+ * - `sink.type` must be `dataset`, and `sink.dataset` must point to an existing dataset.
1100
+ * - `executePolicy.mode` must be `RunOnce`. You can omit `runOnce`. OSS ignores time windows. If a time field is passed, the value must be an integer.
1101
+ * - A successful creation indicates that the submission has been accepted. Call `ListPipelineRuns` by using the pipeline name to query the import progress. A formal submission independently discovers the OSS input scope.
1102
+ * ### Sample OSS creation request
1103
+ * ```json
1104
+ * {
1105
+ * "pipelineName": "robot_import_example",
1106
+ * "pipeline": {"nodes": []},
1107
+ * "source": {"type": "oss", "oss": {"format": "lerobot", "region": "cn-beijing", "roleArn": "acs:ram::1234567890123456:role/oss-reader", "uri": "oss://example-bucket/robot-datasets/"}},
1108
+ * "sink": {"type": "dataset", "dataset": {"agentSpace": "my-agent-space", "dataset": "robot-import-target"}},
1109
+ * "executePolicy": {"mode": "RunOnce"}
1110
+ * }
1111
+ * ```
1112
+ *
1022
1113
  * @param request - CreatePipelineRequest
1023
1114
  * @returns CreatePipelineResponse
1024
1115
  */
@@ -1713,6 +1804,59 @@ class Client extends openapi_core_1.default {
1713
1804
  let headers = {};
1714
1805
  return await this.getAgentSpaceWithOptions(agentSpace, request, headers, runtime);
1715
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
+ * @param headers - map
1820
+ * @param runtime - runtime options for this request RuntimeOptions
1821
+ * @returns GetAuditConversionSourceResponse
1822
+ */
1823
+ async getAuditConversionSourceWithOptions(agentSpace, type, instanceID, request, headers, runtime) {
1824
+ request.validate();
1825
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1826
+ headers: headers,
1827
+ });
1828
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1829
+ action: "GetAuditConversionSource",
1830
+ version: "2026-05-20",
1831
+ protocol: "HTTPS",
1832
+ pathname: `/agentspace/${$dara.URL.percentEncode(agentSpace)}/audit/sources/${$dara.URL.percentEncode(type)}/${$dara.URL.percentEncode(instanceID)}`,
1833
+ method: "GET",
1834
+ authType: "AK",
1835
+ style: "ROA",
1836
+ reqBodyType: "json",
1837
+ bodyType: "json",
1838
+ });
1839
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAuditConversionSourceResponse({}));
1840
+ }
1841
+ /**
1842
+ * Queries whether an audit transformation object is selected.
1843
+ *
1844
+ * @remarks
1845
+ * ## Request description
1846
+ * - GET /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} contains only three required path parameters, with no JSON request body or query parameters.
1847
+ * - 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.
1848
+ * - 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.
1849
+ * - 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.
1850
+ * - 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.
1851
+ *
1852
+ * @param request - GetAuditConversionSourceRequest
1853
+ * @returns GetAuditConversionSourceResponse
1854
+ */
1855
+ async getAuditConversionSource(agentSpace, type, instanceID, request) {
1856
+ let runtime = new $dara.RuntimeOptions({});
1857
+ let headers = {};
1858
+ return await this.getAuditConversionSourceWithOptions(agentSpace, type, instanceID, request, headers, runtime);
1859
+ }
1716
1860
  /**
1717
1861
  * Queries the context store.
1718
1862
  *
@@ -2191,10 +2335,12 @@ class Client extends openapi_core_1.default {
2191
2335
  return await this.getPipelineWithOptions(agentSpace, pipelineName, request, headers, runtime);
2192
2336
  }
2193
2337
  /**
2194
- * Queries the details of a single run, including the data window, execute status, retry information, run statistics, and the error message for the fault.
2338
+ * Queries the details of a single run, including the data window, execution status, retry information, run statistics, and fault information.
2195
2339
  *
2196
2340
  * @remarks
2197
- * Invokes GetPipelineRun to retrieve the details of a single pipeline run, including the data window, execute status, retry information, run statistics, and the error message for the fault.
2341
+ * Calls GetPipelineRun to query the details of a single pipeline run, including the data window, execution status, retry information, run statistics, and fault information.
2342
+ * - For OSS imports, use `status` to query the run status, and use `work_total`, `work_success`, `work_failed`, and `work_skipped` under `stats` to view the processed row counts and results.
2343
+ * - If an import fails, check `errorCode` and `errorMessage`. The `errorMessage` can contain the package path or object path, the cause, and up to three failure examples. When only package-level failures occur, `work_failed` may still be 0.
2198
2344
  *
2199
2345
  * @param request - GetPipelineRunRequest
2200
2346
  * @param headers - map
@@ -2220,10 +2366,12 @@ class Client extends openapi_core_1.default {
2220
2366
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetPipelineRunResponse({}));
2221
2367
  }
2222
2368
  /**
2223
- * Queries the details of a single run, including the data window, execute status, retry information, run statistics, and the error message for the fault.
2369
+ * Queries the details of a single run, including the data window, execution status, retry information, run statistics, and fault information.
2224
2370
  *
2225
2371
  * @remarks
2226
- * Invokes GetPipelineRun to retrieve the details of a single pipeline run, including the data window, execute status, retry information, run statistics, and the error message for the fault.
2372
+ * Calls GetPipelineRun to query the details of a single pipeline run, including the data window, execution status, retry information, run statistics, and fault information.
2373
+ * - For OSS imports, use `status` to query the run status, and use `work_total`, `work_success`, `work_failed`, and `work_skipped` under `stats` to view the processed row counts and results.
2374
+ * - If an import fails, check `errorCode` and `errorMessage`. The `errorMessage` can contain the package path or object path, the cause, and up to three failure examples. When only package-level failures occur, `work_failed` may still be 0.
2227
2375
  *
2228
2376
  * @param request - GetPipelineRunRequest
2229
2377
  * @returns GetPipelineRunResponse
@@ -2392,7 +2540,7 @@ class Client extends openapi_core_1.default {
2392
2540
  return await this.listContextStoreAPIKeysWithOptions(agentSpace, contextStoreName, request, headers, runtime);
2393
2541
  }
2394
2542
  /**
2395
- * Queries the list of context stores.
2543
+ * Queries a list of context stores.
2396
2544
  *
2397
2545
  * @param request - ListContextStoresRequest
2398
2546
  * @param headers - map
@@ -2435,7 +2583,7 @@ class Client extends openapi_core_1.default {
2435
2583
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListContextStoresResponse({}));
2436
2584
  }
2437
2585
  /**
2438
- * Queries the list of context stores.
2586
+ * Queries a list of context stores.
2439
2587
  *
2440
2588
  * @param request - ListContextStoresRequest
2441
2589
  * @returns ListContextStoresResponse
@@ -3006,7 +3154,7 @@ class Client extends openapi_core_1.default {
3006
3154
  return await this.listOptimizeTasksWithOptions(agentSpace, request, headers, runtime);
3007
3155
  }
3008
3156
  /**
3009
- * Queries the run history. Supports filtering by status, trigger type, and time range, and uses cursor-based pagination.
3157
+ * Queries the run history and supports filtering by status, trigger type, and time range with cursor-based pagination.
3010
3158
  *
3011
3159
  * @remarks
3012
3160
  * Calls ListPipelineRuns to query the pipeline run history. Supports filtering by status, trigger type, and time range, and uses cursor-based pagination.
@@ -3055,7 +3203,7 @@ class Client extends openapi_core_1.default {
3055
3203
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPipelineRunsResponse({}));
3056
3204
  }
3057
3205
  /**
3058
- * Queries the run history. Supports filtering by status, trigger type, and time range, and uses cursor-based pagination.
3206
+ * Queries the run history and supports filtering by status, trigger type, and time range with cursor-based pagination.
3059
3207
  *
3060
3208
  * @remarks
3061
3209
  * Calls ListPipelineRuns to query the pipeline run history. Supports filtering by status, trigger type, and time range, and uses cursor-based pagination.
@@ -3069,7 +3217,10 @@ class Client extends openapi_core_1.default {
3069
3217
  return await this.listPipelineRunsWithOptions(agentSpace, pipelineName, request, headers, runtime);
3070
3218
  }
3071
3219
  /**
3072
- * Queries a list of pipelines. Supports filtering by name, schedule type, and schedule status, and uses cursor-based pagination.
3220
+ * Queries a list of pipelines. Supports filtering by name, schedule type, and schedule status, with cursor-based pagination.
3221
+ *
3222
+ * @remarks
3223
+ * Calls the ListPipelines operation to query a list of pipelines. You can filter pipelines by name, schedule type, and schedule status, and use cursor-based pagination.
3073
3224
  *
3074
3225
  * @param request - ListPipelinesRequest
3075
3226
  * @param headers - map
@@ -3118,7 +3269,10 @@ class Client extends openapi_core_1.default {
3118
3269
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPipelinesResponse({}));
3119
3270
  }
3120
3271
  /**
3121
- * Queries a list of pipelines. Supports filtering by name, schedule type, and schedule status, and uses cursor-based pagination.
3272
+ * Queries a list of pipelines. Supports filtering by name, schedule type, and schedule status, with cursor-based pagination.
3273
+ *
3274
+ * @remarks
3275
+ * Calls the ListPipelines operation to query a list of pipelines. You can filter pipelines by name, schedule type, and schedule status, and use cursor-based pagination.
3122
3276
  *
3123
3277
  * @param request - ListPipelinesRequest
3124
3278
  * @returns ListPipelinesResponse
@@ -3234,11 +3388,11 @@ class Client extends openapi_core_1.default {
3234
3388
  *
3235
3389
  * @remarks
3236
3390
  * ## Request description
3237
- * - **agentSpace** must be an existing AgentSpace instance under the current account.
3238
- * - **source.type** currently supports only the `logstore` type. The `logstore.project` and `logstore.logstore` must be authorized within the AgentSpace and reside in the same region.
3239
- * - **pipeline.nodes** must contain at least one `Source` node and cannot be empty.
3240
- * - **fromTime** and **toTime** are UNIX timestamps in seconds. **fromTime** must be earlier than **toTime**.
3241
- * - A maximum of 5 records are returned, and internal fields of the data source system are automatically filtered out.
3391
+ * - agentSpace must be an AgentSpace created under the current account.
3392
+ * - source.type supports logstore, dataset, trace, and oss. If logstore is selected, the project and Logstore used must be authorized in the AgentSpace and reside in the same region.
3393
+ * - If oss is selected, configure source.oss and omit source.inputFields. The server derives the schema from the source. For LeRobot, you can pass pipeline.nodes: [] to preview directly. For MCAP, you must pass an empty array. OSS preview ignores fromTime and toTime.
3394
+ * - For other sources, you must pass a non-empty pipeline.nodes array and provide fromTime and toTime in UNIX seconds. fromTime must be less than toTime.
3395
+ * - The preview returns up to 5 samples and filters out internal fields of the data source. For OSS, up to 5 candidates are attempted per batch. Failed candidates or those filtered out by the processing chain also count towards the limit. If the samples are empty but the schema can be derived, meta.schema is still returned.
3242
3396
  *
3243
3397
  * @param request - PreviewPipelineRequest
3244
3398
  * @param headers - map
@@ -3282,11 +3436,11 @@ class Client extends openapi_core_1.default {
3282
3436
  *
3283
3437
  * @remarks
3284
3438
  * ## Request description
3285
- * - **agentSpace** must be an existing AgentSpace instance under the current account.
3286
- * - **source.type** currently supports only the `logstore` type. The `logstore.project` and `logstore.logstore` must be authorized within the AgentSpace and reside in the same region.
3287
- * - **pipeline.nodes** must contain at least one `Source` node and cannot be empty.
3288
- * - **fromTime** and **toTime** are UNIX timestamps in seconds. **fromTime** must be earlier than **toTime**.
3289
- * - A maximum of 5 records are returned, and internal fields of the data source system are automatically filtered out.
3439
+ * - agentSpace must be an AgentSpace created under the current account.
3440
+ * - source.type supports logstore, dataset, trace, and oss. If logstore is selected, the project and Logstore used must be authorized in the AgentSpace and reside in the same region.
3441
+ * - If oss is selected, configure source.oss and omit source.inputFields. The server derives the schema from the source. For LeRobot, you can pass pipeline.nodes: [] to preview directly. For MCAP, you must pass an empty array. OSS preview ignores fromTime and toTime.
3442
+ * - For other sources, you must pass a non-empty pipeline.nodes array and provide fromTime and toTime in UNIX seconds. fromTime must be less than toTime.
3443
+ * - The preview returns up to 5 samples and filters out internal fields of the data source. For OSS, up to 5 candidates are attempted per batch. Failed candidates or those filtered out by the processing chain also count towards the limit. If the samples are empty but the schema can be derived, meta.schema is still returned.
3290
3444
  *
3291
3445
  * @param request - PreviewPipelineRequest
3292
3446
  * @returns PreviewPipelineResponse
@@ -3296,6 +3450,61 @@ class Client extends openapi_core_1.default {
3296
3450
  let headers = {};
3297
3451
  return await this.previewPipelineWithOptions(agentSpace, request, headers, runtime);
3298
3452
  }
3453
+ /**
3454
+ * Removes an audit transformation object from the list.
3455
+ *
3456
+ * @remarks
3457
+ * ## Request description
3458
+ * - 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.
3459
+ * - 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.
3460
+ * - 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.
3461
+ * - 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.
3462
+ * - 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.
3463
+ * - 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.
3464
+ *
3465
+ * @param request - RemoveAuditConversionSourceRequest
3466
+ * @param headers - map
3467
+ * @param runtime - runtime options for this request RuntimeOptions
3468
+ * @returns RemoveAuditConversionSourceResponse
3469
+ */
3470
+ async removeAuditConversionSourceWithOptions(agentSpace, type, instanceID, request, headers, runtime) {
3471
+ request.validate();
3472
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3473
+ headers: headers,
3474
+ });
3475
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3476
+ action: "RemoveAuditConversionSource",
3477
+ version: "2026-05-20",
3478
+ protocol: "HTTPS",
3479
+ pathname: `/agentspace/${$dara.URL.percentEncode(agentSpace)}/audit/sources/${$dara.URL.percentEncode(type)}/${$dara.URL.percentEncode(instanceID)}`,
3480
+ method: "DELETE",
3481
+ authType: "AK",
3482
+ style: "ROA",
3483
+ reqBodyType: "json",
3484
+ bodyType: "none",
3485
+ });
3486
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.RemoveAuditConversionSourceResponse({}));
3487
+ }
3488
+ /**
3489
+ * Removes an audit transformation object from the list.
3490
+ *
3491
+ * @remarks
3492
+ * ## Request description
3493
+ * - 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.
3494
+ * - 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.
3495
+ * - 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.
3496
+ * - 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.
3497
+ * - 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.
3498
+ * - 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.
3499
+ *
3500
+ * @param request - RemoveAuditConversionSourceRequest
3501
+ * @returns RemoveAuditConversionSourceResponse
3502
+ */
3503
+ async removeAuditConversionSource(agentSpace, type, instanceID, request) {
3504
+ let runtime = new $dara.RuntimeOptions({});
3505
+ let headers = {};
3506
+ return await this.removeAuditConversionSourceWithOptions(agentSpace, type, instanceID, request, headers, runtime);
3507
+ }
3299
3508
  /**
3300
3509
  * Resumes a pipeline.
3301
3510
  *