@alicloud/eventbridge20200401 6.4.0 → 6.6.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 +342 -6
- package/dist/client.js +1101 -214
- package/dist/client.js.map +1 -1
- package/dist/models/AgentBridgeRuntime.d.ts +77 -0
- package/dist/models/AgentBridgeRuntime.js +72 -0
- package/dist/models/AgentBridgeRuntime.js.map +1 -0
- package/dist/models/CreateEventStreamingRequest.d.ts +240 -119
- package/dist/models/CreateEventStreamingRequest.js +11 -0
- package/dist/models/CreateEventStreamingRequest.js.map +1 -1
- package/dist/models/CreateEventStreamingResponseBody.d.ts +3 -1
- package/dist/models/CreateEventStreamingResponseBody.js.map +1 -1
- package/dist/models/CreateEventStreamingShrinkRequest.d.ts +6 -6
- package/dist/models/DeleteNamespaceRequest.d.ts +3 -3
- package/dist/models/DeleteNamespaceResponseBody.d.ts +4 -4
- package/dist/models/ExecutionResult.d.ts +9 -6
- package/dist/models/ExecutionResult.js.map +1 -1
- package/dist/models/GetEventStreamingRequest.d.ts +1 -1
- package/dist/models/GetEventStreamingResponseBody.d.ts +277 -154
- package/dist/models/GetEventStreamingResponseBody.js +6 -0
- package/dist/models/GetEventStreamingResponseBody.js.map +1 -1
- package/dist/models/GetLumaCatalogRequest.d.ts +33 -0
- package/dist/models/GetLumaCatalogRequest.js +60 -0
- package/dist/models/GetLumaCatalogRequest.js.map +1 -0
- package/dist/models/GetLumaCatalogResponse.d.ts +19 -0
- package/dist/models/GetLumaCatalogResponse.js +69 -0
- package/dist/models/GetLumaCatalogResponse.js.map +1 -0
- package/dist/models/GetLumaCatalogResponseBody.d.ts +51 -0
- package/dist/models/GetLumaCatalogResponseBody.js +70 -0
- package/dist/models/GetLumaCatalogResponseBody.js.map +1 -0
- package/dist/models/GetLumaChunkRequest.d.ts +73 -0
- package/dist/models/GetLumaChunkRequest.js +68 -0
- package/dist/models/GetLumaChunkRequest.js.map +1 -0
- package/dist/models/GetLumaChunkResponse.d.ts +19 -0
- package/dist/models/GetLumaChunkResponse.js +69 -0
- package/dist/models/GetLumaChunkResponse.js.map +1 -0
- package/dist/models/GetLumaChunkResponseBody.d.ts +51 -0
- package/dist/models/GetLumaChunkResponseBody.js +70 -0
- package/dist/models/GetLumaChunkResponseBody.js.map +1 -0
- package/dist/models/GetLumaDocumentDownloadUrlRequest.d.ts +75 -0
- package/dist/models/GetLumaDocumentDownloadUrlRequest.js +68 -0
- package/dist/models/GetLumaDocumentDownloadUrlRequest.js.map +1 -0
- package/dist/models/GetLumaDocumentDownloadUrlResponse.d.ts +19 -0
- package/dist/models/GetLumaDocumentDownloadUrlResponse.js +69 -0
- package/dist/models/GetLumaDocumentDownloadUrlResponse.js.map +1 -0
- package/dist/models/GetLumaDocumentDownloadUrlResponseBody.d.ts +78 -0
- package/dist/models/GetLumaDocumentDownloadUrlResponseBody.js +90 -0
- package/dist/models/GetLumaDocumentDownloadUrlResponseBody.js.map +1 -0
- package/dist/models/GetLumaDocumentRequest.d.ts +63 -0
- package/dist/models/GetLumaDocumentRequest.js +66 -0
- package/dist/models/GetLumaDocumentRequest.js.map +1 -0
- package/dist/models/GetLumaDocumentResponse.d.ts +19 -0
- package/dist/models/GetLumaDocumentResponse.js +69 -0
- package/dist/models/GetLumaDocumentResponse.js.map +1 -0
- package/dist/models/GetLumaDocumentResponseBody.d.ts +51 -0
- package/dist/models/GetLumaDocumentResponseBody.js +70 -0
- package/dist/models/GetLumaDocumentResponseBody.js.map +1 -0
- package/dist/models/GetLumaKnowledgeBaseRequest.d.ts +53 -0
- package/dist/models/GetLumaKnowledgeBaseRequest.js +64 -0
- package/dist/models/GetLumaKnowledgeBaseRequest.js.map +1 -0
- package/dist/models/GetLumaKnowledgeBaseResponse.d.ts +19 -0
- package/dist/models/GetLumaKnowledgeBaseResponse.js +69 -0
- package/dist/models/GetLumaKnowledgeBaseResponse.js.map +1 -0
- package/dist/models/GetLumaKnowledgeBaseResponseBody.d.ts +51 -0
- package/dist/models/GetLumaKnowledgeBaseResponseBody.js +70 -0
- package/dist/models/GetLumaKnowledgeBaseResponseBody.js.map +1 -0
- package/dist/models/GetLumaNamespaceRequest.d.ts +43 -0
- package/dist/models/GetLumaNamespaceRequest.js +62 -0
- package/dist/models/GetLumaNamespaceRequest.js.map +1 -0
- package/dist/models/GetLumaNamespaceResponse.d.ts +19 -0
- package/dist/models/GetLumaNamespaceResponse.js +69 -0
- package/dist/models/GetLumaNamespaceResponse.js.map +1 -0
- package/dist/models/GetLumaNamespaceResponseBody.d.ts +51 -0
- package/dist/models/GetLumaNamespaceResponseBody.js +70 -0
- package/dist/models/GetLumaNamespaceResponseBody.js.map +1 -0
- package/dist/models/GetLumaTableRequest.d.ts +53 -0
- package/dist/models/GetLumaTableRequest.js +64 -0
- package/dist/models/GetLumaTableRequest.js.map +1 -0
- package/dist/models/GetLumaTableResponse.d.ts +19 -0
- package/dist/models/GetLumaTableResponse.js +69 -0
- package/dist/models/GetLumaTableResponse.js.map +1 -0
- package/dist/models/GetLumaTableResponseBody.d.ts +51 -0
- package/dist/models/GetLumaTableResponseBody.js +70 -0
- package/dist/models/GetLumaTableResponseBody.js.map +1 -0
- package/dist/models/KnowledgeBase.d.ts +281 -0
- package/dist/models/KnowledgeBase.js +176 -0
- package/dist/models/KnowledgeBase.js.map +1 -0
- package/dist/models/KnowledgeBaseChunk.d.ts +93 -0
- package/dist/models/KnowledgeBaseChunk.js +76 -0
- package/dist/models/KnowledgeBaseChunk.js.map +1 -0
- package/dist/models/KnowledgeBaseDocument.d.ts +249 -0
- package/dist/models/KnowledgeBaseDocument.js +164 -0
- package/dist/models/KnowledgeBaseDocument.js.map +1 -0
- package/dist/models/KnowledgeBaseSearchChunk.d.ts +118 -0
- package/dist/models/KnowledgeBaseSearchChunk.js +100 -0
- package/dist/models/KnowledgeBaseSearchChunk.js.map +1 -0
- package/dist/models/ListEventStreamingsRequest.d.ts +3 -3
- package/dist/models/ListEventStreamingsResponseBody.d.ts +171 -166
- package/dist/models/ListEventStreamingsResponseBody.js +6 -0
- package/dist/models/ListEventStreamingsResponseBody.js.map +1 -1
- package/dist/models/ListLumaCatalogsRequest.d.ts +23 -0
- package/dist/models/ListLumaCatalogsRequest.js +58 -0
- package/dist/models/ListLumaCatalogsRequest.js.map +1 -0
- package/dist/models/ListLumaCatalogsResponse.d.ts +19 -0
- package/dist/models/ListLumaCatalogsResponse.js +69 -0
- package/dist/models/ListLumaCatalogsResponse.js.map +1 -0
- package/dist/models/ListLumaCatalogsResponseBody.d.ts +71 -0
- package/dist/models/ListLumaCatalogsResponseBody.js +92 -0
- package/dist/models/ListLumaCatalogsResponseBody.js.map +1 -0
- package/dist/models/ListLumaChunksRequest.d.ts +93 -0
- package/dist/models/ListLumaChunksRequest.js +74 -0
- package/dist/models/ListLumaChunksRequest.js.map +1 -0
- package/dist/models/ListLumaChunksResponse.d.ts +19 -0
- package/dist/models/ListLumaChunksResponse.js +69 -0
- package/dist/models/ListLumaChunksResponse.js.map +1 -0
- package/dist/models/ListLumaChunksResponseBody.d.ts +87 -0
- package/dist/models/ListLumaChunksResponseBody.js +96 -0
- package/dist/models/ListLumaChunksResponseBody.js.map +1 -0
- package/dist/models/ListLumaDocumentsRequest.d.ts +85 -0
- package/dist/models/ListLumaDocumentsRequest.js +72 -0
- package/dist/models/ListLumaDocumentsRequest.js.map +1 -0
- package/dist/models/ListLumaDocumentsResponse.d.ts +19 -0
- package/dist/models/ListLumaDocumentsResponse.js +69 -0
- package/dist/models/ListLumaDocumentsResponse.js.map +1 -0
- package/dist/models/ListLumaDocumentsResponseBody.d.ts +87 -0
- package/dist/models/ListLumaDocumentsResponseBody.js +96 -0
- package/dist/models/ListLumaDocumentsResponseBody.js.map +1 -0
- package/dist/models/ListLumaKnowledgeBasesRequest.d.ts +43 -0
- package/dist/models/ListLumaKnowledgeBasesRequest.js +62 -0
- package/dist/models/ListLumaKnowledgeBasesRequest.js.map +1 -0
- package/dist/models/ListLumaKnowledgeBasesResponse.d.ts +19 -0
- package/dist/models/ListLumaKnowledgeBasesResponse.js +69 -0
- package/dist/models/ListLumaKnowledgeBasesResponse.js.map +1 -0
- package/dist/models/ListLumaKnowledgeBasesResponseBody.d.ts +71 -0
- package/dist/models/ListLumaKnowledgeBasesResponseBody.js +92 -0
- package/dist/models/ListLumaKnowledgeBasesResponseBody.js.map +1 -0
- package/dist/models/ListLumaNamespacesRequest.d.ts +33 -0
- package/dist/models/ListLumaNamespacesRequest.js +60 -0
- package/dist/models/ListLumaNamespacesRequest.js.map +1 -0
- package/dist/models/ListLumaNamespacesResponse.d.ts +19 -0
- package/dist/models/ListLumaNamespacesResponse.js +69 -0
- package/dist/models/ListLumaNamespacesResponse.js.map +1 -0
- package/dist/models/ListLumaNamespacesResponseBody.d.ts +71 -0
- package/dist/models/ListLumaNamespacesResponseBody.js +92 -0
- package/dist/models/ListLumaNamespacesResponseBody.js.map +1 -0
- package/dist/models/ListLumaTablesRequest.d.ts +43 -0
- package/dist/models/ListLumaTablesRequest.js +62 -0
- package/dist/models/ListLumaTablesRequest.js.map +1 -0
- package/dist/models/ListLumaTablesResponse.d.ts +19 -0
- package/dist/models/ListLumaTablesResponse.js +69 -0
- package/dist/models/ListLumaTablesResponse.js.map +1 -0
- package/dist/models/ListLumaTablesResponseBody.d.ts +71 -0
- package/dist/models/ListLumaTablesResponseBody.js +92 -0
- package/dist/models/ListLumaTablesResponseBody.js.map +1 -0
- package/dist/models/LumaTable.d.ts +138 -0
- package/dist/models/LumaTable.js +122 -0
- package/dist/models/LumaTable.js.map +1 -0
- package/dist/models/MetadataSchemaField.d.ts +49 -0
- package/dist/models/MetadataSchemaField.js +64 -0
- package/dist/models/MetadataSchemaField.js.map +1 -0
- package/dist/models/PollAskResultResponseBody.d.ts +4 -4
- package/dist/models/PutEventsRequest.d.ts +118 -0
- package/dist/models/PutEventsRequest.js +98 -0
- package/dist/models/PutEventsRequest.js.map +1 -0
- package/dist/models/PutEventsResponse.d.ts +19 -0
- package/dist/models/PutEventsResponse.js +69 -0
- package/dist/models/PutEventsResponse.js.map +1 -0
- package/dist/models/PutEventsResponseBody.d.ts +119 -0
- package/dist/models/PutEventsResponseBody.js +118 -0
- package/dist/models/PutEventsResponseBody.js.map +1 -0
- package/dist/models/PutEventsShrinkRequest.d.ts +28 -0
- package/dist/models/PutEventsShrinkRequest.js +60 -0
- package/dist/models/PutEventsShrinkRequest.js.map +1 -0
- package/dist/models/QueryAskLumaLogRequest.d.ts +2 -2
- package/dist/models/QueryLumaWithSqlrequest.d.ts +41 -0
- package/dist/models/QueryLumaWithSqlrequest.js +62 -0
- package/dist/models/QueryLumaWithSqlrequest.js.map +1 -0
- package/dist/models/QueryLumaWithSqlresponse.d.ts +19 -0
- package/dist/models/QueryLumaWithSqlresponse.js +69 -0
- package/dist/models/QueryLumaWithSqlresponse.js.map +1 -0
- package/dist/models/QueryLumaWithSqlresponseBody.d.ts +51 -0
- package/dist/models/QueryLumaWithSqlresponseBody.js +70 -0
- package/dist/models/QueryLumaWithSqlresponseBody.js.map +1 -0
- package/dist/models/SchemaColumn.d.ts +2 -2
- package/dist/models/SearchLumaKnowledgeBaseRequest.d.ts +95 -0
- package/dist/models/SearchLumaKnowledgeBaseRequest.js +74 -0
- package/dist/models/SearchLumaKnowledgeBaseRequest.js.map +1 -0
- package/dist/models/SearchLumaKnowledgeBaseResponse.d.ts +19 -0
- package/dist/models/SearchLumaKnowledgeBaseResponse.js +69 -0
- package/dist/models/SearchLumaKnowledgeBaseResponse.js.map +1 -0
- package/dist/models/SearchLumaKnowledgeBaseResponseBody.d.ts +79 -0
- package/dist/models/SearchLumaKnowledgeBaseResponseBody.js +94 -0
- package/dist/models/SearchLumaKnowledgeBaseResponseBody.js.map +1 -0
- package/dist/models/SinkKnowledgeBaseParameters.d.ts +37 -0
- package/dist/models/SinkKnowledgeBaseParameters.js +62 -0
- package/dist/models/SinkKnowledgeBaseParameters.js.map +1 -0
- package/dist/models/SourceFeiShuDocsParameters.d.ts +28 -0
- package/dist/models/SourceFeiShuDocsParameters.js.map +1 -1
- package/dist/models/UpdateEventStreamingRequest.d.ts +302 -161
- package/dist/models/UpdateEventStreamingRequest.js +11 -0
- package/dist/models/UpdateEventStreamingRequest.js.map +1 -1
- package/dist/models/UpdateEventStreamingResponseBody.d.ts +2 -4
- package/dist/models/UpdateEventStreamingResponseBody.js.map +1 -1
- package/dist/models/UpdateEventStreamingShrinkRequest.d.ts +4 -4
- package/dist/models/model.d.ts +77 -0
- package/dist/models/model.js +178 -22
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1206 -216
- package/src/models/AgentBridgeRuntime.ts +104 -0
- package/src/models/CreateEventStreamingRequest.ts +250 -119
- package/src/models/CreateEventStreamingResponseBody.ts +3 -1
- package/src/models/CreateEventStreamingShrinkRequest.ts +6 -6
- package/src/models/DeleteNamespaceRequest.ts +3 -3
- package/src/models/DeleteNamespaceResponseBody.ts +4 -4
- package/src/models/ExecutionResult.ts +9 -6
- package/src/models/GetEventStreamingRequest.ts +1 -1
- package/src/models/GetEventStreamingResponseBody.ts +282 -154
- package/src/models/GetLumaCatalogRequest.ts +48 -0
- package/src/models/GetLumaCatalogResponse.ts +40 -0
- package/src/models/GetLumaCatalogResponseBody.ts +75 -0
- package/src/models/GetLumaChunkRequest.ts +96 -0
- package/src/models/GetLumaChunkResponse.ts +40 -0
- package/src/models/GetLumaChunkResponseBody.ts +75 -0
- package/src/models/GetLumaDocumentDownloadUrlRequest.ts +98 -0
- package/src/models/GetLumaDocumentDownloadUrlResponse.ts +40 -0
- package/src/models/GetLumaDocumentDownloadUrlResponseBody.ts +114 -0
- package/src/models/GetLumaDocumentRequest.ts +84 -0
- package/src/models/GetLumaDocumentResponse.ts +40 -0
- package/src/models/GetLumaDocumentResponseBody.ts +75 -0
- package/src/models/GetLumaKnowledgeBaseRequest.ts +72 -0
- package/src/models/GetLumaKnowledgeBaseResponse.ts +40 -0
- package/src/models/GetLumaKnowledgeBaseResponseBody.ts +75 -0
- package/src/models/GetLumaNamespaceRequest.ts +60 -0
- package/src/models/GetLumaNamespaceResponse.ts +40 -0
- package/src/models/GetLumaNamespaceResponseBody.ts +75 -0
- package/src/models/GetLumaTableRequest.ts +72 -0
- package/src/models/GetLumaTableResponse.ts +40 -0
- package/src/models/GetLumaTableResponseBody.ts +75 -0
- package/src/models/KnowledgeBase.ts +384 -0
- package/src/models/KnowledgeBaseChunk.ts +124 -0
- package/src/models/KnowledgeBaseDocument.ts +341 -0
- package/src/models/KnowledgeBaseSearchChunk.ts +164 -0
- package/src/models/ListEventStreamingsRequest.ts +3 -3
- package/src/models/ListEventStreamingsResponseBody.ts +177 -167
- package/src/models/ListLumaCatalogsRequest.ts +36 -0
- package/src/models/ListLumaCatalogsResponse.ts +40 -0
- package/src/models/ListLumaCatalogsResponseBody.ts +108 -0
- package/src/models/ListLumaChunksRequest.ts +122 -0
- package/src/models/ListLumaChunksResponse.ts +40 -0
- package/src/models/ListLumaChunksResponseBody.ts +128 -0
- package/src/models/ListLumaDocumentsRequest.ts +112 -0
- package/src/models/ListLumaDocumentsResponse.ts +40 -0
- package/src/models/ListLumaDocumentsResponseBody.ts +128 -0
- package/src/models/ListLumaKnowledgeBasesRequest.ts +60 -0
- package/src/models/ListLumaKnowledgeBasesResponse.ts +40 -0
- package/src/models/ListLumaKnowledgeBasesResponseBody.ts +108 -0
- package/src/models/ListLumaNamespacesRequest.ts +48 -0
- package/src/models/ListLumaNamespacesResponse.ts +40 -0
- package/src/models/ListLumaNamespacesResponseBody.ts +108 -0
- package/src/models/ListLumaTablesRequest.ts +60 -0
- package/src/models/ListLumaTablesResponse.ts +40 -0
- package/src/models/ListLumaTablesResponseBody.ts +108 -0
- package/src/models/LumaTable.ts +197 -0
- package/src/models/MetadataSchemaField.ts +68 -0
- package/src/models/PollAskResultResponseBody.ts +4 -4
- package/src/models/PutEventsRequest.ts +162 -0
- package/src/models/PutEventsResponse.ts +40 -0
- package/src/models/PutEventsResponseBody.ts +174 -0
- package/src/models/PutEventsShrinkRequest.ts +43 -0
- package/src/models/QueryAskLumaLogRequest.ts +2 -2
- package/src/models/QueryLumaWithSqlrequest.ts +58 -0
- package/src/models/QueryLumaWithSqlresponse.ts +40 -0
- package/src/models/QueryLumaWithSqlresponseBody.ts +75 -0
- package/src/models/SchemaColumn.ts +2 -2
- package/src/models/SearchLumaKnowledgeBaseRequest.ts +124 -0
- package/src/models/SearchLumaKnowledgeBaseResponse.ts +40 -0
- package/src/models/SearchLumaKnowledgeBaseResponseBody.ts +118 -0
- package/src/models/SinkKnowledgeBaseParameters.ts +54 -0
- package/src/models/SourceFeiShuDocsParameters.ts +28 -0
- package/src/models/UpdateEventStreamingRequest.ts +312 -161
- package/src/models/UpdateEventStreamingResponseBody.ts +2 -4
- package/src/models/UpdateEventStreamingShrinkRequest.ts +4 -4
- package/src/models/model.ts +77 -0
package/src/client.ts
CHANGED
|
@@ -58,7 +58,7 @@ export default class Client extends OpenApi {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
* Queries data
|
|
61
|
+
* Queries data using natural language.
|
|
62
62
|
*
|
|
63
63
|
* @param request - AskLumaRequest
|
|
64
64
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -101,7 +101,7 @@ export default class Client extends OpenApi {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
* Queries data
|
|
104
|
+
* Queries data using natural language.
|
|
105
105
|
*
|
|
106
106
|
* @param request - AskLumaRequest
|
|
107
107
|
* @returns AskLumaResponse
|
|
@@ -1296,7 +1296,7 @@ export default class Client extends OpenApi {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
|
|
1298
1298
|
/**
|
|
1299
|
-
*
|
|
1299
|
+
* Deletes a namespace.
|
|
1300
1300
|
*
|
|
1301
1301
|
* @param request - DeleteNamespaceRequest
|
|
1302
1302
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1337,7 +1337,7 @@ export default class Client extends OpenApi {
|
|
|
1337
1337
|
}
|
|
1338
1338
|
|
|
1339
1339
|
/**
|
|
1340
|
-
*
|
|
1340
|
+
* Deletes a namespace.
|
|
1341
1341
|
*
|
|
1342
1342
|
* @param request - DeleteNamespaceRequest
|
|
1343
1343
|
* @returns DeleteNamespaceResponse
|
|
@@ -2188,34 +2188,99 @@ export default class Client extends OpenApi {
|
|
|
2188
2188
|
}
|
|
2189
2189
|
|
|
2190
2190
|
/**
|
|
2191
|
-
*
|
|
2191
|
+
* Retrieves the details of a specified data catalog bound to a Luma Agent. You can only query data catalogs that are already bound to the Agent. A ResourceNotFound error is returned for unbound catalogs.
|
|
2192
2192
|
*
|
|
2193
|
-
* @
|
|
2193
|
+
* @remarks
|
|
2194
|
+
* Retrieves the details of a specified data catalog bound to a Luma Agent. You can only query data catalogs that are already bound to the Agent. A ResourceNotFound error is returned for unbound catalogs.
|
|
2195
|
+
*
|
|
2196
|
+
* @param request - GetLumaCatalogRequest
|
|
2194
2197
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2195
|
-
* @returns
|
|
2198
|
+
* @returns GetLumaCatalogResponse
|
|
2196
2199
|
*/
|
|
2197
|
-
async
|
|
2200
|
+
async getLumaCatalogWithOptions(request: $_model.GetLumaCatalogRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetLumaCatalogResponse> {
|
|
2198
2201
|
request.validate();
|
|
2199
|
-
let
|
|
2200
|
-
if (!$dara.isNull(request.
|
|
2201
|
-
|
|
2202
|
+
let body : {[key: string ]: any} = { };
|
|
2203
|
+
if (!$dara.isNull(request.agentName)) {
|
|
2204
|
+
body["AgentName"] = request.agentName;
|
|
2202
2205
|
}
|
|
2203
2206
|
|
|
2204
2207
|
if (!$dara.isNull(request.name)) {
|
|
2205
|
-
|
|
2208
|
+
body["Name"] = request.name;
|
|
2206
2209
|
}
|
|
2207
2210
|
|
|
2211
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2212
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2213
|
+
});
|
|
2214
|
+
let params = new $OpenApiUtil.Params({
|
|
2215
|
+
action: "GetLumaCatalog",
|
|
2216
|
+
version: "2020-04-01",
|
|
2217
|
+
protocol: "HTTPS",
|
|
2218
|
+
pathname: "/",
|
|
2219
|
+
method: "POST",
|
|
2220
|
+
authType: "AK",
|
|
2221
|
+
style: "RPC",
|
|
2222
|
+
reqBodyType: "formData",
|
|
2223
|
+
bodyType: "json",
|
|
2224
|
+
});
|
|
2225
|
+
return $dara.cast<$_model.GetLumaCatalogResponse>(await this.callApi(params, req, runtime), new $_model.GetLumaCatalogResponse({}));
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
* Retrieves the details of a specified data catalog bound to a Luma Agent. You can only query data catalogs that are already bound to the Agent. A ResourceNotFound error is returned for unbound catalogs.
|
|
2230
|
+
*
|
|
2231
|
+
* @remarks
|
|
2232
|
+
* Retrieves the details of a specified data catalog bound to a Luma Agent. You can only query data catalogs that are already bound to the Agent. A ResourceNotFound error is returned for unbound catalogs.
|
|
2233
|
+
*
|
|
2234
|
+
* @param request - GetLumaCatalogRequest
|
|
2235
|
+
* @returns GetLumaCatalogResponse
|
|
2236
|
+
*/
|
|
2237
|
+
async getLumaCatalog(request: $_model.GetLumaCatalogRequest): Promise<$_model.GetLumaCatalogResponse> {
|
|
2238
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2239
|
+
return await this.getLumaCatalogWithOptions(request, runtime);
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
/**
|
|
2243
|
+
* Retrieves the full content of a specified text chunk from a knowledge base bound to a Luma Agent.
|
|
2244
|
+
*
|
|
2245
|
+
* @remarks
|
|
2246
|
+
* Retrieves the full content of a specified text chunk from a knowledge base bound to a Luma Agent.
|
|
2247
|
+
*
|
|
2248
|
+
* @param request - GetLumaChunkRequest
|
|
2249
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2250
|
+
* @returns GetLumaChunkResponse
|
|
2251
|
+
*/
|
|
2252
|
+
async getLumaChunkWithOptions(request: $_model.GetLumaChunkRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetLumaChunkResponse> {
|
|
2253
|
+
request.validate();
|
|
2208
2254
|
let body : {[key: string ]: any} = { };
|
|
2209
|
-
if (!$dara.isNull(request.
|
|
2210
|
-
body["
|
|
2255
|
+
if (!$dara.isNull(request.agentName)) {
|
|
2256
|
+
body["AgentName"] = request.agentName;
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
if (!$dara.isNull(request.catalog)) {
|
|
2260
|
+
body["Catalog"] = request.catalog;
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
if (!$dara.isNull(request.chunkSeq)) {
|
|
2264
|
+
body["ChunkSeq"] = request.chunkSeq;
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
if (!$dara.isNull(request.documentId)) {
|
|
2268
|
+
body["DocumentId"] = request.documentId;
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
if (!$dara.isNull(request.knowledgeBaseName)) {
|
|
2272
|
+
body["KnowledgeBaseName"] = request.knowledgeBaseName;
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
if (!$dara.isNull(request.namespace)) {
|
|
2276
|
+
body["Namespace"] = request.namespace;
|
|
2211
2277
|
}
|
|
2212
2278
|
|
|
2213
2279
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2214
|
-
query: OpenApiUtil.query(query),
|
|
2215
2280
|
body: OpenApiUtil.parseToMap(body),
|
|
2216
2281
|
});
|
|
2217
2282
|
let params = new $OpenApiUtil.Params({
|
|
2218
|
-
action: "
|
|
2283
|
+
action: "GetLumaChunk",
|
|
2219
2284
|
version: "2020-04-01",
|
|
2220
2285
|
protocol: "HTTPS",
|
|
2221
2286
|
pathname: "/",
|
|
@@ -2225,46 +2290,61 @@ export default class Client extends OpenApi {
|
|
|
2225
2290
|
reqBodyType: "formData",
|
|
2226
2291
|
bodyType: "json",
|
|
2227
2292
|
});
|
|
2228
|
-
return $dara.cast<$_model.
|
|
2293
|
+
return $dara.cast<$_model.GetLumaChunkResponse>(await this.callApi(params, req, runtime), new $_model.GetLumaChunkResponse({}));
|
|
2229
2294
|
}
|
|
2230
2295
|
|
|
2231
2296
|
/**
|
|
2232
|
-
*
|
|
2297
|
+
* Retrieves the full content of a specified text chunk from a knowledge base bound to a Luma Agent.
|
|
2233
2298
|
*
|
|
2234
|
-
* @
|
|
2235
|
-
*
|
|
2299
|
+
* @remarks
|
|
2300
|
+
* Retrieves the full content of a specified text chunk from a knowledge base bound to a Luma Agent.
|
|
2301
|
+
*
|
|
2302
|
+
* @param request - GetLumaChunkRequest
|
|
2303
|
+
* @returns GetLumaChunkResponse
|
|
2236
2304
|
*/
|
|
2237
|
-
async
|
|
2305
|
+
async getLumaChunk(request: $_model.GetLumaChunkRequest): Promise<$_model.GetLumaChunkResponse> {
|
|
2238
2306
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2239
|
-
return await this.
|
|
2307
|
+
return await this.getLumaChunkWithOptions(request, runtime);
|
|
2240
2308
|
}
|
|
2241
2309
|
|
|
2242
2310
|
/**
|
|
2243
|
-
* Retrieves the details of
|
|
2311
|
+
* Retrieves the details of a specified document in the knowledge base bound to a Luma Agent.
|
|
2244
2312
|
*
|
|
2245
2313
|
* @remarks
|
|
2246
|
-
*
|
|
2314
|
+
* Retrieves the details of a specified document in the knowledge base bound to a Luma Agent.
|
|
2247
2315
|
*
|
|
2248
|
-
* @param request -
|
|
2316
|
+
* @param request - GetLumaDocumentRequest
|
|
2249
2317
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2250
|
-
* @returns
|
|
2318
|
+
* @returns GetLumaDocumentResponse
|
|
2251
2319
|
*/
|
|
2252
|
-
async
|
|
2320
|
+
async getLumaDocumentWithOptions(request: $_model.GetLumaDocumentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetLumaDocumentResponse> {
|
|
2253
2321
|
request.validate();
|
|
2254
|
-
let
|
|
2255
|
-
if (!$dara.isNull(request.
|
|
2256
|
-
|
|
2322
|
+
let body : {[key: string ]: any} = { };
|
|
2323
|
+
if (!$dara.isNull(request.agentName)) {
|
|
2324
|
+
body["AgentName"] = request.agentName;
|
|
2257
2325
|
}
|
|
2258
2326
|
|
|
2259
|
-
if (!$dara.isNull(request.
|
|
2260
|
-
|
|
2327
|
+
if (!$dara.isNull(request.catalog)) {
|
|
2328
|
+
body["Catalog"] = request.catalog;
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
if (!$dara.isNull(request.documentId)) {
|
|
2332
|
+
body["DocumentId"] = request.documentId;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
if (!$dara.isNull(request.knowledgeBaseName)) {
|
|
2336
|
+
body["KnowledgeBaseName"] = request.knowledgeBaseName;
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2339
|
+
if (!$dara.isNull(request.namespace)) {
|
|
2340
|
+
body["Namespace"] = request.namespace;
|
|
2261
2341
|
}
|
|
2262
2342
|
|
|
2263
2343
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2264
|
-
|
|
2344
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2265
2345
|
});
|
|
2266
2346
|
let params = new $OpenApiUtil.Params({
|
|
2267
|
-
action: "
|
|
2347
|
+
action: "GetLumaDocument",
|
|
2268
2348
|
version: "2020-04-01",
|
|
2269
2349
|
protocol: "HTTPS",
|
|
2270
2350
|
pathname: "/",
|
|
@@ -2274,56 +2354,65 @@ export default class Client extends OpenApi {
|
|
|
2274
2354
|
reqBodyType: "formData",
|
|
2275
2355
|
bodyType: "json",
|
|
2276
2356
|
});
|
|
2277
|
-
return $dara.cast<$_model.
|
|
2357
|
+
return $dara.cast<$_model.GetLumaDocumentResponse>(await this.callApi(params, req, runtime), new $_model.GetLumaDocumentResponse({}));
|
|
2278
2358
|
}
|
|
2279
2359
|
|
|
2280
2360
|
/**
|
|
2281
|
-
* Retrieves the details of
|
|
2361
|
+
* Retrieves the details of a specified document in the knowledge base bound to a Luma Agent.
|
|
2282
2362
|
*
|
|
2283
2363
|
* @remarks
|
|
2284
|
-
*
|
|
2364
|
+
* Retrieves the details of a specified document in the knowledge base bound to a Luma Agent.
|
|
2285
2365
|
*
|
|
2286
|
-
* @param request -
|
|
2287
|
-
* @returns
|
|
2366
|
+
* @param request - GetLumaDocumentRequest
|
|
2367
|
+
* @returns GetLumaDocumentResponse
|
|
2288
2368
|
*/
|
|
2289
|
-
async
|
|
2369
|
+
async getLumaDocument(request: $_model.GetLumaDocumentRequest): Promise<$_model.GetLumaDocumentResponse> {
|
|
2290
2370
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2291
|
-
return await this.
|
|
2371
|
+
return await this.getLumaDocumentWithOptions(request, runtime);
|
|
2292
2372
|
}
|
|
2293
2373
|
|
|
2294
2374
|
/**
|
|
2295
|
-
*
|
|
2375
|
+
* Retrieves a temporary download URL for a specified document in the knowledge base bound to a Luma Agent. The URL is valid for one hour by default.
|
|
2296
2376
|
*
|
|
2297
|
-
* @
|
|
2377
|
+
* @remarks
|
|
2378
|
+
* Retrieves a temporary download URL for a specified document in the knowledge base bound to a Luma Agent. The URL is valid for one hour by default.
|
|
2379
|
+
*
|
|
2380
|
+
* @param request - GetLumaDocumentDownloadUrlRequest
|
|
2298
2381
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2299
|
-
* @returns
|
|
2382
|
+
* @returns GetLumaDocumentDownloadUrlResponse
|
|
2300
2383
|
*/
|
|
2301
|
-
async
|
|
2384
|
+
async getLumaDocumentDownloadUrlWithOptions(request: $_model.GetLumaDocumentDownloadUrlRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetLumaDocumentDownloadUrlResponse> {
|
|
2302
2385
|
request.validate();
|
|
2303
|
-
let
|
|
2386
|
+
let body : {[key: string ]: any} = { };
|
|
2387
|
+
if (!$dara.isNull(request.agentName)) {
|
|
2388
|
+
body["AgentName"] = request.agentName;
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2304
2391
|
if (!$dara.isNull(request.catalog)) {
|
|
2305
|
-
|
|
2392
|
+
body["Catalog"] = request.catalog;
|
|
2306
2393
|
}
|
|
2307
2394
|
|
|
2308
|
-
if (!$dara.isNull(request.
|
|
2309
|
-
|
|
2395
|
+
if (!$dara.isNull(request.documentId)) {
|
|
2396
|
+
body["DocumentId"] = request.documentId;
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
if (!$dara.isNull(request.knowledgeBaseName)) {
|
|
2400
|
+
body["KnowledgeBaseName"] = request.knowledgeBaseName;
|
|
2310
2401
|
}
|
|
2311
2402
|
|
|
2312
2403
|
if (!$dara.isNull(request.namespace)) {
|
|
2313
|
-
|
|
2404
|
+
body["Namespace"] = request.namespace;
|
|
2314
2405
|
}
|
|
2315
2406
|
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
body["ClientToken"] = request.clientToken;
|
|
2407
|
+
if (!$dara.isNull(request.networkType)) {
|
|
2408
|
+
body["NetworkType"] = request.networkType;
|
|
2319
2409
|
}
|
|
2320
2410
|
|
|
2321
2411
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2322
|
-
query: OpenApiUtil.query(query),
|
|
2323
2412
|
body: OpenApiUtil.parseToMap(body),
|
|
2324
2413
|
});
|
|
2325
2414
|
let params = new $OpenApiUtil.Params({
|
|
2326
|
-
action: "
|
|
2415
|
+
action: "GetLumaDocumentDownloadUrl",
|
|
2327
2416
|
version: "2020-04-01",
|
|
2328
2417
|
protocol: "HTTPS",
|
|
2329
2418
|
pathname: "/",
|
|
@@ -2333,47 +2422,57 @@ export default class Client extends OpenApi {
|
|
|
2333
2422
|
reqBodyType: "formData",
|
|
2334
2423
|
bodyType: "json",
|
|
2335
2424
|
});
|
|
2336
|
-
return $dara.cast<$_model.
|
|
2425
|
+
return $dara.cast<$_model.GetLumaDocumentDownloadUrlResponse>(await this.callApi(params, req, runtime), new $_model.GetLumaDocumentDownloadUrlResponse({}));
|
|
2337
2426
|
}
|
|
2338
2427
|
|
|
2339
2428
|
/**
|
|
2340
|
-
*
|
|
2429
|
+
* Retrieves a temporary download URL for a specified document in the knowledge base bound to a Luma Agent. The URL is valid for one hour by default.
|
|
2341
2430
|
*
|
|
2342
|
-
* @
|
|
2343
|
-
*
|
|
2431
|
+
* @remarks
|
|
2432
|
+
* Retrieves a temporary download URL for a specified document in the knowledge base bound to a Luma Agent. The URL is valid for one hour by default.
|
|
2433
|
+
*
|
|
2434
|
+
* @param request - GetLumaDocumentDownloadUrlRequest
|
|
2435
|
+
* @returns GetLumaDocumentDownloadUrlResponse
|
|
2344
2436
|
*/
|
|
2345
|
-
async
|
|
2437
|
+
async getLumaDocumentDownloadUrl(request: $_model.GetLumaDocumentDownloadUrlRequest): Promise<$_model.GetLumaDocumentDownloadUrlResponse> {
|
|
2346
2438
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2347
|
-
return await this.
|
|
2439
|
+
return await this.getLumaDocumentDownloadUrlWithOptions(request, runtime);
|
|
2348
2440
|
}
|
|
2349
2441
|
|
|
2350
2442
|
/**
|
|
2351
|
-
* Retrieves
|
|
2443
|
+
* Retrieves the details of a specified knowledge base bound to a Luma Agent, including the vector model, chunking configuration, and retrieval configuration.
|
|
2352
2444
|
*
|
|
2353
|
-
* @
|
|
2445
|
+
* @remarks
|
|
2446
|
+
* Retrieves the details of a specified knowledge base bound to a Luma Agent, including the vector model, chunking configuration, and retrieval configuration.
|
|
2447
|
+
*
|
|
2448
|
+
* @param request - GetLumaKnowledgeBaseRequest
|
|
2354
2449
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2355
|
-
* @returns
|
|
2450
|
+
* @returns GetLumaKnowledgeBaseResponse
|
|
2356
2451
|
*/
|
|
2357
|
-
async
|
|
2452
|
+
async getLumaKnowledgeBaseWithOptions(request: $_model.GetLumaKnowledgeBaseRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetLumaKnowledgeBaseResponse> {
|
|
2358
2453
|
request.validate();
|
|
2359
2454
|
let body : {[key: string ]: any} = { };
|
|
2360
|
-
if (!$dara.isNull(request.
|
|
2361
|
-
body["
|
|
2455
|
+
if (!$dara.isNull(request.agentName)) {
|
|
2456
|
+
body["AgentName"] = request.agentName;
|
|
2362
2457
|
}
|
|
2363
2458
|
|
|
2364
|
-
if (!$dara.isNull(request.
|
|
2365
|
-
body["
|
|
2459
|
+
if (!$dara.isNull(request.catalog)) {
|
|
2460
|
+
body["Catalog"] = request.catalog;
|
|
2366
2461
|
}
|
|
2367
2462
|
|
|
2368
|
-
if (!$dara.isNull(request.
|
|
2369
|
-
body["
|
|
2463
|
+
if (!$dara.isNull(request.knowledgeBaseName)) {
|
|
2464
|
+
body["KnowledgeBaseName"] = request.knowledgeBaseName;
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
if (!$dara.isNull(request.namespace)) {
|
|
2468
|
+
body["Namespace"] = request.namespace;
|
|
2370
2469
|
}
|
|
2371
2470
|
|
|
2372
2471
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2373
2472
|
body: OpenApiUtil.parseToMap(body),
|
|
2374
2473
|
});
|
|
2375
2474
|
let params = new $OpenApiUtil.Params({
|
|
2376
|
-
action: "
|
|
2475
|
+
action: "GetLumaKnowledgeBase",
|
|
2377
2476
|
version: "2020-04-01",
|
|
2378
2477
|
protocol: "HTTPS",
|
|
2379
2478
|
pathname: "/",
|
|
@@ -2383,33 +2482,53 @@ export default class Client extends OpenApi {
|
|
|
2383
2482
|
reqBodyType: "formData",
|
|
2384
2483
|
bodyType: "json",
|
|
2385
2484
|
});
|
|
2386
|
-
return $dara.cast<$_model.
|
|
2485
|
+
return $dara.cast<$_model.GetLumaKnowledgeBaseResponse>(await this.callApi(params, req, runtime), new $_model.GetLumaKnowledgeBaseResponse({}));
|
|
2387
2486
|
}
|
|
2388
2487
|
|
|
2389
2488
|
/**
|
|
2390
|
-
* Retrieves
|
|
2489
|
+
* Retrieves the details of a specified knowledge base bound to a Luma Agent, including the vector model, chunking configuration, and retrieval configuration.
|
|
2391
2490
|
*
|
|
2392
|
-
* @
|
|
2393
|
-
*
|
|
2491
|
+
* @remarks
|
|
2492
|
+
* Retrieves the details of a specified knowledge base bound to a Luma Agent, including the vector model, chunking configuration, and retrieval configuration.
|
|
2493
|
+
*
|
|
2494
|
+
* @param request - GetLumaKnowledgeBaseRequest
|
|
2495
|
+
* @returns GetLumaKnowledgeBaseResponse
|
|
2394
2496
|
*/
|
|
2395
|
-
async
|
|
2497
|
+
async getLumaKnowledgeBase(request: $_model.GetLumaKnowledgeBaseRequest): Promise<$_model.GetLumaKnowledgeBaseResponse> {
|
|
2396
2498
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2397
|
-
return await this.
|
|
2499
|
+
return await this.getLumaKnowledgeBaseWithOptions(request, runtime);
|
|
2398
2500
|
}
|
|
2399
2501
|
|
|
2400
2502
|
/**
|
|
2401
|
-
*
|
|
2503
|
+
* Retrieves the details of a specified namespace bound to a Luma Agent. Only namespaces that are already bound to the Agent can be queried.
|
|
2402
2504
|
*
|
|
2403
2505
|
* @remarks
|
|
2404
|
-
*
|
|
2506
|
+
* Retrieves the details of a specified namespace bound to a Luma Agent. Only namespaces that are already bound to the Agent can be queried.
|
|
2405
2507
|
*
|
|
2508
|
+
* @param request - GetLumaNamespaceRequest
|
|
2406
2509
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2407
|
-
* @returns
|
|
2510
|
+
* @returns GetLumaNamespaceResponse
|
|
2408
2511
|
*/
|
|
2409
|
-
async
|
|
2410
|
-
|
|
2512
|
+
async getLumaNamespaceWithOptions(request: $_model.GetLumaNamespaceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetLumaNamespaceResponse> {
|
|
2513
|
+
request.validate();
|
|
2514
|
+
let body : {[key: string ]: any} = { };
|
|
2515
|
+
if (!$dara.isNull(request.agentName)) {
|
|
2516
|
+
body["AgentName"] = request.agentName;
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2519
|
+
if (!$dara.isNull(request.catalog)) {
|
|
2520
|
+
body["Catalog"] = request.catalog;
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2523
|
+
if (!$dara.isNull(request.name)) {
|
|
2524
|
+
body["Name"] = request.name;
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2528
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2529
|
+
});
|
|
2411
2530
|
let params = new $OpenApiUtil.Params({
|
|
2412
|
-
action: "
|
|
2531
|
+
action: "GetLumaNamespace",
|
|
2413
2532
|
version: "2020-04-01",
|
|
2414
2533
|
protocol: "HTTPS",
|
|
2415
2534
|
pathname: "/",
|
|
@@ -2419,55 +2538,57 @@ export default class Client extends OpenApi {
|
|
|
2419
2538
|
reqBodyType: "formData",
|
|
2420
2539
|
bodyType: "json",
|
|
2421
2540
|
});
|
|
2422
|
-
return $dara.cast<$_model.
|
|
2541
|
+
return $dara.cast<$_model.GetLumaNamespaceResponse>(await this.callApi(params, req, runtime), new $_model.GetLumaNamespaceResponse({}));
|
|
2423
2542
|
}
|
|
2424
2543
|
|
|
2425
2544
|
/**
|
|
2426
|
-
*
|
|
2545
|
+
* Retrieves the details of a specified namespace bound to a Luma Agent. Only namespaces that are already bound to the Agent can be queried.
|
|
2427
2546
|
*
|
|
2428
2547
|
* @remarks
|
|
2429
|
-
*
|
|
2430
|
-
*
|
|
2548
|
+
* Retrieves the details of a specified namespace bound to a Luma Agent. Only namespaces that are already bound to the Agent can be queried.
|
|
2549
|
+
*
|
|
2550
|
+
* @param request - GetLumaNamespaceRequest
|
|
2551
|
+
* @returns GetLumaNamespaceResponse
|
|
2431
2552
|
*/
|
|
2432
|
-
async
|
|
2553
|
+
async getLumaNamespace(request: $_model.GetLumaNamespaceRequest): Promise<$_model.GetLumaNamespaceResponse> {
|
|
2433
2554
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2434
|
-
return await this.
|
|
2555
|
+
return await this.getLumaNamespaceWithOptions(request, runtime);
|
|
2435
2556
|
}
|
|
2436
2557
|
|
|
2437
2558
|
/**
|
|
2438
|
-
*
|
|
2559
|
+
* Retrieves the details of a specified event table bound to a Luma Agent, including column definitions and the data retention policy. Only event tables that are already bound to the Agent can be queried.
|
|
2439
2560
|
*
|
|
2440
2561
|
* @remarks
|
|
2441
|
-
*
|
|
2562
|
+
* Retrieves the details of a specified event table bound to a Luma Agent, including column definitions and the data retention policy. Only event tables that are already bound to the Agent can be queried.
|
|
2442
2563
|
*
|
|
2443
|
-
* @param request -
|
|
2564
|
+
* @param request - GetLumaTableRequest
|
|
2444
2565
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2445
|
-
* @returns
|
|
2566
|
+
* @returns GetLumaTableResponse
|
|
2446
2567
|
*/
|
|
2447
|
-
async
|
|
2568
|
+
async getLumaTableWithOptions(request: $_model.GetLumaTableRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetLumaTableResponse> {
|
|
2448
2569
|
request.validate();
|
|
2449
|
-
let
|
|
2450
|
-
if (!$dara.isNull(request.
|
|
2451
|
-
|
|
2570
|
+
let body : {[key: string ]: any} = { };
|
|
2571
|
+
if (!$dara.isNull(request.agentName)) {
|
|
2572
|
+
body["AgentName"] = request.agentName;
|
|
2452
2573
|
}
|
|
2453
2574
|
|
|
2454
|
-
if (!$dara.isNull(request.
|
|
2455
|
-
|
|
2575
|
+
if (!$dara.isNull(request.catalog)) {
|
|
2576
|
+
body["Catalog"] = request.catalog;
|
|
2456
2577
|
}
|
|
2457
2578
|
|
|
2458
|
-
if (!$dara.isNull(request.
|
|
2459
|
-
|
|
2579
|
+
if (!$dara.isNull(request.name)) {
|
|
2580
|
+
body["Name"] = request.name;
|
|
2460
2581
|
}
|
|
2461
2582
|
|
|
2462
|
-
if (!$dara.isNull(request.
|
|
2463
|
-
|
|
2583
|
+
if (!$dara.isNull(request.namespace)) {
|
|
2584
|
+
body["Namespace"] = request.namespace;
|
|
2464
2585
|
}
|
|
2465
2586
|
|
|
2466
2587
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2467
|
-
|
|
2588
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2468
2589
|
});
|
|
2469
2590
|
let params = new $OpenApiUtil.Params({
|
|
2470
|
-
action: "
|
|
2591
|
+
action: "GetLumaTable",
|
|
2471
2592
|
version: "2020-04-01",
|
|
2472
2593
|
protocol: "HTTPS",
|
|
2473
2594
|
pathname: "/",
|
|
@@ -2477,46 +2598,52 @@ export default class Client extends OpenApi {
|
|
|
2477
2598
|
reqBodyType: "formData",
|
|
2478
2599
|
bodyType: "json",
|
|
2479
2600
|
});
|
|
2480
|
-
return $dara.cast<$_model.
|
|
2601
|
+
return $dara.cast<$_model.GetLumaTableResponse>(await this.callApi(params, req, runtime), new $_model.GetLumaTableResponse({}));
|
|
2481
2602
|
}
|
|
2482
2603
|
|
|
2483
2604
|
/**
|
|
2484
|
-
*
|
|
2605
|
+
* Retrieves the details of a specified event table bound to a Luma Agent, including column definitions and the data retention policy. Only event tables that are already bound to the Agent can be queried.
|
|
2485
2606
|
*
|
|
2486
2607
|
* @remarks
|
|
2487
|
-
*
|
|
2608
|
+
* Retrieves the details of a specified event table bound to a Luma Agent, including column definitions and the data retention policy. Only event tables that are already bound to the Agent can be queried.
|
|
2488
2609
|
*
|
|
2489
|
-
* @param request -
|
|
2490
|
-
* @returns
|
|
2610
|
+
* @param request - GetLumaTableRequest
|
|
2611
|
+
* @returns GetLumaTableResponse
|
|
2491
2612
|
*/
|
|
2492
|
-
async
|
|
2613
|
+
async getLumaTable(request: $_model.GetLumaTableRequest): Promise<$_model.GetLumaTableResponse> {
|
|
2493
2614
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2494
|
-
return await this.
|
|
2615
|
+
return await this.getLumaTableWithOptions(request, runtime);
|
|
2495
2616
|
}
|
|
2496
2617
|
|
|
2497
2618
|
/**
|
|
2498
|
-
*
|
|
2619
|
+
* Get namespace
|
|
2499
2620
|
*
|
|
2500
|
-
* @param request -
|
|
2621
|
+
* @param request - GetNamespaceRequest
|
|
2501
2622
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2502
|
-
* @returns
|
|
2623
|
+
* @returns GetNamespaceResponse
|
|
2503
2624
|
*/
|
|
2504
|
-
async
|
|
2625
|
+
async getNamespaceWithOptions(request: $_model.GetNamespaceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetNamespaceResponse> {
|
|
2505
2626
|
request.validate();
|
|
2506
2627
|
let query = { };
|
|
2507
|
-
if (!$dara.isNull(request.
|
|
2508
|
-
query["
|
|
2628
|
+
if (!$dara.isNull(request.catalog)) {
|
|
2629
|
+
query["Catalog"] = request.catalog;
|
|
2509
2630
|
}
|
|
2510
2631
|
|
|
2511
|
-
if (!$dara.isNull(request.
|
|
2512
|
-
query["
|
|
2632
|
+
if (!$dara.isNull(request.name)) {
|
|
2633
|
+
query["Name"] = request.name;
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
let body : {[key: string ]: any} = { };
|
|
2637
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
2638
|
+
body["ClientToken"] = request.clientToken;
|
|
2513
2639
|
}
|
|
2514
2640
|
|
|
2515
2641
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2516
2642
|
query: OpenApiUtil.query(query),
|
|
2643
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2517
2644
|
});
|
|
2518
2645
|
let params = new $OpenApiUtil.Params({
|
|
2519
|
-
action: "
|
|
2646
|
+
action: "GetNamespace",
|
|
2520
2647
|
version: "2020-04-01",
|
|
2521
2648
|
protocol: "HTTPS",
|
|
2522
2649
|
pathname: "/",
|
|
@@ -2526,54 +2653,729 @@ export default class Client extends OpenApi {
|
|
|
2526
2653
|
reqBodyType: "formData",
|
|
2527
2654
|
bodyType: "json",
|
|
2528
2655
|
});
|
|
2529
|
-
return $dara.cast<$_model.
|
|
2656
|
+
return $dara.cast<$_model.GetNamespaceResponse>(await this.callApi(params, req, runtime), new $_model.GetNamespaceResponse({}));
|
|
2530
2657
|
}
|
|
2531
2658
|
|
|
2532
2659
|
/**
|
|
2533
|
-
*
|
|
2660
|
+
* Get namespace
|
|
2534
2661
|
*
|
|
2535
|
-
* @param request -
|
|
2536
|
-
* @returns
|
|
2662
|
+
* @param request - GetNamespaceRequest
|
|
2663
|
+
* @returns GetNamespaceResponse
|
|
2664
|
+
*/
|
|
2665
|
+
async getNamespace(request: $_model.GetNamespaceRequest): Promise<$_model.GetNamespaceResponse> {
|
|
2666
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2667
|
+
return await this.getNamespaceWithOptions(request, runtime);
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
/**
|
|
2671
|
+
* Retrieves the details of an event rule.
|
|
2672
|
+
*
|
|
2673
|
+
* @remarks
|
|
2674
|
+
* Gets the details of an event rule.
|
|
2675
|
+
*
|
|
2676
|
+
* @param request - GetRuleRequest
|
|
2677
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2678
|
+
* @returns GetRuleResponse
|
|
2679
|
+
*/
|
|
2680
|
+
async getRuleWithOptions(request: $_model.GetRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetRuleResponse> {
|
|
2681
|
+
request.validate();
|
|
2682
|
+
let query = { };
|
|
2683
|
+
if (!$dara.isNull(request.eventBusName)) {
|
|
2684
|
+
query["EventBusName"] = request.eventBusName;
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
if (!$dara.isNull(request.ruleName)) {
|
|
2688
|
+
query["RuleName"] = request.ruleName;
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2692
|
+
query: OpenApiUtil.query(query),
|
|
2693
|
+
});
|
|
2694
|
+
let params = new $OpenApiUtil.Params({
|
|
2695
|
+
action: "GetRule",
|
|
2696
|
+
version: "2020-04-01",
|
|
2697
|
+
protocol: "HTTPS",
|
|
2698
|
+
pathname: "/",
|
|
2699
|
+
method: "POST",
|
|
2700
|
+
authType: "AK",
|
|
2701
|
+
style: "RPC",
|
|
2702
|
+
reqBodyType: "formData",
|
|
2703
|
+
bodyType: "json",
|
|
2704
|
+
});
|
|
2705
|
+
return $dara.cast<$_model.GetRuleResponse>(await this.callApi(params, req, runtime), new $_model.GetRuleResponse({}));
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
/**
|
|
2709
|
+
* Retrieves the details of an event rule.
|
|
2710
|
+
*
|
|
2711
|
+
* @remarks
|
|
2712
|
+
* Gets the details of an event rule.
|
|
2713
|
+
*
|
|
2714
|
+
* @param request - GetRuleRequest
|
|
2715
|
+
* @returns GetRuleResponse
|
|
2716
|
+
*/
|
|
2717
|
+
async getRule(request: $_model.GetRuleRequest): Promise<$_model.GetRuleResponse> {
|
|
2718
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2719
|
+
return await this.getRuleWithOptions(request, runtime);
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
/**
|
|
2723
|
+
* Get Table
|
|
2724
|
+
*
|
|
2725
|
+
* @param request - GetTableRequest
|
|
2726
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2727
|
+
* @returns GetTableResponse
|
|
2728
|
+
*/
|
|
2729
|
+
async getTableWithOptions(request: $_model.GetTableRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetTableResponse> {
|
|
2730
|
+
request.validate();
|
|
2731
|
+
let query = { };
|
|
2732
|
+
if (!$dara.isNull(request.catalog)) {
|
|
2733
|
+
query["Catalog"] = request.catalog;
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
if (!$dara.isNull(request.name)) {
|
|
2737
|
+
query["Name"] = request.name;
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
if (!$dara.isNull(request.namespace)) {
|
|
2741
|
+
query["Namespace"] = request.namespace;
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
let body : {[key: string ]: any} = { };
|
|
2745
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
2746
|
+
body["ClientToken"] = request.clientToken;
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2750
|
+
query: OpenApiUtil.query(query),
|
|
2751
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2752
|
+
});
|
|
2753
|
+
let params = new $OpenApiUtil.Params({
|
|
2754
|
+
action: "GetTable",
|
|
2755
|
+
version: "2020-04-01",
|
|
2756
|
+
protocol: "HTTPS",
|
|
2757
|
+
pathname: "/",
|
|
2758
|
+
method: "POST",
|
|
2759
|
+
authType: "AK",
|
|
2760
|
+
style: "RPC",
|
|
2761
|
+
reqBodyType: "formData",
|
|
2762
|
+
bodyType: "json",
|
|
2763
|
+
});
|
|
2764
|
+
return $dara.cast<$_model.GetTableResponse>(await this.callApi(params, req, runtime), new $_model.GetTableResponse({}));
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
/**
|
|
2768
|
+
* Get Table
|
|
2769
|
+
*
|
|
2770
|
+
* @param request - GetTableRequest
|
|
2771
|
+
* @returns GetTableResponse
|
|
2772
|
+
*/
|
|
2773
|
+
async getTable(request: $_model.GetTableRequest): Promise<$_model.GetTableResponse> {
|
|
2774
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2775
|
+
return await this.getTableWithOptions(request, runtime);
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
/**
|
|
2779
|
+
* Retrieves a list of custom agents.
|
|
2780
|
+
*
|
|
2781
|
+
* @param request - ListAgentsRequest
|
|
2782
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2783
|
+
* @returns ListAgentsResponse
|
|
2784
|
+
*/
|
|
2785
|
+
async listAgentsWithOptions(request: $_model.ListAgentsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListAgentsResponse> {
|
|
2786
|
+
request.validate();
|
|
2787
|
+
let body : {[key: string ]: any} = { };
|
|
2788
|
+
if (!$dara.isNull(request.after)) {
|
|
2789
|
+
body["After"] = request.after;
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
if (!$dara.isNull(request.limit)) {
|
|
2793
|
+
body["Limit"] = request.limit;
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2796
|
+
if (!$dara.isNull(request.order)) {
|
|
2797
|
+
body["Order"] = request.order;
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2801
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2802
|
+
});
|
|
2803
|
+
let params = new $OpenApiUtil.Params({
|
|
2804
|
+
action: "ListAgents",
|
|
2805
|
+
version: "2020-04-01",
|
|
2806
|
+
protocol: "HTTPS",
|
|
2807
|
+
pathname: "/",
|
|
2808
|
+
method: "POST",
|
|
2809
|
+
authType: "AK",
|
|
2810
|
+
style: "RPC",
|
|
2811
|
+
reqBodyType: "formData",
|
|
2812
|
+
bodyType: "json",
|
|
2813
|
+
});
|
|
2814
|
+
return $dara.cast<$_model.ListAgentsResponse>(await this.callApi(params, req, runtime), new $_model.ListAgentsResponse({}));
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
/**
|
|
2818
|
+
* Retrieves a list of custom agents.
|
|
2819
|
+
*
|
|
2820
|
+
* @param request - ListAgentsRequest
|
|
2821
|
+
* @returns ListAgentsResponse
|
|
2822
|
+
*/
|
|
2823
|
+
async listAgents(request: $_model.ListAgentsRequest): Promise<$_model.ListAgentsResponse> {
|
|
2824
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2825
|
+
return await this.listAgentsWithOptions(request, runtime);
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
/**
|
|
2829
|
+
* Queries all Alibaba Cloud service event sources.
|
|
2830
|
+
*
|
|
2831
|
+
* @remarks
|
|
2832
|
+
* You can call this API operation to query all Alibaba Cloud service event sources.
|
|
2833
|
+
*
|
|
2834
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2835
|
+
* @returns ListAliyunOfficialEventSourcesResponse
|
|
2836
|
+
*/
|
|
2837
|
+
async listAliyunOfficialEventSourcesWithOptions(runtime: $dara.RuntimeOptions): Promise<$_model.ListAliyunOfficialEventSourcesResponse> {
|
|
2838
|
+
let req = new $OpenApiUtil.OpenApiRequest({ });
|
|
2839
|
+
let params = new $OpenApiUtil.Params({
|
|
2840
|
+
action: "ListAliyunOfficialEventSources",
|
|
2841
|
+
version: "2020-04-01",
|
|
2842
|
+
protocol: "HTTPS",
|
|
2843
|
+
pathname: "/",
|
|
2844
|
+
method: "POST",
|
|
2845
|
+
authType: "AK",
|
|
2846
|
+
style: "RPC",
|
|
2847
|
+
reqBodyType: "formData",
|
|
2848
|
+
bodyType: "json",
|
|
2849
|
+
});
|
|
2850
|
+
return $dara.cast<$_model.ListAliyunOfficialEventSourcesResponse>(await this.callApi(params, req, runtime), new $_model.ListAliyunOfficialEventSourcesResponse({}));
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
/**
|
|
2854
|
+
* Queries all Alibaba Cloud service event sources.
|
|
2855
|
+
*
|
|
2856
|
+
* @remarks
|
|
2857
|
+
* You can call this API operation to query all Alibaba Cloud service event sources.
|
|
2858
|
+
* @returns ListAliyunOfficialEventSourcesResponse
|
|
2859
|
+
*/
|
|
2860
|
+
async listAliyunOfficialEventSources(): Promise<$_model.ListAliyunOfficialEventSourcesResponse> {
|
|
2861
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2862
|
+
return await this.listAliyunOfficialEventSourcesWithOptions(runtime);
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
/**
|
|
2866
|
+
* Queries a list of API destinations.
|
|
2867
|
+
*
|
|
2868
|
+
* @remarks
|
|
2869
|
+
* You can use this API operation to query a list of API destinations.
|
|
2870
|
+
*
|
|
2871
|
+
* @param request - ListApiDestinationsRequest
|
|
2872
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2873
|
+
* @returns ListApiDestinationsResponse
|
|
2874
|
+
*/
|
|
2875
|
+
async listApiDestinationsWithOptions(request: $_model.ListApiDestinationsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListApiDestinationsResponse> {
|
|
2876
|
+
request.validate();
|
|
2877
|
+
let query = { };
|
|
2878
|
+
if (!$dara.isNull(request.apiDestinationNamePrefix)) {
|
|
2879
|
+
query["ApiDestinationNamePrefix"] = request.apiDestinationNamePrefix;
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
if (!$dara.isNull(request.connectionName)) {
|
|
2883
|
+
query["ConnectionName"] = request.connectionName;
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2886
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
2887
|
+
query["MaxResults"] = request.maxResults;
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
2891
|
+
query["NextToken"] = request.nextToken;
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2895
|
+
query: OpenApiUtil.query(query),
|
|
2896
|
+
});
|
|
2897
|
+
let params = new $OpenApiUtil.Params({
|
|
2898
|
+
action: "ListApiDestinations",
|
|
2899
|
+
version: "2020-04-01",
|
|
2900
|
+
protocol: "HTTPS",
|
|
2901
|
+
pathname: "/",
|
|
2902
|
+
method: "POST",
|
|
2903
|
+
authType: "AK",
|
|
2904
|
+
style: "RPC",
|
|
2905
|
+
reqBodyType: "formData",
|
|
2906
|
+
bodyType: "json",
|
|
2907
|
+
});
|
|
2908
|
+
return $dara.cast<$_model.ListApiDestinationsResponse>(await this.callApi(params, req, runtime), new $_model.ListApiDestinationsResponse({}));
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2911
|
+
/**
|
|
2912
|
+
* Queries a list of API destinations.
|
|
2913
|
+
*
|
|
2914
|
+
* @remarks
|
|
2915
|
+
* You can use this API operation to query a list of API destinations.
|
|
2916
|
+
*
|
|
2917
|
+
* @param request - ListApiDestinationsRequest
|
|
2918
|
+
* @returns ListApiDestinationsResponse
|
|
2919
|
+
*/
|
|
2920
|
+
async listApiDestinations(request: $_model.ListApiDestinationsRequest): Promise<$_model.ListApiDestinationsResponse> {
|
|
2921
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2922
|
+
return await this.listApiDestinationsWithOptions(request, runtime);
|
|
2923
|
+
}
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2926
|
+
* Queries the list of data catalogs.
|
|
2927
|
+
*
|
|
2928
|
+
* @param request - ListCatalogsRequest
|
|
2929
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2930
|
+
* @returns ListCatalogsResponse
|
|
2931
|
+
*/
|
|
2932
|
+
async listCatalogsWithOptions(request: $_model.ListCatalogsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListCatalogsResponse> {
|
|
2933
|
+
request.validate();
|
|
2934
|
+
let query = { };
|
|
2935
|
+
if (!$dara.isNull(request.limit)) {
|
|
2936
|
+
query["Limit"] = request.limit;
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2939
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
2940
|
+
query["NextToken"] = request.nextToken;
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2944
|
+
query: OpenApiUtil.query(query),
|
|
2945
|
+
});
|
|
2946
|
+
let params = new $OpenApiUtil.Params({
|
|
2947
|
+
action: "ListCatalogs",
|
|
2948
|
+
version: "2020-04-01",
|
|
2949
|
+
protocol: "HTTPS",
|
|
2950
|
+
pathname: "/",
|
|
2951
|
+
method: "POST",
|
|
2952
|
+
authType: "AK",
|
|
2953
|
+
style: "RPC",
|
|
2954
|
+
reqBodyType: "formData",
|
|
2955
|
+
bodyType: "json",
|
|
2956
|
+
});
|
|
2957
|
+
return $dara.cast<$_model.ListCatalogsResponse>(await this.callApi(params, req, runtime), new $_model.ListCatalogsResponse({}));
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2960
|
+
/**
|
|
2961
|
+
* Queries the list of data catalogs.
|
|
2962
|
+
*
|
|
2963
|
+
* @param request - ListCatalogsRequest
|
|
2964
|
+
* @returns ListCatalogsResponse
|
|
2965
|
+
*/
|
|
2966
|
+
async listCatalogs(request: $_model.ListCatalogsRequest): Promise<$_model.ListCatalogsResponse> {
|
|
2967
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2968
|
+
return await this.listCatalogsWithOptions(request, runtime);
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
/**
|
|
2972
|
+
* Retrieves a list of connection configurations.
|
|
2973
|
+
*
|
|
2974
|
+
* @remarks
|
|
2975
|
+
* Retrieves a list of connection configurations.
|
|
2976
|
+
*
|
|
2977
|
+
* @param request - ListConnectionsRequest
|
|
2978
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2979
|
+
* @returns ListConnectionsResponse
|
|
2980
|
+
*/
|
|
2981
|
+
async listConnectionsWithOptions(request: $_model.ListConnectionsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListConnectionsResponse> {
|
|
2982
|
+
request.validate();
|
|
2983
|
+
let body : {[key: string ]: any} = { };
|
|
2984
|
+
if (!$dara.isNull(request.connectionNamePrefix)) {
|
|
2985
|
+
body["ConnectionNamePrefix"] = request.connectionNamePrefix;
|
|
2986
|
+
}
|
|
2987
|
+
|
|
2988
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
2989
|
+
body["MaxResults"] = request.maxResults;
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
2993
|
+
body["NextToken"] = request.nextToken;
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2996
|
+
if (!$dara.isNull(request.type)) {
|
|
2997
|
+
body["Type"] = request.type;
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3001
|
+
body: OpenApiUtil.parseToMap(body),
|
|
3002
|
+
});
|
|
3003
|
+
let params = new $OpenApiUtil.Params({
|
|
3004
|
+
action: "ListConnections",
|
|
3005
|
+
version: "2020-04-01",
|
|
3006
|
+
protocol: "HTTPS",
|
|
3007
|
+
pathname: "/",
|
|
3008
|
+
method: "POST",
|
|
3009
|
+
authType: "AK",
|
|
3010
|
+
style: "RPC",
|
|
3011
|
+
reqBodyType: "formData",
|
|
3012
|
+
bodyType: "json",
|
|
3013
|
+
});
|
|
3014
|
+
return $dara.cast<$_model.ListConnectionsResponse>(await this.callApi(params, req, runtime), new $_model.ListConnectionsResponse({}));
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
/**
|
|
3018
|
+
* Retrieves a list of connection configurations.
|
|
3019
|
+
*
|
|
3020
|
+
* @remarks
|
|
3021
|
+
* Retrieves a list of connection configurations.
|
|
3022
|
+
*
|
|
3023
|
+
* @param request - ListConnectionsRequest
|
|
3024
|
+
* @returns ListConnectionsResponse
|
|
3025
|
+
*/
|
|
3026
|
+
async listConnections(request: $_model.ListConnectionsRequest): Promise<$_model.ListConnectionsResponse> {
|
|
3027
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3028
|
+
return await this.listConnectionsWithOptions(request, runtime);
|
|
3029
|
+
}
|
|
3030
|
+
|
|
3031
|
+
/**
|
|
3032
|
+
* Queries all event buses.
|
|
3033
|
+
*
|
|
3034
|
+
* @remarks
|
|
3035
|
+
* You can call this API operation to query all event buses.
|
|
3036
|
+
*
|
|
3037
|
+
* @param request - ListEventBusesRequest
|
|
3038
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3039
|
+
* @returns ListEventBusesResponse
|
|
3040
|
+
*/
|
|
3041
|
+
async listEventBusesWithOptions(request: $_model.ListEventBusesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListEventBusesResponse> {
|
|
3042
|
+
request.validate();
|
|
3043
|
+
let query = { };
|
|
3044
|
+
if (!$dara.isNull(request.limit)) {
|
|
3045
|
+
query["Limit"] = request.limit;
|
|
3046
|
+
}
|
|
3047
|
+
|
|
3048
|
+
if (!$dara.isNull(request.namePrefix)) {
|
|
3049
|
+
query["NamePrefix"] = request.namePrefix;
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
3053
|
+
query["NextToken"] = request.nextToken;
|
|
3054
|
+
}
|
|
3055
|
+
|
|
3056
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3057
|
+
query: OpenApiUtil.query(query),
|
|
3058
|
+
});
|
|
3059
|
+
let params = new $OpenApiUtil.Params({
|
|
3060
|
+
action: "ListEventBuses",
|
|
3061
|
+
version: "2020-04-01",
|
|
3062
|
+
protocol: "HTTPS",
|
|
3063
|
+
pathname: "/",
|
|
3064
|
+
method: "POST",
|
|
3065
|
+
authType: "AK",
|
|
3066
|
+
style: "RPC",
|
|
3067
|
+
reqBodyType: "formData",
|
|
3068
|
+
bodyType: "json",
|
|
3069
|
+
});
|
|
3070
|
+
return $dara.cast<$_model.ListEventBusesResponse>(await this.callApi(params, req, runtime), new $_model.ListEventBusesResponse({}));
|
|
3071
|
+
}
|
|
3072
|
+
|
|
3073
|
+
/**
|
|
3074
|
+
* Queries all event buses.
|
|
3075
|
+
*
|
|
3076
|
+
* @remarks
|
|
3077
|
+
* You can call this API operation to query all event buses.
|
|
3078
|
+
*
|
|
3079
|
+
* @param request - ListEventBusesRequest
|
|
3080
|
+
* @returns ListEventBusesResponse
|
|
3081
|
+
*/
|
|
3082
|
+
async listEventBuses(request: $_model.ListEventBusesRequest): Promise<$_model.ListEventBusesResponse> {
|
|
3083
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3084
|
+
return await this.listEventBusesWithOptions(request, runtime);
|
|
3085
|
+
}
|
|
3086
|
+
|
|
3087
|
+
/**
|
|
3088
|
+
* Queries the list of EventHouse runtimes.
|
|
3089
|
+
*
|
|
3090
|
+
* @param request - ListEventHouseRuntimesRequest
|
|
3091
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3092
|
+
* @returns ListEventHouseRuntimesResponse
|
|
3093
|
+
*/
|
|
3094
|
+
async listEventHouseRuntimesWithOptions(request: $_model.ListEventHouseRuntimesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListEventHouseRuntimesResponse> {
|
|
3095
|
+
request.validate();
|
|
3096
|
+
let query = { };
|
|
3097
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
3098
|
+
query["MaxResults"] = request.maxResults;
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
3102
|
+
query["NextToken"] = request.nextToken;
|
|
3103
|
+
}
|
|
3104
|
+
|
|
3105
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3106
|
+
query: OpenApiUtil.query(query),
|
|
3107
|
+
});
|
|
3108
|
+
let params = new $OpenApiUtil.Params({
|
|
3109
|
+
action: "ListEventHouseRuntimes",
|
|
3110
|
+
version: "2020-04-01",
|
|
3111
|
+
protocol: "HTTPS",
|
|
3112
|
+
pathname: "/",
|
|
3113
|
+
method: "POST",
|
|
3114
|
+
authType: "AK",
|
|
3115
|
+
style: "RPC",
|
|
3116
|
+
reqBodyType: "formData",
|
|
3117
|
+
bodyType: "json",
|
|
3118
|
+
});
|
|
3119
|
+
return $dara.cast<$_model.ListEventHouseRuntimesResponse>(await this.callApi(params, req, runtime), new $_model.ListEventHouseRuntimesResponse({}));
|
|
3120
|
+
}
|
|
3121
|
+
|
|
3122
|
+
/**
|
|
3123
|
+
* Queries the list of EventHouse runtimes.
|
|
3124
|
+
*
|
|
3125
|
+
* @param request - ListEventHouseRuntimesRequest
|
|
3126
|
+
* @returns ListEventHouseRuntimesResponse
|
|
3127
|
+
*/
|
|
3128
|
+
async listEventHouseRuntimes(request: $_model.ListEventHouseRuntimesRequest): Promise<$_model.ListEventHouseRuntimesResponse> {
|
|
3129
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3130
|
+
return await this.listEventHouseRuntimesWithOptions(request, runtime);
|
|
3131
|
+
}
|
|
3132
|
+
|
|
3133
|
+
/**
|
|
3134
|
+
* Queries event streams.
|
|
3135
|
+
*
|
|
3136
|
+
* @remarks
|
|
3137
|
+
* Queries event streams.
|
|
3138
|
+
*
|
|
3139
|
+
* @param request - ListEventStreamingsRequest
|
|
3140
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3141
|
+
* @returns ListEventStreamingsResponse
|
|
3142
|
+
*/
|
|
3143
|
+
async listEventStreamingsWithOptions(request: $_model.ListEventStreamingsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListEventStreamingsResponse> {
|
|
3144
|
+
request.validate();
|
|
3145
|
+
let body : {[key: string ]: any} = { };
|
|
3146
|
+
if (!$dara.isNull(request.limit)) {
|
|
3147
|
+
body["Limit"] = request.limit;
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
if (!$dara.isNull(request.namePrefix)) {
|
|
3151
|
+
body["NamePrefix"] = request.namePrefix;
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
3155
|
+
body["NextToken"] = request.nextToken;
|
|
3156
|
+
}
|
|
3157
|
+
|
|
3158
|
+
if (!$dara.isNull(request.sinkArn)) {
|
|
3159
|
+
body["SinkArn"] = request.sinkArn;
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
if (!$dara.isNull(request.sourceArn)) {
|
|
3163
|
+
body["SourceArn"] = request.sourceArn;
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3166
|
+
if (!$dara.isNull(request.tags)) {
|
|
3167
|
+
body["Tags"] = request.tags;
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3170
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3171
|
+
body: OpenApiUtil.parseToMap(body),
|
|
3172
|
+
});
|
|
3173
|
+
let params = new $OpenApiUtil.Params({
|
|
3174
|
+
action: "ListEventStreamings",
|
|
3175
|
+
version: "2020-04-01",
|
|
3176
|
+
protocol: "HTTPS",
|
|
3177
|
+
pathname: "/",
|
|
3178
|
+
method: "POST",
|
|
3179
|
+
authType: "AK",
|
|
3180
|
+
style: "RPC",
|
|
3181
|
+
reqBodyType: "formData",
|
|
3182
|
+
bodyType: "json",
|
|
3183
|
+
});
|
|
3184
|
+
return $dara.cast<$_model.ListEventStreamingsResponse>(await this.callApi(params, req, runtime), new $_model.ListEventStreamingsResponse({}));
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3187
|
+
/**
|
|
3188
|
+
* Queries event streams.
|
|
3189
|
+
*
|
|
3190
|
+
* @remarks
|
|
3191
|
+
* Queries event streams.
|
|
3192
|
+
*
|
|
3193
|
+
* @param request - ListEventStreamingsRequest
|
|
3194
|
+
* @returns ListEventStreamingsResponse
|
|
3195
|
+
*/
|
|
3196
|
+
async listEventStreamings(request: $_model.ListEventStreamingsRequest): Promise<$_model.ListEventStreamingsResponse> {
|
|
3197
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3198
|
+
return await this.listEventStreamingsWithOptions(request, runtime);
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3201
|
+
/**
|
|
3202
|
+
* Lists all data catalogs bound to a Luma Agent. Returns the complete set of bindings without pagination.
|
|
3203
|
+
*
|
|
3204
|
+
* @remarks
|
|
3205
|
+
* Lists all data catalogs bound to a Luma Agent. Returns the complete set of bindings without pagination.
|
|
3206
|
+
*
|
|
3207
|
+
* @param request - ListLumaCatalogsRequest
|
|
3208
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3209
|
+
* @returns ListLumaCatalogsResponse
|
|
3210
|
+
*/
|
|
3211
|
+
async listLumaCatalogsWithOptions(request: $_model.ListLumaCatalogsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListLumaCatalogsResponse> {
|
|
3212
|
+
request.validate();
|
|
3213
|
+
let body : {[key: string ]: any} = { };
|
|
3214
|
+
if (!$dara.isNull(request.agentName)) {
|
|
3215
|
+
body["AgentName"] = request.agentName;
|
|
3216
|
+
}
|
|
3217
|
+
|
|
3218
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3219
|
+
body: OpenApiUtil.parseToMap(body),
|
|
3220
|
+
});
|
|
3221
|
+
let params = new $OpenApiUtil.Params({
|
|
3222
|
+
action: "ListLumaCatalogs",
|
|
3223
|
+
version: "2020-04-01",
|
|
3224
|
+
protocol: "HTTPS",
|
|
3225
|
+
pathname: "/",
|
|
3226
|
+
method: "POST",
|
|
3227
|
+
authType: "AK",
|
|
3228
|
+
style: "RPC",
|
|
3229
|
+
reqBodyType: "formData",
|
|
3230
|
+
bodyType: "json",
|
|
3231
|
+
});
|
|
3232
|
+
return $dara.cast<$_model.ListLumaCatalogsResponse>(await this.callApi(params, req, runtime), new $_model.ListLumaCatalogsResponse({}));
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3235
|
+
/**
|
|
3236
|
+
* Lists all data catalogs bound to a Luma Agent. Returns the complete set of bindings without pagination.
|
|
3237
|
+
*
|
|
3238
|
+
* @remarks
|
|
3239
|
+
* Lists all data catalogs bound to a Luma Agent. Returns the complete set of bindings without pagination.
|
|
3240
|
+
*
|
|
3241
|
+
* @param request - ListLumaCatalogsRequest
|
|
3242
|
+
* @returns ListLumaCatalogsResponse
|
|
3243
|
+
*/
|
|
3244
|
+
async listLumaCatalogs(request: $_model.ListLumaCatalogsRequest): Promise<$_model.ListLumaCatalogsResponse> {
|
|
3245
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3246
|
+
return await this.listLumaCatalogsWithOptions(request, runtime);
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
/**
|
|
3250
|
+
* Lists text chunks in a knowledge base bound to a Luma Agent, with support for filtering by document, keyword, and enabled status.
|
|
3251
|
+
*
|
|
3252
|
+
* @remarks
|
|
3253
|
+
* Lists text chunks in a knowledge base bound to a Luma Agent, with support for filtering by document, keyword, and enabled status.
|
|
3254
|
+
*
|
|
3255
|
+
* @param request - ListLumaChunksRequest
|
|
3256
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3257
|
+
* @returns ListLumaChunksResponse
|
|
3258
|
+
*/
|
|
3259
|
+
async listLumaChunksWithOptions(request: $_model.ListLumaChunksRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListLumaChunksResponse> {
|
|
3260
|
+
request.validate();
|
|
3261
|
+
let body : {[key: string ]: any} = { };
|
|
3262
|
+
if (!$dara.isNull(request.agentName)) {
|
|
3263
|
+
body["AgentName"] = request.agentName;
|
|
3264
|
+
}
|
|
3265
|
+
|
|
3266
|
+
if (!$dara.isNull(request.catalog)) {
|
|
3267
|
+
body["Catalog"] = request.catalog;
|
|
3268
|
+
}
|
|
3269
|
+
|
|
3270
|
+
if (!$dara.isNull(request.documentId)) {
|
|
3271
|
+
body["DocumentId"] = request.documentId;
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
if (!$dara.isNull(request.enabled)) {
|
|
3275
|
+
body["Enabled"] = request.enabled;
|
|
3276
|
+
}
|
|
3277
|
+
|
|
3278
|
+
if (!$dara.isNull(request.keyword)) {
|
|
3279
|
+
body["Keyword"] = request.keyword;
|
|
3280
|
+
}
|
|
3281
|
+
|
|
3282
|
+
if (!$dara.isNull(request.knowledgeBaseName)) {
|
|
3283
|
+
body["KnowledgeBaseName"] = request.knowledgeBaseName;
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
3287
|
+
body["MaxResults"] = request.maxResults;
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
if (!$dara.isNull(request.namespace)) {
|
|
3291
|
+
body["Namespace"] = request.namespace;
|
|
3292
|
+
}
|
|
3293
|
+
|
|
3294
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
3295
|
+
body["NextToken"] = request.nextToken;
|
|
3296
|
+
}
|
|
3297
|
+
|
|
3298
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3299
|
+
body: OpenApiUtil.parseToMap(body),
|
|
3300
|
+
});
|
|
3301
|
+
let params = new $OpenApiUtil.Params({
|
|
3302
|
+
action: "ListLumaChunks",
|
|
3303
|
+
version: "2020-04-01",
|
|
3304
|
+
protocol: "HTTPS",
|
|
3305
|
+
pathname: "/",
|
|
3306
|
+
method: "POST",
|
|
3307
|
+
authType: "AK",
|
|
3308
|
+
style: "RPC",
|
|
3309
|
+
reqBodyType: "formData",
|
|
3310
|
+
bodyType: "json",
|
|
3311
|
+
});
|
|
3312
|
+
return $dara.cast<$_model.ListLumaChunksResponse>(await this.callApi(params, req, runtime), new $_model.ListLumaChunksResponse({}));
|
|
3313
|
+
}
|
|
3314
|
+
|
|
3315
|
+
/**
|
|
3316
|
+
* Lists text chunks in a knowledge base bound to a Luma Agent, with support for filtering by document, keyword, and enabled status.
|
|
3317
|
+
*
|
|
3318
|
+
* @remarks
|
|
3319
|
+
* Lists text chunks in a knowledge base bound to a Luma Agent, with support for filtering by document, keyword, and enabled status.
|
|
3320
|
+
*
|
|
3321
|
+
* @param request - ListLumaChunksRequest
|
|
3322
|
+
* @returns ListLumaChunksResponse
|
|
2537
3323
|
*/
|
|
2538
|
-
async
|
|
3324
|
+
async listLumaChunks(request: $_model.ListLumaChunksRequest): Promise<$_model.ListLumaChunksResponse> {
|
|
2539
3325
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2540
|
-
return await this.
|
|
3326
|
+
return await this.listLumaChunksWithOptions(request, runtime);
|
|
2541
3327
|
}
|
|
2542
3328
|
|
|
2543
3329
|
/**
|
|
2544
|
-
*
|
|
3330
|
+
* Lists documents in a knowledge base bound to a Luma Agent, with support for filtering by file name prefix and processing status.
|
|
2545
3331
|
*
|
|
2546
3332
|
* @remarks
|
|
2547
|
-
*
|
|
3333
|
+
* Lists documents in a knowledge base bound to a Luma Agent, with support for filtering by file name prefix and processing status.
|
|
2548
3334
|
*
|
|
2549
|
-
* @param request -
|
|
3335
|
+
* @param request - ListLumaDocumentsRequest
|
|
2550
3336
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2551
|
-
* @returns
|
|
3337
|
+
* @returns ListLumaDocumentsResponse
|
|
2552
3338
|
*/
|
|
2553
|
-
async
|
|
3339
|
+
async listLumaDocumentsWithOptions(request: $_model.ListLumaDocumentsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListLumaDocumentsResponse> {
|
|
2554
3340
|
request.validate();
|
|
2555
3341
|
let body : {[key: string ]: any} = { };
|
|
2556
|
-
if (!$dara.isNull(request.
|
|
2557
|
-
body["
|
|
3342
|
+
if (!$dara.isNull(request.agentName)) {
|
|
3343
|
+
body["AgentName"] = request.agentName;
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
if (!$dara.isNull(request.catalog)) {
|
|
3347
|
+
body["Catalog"] = request.catalog;
|
|
3348
|
+
}
|
|
3349
|
+
|
|
3350
|
+
if (!$dara.isNull(request.fileNamePrefix)) {
|
|
3351
|
+
body["FileNamePrefix"] = request.fileNamePrefix;
|
|
3352
|
+
}
|
|
3353
|
+
|
|
3354
|
+
if (!$dara.isNull(request.knowledgeBaseName)) {
|
|
3355
|
+
body["KnowledgeBaseName"] = request.knowledgeBaseName;
|
|
2558
3356
|
}
|
|
2559
3357
|
|
|
2560
3358
|
if (!$dara.isNull(request.maxResults)) {
|
|
2561
3359
|
body["MaxResults"] = request.maxResults;
|
|
2562
3360
|
}
|
|
2563
3361
|
|
|
3362
|
+
if (!$dara.isNull(request.namespace)) {
|
|
3363
|
+
body["Namespace"] = request.namespace;
|
|
3364
|
+
}
|
|
3365
|
+
|
|
2564
3366
|
if (!$dara.isNull(request.nextToken)) {
|
|
2565
3367
|
body["NextToken"] = request.nextToken;
|
|
2566
3368
|
}
|
|
2567
3369
|
|
|
2568
|
-
if (!$dara.isNull(request.
|
|
2569
|
-
body["
|
|
3370
|
+
if (!$dara.isNull(request.status)) {
|
|
3371
|
+
body["Status"] = request.status;
|
|
2570
3372
|
}
|
|
2571
3373
|
|
|
2572
3374
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2573
3375
|
body: OpenApiUtil.parseToMap(body),
|
|
2574
3376
|
});
|
|
2575
3377
|
let params = new $OpenApiUtil.Params({
|
|
2576
|
-
action: "
|
|
3378
|
+
action: "ListLumaDocuments",
|
|
2577
3379
|
version: "2020-04-01",
|
|
2578
3380
|
protocol: "HTTPS",
|
|
2579
3381
|
pathname: "/",
|
|
@@ -2583,53 +3385,53 @@ export default class Client extends OpenApi {
|
|
|
2583
3385
|
reqBodyType: "formData",
|
|
2584
3386
|
bodyType: "json",
|
|
2585
3387
|
});
|
|
2586
|
-
return $dara.cast<$_model.
|
|
3388
|
+
return $dara.cast<$_model.ListLumaDocumentsResponse>(await this.callApi(params, req, runtime), new $_model.ListLumaDocumentsResponse({}));
|
|
2587
3389
|
}
|
|
2588
3390
|
|
|
2589
3391
|
/**
|
|
2590
|
-
*
|
|
3392
|
+
* Lists documents in a knowledge base bound to a Luma Agent, with support for filtering by file name prefix and processing status.
|
|
2591
3393
|
*
|
|
2592
3394
|
* @remarks
|
|
2593
|
-
*
|
|
3395
|
+
* Lists documents in a knowledge base bound to a Luma Agent, with support for filtering by file name prefix and processing status.
|
|
2594
3396
|
*
|
|
2595
|
-
* @param request -
|
|
2596
|
-
* @returns
|
|
3397
|
+
* @param request - ListLumaDocumentsRequest
|
|
3398
|
+
* @returns ListLumaDocumentsResponse
|
|
2597
3399
|
*/
|
|
2598
|
-
async
|
|
3400
|
+
async listLumaDocuments(request: $_model.ListLumaDocumentsRequest): Promise<$_model.ListLumaDocumentsResponse> {
|
|
2599
3401
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2600
|
-
return await this.
|
|
3402
|
+
return await this.listLumaDocumentsWithOptions(request, runtime);
|
|
2601
3403
|
}
|
|
2602
3404
|
|
|
2603
3405
|
/**
|
|
2604
|
-
*
|
|
3406
|
+
* Lists all knowledge bases bound to a Luma Agent under a specified namespace. Returns the complete set of bindings without pagination.
|
|
2605
3407
|
*
|
|
2606
3408
|
* @remarks
|
|
2607
|
-
*
|
|
3409
|
+
* Lists all knowledge bases bound to a Luma Agent under a specified namespace. Returns the complete set of bindings without pagination.
|
|
2608
3410
|
*
|
|
2609
|
-
* @param request -
|
|
3411
|
+
* @param request - ListLumaKnowledgeBasesRequest
|
|
2610
3412
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2611
|
-
* @returns
|
|
3413
|
+
* @returns ListLumaKnowledgeBasesResponse
|
|
2612
3414
|
*/
|
|
2613
|
-
async
|
|
3415
|
+
async listLumaKnowledgeBasesWithOptions(request: $_model.ListLumaKnowledgeBasesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListLumaKnowledgeBasesResponse> {
|
|
2614
3416
|
request.validate();
|
|
2615
|
-
let
|
|
2616
|
-
if (!$dara.isNull(request.
|
|
2617
|
-
|
|
3417
|
+
let body : {[key: string ]: any} = { };
|
|
3418
|
+
if (!$dara.isNull(request.agentName)) {
|
|
3419
|
+
body["AgentName"] = request.agentName;
|
|
2618
3420
|
}
|
|
2619
3421
|
|
|
2620
|
-
if (!$dara.isNull(request.
|
|
2621
|
-
|
|
3422
|
+
if (!$dara.isNull(request.catalog)) {
|
|
3423
|
+
body["Catalog"] = request.catalog;
|
|
2622
3424
|
}
|
|
2623
3425
|
|
|
2624
|
-
if (!$dara.isNull(request.
|
|
2625
|
-
|
|
3426
|
+
if (!$dara.isNull(request.namespace)) {
|
|
3427
|
+
body["Namespace"] = request.namespace;
|
|
2626
3428
|
}
|
|
2627
3429
|
|
|
2628
3430
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2629
|
-
|
|
3431
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2630
3432
|
});
|
|
2631
3433
|
let params = new $OpenApiUtil.Params({
|
|
2632
|
-
action: "
|
|
3434
|
+
action: "ListLumaKnowledgeBases",
|
|
2633
3435
|
version: "2020-04-01",
|
|
2634
3436
|
protocol: "HTTPS",
|
|
2635
3437
|
pathname: "/",
|
|
@@ -2639,46 +3441,49 @@ export default class Client extends OpenApi {
|
|
|
2639
3441
|
reqBodyType: "formData",
|
|
2640
3442
|
bodyType: "json",
|
|
2641
3443
|
});
|
|
2642
|
-
return $dara.cast<$_model.
|
|
3444
|
+
return $dara.cast<$_model.ListLumaKnowledgeBasesResponse>(await this.callApi(params, req, runtime), new $_model.ListLumaKnowledgeBasesResponse({}));
|
|
2643
3445
|
}
|
|
2644
3446
|
|
|
2645
3447
|
/**
|
|
2646
|
-
*
|
|
3448
|
+
* Lists all knowledge bases bound to a Luma Agent under a specified namespace. Returns the complete set of bindings without pagination.
|
|
2647
3449
|
*
|
|
2648
3450
|
* @remarks
|
|
2649
|
-
*
|
|
3451
|
+
* Lists all knowledge bases bound to a Luma Agent under a specified namespace. Returns the complete set of bindings without pagination.
|
|
2650
3452
|
*
|
|
2651
|
-
* @param request -
|
|
2652
|
-
* @returns
|
|
3453
|
+
* @param request - ListLumaKnowledgeBasesRequest
|
|
3454
|
+
* @returns ListLumaKnowledgeBasesResponse
|
|
2653
3455
|
*/
|
|
2654
|
-
async
|
|
3456
|
+
async listLumaKnowledgeBases(request: $_model.ListLumaKnowledgeBasesRequest): Promise<$_model.ListLumaKnowledgeBasesResponse> {
|
|
2655
3457
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2656
|
-
return await this.
|
|
3458
|
+
return await this.listLumaKnowledgeBasesWithOptions(request, runtime);
|
|
2657
3459
|
}
|
|
2658
3460
|
|
|
2659
3461
|
/**
|
|
2660
|
-
*
|
|
3462
|
+
* Lists all namespaces bound to a Luma Agent under a specified data catalog. Returns the complete set of bindings without pagination.
|
|
2661
3463
|
*
|
|
2662
|
-
* @
|
|
3464
|
+
* @remarks
|
|
3465
|
+
* Lists all namespaces bound to a Luma Agent under a specified data catalog. Returns the complete set of bindings without pagination.
|
|
3466
|
+
*
|
|
3467
|
+
* @param request - ListLumaNamespacesRequest
|
|
2663
3468
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2664
|
-
* @returns
|
|
3469
|
+
* @returns ListLumaNamespacesResponse
|
|
2665
3470
|
*/
|
|
2666
|
-
async
|
|
3471
|
+
async listLumaNamespacesWithOptions(request: $_model.ListLumaNamespacesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListLumaNamespacesResponse> {
|
|
2667
3472
|
request.validate();
|
|
2668
|
-
let
|
|
2669
|
-
if (!$dara.isNull(request.
|
|
2670
|
-
|
|
3473
|
+
let body : {[key: string ]: any} = { };
|
|
3474
|
+
if (!$dara.isNull(request.agentName)) {
|
|
3475
|
+
body["AgentName"] = request.agentName;
|
|
2671
3476
|
}
|
|
2672
3477
|
|
|
2673
|
-
if (!$dara.isNull(request.
|
|
2674
|
-
|
|
3478
|
+
if (!$dara.isNull(request.catalog)) {
|
|
3479
|
+
body["Catalog"] = request.catalog;
|
|
2675
3480
|
}
|
|
2676
3481
|
|
|
2677
3482
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2678
|
-
|
|
3483
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2679
3484
|
});
|
|
2680
3485
|
let params = new $OpenApiUtil.Params({
|
|
2681
|
-
action: "
|
|
3486
|
+
action: "ListLumaNamespaces",
|
|
2682
3487
|
version: "2020-04-01",
|
|
2683
3488
|
protocol: "HTTPS",
|
|
2684
3489
|
pathname: "/",
|
|
@@ -2688,62 +3493,53 @@ export default class Client extends OpenApi {
|
|
|
2688
3493
|
reqBodyType: "formData",
|
|
2689
3494
|
bodyType: "json",
|
|
2690
3495
|
});
|
|
2691
|
-
return $dara.cast<$_model.
|
|
3496
|
+
return $dara.cast<$_model.ListLumaNamespacesResponse>(await this.callApi(params, req, runtime), new $_model.ListLumaNamespacesResponse({}));
|
|
2692
3497
|
}
|
|
2693
3498
|
|
|
2694
3499
|
/**
|
|
2695
|
-
*
|
|
3500
|
+
* Lists all namespaces bound to a Luma Agent under a specified data catalog. Returns the complete set of bindings without pagination.
|
|
2696
3501
|
*
|
|
2697
|
-
* @
|
|
2698
|
-
*
|
|
3502
|
+
* @remarks
|
|
3503
|
+
* Lists all namespaces bound to a Luma Agent under a specified data catalog. Returns the complete set of bindings without pagination.
|
|
3504
|
+
*
|
|
3505
|
+
* @param request - ListLumaNamespacesRequest
|
|
3506
|
+
* @returns ListLumaNamespacesResponse
|
|
2699
3507
|
*/
|
|
2700
|
-
async
|
|
3508
|
+
async listLumaNamespaces(request: $_model.ListLumaNamespacesRequest): Promise<$_model.ListLumaNamespacesResponse> {
|
|
2701
3509
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2702
|
-
return await this.
|
|
3510
|
+
return await this.listLumaNamespacesWithOptions(request, runtime);
|
|
2703
3511
|
}
|
|
2704
3512
|
|
|
2705
3513
|
/**
|
|
2706
|
-
*
|
|
3514
|
+
* Lists all event tables bound to a Luma Agent under a specified namespace. Returns the complete set of bindings without pagination.
|
|
2707
3515
|
*
|
|
2708
3516
|
* @remarks
|
|
2709
|
-
*
|
|
3517
|
+
* Lists all event tables bound to a Luma Agent under a specified namespace. Returns the complete set of bindings without pagination.
|
|
2710
3518
|
*
|
|
2711
|
-
* @param request -
|
|
3519
|
+
* @param request - ListLumaTablesRequest
|
|
2712
3520
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2713
|
-
* @returns
|
|
3521
|
+
* @returns ListLumaTablesResponse
|
|
2714
3522
|
*/
|
|
2715
|
-
async
|
|
3523
|
+
async listLumaTablesWithOptions(request: $_model.ListLumaTablesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListLumaTablesResponse> {
|
|
2716
3524
|
request.validate();
|
|
2717
3525
|
let body : {[key: string ]: any} = { };
|
|
2718
|
-
if (!$dara.isNull(request.
|
|
2719
|
-
body["
|
|
2720
|
-
}
|
|
2721
|
-
|
|
2722
|
-
if (!$dara.isNull(request.namePrefix)) {
|
|
2723
|
-
body["NamePrefix"] = request.namePrefix;
|
|
2724
|
-
}
|
|
2725
|
-
|
|
2726
|
-
if (!$dara.isNull(request.nextToken)) {
|
|
2727
|
-
body["NextToken"] = request.nextToken;
|
|
2728
|
-
}
|
|
2729
|
-
|
|
2730
|
-
if (!$dara.isNull(request.sinkArn)) {
|
|
2731
|
-
body["SinkArn"] = request.sinkArn;
|
|
3526
|
+
if (!$dara.isNull(request.agentName)) {
|
|
3527
|
+
body["AgentName"] = request.agentName;
|
|
2732
3528
|
}
|
|
2733
3529
|
|
|
2734
|
-
if (!$dara.isNull(request.
|
|
2735
|
-
body["
|
|
3530
|
+
if (!$dara.isNull(request.catalog)) {
|
|
3531
|
+
body["Catalog"] = request.catalog;
|
|
2736
3532
|
}
|
|
2737
3533
|
|
|
2738
|
-
if (!$dara.isNull(request.
|
|
2739
|
-
body["
|
|
3534
|
+
if (!$dara.isNull(request.namespace)) {
|
|
3535
|
+
body["Namespace"] = request.namespace;
|
|
2740
3536
|
}
|
|
2741
3537
|
|
|
2742
3538
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2743
3539
|
body: OpenApiUtil.parseToMap(body),
|
|
2744
3540
|
});
|
|
2745
3541
|
let params = new $OpenApiUtil.Params({
|
|
2746
|
-
action: "
|
|
3542
|
+
action: "ListLumaTables",
|
|
2747
3543
|
version: "2020-04-01",
|
|
2748
3544
|
protocol: "HTTPS",
|
|
2749
3545
|
pathname: "/",
|
|
@@ -2753,21 +3549,21 @@ export default class Client extends OpenApi {
|
|
|
2753
3549
|
reqBodyType: "formData",
|
|
2754
3550
|
bodyType: "json",
|
|
2755
3551
|
});
|
|
2756
|
-
return $dara.cast<$_model.
|
|
3552
|
+
return $dara.cast<$_model.ListLumaTablesResponse>(await this.callApi(params, req, runtime), new $_model.ListLumaTablesResponse({}));
|
|
2757
3553
|
}
|
|
2758
3554
|
|
|
2759
3555
|
/**
|
|
2760
|
-
*
|
|
3556
|
+
* Lists all event tables bound to a Luma Agent under a specified namespace. Returns the complete set of bindings without pagination.
|
|
2761
3557
|
*
|
|
2762
3558
|
* @remarks
|
|
2763
|
-
*
|
|
3559
|
+
* Lists all event tables bound to a Luma Agent under a specified namespace. Returns the complete set of bindings without pagination.
|
|
2764
3560
|
*
|
|
2765
|
-
* @param request -
|
|
2766
|
-
* @returns
|
|
3561
|
+
* @param request - ListLumaTablesRequest
|
|
3562
|
+
* @returns ListLumaTablesResponse
|
|
2767
3563
|
*/
|
|
2768
|
-
async
|
|
3564
|
+
async listLumaTables(request: $_model.ListLumaTablesRequest): Promise<$_model.ListLumaTablesResponse> {
|
|
2769
3565
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2770
|
-
return await this.
|
|
3566
|
+
return await this.listLumaTablesWithOptions(request, runtime);
|
|
2771
3567
|
}
|
|
2772
3568
|
|
|
2773
3569
|
/**
|
|
@@ -3101,7 +3897,7 @@ export default class Client extends OpenApi {
|
|
|
3101
3897
|
}
|
|
3102
3898
|
|
|
3103
3899
|
/**
|
|
3104
|
-
* Polls for natural language query
|
|
3900
|
+
* Polls for the result of a natural language query.
|
|
3105
3901
|
*
|
|
3106
3902
|
* @param request - PollAskResultRequest
|
|
3107
3903
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3136,7 +3932,7 @@ export default class Client extends OpenApi {
|
|
|
3136
3932
|
}
|
|
3137
3933
|
|
|
3138
3934
|
/**
|
|
3139
|
-
* Polls for natural language query
|
|
3935
|
+
* Polls for the result of a natural language query.
|
|
3140
3936
|
*
|
|
3141
3937
|
* @param request - PollAskResultRequest
|
|
3142
3938
|
* @returns PollAskResultResponse
|
|
@@ -3146,6 +3942,64 @@ export default class Client extends OpenApi {
|
|
|
3146
3942
|
return await this.pollAskResultWithOptions(request, runtime);
|
|
3147
3943
|
}
|
|
3148
3944
|
|
|
3945
|
+
/**
|
|
3946
|
+
* Sends events to an event bus.
|
|
3947
|
+
*
|
|
3948
|
+
* @remarks
|
|
3949
|
+
* Sends one or more events to an event bus.
|
|
3950
|
+
*
|
|
3951
|
+
* @param tmpReq - PutEventsRequest
|
|
3952
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3953
|
+
* @returns PutEventsResponse
|
|
3954
|
+
*/
|
|
3955
|
+
async putEventsWithOptions(tmpReq: $_model.PutEventsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutEventsResponse> {
|
|
3956
|
+
tmpReq.validate();
|
|
3957
|
+
let request = new $_model.PutEventsShrinkRequest({ });
|
|
3958
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
3959
|
+
if (!$dara.isNull(tmpReq.eventList)) {
|
|
3960
|
+
request.eventListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.eventList, "EventList", "json");
|
|
3961
|
+
}
|
|
3962
|
+
|
|
3963
|
+
let body : {[key: string ]: any} = { };
|
|
3964
|
+
if (!$dara.isNull(request.eventBusName)) {
|
|
3965
|
+
body["EventBusName"] = request.eventBusName;
|
|
3966
|
+
}
|
|
3967
|
+
|
|
3968
|
+
if (!$dara.isNull(request.eventListShrink)) {
|
|
3969
|
+
body["EventList"] = request.eventListShrink;
|
|
3970
|
+
}
|
|
3971
|
+
|
|
3972
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3973
|
+
body: OpenApiUtil.parseToMap(body),
|
|
3974
|
+
});
|
|
3975
|
+
let params = new $OpenApiUtil.Params({
|
|
3976
|
+
action: "PutEvents",
|
|
3977
|
+
version: "2020-04-01",
|
|
3978
|
+
protocol: "HTTPS",
|
|
3979
|
+
pathname: "/",
|
|
3980
|
+
method: "POST",
|
|
3981
|
+
authType: "AK",
|
|
3982
|
+
style: "RPC",
|
|
3983
|
+
reqBodyType: "formData",
|
|
3984
|
+
bodyType: "json",
|
|
3985
|
+
});
|
|
3986
|
+
return $dara.cast<$_model.PutEventsResponse>(await this.callApi(params, req, runtime), new $_model.PutEventsResponse({}));
|
|
3987
|
+
}
|
|
3988
|
+
|
|
3989
|
+
/**
|
|
3990
|
+
* Sends events to an event bus.
|
|
3991
|
+
*
|
|
3992
|
+
* @remarks
|
|
3993
|
+
* Sends one or more events to an event bus.
|
|
3994
|
+
*
|
|
3995
|
+
* @param request - PutEventsRequest
|
|
3996
|
+
* @returns PutEventsResponse
|
|
3997
|
+
*/
|
|
3998
|
+
async putEvents(request: $_model.PutEventsRequest): Promise<$_model.PutEventsResponse> {
|
|
3999
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4000
|
+
return await this.putEventsWithOptions(request, runtime);
|
|
4001
|
+
}
|
|
4002
|
+
|
|
3149
4003
|
/**
|
|
3150
4004
|
* Create or update event targets for the specified rule.
|
|
3151
4005
|
*
|
|
@@ -3472,6 +4326,62 @@ export default class Client extends OpenApi {
|
|
|
3472
4326
|
return await this.queryEventTracesWithOptions(request, runtime);
|
|
3473
4327
|
}
|
|
3474
4328
|
|
|
4329
|
+
/**
|
|
4330
|
+
* Executes an SQL query directly on the EventHouse associated with a Luma Agent and returns structured results. Unlike AskLuma, this operation executes the SQL provided by the caller without natural language rewriting.
|
|
4331
|
+
*
|
|
4332
|
+
* @remarks
|
|
4333
|
+
* Executes an SQL query directly on the EventHouse associated with a Luma Agent and returns structured results. Unlike AskLuma, this operation executes the SQL provided by the caller without natural language rewriting.
|
|
4334
|
+
*
|
|
4335
|
+
* @param request - QueryLumaWithSQLRequest
|
|
4336
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4337
|
+
* @returns QueryLumaWithSQLResponse
|
|
4338
|
+
*/
|
|
4339
|
+
async queryLumaWithSQLWithOptions(request: $_model.QueryLumaWithSQLRequest, runtime: $dara.RuntimeOptions): Promise<$_model.QueryLumaWithSQLResponse> {
|
|
4340
|
+
request.validate();
|
|
4341
|
+
let body : {[key: string ]: any} = { };
|
|
4342
|
+
if (!$dara.isNull(request.agentName)) {
|
|
4343
|
+
body["AgentName"] = request.agentName;
|
|
4344
|
+
}
|
|
4345
|
+
|
|
4346
|
+
if (!$dara.isNull(request.maxRows)) {
|
|
4347
|
+
body["MaxRows"] = request.maxRows;
|
|
4348
|
+
}
|
|
4349
|
+
|
|
4350
|
+
if (!$dara.isNull(request.sql)) {
|
|
4351
|
+
body["Sql"] = request.sql;
|
|
4352
|
+
}
|
|
4353
|
+
|
|
4354
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4355
|
+
body: OpenApiUtil.parseToMap(body),
|
|
4356
|
+
});
|
|
4357
|
+
let params = new $OpenApiUtil.Params({
|
|
4358
|
+
action: "QueryLumaWithSQL",
|
|
4359
|
+
version: "2020-04-01",
|
|
4360
|
+
protocol: "HTTPS",
|
|
4361
|
+
pathname: "/",
|
|
4362
|
+
method: "POST",
|
|
4363
|
+
authType: "AK",
|
|
4364
|
+
style: "RPC",
|
|
4365
|
+
reqBodyType: "formData",
|
|
4366
|
+
bodyType: "json",
|
|
4367
|
+
});
|
|
4368
|
+
return $dara.cast<$_model.QueryLumaWithSQLResponse>(await this.callApi(params, req, runtime), new $_model.QueryLumaWithSQLResponse({}));
|
|
4369
|
+
}
|
|
4370
|
+
|
|
4371
|
+
/**
|
|
4372
|
+
* Executes an SQL query directly on the EventHouse associated with a Luma Agent and returns structured results. Unlike AskLuma, this operation executes the SQL provided by the caller without natural language rewriting.
|
|
4373
|
+
*
|
|
4374
|
+
* @remarks
|
|
4375
|
+
* Executes an SQL query directly on the EventHouse associated with a Luma Agent and returns structured results. Unlike AskLuma, this operation executes the SQL provided by the caller without natural language rewriting.
|
|
4376
|
+
*
|
|
4377
|
+
* @param request - QueryLumaWithSQLRequest
|
|
4378
|
+
* @returns QueryLumaWithSQLResponse
|
|
4379
|
+
*/
|
|
4380
|
+
async queryLumaWithSQL(request: $_model.QueryLumaWithSQLRequest): Promise<$_model.QueryLumaWithSQLResponse> {
|
|
4381
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4382
|
+
return await this.queryLumaWithSQLWithOptions(request, runtime);
|
|
4383
|
+
}
|
|
4384
|
+
|
|
3475
4385
|
/**
|
|
3476
4386
|
* Queries event traces by event ID.
|
|
3477
4387
|
*
|
|
@@ -3684,6 +4594,86 @@ export default class Client extends OpenApi {
|
|
|
3684
4594
|
return await this.saveAgentDataSemanticsWithOptions(request, runtime);
|
|
3685
4595
|
}
|
|
3686
4596
|
|
|
4597
|
+
/**
|
|
4598
|
+
* Retrieves content from a knowledge base bound to a Luma Agent and returns relevant text chunks along with their relevance scores.
|
|
4599
|
+
*
|
|
4600
|
+
* @remarks
|
|
4601
|
+
* Retrieves content from a knowledge base bound to a Luma Agent and returns relevant text chunks along with their relevance scores.
|
|
4602
|
+
*
|
|
4603
|
+
* @param request - SearchLumaKnowledgeBaseRequest
|
|
4604
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4605
|
+
* @returns SearchLumaKnowledgeBaseResponse
|
|
4606
|
+
*/
|
|
4607
|
+
async searchLumaKnowledgeBaseWithOptions(request: $_model.SearchLumaKnowledgeBaseRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SearchLumaKnowledgeBaseResponse> {
|
|
4608
|
+
request.validate();
|
|
4609
|
+
let body : {[key: string ]: any} = { };
|
|
4610
|
+
if (!$dara.isNull(request.agentName)) {
|
|
4611
|
+
body["AgentName"] = request.agentName;
|
|
4612
|
+
}
|
|
4613
|
+
|
|
4614
|
+
if (!$dara.isNull(request.catalog)) {
|
|
4615
|
+
body["Catalog"] = request.catalog;
|
|
4616
|
+
}
|
|
4617
|
+
|
|
4618
|
+
if (!$dara.isNull(request.knowledgeBaseName)) {
|
|
4619
|
+
body["KnowledgeBaseName"] = request.knowledgeBaseName;
|
|
4620
|
+
}
|
|
4621
|
+
|
|
4622
|
+
if (!$dara.isNull(request.metadataFilter)) {
|
|
4623
|
+
body["MetadataFilter"] = request.metadataFilter;
|
|
4624
|
+
}
|
|
4625
|
+
|
|
4626
|
+
if (!$dara.isNull(request.mode)) {
|
|
4627
|
+
body["Mode"] = request.mode;
|
|
4628
|
+
}
|
|
4629
|
+
|
|
4630
|
+
if (!$dara.isNull(request.namespace)) {
|
|
4631
|
+
body["Namespace"] = request.namespace;
|
|
4632
|
+
}
|
|
4633
|
+
|
|
4634
|
+
if (!$dara.isNull(request.query)) {
|
|
4635
|
+
body["Query"] = request.query;
|
|
4636
|
+
}
|
|
4637
|
+
|
|
4638
|
+
if (!$dara.isNull(request.rerank)) {
|
|
4639
|
+
body["Rerank"] = request.rerank;
|
|
4640
|
+
}
|
|
4641
|
+
|
|
4642
|
+
if (!$dara.isNull(request.topK)) {
|
|
4643
|
+
body["TopK"] = request.topK;
|
|
4644
|
+
}
|
|
4645
|
+
|
|
4646
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4647
|
+
body: OpenApiUtil.parseToMap(body),
|
|
4648
|
+
});
|
|
4649
|
+
let params = new $OpenApiUtil.Params({
|
|
4650
|
+
action: "SearchLumaKnowledgeBase",
|
|
4651
|
+
version: "2020-04-01",
|
|
4652
|
+
protocol: "HTTPS",
|
|
4653
|
+
pathname: "/",
|
|
4654
|
+
method: "POST",
|
|
4655
|
+
authType: "AK",
|
|
4656
|
+
style: "RPC",
|
|
4657
|
+
reqBodyType: "formData",
|
|
4658
|
+
bodyType: "json",
|
|
4659
|
+
});
|
|
4660
|
+
return $dara.cast<$_model.SearchLumaKnowledgeBaseResponse>(await this.callApi(params, req, runtime), new $_model.SearchLumaKnowledgeBaseResponse({}));
|
|
4661
|
+
}
|
|
4662
|
+
|
|
4663
|
+
/**
|
|
4664
|
+
* Retrieves content from a knowledge base bound to a Luma Agent and returns relevant text chunks along with their relevance scores.
|
|
4665
|
+
*
|
|
4666
|
+
* @remarks
|
|
4667
|
+
* Retrieves content from a knowledge base bound to a Luma Agent and returns relevant text chunks along with their relevance scores.
|
|
4668
|
+
*
|
|
4669
|
+
* @param request - SearchLumaKnowledgeBaseRequest
|
|
4670
|
+
* @returns SearchLumaKnowledgeBaseResponse
|
|
4671
|
+
*/
|
|
4672
|
+
async searchLumaKnowledgeBase(request: $_model.SearchLumaKnowledgeBaseRequest): Promise<$_model.SearchLumaKnowledgeBaseResponse> {
|
|
4673
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4674
|
+
return await this.searchLumaKnowledgeBaseWithOptions(request, runtime);
|
|
4675
|
+
}
|
|
4676
|
+
|
|
3687
4677
|
/**
|
|
3688
4678
|
* Enables a created or disabled event stream.
|
|
3689
4679
|
*
|