@alicloud/polardb20170801 8.4.0 → 8.4.2

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 (47) hide show
  1. package/dist/client.d.ts +8 -8
  2. package/dist/client.js +23 -8
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AnswerKnowledgeBaseRequest.d.ts +5 -5
  5. package/dist/models/CreateApplicationRequest.d.ts +30 -22
  6. package/dist/models/CreateApplicationRequest.js +2 -0
  7. package/dist/models/CreateApplicationRequest.js.map +1 -1
  8. package/dist/models/CreateApplicationResponseBody.d.ts +1 -1
  9. package/dist/models/CreateApplicationShrinkRequest.d.ts +14 -6
  10. package/dist/models/CreateApplicationShrinkRequest.js +2 -0
  11. package/dist/models/CreateApplicationShrinkRequest.js.map +1 -1
  12. package/dist/models/CreateKbsyncLinkRequest.d.ts +12 -4
  13. package/dist/models/CreateKbsyncLinkRequest.js +2 -0
  14. package/dist/models/CreateKbsyncLinkRequest.js.map +1 -1
  15. package/dist/models/CreateKbsyncLinkResponseBody.d.ts +2 -2
  16. package/dist/models/DescribeKnowledgeBaseAnswerResponseBody.d.ts +64 -7
  17. package/dist/models/DescribeKnowledgeBaseAnswerResponseBody.js +33 -1
  18. package/dist/models/DescribeKnowledgeBaseAnswerResponseBody.js.map +1 -1
  19. package/dist/models/DescribeKnowledgeBaseFileShardsResponseBody.d.ts +68 -1
  20. package/dist/models/DescribeKnowledgeBaseFileShardsResponseBody.js +43 -1
  21. package/dist/models/DescribeKnowledgeBaseFileShardsResponseBody.js.map +1 -1
  22. package/dist/models/ModifyAidbclusterModelRequest.d.ts +20 -2
  23. package/dist/models/ModifyAidbclusterModelRequest.js +4 -0
  24. package/dist/models/ModifyAidbclusterModelRequest.js.map +1 -1
  25. package/dist/models/ModifyAidbclusterModelResponseBody.d.ts +3 -3
  26. package/dist/models/UpdateKbsyncLinkRequest.d.ts +12 -4
  27. package/dist/models/UpdateKbsyncLinkRequest.js +2 -0
  28. package/dist/models/UpdateKbsyncLinkRequest.js.map +1 -1
  29. package/dist/models/UpdateKbsyncLinkResponseBody.d.ts +1 -1
  30. package/dist/models/model.d.ts +2 -0
  31. package/dist/models/model.js +44 -40
  32. package/dist/models/model.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/client.ts +28 -8
  35. package/src/models/AnswerKnowledgeBaseRequest.ts +5 -5
  36. package/src/models/CreateApplicationRequest.ts +32 -22
  37. package/src/models/CreateApplicationResponseBody.ts +1 -1
  38. package/src/models/CreateApplicationShrinkRequest.ts +16 -6
  39. package/src/models/CreateKbsyncLinkRequest.ts +14 -4
  40. package/src/models/CreateKbsyncLinkResponseBody.ts +2 -2
  41. package/src/models/DescribeKnowledgeBaseAnswerResponseBody.ts +87 -7
  42. package/src/models/DescribeKnowledgeBaseFileShardsResponseBody.ts +101 -1
  43. package/src/models/ModifyAidbclusterModelRequest.ts +24 -2
  44. package/src/models/ModifyAidbclusterModelResponseBody.ts +3 -3
  45. package/src/models/UpdateKbsyncLinkRequest.ts +14 -4
  46. package/src/models/UpdateKbsyncLinkResponseBody.ts +1 -1
  47. package/src/models/model.ts +2 -0
package/dist/client.d.ts CHANGED
@@ -171,7 +171,7 @@ export default class Client extends OpenApi {
171
171
  */
172
172
  addSQLRateLimitingRules(request: $_model.AddSQLRateLimitingRulesRequest): Promise<$_model.AddSQLRateLimitingRulesResponse>;
173
173
  /**
174
- * Performs a single-round knowledge base question answering.
174
+ * Performs a single-turn knowledge base question answering.
175
175
  *
176
176
  * @param request - AnswerKnowledgeBaseRequest
177
177
  * @param runtime - runtime options for this request RuntimeOptions
@@ -179,7 +179,7 @@ export default class Client extends OpenApi {
179
179
  */
180
180
  answerKnowledgeBaseWithOptions(request: $_model.AnswerKnowledgeBaseRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AnswerKnowledgeBaseResponse>;
181
181
  /**
182
- * Performs a single-round knowledge base question answering.
182
+ * Performs a single-turn knowledge base question answering.
183
183
  *
184
184
  * @param request - AnswerKnowledgeBaseRequest
185
185
  * @returns AnswerKnowledgeBaseResponse
@@ -744,7 +744,7 @@ export default class Client extends OpenApi {
744
744
  */
745
745
  createAgenticDBTenantApiKey(request: $_model.CreateAgenticDBTenantApiKeyRequest): Promise<$_model.CreateAgenticDBTenantApiKeyResponse>;
746
746
  /**
747
- * Creates an application associated with a PolarDB instance.
747
+ * Creates an application that is associated with a PolarDB instance.
748
748
  *
749
749
  * @param tmpReq - CreateApplicationRequest
750
750
  * @param runtime - runtime options for this request RuntimeOptions
@@ -752,7 +752,7 @@ export default class Client extends OpenApi {
752
752
  */
753
753
  createApplicationWithOptions(tmpReq: $_model.CreateApplicationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateApplicationResponse>;
754
754
  /**
755
- * Creates an application associated with a PolarDB instance.
755
+ * Creates an application that is associated with a PolarDB instance.
756
756
  *
757
757
  * @param request - CreateApplicationRequest
758
758
  * @returns CreateApplicationResponse
@@ -4304,7 +4304,7 @@ export default class Client extends OpenApi {
4304
4304
  */
4305
4305
  describeKBSyncLinks(request: $_model.DescribeKBSyncLinksRequest): Promise<$_model.DescribeKBSyncLinksResponse>;
4306
4306
  /**
4307
- * Queries the result of a single-turn Q&A task in a knowledge base.
4307
+ * Queries the result of a single-round knowledge base question answering task.
4308
4308
  *
4309
4309
  * @param request - DescribeKnowledgeBaseAnswerRequest
4310
4310
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4312,7 +4312,7 @@ export default class Client extends OpenApi {
4312
4312
  */
4313
4313
  describeKnowledgeBaseAnswerWithOptions(request: $_model.DescribeKnowledgeBaseAnswerRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeKnowledgeBaseAnswerResponse>;
4314
4314
  /**
4315
- * Queries the result of a single-turn Q&A task in a knowledge base.
4315
+ * Queries the result of a single-round knowledge base question answering task.
4316
4316
  *
4317
4317
  * @param request - DescribeKnowledgeBaseAnswerRequest
4318
4318
  * @returns DescribeKnowledgeBaseAnswerResponse
@@ -5848,7 +5848,7 @@ export default class Client extends OpenApi {
5848
5848
  */
5849
5849
  modifyAIDBClusterDescription(request: $_model.ModifyAIDBClusterDescriptionRequest): Promise<$_model.ModifyAIDBClusterDescriptionResponse>;
5850
5850
  /**
5851
- * Changes the model or the customer-facing invocation name of an AI cluster.
5851
+ * Changes the model or the client-facing invocation name of an AI cluster.
5852
5852
  *
5853
5853
  * @param request - ModifyAIDBClusterModelRequest
5854
5854
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5856,7 +5856,7 @@ export default class Client extends OpenApi {
5856
5856
  */
5857
5857
  modifyAIDBClusterModelWithOptions(request: $_model.ModifyAIDBClusterModelRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyAIDBClusterModelResponse>;
5858
5858
  /**
5859
- * Changes the model or the customer-facing invocation name of an AI cluster.
5859
+ * Changes the model or the client-facing invocation name of an AI cluster.
5860
5860
  *
5861
5861
  * @param request - ModifyAIDBClusterModelRequest
5862
5862
  * @returns ModifyAIDBClusterModelResponse
package/dist/client.js CHANGED
@@ -584,7 +584,7 @@ class Client extends openapi_core_1.default {
584
584
  return await this.addSQLRateLimitingRulesWithOptions(request, runtime);
585
585
  }
586
586
  /**
587
- * Performs a single-round knowledge base question answering.
587
+ * Performs a single-turn knowledge base question answering.
588
588
  *
589
589
  * @param request - AnswerKnowledgeBaseRequest
590
590
  * @param runtime - runtime options for this request RuntimeOptions
@@ -643,7 +643,7 @@ class Client extends openapi_core_1.default {
643
643
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.AnswerKnowledgeBaseResponse({}));
644
644
  }
645
645
  /**
646
- * Performs a single-round knowledge base question answering.
646
+ * Performs a single-turn knowledge base question answering.
647
647
  *
648
648
  * @param request - AnswerKnowledgeBaseRequest
649
649
  * @returns AnswerKnowledgeBaseResponse
@@ -2608,7 +2608,7 @@ class Client extends openapi_core_1.default {
2608
2608
  return await this.createAgenticDBTenantApiKeyWithOptions(request, runtime);
2609
2609
  }
2610
2610
  /**
2611
- * Creates an application associated with a PolarDB instance.
2611
+ * Creates an application that is associated with a PolarDB instance.
2612
2612
  *
2613
2613
  * @param tmpReq - CreateApplicationRequest
2614
2614
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2649,6 +2649,9 @@ class Client extends openapi_core_1.default {
2649
2649
  if (!$dara.isNull(request.agenticDBBranchSpecShrink)) {
2650
2650
  query["AgenticDBBranchSpec"] = request.agenticDBBranchSpecShrink;
2651
2651
  }
2652
+ if (!$dara.isNull(request.agenticDBClusterId)) {
2653
+ query["AgenticDBClusterId"] = request.agenticDBClusterId;
2654
+ }
2652
2655
  if (!$dara.isNull(request.applicationType)) {
2653
2656
  query["ApplicationType"] = request.applicationType;
2654
2657
  }
@@ -2792,7 +2795,7 @@ class Client extends openapi_core_1.default {
2792
2795
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateApplicationResponse({}));
2793
2796
  }
2794
2797
  /**
2795
- * Creates an application associated with a PolarDB instance.
2798
+ * Creates an application that is associated with a PolarDB instance.
2796
2799
  *
2797
2800
  * @param request - CreateApplicationRequest
2798
2801
  * @returns CreateApplicationResponse
@@ -4797,6 +4800,9 @@ class Client extends openapi_core_1.default {
4797
4800
  if (!$dara.isNull(request.tenantId)) {
4798
4801
  query["TenantId"] = request.tenantId;
4799
4802
  }
4803
+ if (!$dara.isNull(request.userAccessToken)) {
4804
+ query["UserAccessToken"] = request.userAccessToken;
4805
+ }
4800
4806
  if (!$dara.isNull(request.userId)) {
4801
4807
  query["UserId"] = request.userId;
4802
4808
  }
@@ -15420,7 +15426,7 @@ class Client extends openapi_core_1.default {
15420
15426
  return await this.describeKBSyncLinksWithOptions(request, runtime);
15421
15427
  }
15422
15428
  /**
15423
- * Queries the result of a single-turn Q&A task in a knowledge base.
15429
+ * Queries the result of a single-round knowledge base question answering task.
15424
15430
  *
15425
15431
  * @param request - DescribeKnowledgeBaseAnswerRequest
15426
15432
  * @param runtime - runtime options for this request RuntimeOptions
@@ -15455,7 +15461,7 @@ class Client extends openapi_core_1.default {
15455
15461
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeKnowledgeBaseAnswerResponse({}));
15456
15462
  }
15457
15463
  /**
15458
- * Queries the result of a single-turn Q&A task in a knowledge base.
15464
+ * Queries the result of a single-round knowledge base question answering task.
15459
15465
  *
15460
15466
  * @param request - DescribeKnowledgeBaseAnswerRequest
15461
15467
  * @returns DescribeKnowledgeBaseAnswerResponse
@@ -20670,7 +20676,7 @@ class Client extends openapi_core_1.default {
20670
20676
  return await this.modifyAIDBClusterDescriptionWithOptions(request, runtime);
20671
20677
  }
20672
20678
  /**
20673
- * Changes the model or the customer-facing invocation name of an AI cluster.
20679
+ * Changes the model or the client-facing invocation name of an AI cluster.
20674
20680
  *
20675
20681
  * @param request - ModifyAIDBClusterModelRequest
20676
20682
  * @param runtime - runtime options for this request RuntimeOptions
@@ -20694,6 +20700,12 @@ class Client extends openapi_core_1.default {
20694
20700
  if (!$dara.isNull(request.regionId)) {
20695
20701
  query["RegionId"] = request.regionId;
20696
20702
  }
20703
+ if (!$dara.isNull(request.restartMode)) {
20704
+ query["RestartMode"] = request.restartMode;
20705
+ }
20706
+ if (!$dara.isNull(request.workerBatchSize)) {
20707
+ query["WorkerBatchSize"] = request.workerBatchSize;
20708
+ }
20697
20709
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
20698
20710
  query: openapi_core_2.OpenApiUtil.query(query),
20699
20711
  });
@@ -20711,7 +20723,7 @@ class Client extends openapi_core_1.default {
20711
20723
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyAIDBClusterModelResponse({}));
20712
20724
  }
20713
20725
  /**
20714
- * Changes the model or the customer-facing invocation name of an AI cluster.
20726
+ * Changes the model or the client-facing invocation name of an AI cluster.
20715
20727
  *
20716
20728
  * @param request - ModifyAIDBClusterModelRequest
20717
20729
  * @returns ModifyAIDBClusterModelResponse
@@ -27724,6 +27736,9 @@ class Client extends openapi_core_1.default {
27724
27736
  if (!$dara.isNull(request.syncIntervalMinutes)) {
27725
27737
  query["SyncIntervalMinutes"] = request.syncIntervalMinutes;
27726
27738
  }
27739
+ if (!$dara.isNull(request.userAccessToken)) {
27740
+ query["UserAccessToken"] = request.userAccessToken;
27741
+ }
27727
27742
  if (!$dara.isNull(request.userId)) {
27728
27743
  query["UserId"] = request.userId;
27729
27744
  }