@alicloud/polardb20170801 8.2.5 → 8.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/client.d.ts +21 -6
  2. package/dist/client.js +57 -6
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeApplicationsRequest.d.ts +14 -13
  5. package/dist/models/DescribeApplicationsRequest.js.map +1 -1
  6. package/dist/models/DescribeApplicationsResponseBody.d.ts +8 -7
  7. package/dist/models/DescribeApplicationsResponseBody.js +2 -0
  8. package/dist/models/DescribeApplicationsResponseBody.js.map +1 -1
  9. package/dist/models/DescribeKbsyncLinksRequest.d.ts +16 -0
  10. package/dist/models/DescribeKbsyncLinksRequest.js +4 -0
  11. package/dist/models/DescribeKbsyncLinksRequest.js.map +1 -1
  12. package/dist/models/DescribeKbsyncLinksResponseBody.d.ts +25 -1
  13. package/dist/models/DescribeKbsyncLinksResponseBody.js +6 -0
  14. package/dist/models/DescribeKbsyncLinksResponseBody.js.map +1 -1
  15. package/dist/models/ModifyDbclusterEndpointRequest.d.ts +59 -87
  16. package/dist/models/ModifyDbclusterEndpointRequest.js.map +1 -1
  17. package/dist/models/RegisterKnowledgeBaseFileRequest.d.ts +43 -0
  18. package/dist/models/RegisterKnowledgeBaseFileRequest.js +62 -0
  19. package/dist/models/RegisterKnowledgeBaseFileRequest.js.map +1 -0
  20. package/dist/models/RegisterKnowledgeBaseFileResponse.d.ts +19 -0
  21. package/dist/models/RegisterKnowledgeBaseFileResponse.js +69 -0
  22. package/dist/models/RegisterKnowledgeBaseFileResponse.js.map +1 -0
  23. package/dist/models/RegisterKnowledgeBaseFileResponseBody.d.ts +63 -0
  24. package/dist/models/RegisterKnowledgeBaseFileResponseBody.js +68 -0
  25. package/dist/models/RegisterKnowledgeBaseFileResponseBody.js.map +1 -0
  26. package/dist/models/RetrievalKnowledgeBaseRequest.d.ts +2 -2
  27. package/dist/models/RetrievalKnowledgeBaseResponseBody.d.ts +73 -6
  28. package/dist/models/RetrievalKnowledgeBaseResponseBody.js +43 -1
  29. package/dist/models/RetrievalKnowledgeBaseResponseBody.js.map +1 -1
  30. package/dist/models/model.d.ts +4 -0
  31. package/dist/models/model.js +41 -33
  32. package/dist/models/model.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/client.ts +64 -6
  35. package/src/models/DescribeApplicationsRequest.ts +14 -13
  36. package/src/models/DescribeApplicationsResponseBody.ts +10 -7
  37. package/src/models/DescribeKbsyncLinksRequest.ts +20 -0
  38. package/src/models/DescribeKbsyncLinksResponseBody.ts +31 -1
  39. package/src/models/ModifyDbclusterEndpointRequest.ts +59 -87
  40. package/src/models/RegisterKnowledgeBaseFileRequest.ts +60 -0
  41. package/src/models/RegisterKnowledgeBaseFileResponse.ts +40 -0
  42. package/src/models/RegisterKnowledgeBaseFileResponseBody.ts +86 -0
  43. package/src/models/RetrievalKnowledgeBaseRequest.ts +2 -2
  44. package/src/models/RetrievalKnowledgeBaseResponseBody.ts +106 -6
  45. package/src/models/model.ts +4 -0
package/dist/client.d.ts CHANGED
@@ -3056,7 +3056,7 @@ export default class Client extends OpenApi {
3056
3056
  */
3057
3057
  describeApplicationUsage(request: $_model.DescribeApplicationUsageRequest): Promise<$_model.DescribeApplicationUsageResponse>;
3058
3058
  /**
3059
- * Gets the list of applications for all PolarDB instances in a specified region.
3059
+ * Retrieves the list of applications for all PolarDB instances in a specified region.
3060
3060
  *
3061
3061
  * @param request - DescribeApplicationsRequest
3062
3062
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3064,7 +3064,7 @@ export default class Client extends OpenApi {
3064
3064
  */
3065
3065
  describeApplicationsWithOptions(request: $_model.DescribeApplicationsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeApplicationsResponse>;
3066
3066
  /**
3067
- * Gets the list of applications for all PolarDB instances in a specified region.
3067
+ * Retrieves the list of applications for all PolarDB instances in a specified region.
3068
3068
  *
3069
3069
  * @param request - DescribeApplicationsRequest
3070
3070
  * @returns DescribeApplicationsResponse
@@ -4274,7 +4274,7 @@ export default class Client extends OpenApi {
4274
4274
  */
4275
4275
  describeHistoryTasksStat(request: $_model.DescribeHistoryTasksStatRequest): Promise<$_model.DescribeHistoryTasksStatResponse>;
4276
4276
  /**
4277
- * Queries the synchronization list of a knowledge base.
4277
+ * Queries the list of knowledge base synchronization links.
4278
4278
  *
4279
4279
  * @param request - DescribeKBSyncLinksRequest
4280
4280
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4282,7 +4282,7 @@ export default class Client extends OpenApi {
4282
4282
  */
4283
4283
  describeKBSyncLinksWithOptions(request: $_model.DescribeKBSyncLinksRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeKBSyncLinksResponse>;
4284
4284
  /**
4285
- * Queries the synchronization list of a knowledge base.
4285
+ * Queries the list of knowledge base synchronization links.
4286
4286
  *
4287
4287
  * @param request - DescribeKBSyncLinksRequest
4288
4288
  * @returns DescribeKBSyncLinksResponse
@@ -6267,7 +6267,7 @@ export default class Client extends OpenApi {
6267
6267
  */
6268
6268
  modifyDBClusterDescriptionZonal(request: $_model.ModifyDBClusterDescriptionZonalRequest): Promise<$_model.ModifyDBClusterDescriptionZonalResponse>;
6269
6269
  /**
6270
- * This operation modifies the properties of a PolarDB cluster endpoint. You can configure settings such as the read/write mode, automatic node addition, consistency level, transaction splitting, the connection pool, and whether the primary node accepts read requests.
6270
+ * Modifies the cluster endpoint attributes of a PolarDB cluster, including the read/write mode, whether new nodes are automatically added to the endpoint, the consistency level, transaction splitting, whether the primary node accepts read requests, and connection pooling.
6271
6271
  *
6272
6272
  * @param request - ModifyDBClusterEndpointRequest
6273
6273
  * @param runtime - runtime options for this request RuntimeOptions
@@ -6275,7 +6275,7 @@ export default class Client extends OpenApi {
6275
6275
  */
6276
6276
  modifyDBClusterEndpointWithOptions(request: $_model.ModifyDBClusterEndpointRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyDBClusterEndpointResponse>;
6277
6277
  /**
6278
- * This operation modifies the properties of a PolarDB cluster endpoint. You can configure settings such as the read/write mode, automatic node addition, consistency level, transaction splitting, the connection pool, and whether the primary node accepts read requests.
6278
+ * Modifies the cluster endpoint attributes of a PolarDB cluster, including the read/write mode, whether new nodes are automatically added to the endpoint, the consistency level, transaction splitting, whether the primary node accepts read requests, and connection pooling.
6279
6279
  *
6280
6280
  * @param request - ModifyDBClusterEndpointRequest
6281
6281
  * @returns ModifyDBClusterEndpointResponse
@@ -7085,6 +7085,21 @@ export default class Client extends OpenApi {
7085
7085
  * @returns RefreshDBClusterStorageUsageResponse
7086
7086
  */
7087
7087
  refreshDBClusterStorageUsage(request: $_model.RefreshDBClusterStorageUsageRequest): Promise<$_model.RefreshDBClusterStorageUsageResponse>;
7088
+ /**
7089
+ * Registers an OSS file in a knowledge base.
7090
+ *
7091
+ * @param request - RegisterKnowledgeBaseFileRequest
7092
+ * @param runtime - runtime options for this request RuntimeOptions
7093
+ * @returns RegisterKnowledgeBaseFileResponse
7094
+ */
7095
+ registerKnowledgeBaseFileWithOptions(request: $_model.RegisterKnowledgeBaseFileRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RegisterKnowledgeBaseFileResponse>;
7096
+ /**
7097
+ * Registers an OSS file in a knowledge base.
7098
+ *
7099
+ * @param request - RegisterKnowledgeBaseFileRequest
7100
+ * @returns RegisterKnowledgeBaseFileResponse
7101
+ */
7102
+ registerKnowledgeBaseFile(request: $_model.RegisterKnowledgeBaseFileRequest): Promise<$_model.RegisterKnowledgeBaseFileResponse>;
7088
7103
  /**
7089
7104
  * Rejects a PolarClaw device pairing request.
7090
7105
  *
package/dist/client.js CHANGED
@@ -10832,7 +10832,7 @@ class Client extends openapi_core_1.default {
10832
10832
  return await this.describeApplicationUsageWithOptions(request, runtime);
10833
10833
  }
10834
10834
  /**
10835
- * Gets the list of applications for all PolarDB instances in a specified region.
10835
+ * Retrieves the list of applications for all PolarDB instances in a specified region.
10836
10836
  *
10837
10837
  * @param request - DescribeApplicationsRequest
10838
10838
  * @param runtime - runtime options for this request RuntimeOptions
@@ -10879,7 +10879,7 @@ class Client extends openapi_core_1.default {
10879
10879
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeApplicationsResponse({}));
10880
10880
  }
10881
10881
  /**
10882
- * Gets the list of applications for all PolarDB instances in a specified region.
10882
+ * Retrieves the list of applications for all PolarDB instances in a specified region.
10883
10883
  *
10884
10884
  * @param request - DescribeApplicationsRequest
10885
10885
  * @returns DescribeApplicationsResponse
@@ -15321,7 +15321,7 @@ class Client extends openapi_core_1.default {
15321
15321
  return await this.describeHistoryTasksStatWithOptions(request, runtime);
15322
15322
  }
15323
15323
  /**
15324
- * Queries the synchronization list of a knowledge base.
15324
+ * Queries the list of knowledge base synchronization links.
15325
15325
  *
15326
15326
  * @param request - DescribeKBSyncLinksRequest
15327
15327
  * @param runtime - runtime options for this request RuntimeOptions
@@ -15336,6 +15336,12 @@ class Client extends openapi_core_1.default {
15336
15336
  if (!$dara.isNull(request.knowledgeBaseId)) {
15337
15337
  query["KnowledgeBaseId"] = request.knowledgeBaseId;
15338
15338
  }
15339
+ if (!$dara.isNull(request.pageNumber)) {
15340
+ query["PageNumber"] = request.pageNumber;
15341
+ }
15342
+ if (!$dara.isNull(request.pageSize)) {
15343
+ query["PageSize"] = request.pageSize;
15344
+ }
15339
15345
  if (!$dara.isNull(request.regionId)) {
15340
15346
  query["RegionId"] = request.regionId;
15341
15347
  }
@@ -15356,7 +15362,7 @@ class Client extends openapi_core_1.default {
15356
15362
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeKBSyncLinksResponse({}));
15357
15363
  }
15358
15364
  /**
15359
- * Queries the synchronization list of a knowledge base.
15365
+ * Queries the list of knowledge base synchronization links.
15360
15366
  *
15361
15367
  * @param request - DescribeKBSyncLinksRequest
15362
15368
  * @returns DescribeKBSyncLinksResponse
@@ -22355,7 +22361,7 @@ class Client extends openapi_core_1.default {
22355
22361
  return await this.modifyDBClusterDescriptionZonalWithOptions(request, runtime);
22356
22362
  }
22357
22363
  /**
22358
- * This operation modifies the properties of a PolarDB cluster endpoint. You can configure settings such as the read/write mode, automatic node addition, consistency level, transaction splitting, the connection pool, and whether the primary node accepts read requests.
22364
+ * Modifies the cluster endpoint attributes of a PolarDB cluster, including the read/write mode, whether new nodes are automatically added to the endpoint, the consistency level, transaction splitting, whether the primary node accepts read requests, and connection pooling.
22359
22365
  *
22360
22366
  * @param request - ModifyDBClusterEndpointRequest
22361
22367
  * @param runtime - runtime options for this request RuntimeOptions
@@ -22423,7 +22429,7 @@ class Client extends openapi_core_1.default {
22423
22429
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyDBClusterEndpointResponse({}));
22424
22430
  }
22425
22431
  /**
22426
- * This operation modifies the properties of a PolarDB cluster endpoint. You can configure settings such as the read/write mode, automatic node addition, consistency level, transaction splitting, the connection pool, and whether the primary node accepts read requests.
22432
+ * Modifies the cluster endpoint attributes of a PolarDB cluster, including the read/write mode, whether new nodes are automatically added to the endpoint, the consistency level, transaction splitting, whether the primary node accepts read requests, and connection pooling.
22427
22433
  *
22428
22434
  * @param request - ModifyDBClusterEndpointRequest
22429
22435
  * @returns ModifyDBClusterEndpointResponse
@@ -25481,6 +25487,51 @@ class Client extends openapi_core_1.default {
25481
25487
  let runtime = new $dara.RuntimeOptions({});
25482
25488
  return await this.refreshDBClusterStorageUsageWithOptions(request, runtime);
25483
25489
  }
25490
+ /**
25491
+ * Registers an OSS file in a knowledge base.
25492
+ *
25493
+ * @param request - RegisterKnowledgeBaseFileRequest
25494
+ * @param runtime - runtime options for this request RuntimeOptions
25495
+ * @returns RegisterKnowledgeBaseFileResponse
25496
+ */
25497
+ async registerKnowledgeBaseFileWithOptions(request, runtime) {
25498
+ request.validate();
25499
+ let query = {};
25500
+ if (!$dara.isNull(request.filePath)) {
25501
+ query["FilePath"] = request.filePath;
25502
+ }
25503
+ if (!$dara.isNull(request.knowledgeBaseId)) {
25504
+ query["KnowledgeBaseId"] = request.knowledgeBaseId;
25505
+ }
25506
+ if (!$dara.isNull(request.regionId)) {
25507
+ query["RegionId"] = request.regionId;
25508
+ }
25509
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
25510
+ query: openapi_core_2.OpenApiUtil.query(query),
25511
+ });
25512
+ let params = new openapi_core_2.$OpenApiUtil.Params({
25513
+ action: "RegisterKnowledgeBaseFile",
25514
+ version: "2017-08-01",
25515
+ protocol: "HTTPS",
25516
+ pathname: "/",
25517
+ method: "POST",
25518
+ authType: "AK",
25519
+ style: "RPC",
25520
+ reqBodyType: "formData",
25521
+ bodyType: "json",
25522
+ });
25523
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.RegisterKnowledgeBaseFileResponse({}));
25524
+ }
25525
+ /**
25526
+ * Registers an OSS file in a knowledge base.
25527
+ *
25528
+ * @param request - RegisterKnowledgeBaseFileRequest
25529
+ * @returns RegisterKnowledgeBaseFileResponse
25530
+ */
25531
+ async registerKnowledgeBaseFile(request) {
25532
+ let runtime = new $dara.RuntimeOptions({});
25533
+ return await this.registerKnowledgeBaseFileWithOptions(request, runtime);
25534
+ }
25484
25535
  /**
25485
25536
  * Rejects a PolarClaw device pairing request.
25486
25537
  *