@alicloud/gpdb20160503 3.7.0 → 3.9.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.
Files changed (124) hide show
  1. package/dist/client.d.ts +160 -34
  2. package/dist/client.js +367 -34
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ChatWithKnowledgeBaseRequest.d.ts +68 -111
  5. package/dist/models/ChatWithKnowledgeBaseRequest.js +2 -0
  6. package/dist/models/ChatWithKnowledgeBaseRequest.js.map +1 -1
  7. package/dist/models/ChatWithKnowledgeBaseResponseBody.d.ts +45 -52
  8. package/dist/models/ChatWithKnowledgeBaseResponseBody.js.map +1 -1
  9. package/dist/models/ChatWithKnowledgeBaseShrinkRequest.d.ts +5 -6
  10. package/dist/models/ChatWithKnowledgeBaseShrinkRequest.js.map +1 -1
  11. package/dist/models/ChatWithKnowledgeBaseStreamRequest.d.ts +71 -87
  12. package/dist/models/ChatWithKnowledgeBaseStreamRequest.js +2 -0
  13. package/dist/models/ChatWithKnowledgeBaseStreamRequest.js.map +1 -1
  14. package/dist/models/ChatWithKnowledgeBaseStreamResponseBody.d.ts +44 -50
  15. package/dist/models/ChatWithKnowledgeBaseStreamResponseBody.js.map +1 -1
  16. package/dist/models/ChatWithKnowledgeBaseStreamShrinkRequest.d.ts +6 -6
  17. package/dist/models/PauseSaasServiceRequest.d.ts +26 -0
  18. package/dist/models/PauseSaasServiceRequest.js +60 -0
  19. package/dist/models/PauseSaasServiceRequest.js.map +1 -0
  20. package/dist/models/PauseSaasServiceResponse.d.ts +19 -0
  21. package/dist/models/PauseSaasServiceResponse.js +69 -0
  22. package/dist/models/PauseSaasServiceResponse.js.map +1 -0
  23. package/dist/models/PauseSaasServiceResponseBody.d.ts +23 -0
  24. package/dist/models/PauseSaasServiceResponseBody.js +60 -0
  25. package/dist/models/PauseSaasServiceResponseBody.js.map +1 -0
  26. package/dist/models/QueryContentAdvanceRequest.d.ts +57 -70
  27. package/dist/models/QueryContentAdvanceRequest.js +2 -0
  28. package/dist/models/QueryContentAdvanceRequest.js.map +1 -1
  29. package/dist/models/QueryContentRequest.d.ts +57 -70
  30. package/dist/models/QueryContentRequest.js +2 -0
  31. package/dist/models/QueryContentRequest.js.map +1 -1
  32. package/dist/models/QueryContentResponseBody.d.ts +10 -11
  33. package/dist/models/QueryContentResponseBody.js.map +1 -1
  34. package/dist/models/QueryContentShrinkRequest.d.ts +52 -66
  35. package/dist/models/QueryContentShrinkRequest.js.map +1 -1
  36. package/dist/models/QueryKnowledgeBasesContentRequest.d.ts +62 -78
  37. package/dist/models/QueryKnowledgeBasesContentRequest.js +2 -0
  38. package/dist/models/QueryKnowledgeBasesContentRequest.js.map +1 -1
  39. package/dist/models/QueryKnowledgeBasesContentResponseBody.d.ts +11 -25
  40. package/dist/models/QueryKnowledgeBasesContentResponseBody.js.map +1 -1
  41. package/dist/models/QueryKnowledgeBasesContentShrinkRequest.d.ts +11 -15
  42. package/dist/models/QueryKnowledgeBasesContentShrinkRequest.js.map +1 -1
  43. package/dist/models/ResetBranchRequest.d.ts +41 -0
  44. package/dist/models/ResetBranchRequest.js +62 -0
  45. package/dist/models/ResetBranchRequest.js.map +1 -0
  46. package/dist/models/ResetBranchResponse.d.ts +19 -0
  47. package/dist/models/ResetBranchResponse.js +69 -0
  48. package/dist/models/ResetBranchResponse.js.map +1 -0
  49. package/dist/models/ResetBranchResponseBody.d.ts +21 -0
  50. package/dist/models/ResetBranchResponseBody.js +58 -0
  51. package/dist/models/ResetBranchResponseBody.js.map +1 -0
  52. package/dist/models/RestoreBranchRequest.d.ts +83 -0
  53. package/dist/models/RestoreBranchRequest.js +72 -0
  54. package/dist/models/RestoreBranchRequest.js.map +1 -0
  55. package/dist/models/RestoreBranchResponse.d.ts +19 -0
  56. package/dist/models/RestoreBranchResponse.js +69 -0
  57. package/dist/models/RestoreBranchResponse.js.map +1 -0
  58. package/dist/models/RestoreBranchResponseBody.d.ts +29 -0
  59. package/dist/models/RestoreBranchResponseBody.js +60 -0
  60. package/dist/models/RestoreBranchResponseBody.js.map +1 -0
  61. package/dist/models/ResumeSaasServiceRequest.d.ts +26 -0
  62. package/dist/models/ResumeSaasServiceRequest.js +60 -0
  63. package/dist/models/ResumeSaasServiceRequest.js.map +1 -0
  64. package/dist/models/ResumeSaasServiceResponse.d.ts +19 -0
  65. package/dist/models/ResumeSaasServiceResponse.js +69 -0
  66. package/dist/models/ResumeSaasServiceResponse.js.map +1 -0
  67. package/dist/models/ResumeSaasServiceResponseBody.d.ts +23 -0
  68. package/dist/models/ResumeSaasServiceResponseBody.js +60 -0
  69. package/dist/models/ResumeSaasServiceResponseBody.js.map +1 -0
  70. package/dist/models/SetAsDefaultBranchRequest.d.ts +41 -0
  71. package/dist/models/SetAsDefaultBranchRequest.js +62 -0
  72. package/dist/models/SetAsDefaultBranchRequest.js.map +1 -0
  73. package/dist/models/SetAsDefaultBranchResponse.d.ts +19 -0
  74. package/dist/models/SetAsDefaultBranchResponse.js +69 -0
  75. package/dist/models/SetAsDefaultBranchResponse.js.map +1 -0
  76. package/dist/models/SetAsDefaultBranchResponseBody.d.ts +21 -0
  77. package/dist/models/SetAsDefaultBranchResponseBody.js +58 -0
  78. package/dist/models/SetAsDefaultBranchResponseBody.js.map +1 -0
  79. package/dist/models/UpdateBranchRequest.d.ts +126 -0
  80. package/dist/models/UpdateBranchRequest.js +98 -0
  81. package/dist/models/UpdateBranchRequest.js.map +1 -0
  82. package/dist/models/UpdateBranchResponse.d.ts +19 -0
  83. package/dist/models/UpdateBranchResponse.js +69 -0
  84. package/dist/models/UpdateBranchResponse.js.map +1 -0
  85. package/dist/models/UpdateBranchResponseBody.d.ts +21 -0
  86. package/dist/models/UpdateBranchResponseBody.js +58 -0
  87. package/dist/models/UpdateBranchResponseBody.js.map +1 -0
  88. package/dist/models/model.d.ts +19 -0
  89. package/dist/models/model.js +56 -18
  90. package/dist/models/model.js.map +1 -1
  91. package/package.json +1 -1
  92. package/src/client.ts +406 -34
  93. package/src/models/ChatWithKnowledgeBaseRequest.ts +70 -111
  94. package/src/models/ChatWithKnowledgeBaseResponseBody.ts +45 -52
  95. package/src/models/ChatWithKnowledgeBaseShrinkRequest.ts +5 -6
  96. package/src/models/ChatWithKnowledgeBaseStreamRequest.ts +73 -87
  97. package/src/models/ChatWithKnowledgeBaseStreamResponseBody.ts +44 -50
  98. package/src/models/ChatWithKnowledgeBaseStreamShrinkRequest.ts +6 -6
  99. package/src/models/PauseSaasServiceRequest.ts +41 -0
  100. package/src/models/PauseSaasServiceResponse.ts +40 -0
  101. package/src/models/PauseSaasServiceResponseBody.ts +38 -0
  102. package/src/models/QueryContentAdvanceRequest.ts +60 -71
  103. package/src/models/QueryContentRequest.ts +60 -71
  104. package/src/models/QueryContentResponseBody.ts +10 -11
  105. package/src/models/QueryContentShrinkRequest.ts +53 -67
  106. package/src/models/QueryKnowledgeBasesContentRequest.ts +64 -78
  107. package/src/models/QueryKnowledgeBasesContentResponseBody.ts +11 -25
  108. package/src/models/QueryKnowledgeBasesContentShrinkRequest.ts +11 -15
  109. package/src/models/ResetBranchRequest.ts +58 -0
  110. package/src/models/ResetBranchResponse.ts +40 -0
  111. package/src/models/ResetBranchResponseBody.ts +34 -0
  112. package/src/models/RestoreBranchRequest.ts +110 -0
  113. package/src/models/RestoreBranchResponse.ts +40 -0
  114. package/src/models/RestoreBranchResponseBody.ts +44 -0
  115. package/src/models/ResumeSaasServiceRequest.ts +41 -0
  116. package/src/models/ResumeSaasServiceResponse.ts +40 -0
  117. package/src/models/ResumeSaasServiceResponseBody.ts +38 -0
  118. package/src/models/SetAsDefaultBranchRequest.ts +58 -0
  119. package/src/models/SetAsDefaultBranchResponse.ts +40 -0
  120. package/src/models/SetAsDefaultBranchResponseBody.ts +34 -0
  121. package/src/models/UpdateBranchRequest.ts +170 -0
  122. package/src/models/UpdateBranchResponse.ts +40 -0
  123. package/src/models/UpdateBranchResponseBody.ts +34 -0
  124. package/src/models/model.ts +19 -0
package/dist/client.js CHANGED
@@ -561,14 +561,14 @@ class Client extends openapi_core_1.default {
561
561
  return await this.cancelUpsertCollectionDataJobWithOptions(request, runtime);
562
562
  }
563
563
  /**
564
- * Combines a knowledge base with a large language model for intelligent Q&A.
564
+ * Provides intelligent Q&A services by combining knowledge bases with large models.
565
565
  *
566
566
  * @remarks
567
- * This API lets you interact with a large language model using specific knowledge base collections to ensure responses are grounded in their content. You can customize requests by configuring parameters, including the database instance ID, knowledge retrieval parameters, and model inference parameters. The API provides a default system prompt template and supports custom system prompts.
568
- * - **DBInstanceId**: Required. Specifies the ID of the database instance.
569
- * - **KnowledgeParams**: Optional. Contains parameters for knowledge retrieval, such as retrieval content and merge policies.
570
- * - **ModelParams**: Required. Contains parameters for model inference, such as the message list and the model name.
571
- * - **PromptTemplate**: Optional. Specifies a custom system prompt template.
567
+ * This API allows users to interact with a large model through specified knowledge base collections to obtain answers based on knowledge base content. It supports configuring various parameters to customize requests, including but not limited to database instance ID, knowledge retrieval parameters, model inference parameters, etc. Additionally, it provides a default system prompt template and allows users to customize system prompts.
568
+ * - **DBInstanceId**: Required. Specifies the database instance ID.
569
+ * - **KnowledgeParams**: Optional. Contains parameters related to knowledge retrieval, such as retrieval content, merge strategies, etc.
570
+ * - **ModelParams**: Required. Contains parameters related to model inference, such as message list, model name, etc.
571
+ * - **PromptTemplate**: Optional. Used to customize the system prompt template.
572
572
  *
573
573
  * @param tmpReq - ChatWithKnowledgeBaseRequest
574
574
  * @param runtime - runtime options for this request RuntimeOptions
@@ -623,14 +623,14 @@ class Client extends openapi_core_1.default {
623
623
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ChatWithKnowledgeBaseResponse({}));
624
624
  }
625
625
  /**
626
- * Combines a knowledge base with a large language model for intelligent Q&A.
626
+ * Provides intelligent Q&A services by combining knowledge bases with large models.
627
627
  *
628
628
  * @remarks
629
- * This API lets you interact with a large language model using specific knowledge base collections to ensure responses are grounded in their content. You can customize requests by configuring parameters, including the database instance ID, knowledge retrieval parameters, and model inference parameters. The API provides a default system prompt template and supports custom system prompts.
630
- * - **DBInstanceId**: Required. Specifies the ID of the database instance.
631
- * - **KnowledgeParams**: Optional. Contains parameters for knowledge retrieval, such as retrieval content and merge policies.
632
- * - **ModelParams**: Required. Contains parameters for model inference, such as the message list and the model name.
633
- * - **PromptTemplate**: Optional. Specifies a custom system prompt template.
629
+ * This API allows users to interact with a large model through specified knowledge base collections to obtain answers based on knowledge base content. It supports configuring various parameters to customize requests, including but not limited to database instance ID, knowledge retrieval parameters, model inference parameters, etc. Additionally, it provides a default system prompt template and allows users to customize system prompts.
630
+ * - **DBInstanceId**: Required. Specifies the database instance ID.
631
+ * - **KnowledgeParams**: Optional. Contains parameters related to knowledge retrieval, such as retrieval content, merge strategies, etc.
632
+ * - **ModelParams**: Required. Contains parameters related to model inference, such as message list, model name, etc.
633
+ * - **PromptTemplate**: Optional. Used to customize the system prompt template.
634
634
  *
635
635
  * @param request - ChatWithKnowledgeBaseRequest
636
636
  * @returns ChatWithKnowledgeBaseResponse
@@ -640,14 +640,14 @@ class Client extends openapi_core_1.default {
640
640
  return await this.chatWithKnowledgeBaseWithOptions(request, runtime);
641
641
  }
642
642
  /**
643
- * This service combines a knowledge base with a large model to provide intelligent Q&A. You can access the streaming interface using Server-Sent Events (SSE) or the Java asynchronous SDK.
643
+ * Provides AI chat services by combining knowledge bases with large language models. This is a streaming API called through SSE or the Java asynchronous SDK.
644
644
  *
645
645
  * @remarks
646
- * Use this API to retrieve answers from a large language model based on content from a specified knowledge base. You can customize the request by configuring various parameters, including the database instance ID, knowledge retrieval parameters, and model inference parameters. The API includes a default system prompt template, and you can also specify a custom one.
647
- * - DBInstanceId: Required. The ID of the database instance.
648
- * - KnowledgeParams: Optional. Parameters for knowledge retrieval, such as retrieval content and the merge policy.
649
- * - ModelParams: Required. Parameters for model inference, such as the message list and the model name.
650
- * - PromptTemplate: Optional. A custom system prompt template.
646
+ * This API allows you to interact with a large language model by using specified knowledge base collections to obtain answers based on knowledge base content. You can configure various parameters to customize requests, including but not limited to the database instance ID, knowledge retrieval parameters, and model inference parameters. A default system prompt template is provided, and you can also customize the system prompt.
647
+ * - DBInstanceId: Required. Specifies the database instance ID.
648
+ * - KnowledgeParams: Optional. Contains knowledge retrieval parameters such as retrieval content and merge strategy.
649
+ * - ModelParams: Required. Contains model inference parameters such as the message list and model name.
650
+ * - PromptTemplate: Optional. Specifies a custom system prompt template.
651
651
  *
652
652
  * @param tmpReq - ChatWithKnowledgeBaseStreamRequest
653
653
  * @param runtime - runtime options for this request RuntimeOptions
@@ -729,14 +729,14 @@ class Client extends openapi_core_1.default {
729
729
  });
730
730
  }
731
731
  /**
732
- * This service combines a knowledge base with a large model to provide intelligent Q&A. You can access the streaming interface using Server-Sent Events (SSE) or the Java asynchronous SDK.
732
+ * Provides AI chat services by combining knowledge bases with large language models. This is a streaming API called through SSE or the Java asynchronous SDK.
733
733
  *
734
734
  * @remarks
735
- * Use this API to retrieve answers from a large language model based on content from a specified knowledge base. You can customize the request by configuring various parameters, including the database instance ID, knowledge retrieval parameters, and model inference parameters. The API includes a default system prompt template, and you can also specify a custom one.
736
- * - DBInstanceId: Required. The ID of the database instance.
737
- * - KnowledgeParams: Optional. Parameters for knowledge retrieval, such as retrieval content and the merge policy.
738
- * - ModelParams: Required. Parameters for model inference, such as the message list and the model name.
739
- * - PromptTemplate: Optional. A custom system prompt template.
735
+ * This API allows you to interact with a large language model by using specified knowledge base collections to obtain answers based on knowledge base content. You can configure various parameters to customize requests, including but not limited to the database instance ID, knowledge retrieval parameters, and model inference parameters. A default system prompt template is provided, and you can also customize the system prompt.
736
+ * - DBInstanceId: Required. Specifies the database instance ID.
737
+ * - KnowledgeParams: Optional. Contains knowledge retrieval parameters such as retrieval content and merge strategy.
738
+ * - ModelParams: Required. Contains model inference parameters such as the message list and model name.
739
+ * - PromptTemplate: Optional. Specifies a custom system prompt template.
740
740
  *
741
741
  * @param tmpReq - ChatWithKnowledgeBaseStreamRequest
742
742
  * @param runtime - runtime options for this request RuntimeOptions
@@ -791,14 +791,14 @@ class Client extends openapi_core_1.default {
791
791
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ChatWithKnowledgeBaseStreamResponse({}));
792
792
  }
793
793
  /**
794
- * This service combines a knowledge base with a large model to provide intelligent Q&A. You can access the streaming interface using Server-Sent Events (SSE) or the Java asynchronous SDK.
794
+ * Provides AI chat services by combining knowledge bases with large language models. This is a streaming API called through SSE or the Java asynchronous SDK.
795
795
  *
796
796
  * @remarks
797
- * Use this API to retrieve answers from a large language model based on content from a specified knowledge base. You can customize the request by configuring various parameters, including the database instance ID, knowledge retrieval parameters, and model inference parameters. The API includes a default system prompt template, and you can also specify a custom one.
798
- * - DBInstanceId: Required. The ID of the database instance.
799
- * - KnowledgeParams: Optional. Parameters for knowledge retrieval, such as retrieval content and the merge policy.
800
- * - ModelParams: Required. Parameters for model inference, such as the message list and the model name.
801
- * - PromptTemplate: Optional. A custom system prompt template.
797
+ * This API allows you to interact with a large language model by using specified knowledge base collections to obtain answers based on knowledge base content. You can configure various parameters to customize requests, including but not limited to the database instance ID, knowledge retrieval parameters, and model inference parameters. A default system prompt template is provided, and you can also customize the system prompt.
798
+ * - DBInstanceId: Required. Specifies the database instance ID.
799
+ * - KnowledgeParams: Optional. Contains knowledge retrieval parameters such as retrieval content and merge strategy.
800
+ * - ModelParams: Required. Contains model inference parameters such as the message list and model name.
801
+ * - PromptTemplate: Optional. Specifies a custom system prompt template.
802
802
  *
803
803
  * @param request - ChatWithKnowledgeBaseStreamRequest
804
804
  * @returns ChatWithKnowledgeBaseStreamResponse
@@ -13609,6 +13609,54 @@ class Client extends openapi_core_1.default {
13609
13609
  let runtime = new $dara.RuntimeOptions({});
13610
13610
  return await this.pauseInstanceWithOptions(request, runtime);
13611
13611
  }
13612
+ /**
13613
+ * 暂停SaaS服务
13614
+ *
13615
+ * @remarks
13616
+ * 删除模型服务。
13617
+ *
13618
+ * @param request - PauseSaasServiceRequest
13619
+ * @param runtime - runtime options for this request RuntimeOptions
13620
+ * @returns PauseSaasServiceResponse
13621
+ */
13622
+ async pauseSaasServiceWithOptions(request, runtime) {
13623
+ request.validate();
13624
+ let query = {};
13625
+ if (!$dara.isNull(request.regionId)) {
13626
+ query["RegionId"] = request.regionId;
13627
+ }
13628
+ if (!$dara.isNull(request.serviceId)) {
13629
+ query["ServiceId"] = request.serviceId;
13630
+ }
13631
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
13632
+ query: openapi_core_2.OpenApiUtil.query(query),
13633
+ });
13634
+ let params = new openapi_core_2.$OpenApiUtil.Params({
13635
+ action: "PauseSaasService",
13636
+ version: "2016-05-03",
13637
+ protocol: "HTTPS",
13638
+ pathname: "/",
13639
+ method: "POST",
13640
+ authType: "AK",
13641
+ style: "RPC",
13642
+ reqBodyType: "formData",
13643
+ bodyType: "json",
13644
+ });
13645
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.PauseSaasServiceResponse({}));
13646
+ }
13647
+ /**
13648
+ * 暂停SaaS服务
13649
+ *
13650
+ * @remarks
13651
+ * 删除模型服务。
13652
+ *
13653
+ * @param request - PauseSaasServiceRequest
13654
+ * @returns PauseSaasServiceResponse
13655
+ */
13656
+ async pauseSaasService(request) {
13657
+ let runtime = new $dara.RuntimeOptions({});
13658
+ return await this.pauseSaasServiceWithOptions(request, runtime);
13659
+ }
13612
13660
  /**
13613
13661
  * Pauses a Supabase instance.
13614
13662
  *
@@ -13773,7 +13821,7 @@ class Client extends openapi_core_1.default {
13773
13821
  return await this.queryCollectionDataWithOptions(request, runtime);
13774
13822
  }
13775
13823
  /**
13776
- * Query a document collection with natural language to retrieve vectors and metadata.
13824
+ * Retrieves vectors and metadata from a specified document collection using natural language queries.
13777
13825
  *
13778
13826
  * @param tmpReq - QueryContentRequest
13779
13827
  * @param runtime - runtime options for this request RuntimeOptions
@@ -13893,7 +13941,7 @@ class Client extends openapi_core_1.default {
13893
13941
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryContentResponse({}));
13894
13942
  }
13895
13943
  /**
13896
- * Query a document collection with natural language to retrieve vectors and metadata.
13944
+ * Retrieves vectors and metadata from a specified document collection using natural language queries.
13897
13945
  *
13898
13946
  * @param request - QueryContentRequest
13899
13947
  * @returns QueryContentResponse
@@ -13984,7 +14032,7 @@ class Client extends openapi_core_1.default {
13984
14032
  return queryContentResp;
13985
14033
  }
13986
14034
  /**
13987
- * Retrieve vectors and metadata from specified knowledge bases using a natural-language query, returning the merged results from a multi-channel recall.
14035
+ * Retrieves vectors and metadata from multiple specified document collections by using natural language statements, merges multi-channel recall results, and returns the combined results.
13988
14036
  *
13989
14037
  * @param tmpReq - QueryKnowledgeBasesContentRequest
13990
14038
  * @param runtime - runtime options for this request RuntimeOptions
@@ -14051,7 +14099,7 @@ class Client extends openapi_core_1.default {
14051
14099
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryKnowledgeBasesContentResponse({}));
14052
14100
  }
14053
14101
  /**
14054
- * Retrieve vectors and metadata from specified knowledge bases using a natural-language query, returning the merged results from a multi-channel recall.
14102
+ * Retrieves vectors and metadata from multiple specified document collections by using natural language statements, merges multi-channel recall results, and returns the combined results.
14055
14103
  *
14056
14104
  * @param request - QueryKnowledgeBasesContentRequest
14057
14105
  * @returns QueryKnowledgeBasesContentResponse
@@ -14265,6 +14313,57 @@ class Client extends openapi_core_1.default {
14265
14313
  let runtime = new $dara.RuntimeOptions({});
14266
14314
  return await this.resetAccountPasswordWithOptions(request, runtime);
14267
14315
  }
14316
+ /**
14317
+ * Resets a Supabase branch.
14318
+ *
14319
+ * @remarks
14320
+ * Resets a child branch to the latest data of its parent branch. The main branch, branches without a parent branch, branches with child branches, and protected branches cannot be reset.
14321
+ *
14322
+ * @param request - ResetBranchRequest
14323
+ * @param runtime - runtime options for this request RuntimeOptions
14324
+ * @returns ResetBranchResponse
14325
+ */
14326
+ async resetBranchWithOptions(request, runtime) {
14327
+ request.validate();
14328
+ let query = {};
14329
+ if (!$dara.isNull(request.branchId)) {
14330
+ query["BranchId"] = request.branchId;
14331
+ }
14332
+ if (!$dara.isNull(request.projectId)) {
14333
+ query["ProjectId"] = request.projectId;
14334
+ }
14335
+ if (!$dara.isNull(request.regionId)) {
14336
+ query["RegionId"] = request.regionId;
14337
+ }
14338
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
14339
+ query: openapi_core_2.OpenApiUtil.query(query),
14340
+ });
14341
+ let params = new openapi_core_2.$OpenApiUtil.Params({
14342
+ action: "ResetBranch",
14343
+ version: "2016-05-03",
14344
+ protocol: "HTTPS",
14345
+ pathname: "/",
14346
+ method: "POST",
14347
+ authType: "AK",
14348
+ style: "RPC",
14349
+ reqBodyType: "formData",
14350
+ bodyType: "json",
14351
+ });
14352
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ResetBranchResponse({}));
14353
+ }
14354
+ /**
14355
+ * Resets a Supabase branch.
14356
+ *
14357
+ * @remarks
14358
+ * Resets a child branch to the latest data of its parent branch. The main branch, branches without a parent branch, branches with child branches, and protected branches cannot be reset.
14359
+ *
14360
+ * @param request - ResetBranchRequest
14361
+ * @returns ResetBranchResponse
14362
+ */
14363
+ async resetBranch(request) {
14364
+ let runtime = new $dara.RuntimeOptions({});
14365
+ return await this.resetBranchWithOptions(request, runtime);
14366
+ }
14268
14367
  /**
14269
14368
  * Resets the IMV statistics.
14270
14369
  *
@@ -14458,6 +14557,72 @@ class Client extends openapi_core_1.default {
14458
14557
  let runtime = new $dara.RuntimeOptions({});
14459
14558
  return await this.restartSupabaseProjectWithOptions(request, runtime);
14460
14559
  }
14560
+ /**
14561
+ * Recovers a Supabase branch.
14562
+ *
14563
+ * @remarks
14564
+ * Recovers a target branch to a specified point in time or LSN of the source branch. Before recovery, you can specify a backup branch name to preserve the original target branch.
14565
+ *
14566
+ * @param request - RestoreBranchRequest
14567
+ * @param runtime - runtime options for this request RuntimeOptions
14568
+ * @returns RestoreBranchResponse
14569
+ */
14570
+ async restoreBranchWithOptions(request, runtime) {
14571
+ request.validate();
14572
+ let query = {};
14573
+ if (!$dara.isNull(request.branchId)) {
14574
+ query["BranchId"] = request.branchId;
14575
+ }
14576
+ if (!$dara.isNull(request.clientToken)) {
14577
+ query["ClientToken"] = request.clientToken;
14578
+ }
14579
+ if (!$dara.isNull(request.preserveUnderName)) {
14580
+ query["PreserveUnderName"] = request.preserveUnderName;
14581
+ }
14582
+ if (!$dara.isNull(request.projectId)) {
14583
+ query["ProjectId"] = request.projectId;
14584
+ }
14585
+ if (!$dara.isNull(request.regionId)) {
14586
+ query["RegionId"] = request.regionId;
14587
+ }
14588
+ if (!$dara.isNull(request.sourceBranchId)) {
14589
+ query["SourceBranchId"] = request.sourceBranchId;
14590
+ }
14591
+ if (!$dara.isNull(request.sourceBranchLsn)) {
14592
+ query["SourceBranchLsn"] = request.sourceBranchLsn;
14593
+ }
14594
+ if (!$dara.isNull(request.sourceBranchTimestamp)) {
14595
+ query["SourceBranchTimestamp"] = request.sourceBranchTimestamp;
14596
+ }
14597
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
14598
+ query: openapi_core_2.OpenApiUtil.query(query),
14599
+ });
14600
+ let params = new openapi_core_2.$OpenApiUtil.Params({
14601
+ action: "RestoreBranch",
14602
+ version: "2016-05-03",
14603
+ protocol: "HTTPS",
14604
+ pathname: "/",
14605
+ method: "POST",
14606
+ authType: "AK",
14607
+ style: "RPC",
14608
+ reqBodyType: "formData",
14609
+ bodyType: "json",
14610
+ });
14611
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.RestoreBranchResponse({}));
14612
+ }
14613
+ /**
14614
+ * Recovers a Supabase branch.
14615
+ *
14616
+ * @remarks
14617
+ * Recovers a target branch to a specified point in time or LSN of the source branch. Before recovery, you can specify a backup branch name to preserve the original target branch.
14618
+ *
14619
+ * @param request - RestoreBranchRequest
14620
+ * @returns RestoreBranchResponse
14621
+ */
14622
+ async restoreBranch(request) {
14623
+ let runtime = new $dara.RuntimeOptions({});
14624
+ return await this.restoreBranchWithOptions(request, runtime);
14625
+ }
14461
14626
  /**
14462
14627
  * Restores a Supabase project from a snapshot.
14463
14628
  *
@@ -14619,6 +14784,54 @@ class Client extends openapi_core_1.default {
14619
14784
  let runtime = new $dara.RuntimeOptions({});
14620
14785
  return await this.resumeInstanceWithOptions(request, runtime);
14621
14786
  }
14787
+ /**
14788
+ * 恢复SaaS服务
14789
+ *
14790
+ * @remarks
14791
+ * 删除模型服务。
14792
+ *
14793
+ * @param request - ResumeSaasServiceRequest
14794
+ * @param runtime - runtime options for this request RuntimeOptions
14795
+ * @returns ResumeSaasServiceResponse
14796
+ */
14797
+ async resumeSaasServiceWithOptions(request, runtime) {
14798
+ request.validate();
14799
+ let query = {};
14800
+ if (!$dara.isNull(request.regionId)) {
14801
+ query["RegionId"] = request.regionId;
14802
+ }
14803
+ if (!$dara.isNull(request.serviceId)) {
14804
+ query["ServiceId"] = request.serviceId;
14805
+ }
14806
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
14807
+ query: openapi_core_2.OpenApiUtil.query(query),
14808
+ });
14809
+ let params = new openapi_core_2.$OpenApiUtil.Params({
14810
+ action: "ResumeSaasService",
14811
+ version: "2016-05-03",
14812
+ protocol: "HTTPS",
14813
+ pathname: "/",
14814
+ method: "POST",
14815
+ authType: "AK",
14816
+ style: "RPC",
14817
+ reqBodyType: "formData",
14818
+ bodyType: "json",
14819
+ });
14820
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ResumeSaasServiceResponse({}));
14821
+ }
14822
+ /**
14823
+ * 恢复SaaS服务
14824
+ *
14825
+ * @remarks
14826
+ * 删除模型服务。
14827
+ *
14828
+ * @param request - ResumeSaasServiceRequest
14829
+ * @returns ResumeSaasServiceResponse
14830
+ */
14831
+ async resumeSaasService(request) {
14832
+ let runtime = new $dara.RuntimeOptions({});
14833
+ return await this.resumeSaasServiceWithOptions(request, runtime);
14834
+ }
14622
14835
  /**
14623
14836
  * Resumes a Supabase instance.
14624
14837
  *
@@ -14667,6 +14880,57 @@ class Client extends openapi_core_1.default {
14667
14880
  let runtime = new $dara.RuntimeOptions({});
14668
14881
  return await this.resumeSupabaseProjectWithOptions(request, runtime);
14669
14882
  }
14883
+ /**
14884
+ * Sets the default branch for a Supabase project.
14885
+ *
14886
+ * @remarks
14887
+ * Sets a specified branch as the default branch for a Supabase project.
14888
+ *
14889
+ * @param request - SetAsDefaultBranchRequest
14890
+ * @param runtime - runtime options for this request RuntimeOptions
14891
+ * @returns SetAsDefaultBranchResponse
14892
+ */
14893
+ async setAsDefaultBranchWithOptions(request, runtime) {
14894
+ request.validate();
14895
+ let query = {};
14896
+ if (!$dara.isNull(request.branchId)) {
14897
+ query["BranchId"] = request.branchId;
14898
+ }
14899
+ if (!$dara.isNull(request.projectId)) {
14900
+ query["ProjectId"] = request.projectId;
14901
+ }
14902
+ if (!$dara.isNull(request.regionId)) {
14903
+ query["RegionId"] = request.regionId;
14904
+ }
14905
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
14906
+ query: openapi_core_2.OpenApiUtil.query(query),
14907
+ });
14908
+ let params = new openapi_core_2.$OpenApiUtil.Params({
14909
+ action: "SetAsDefaultBranch",
14910
+ version: "2016-05-03",
14911
+ protocol: "HTTPS",
14912
+ pathname: "/",
14913
+ method: "POST",
14914
+ authType: "AK",
14915
+ style: "RPC",
14916
+ reqBodyType: "formData",
14917
+ bodyType: "json",
14918
+ });
14919
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.SetAsDefaultBranchResponse({}));
14920
+ }
14921
+ /**
14922
+ * Sets the default branch for a Supabase project.
14923
+ *
14924
+ * @remarks
14925
+ * Sets a specified branch as the default branch for a Supabase project.
14926
+ *
14927
+ * @param request - SetAsDefaultBranchRequest
14928
+ * @returns SetAsDefaultBranchResponse
14929
+ */
14930
+ async setAsDefaultBranch(request) {
14931
+ let runtime = new $dara.RuntimeOptions({});
14932
+ return await this.setAsDefaultBranchWithOptions(request, runtime);
14933
+ }
14670
14934
  /**
14671
14935
  * Enables or disables a plan for an AnalyticDB for PostgreSQL instance.
14672
14936
  *
@@ -15235,6 +15499,75 @@ class Client extends openapi_core_1.default {
15235
15499
  let runtime = new $dara.RuntimeOptions({});
15236
15500
  return await this.untagSupabaseProjectWithOptions(request, runtime);
15237
15501
  }
15502
+ /**
15503
+ * Updates Supabase branch information.
15504
+ *
15505
+ * @remarks
15506
+ * This operation modifies the branch name, description, tags, protection status, and automatic deletion time upon expiration.
15507
+ *
15508
+ * @param request - UpdateBranchRequest
15509
+ * @param runtime - runtime options for this request RuntimeOptions
15510
+ * @returns UpdateBranchResponse
15511
+ */
15512
+ async updateBranchWithOptions(request, runtime) {
15513
+ request.validate();
15514
+ let query = {};
15515
+ if (!$dara.isNull(request.branchId)) {
15516
+ query["BranchId"] = request.branchId;
15517
+ }
15518
+ if (!$dara.isNull(request.branchName)) {
15519
+ query["BranchName"] = request.branchName;
15520
+ }
15521
+ if (!$dara.isNull(request.clearExpiresAt)) {
15522
+ query["ClearExpiresAt"] = request.clearExpiresAt;
15523
+ }
15524
+ if (!$dara.isNull(request.description)) {
15525
+ query["Description"] = request.description;
15526
+ }
15527
+ if (!$dara.isNull(request.expiresAt)) {
15528
+ query["ExpiresAt"] = request.expiresAt;
15529
+ }
15530
+ if (!$dara.isNull(request.projectId)) {
15531
+ query["ProjectId"] = request.projectId;
15532
+ }
15533
+ if (!$dara.isNull(request.protected)) {
15534
+ query["Protected"] = request.protected;
15535
+ }
15536
+ if (!$dara.isNull(request.regionId)) {
15537
+ query["RegionId"] = request.regionId;
15538
+ }
15539
+ if (!$dara.isNull(request.tag)) {
15540
+ query["Tag"] = request.tag;
15541
+ }
15542
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
15543
+ query: openapi_core_2.OpenApiUtil.query(query),
15544
+ });
15545
+ let params = new openapi_core_2.$OpenApiUtil.Params({
15546
+ action: "UpdateBranch",
15547
+ version: "2016-05-03",
15548
+ protocol: "HTTPS",
15549
+ pathname: "/",
15550
+ method: "POST",
15551
+ authType: "AK",
15552
+ style: "RPC",
15553
+ reqBodyType: "formData",
15554
+ bodyType: "json",
15555
+ });
15556
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateBranchResponse({}));
15557
+ }
15558
+ /**
15559
+ * Updates Supabase branch information.
15560
+ *
15561
+ * @remarks
15562
+ * This operation modifies the branch name, description, tags, protection status, and automatic deletion time upon expiration.
15563
+ *
15564
+ * @param request - UpdateBranchRequest
15565
+ * @returns UpdateBranchResponse
15566
+ */
15567
+ async updateBranch(request) {
15568
+ let runtime = new $dara.RuntimeOptions({});
15569
+ return await this.updateBranchWithOptions(request, runtime);
15570
+ }
15238
15571
  /**
15239
15572
  * Update Metadata of Collection Data
15240
15573
  *