@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/src/client.ts CHANGED
@@ -568,14 +568,14 @@ export default class Client extends OpenApi {
568
568
  }
569
569
 
570
570
  /**
571
- * Combines a knowledge base with a large language model for intelligent Q&A.
571
+ * Provides intelligent Q&A services by combining knowledge bases with large models.
572
572
  *
573
573
  * @remarks
574
- * 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.
575
- * - **DBInstanceId**: Required. Specifies the ID of the database instance.
576
- * - **KnowledgeParams**: Optional. Contains parameters for knowledge retrieval, such as retrieval content and merge policies.
577
- * - **ModelParams**: Required. Contains parameters for model inference, such as the message list and the model name.
578
- * - **PromptTemplate**: Optional. Specifies a custom system prompt template.
574
+ * 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.
575
+ * - **DBInstanceId**: Required. Specifies the database instance ID.
576
+ * - **KnowledgeParams**: Optional. Contains parameters related to knowledge retrieval, such as retrieval content, merge strategies, etc.
577
+ * - **ModelParams**: Required. Contains parameters related to model inference, such as message list, model name, etc.
578
+ * - **PromptTemplate**: Optional. Used to customize the system prompt template.
579
579
  *
580
580
  * @param tmpReq - ChatWithKnowledgeBaseRequest
581
581
  * @param runtime - runtime options for this request RuntimeOptions
@@ -640,14 +640,14 @@ export default class Client extends OpenApi {
640
640
  }
641
641
 
642
642
  /**
643
- * Combines a knowledge base with a large language model for intelligent Q&A.
643
+ * Provides intelligent Q&A services by combining knowledge bases with large models.
644
644
  *
645
645
  * @remarks
646
- * 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.
647
- * - **DBInstanceId**: Required. Specifies the ID of the database instance.
648
- * - **KnowledgeParams**: Optional. Contains parameters for knowledge retrieval, such as retrieval content and merge policies.
649
- * - **ModelParams**: Required. Contains parameters for model inference, such as the message list and the model name.
650
- * - **PromptTemplate**: Optional. Specifies a custom system prompt template.
646
+ * 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.
647
+ * - **DBInstanceId**: Required. Specifies the database instance ID.
648
+ * - **KnowledgeParams**: Optional. Contains parameters related to knowledge retrieval, such as retrieval content, merge strategies, etc.
649
+ * - **ModelParams**: Required. Contains parameters related to model inference, such as message list, model name, etc.
650
+ * - **PromptTemplate**: Optional. Used to customize the system prompt template.
651
651
  *
652
652
  * @param request - ChatWithKnowledgeBaseRequest
653
653
  * @returns ChatWithKnowledgeBaseResponse
@@ -658,14 +658,14 @@ export default class Client extends OpenApi {
658
658
  }
659
659
 
660
660
  /**
661
- * 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.
661
+ * 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.
662
662
  *
663
663
  * @remarks
664
- * 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.
665
- * - DBInstanceId: Required. The ID of the database instance.
666
- * - KnowledgeParams: Optional. Parameters for knowledge retrieval, such as retrieval content and the merge policy.
667
- * - ModelParams: Required. Parameters for model inference, such as the message list and the model name.
668
- * - PromptTemplate: Optional. A custom system prompt template.
664
+ * 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.
665
+ * - DBInstanceId: Required. Specifies the database instance ID.
666
+ * - KnowledgeParams: Optional. Contains knowledge retrieval parameters such as retrieval content and merge strategy.
667
+ * - ModelParams: Required. Contains model inference parameters such as the message list and model name.
668
+ * - PromptTemplate: Optional. Specifies a custom system prompt template.
669
669
  *
670
670
  * @param tmpReq - ChatWithKnowledgeBaseStreamRequest
671
671
  * @param runtime - runtime options for this request RuntimeOptions
@@ -744,14 +744,14 @@ export default class Client extends OpenApi {
744
744
  }
745
745
 
746
746
  /**
747
- * 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.
747
+ * 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.
748
748
  *
749
749
  * @remarks
750
- * 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.
751
- * - DBInstanceId: Required. The ID of the database instance.
752
- * - KnowledgeParams: Optional. Parameters for knowledge retrieval, such as retrieval content and the merge policy.
753
- * - ModelParams: Required. Parameters for model inference, such as the message list and the model name.
754
- * - PromptTemplate: Optional. A custom system prompt template.
750
+ * 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.
751
+ * - DBInstanceId: Required. Specifies the database instance ID.
752
+ * - KnowledgeParams: Optional. Contains knowledge retrieval parameters such as retrieval content and merge strategy.
753
+ * - ModelParams: Required. Contains model inference parameters such as the message list and model name.
754
+ * - PromptTemplate: Optional. Specifies a custom system prompt template.
755
755
  *
756
756
  * @param tmpReq - ChatWithKnowledgeBaseStreamRequest
757
757
  * @param runtime - runtime options for this request RuntimeOptions
@@ -816,14 +816,14 @@ export default class Client extends OpenApi {
816
816
  }
817
817
 
818
818
  /**
819
- * 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.
819
+ * 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.
820
820
  *
821
821
  * @remarks
822
- * 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.
823
- * - DBInstanceId: Required. The ID of the database instance.
824
- * - KnowledgeParams: Optional. Parameters for knowledge retrieval, such as retrieval content and the merge policy.
825
- * - ModelParams: Required. Parameters for model inference, such as the message list and the model name.
826
- * - PromptTemplate: Optional. A custom system prompt template.
822
+ * 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.
823
+ * - DBInstanceId: Required. Specifies the database instance ID.
824
+ * - KnowledgeParams: Optional. Contains knowledge retrieval parameters such as retrieval content and merge strategy.
825
+ * - ModelParams: Required. Contains model inference parameters such as the message list and model name.
826
+ * - PromptTemplate: Optional. Specifies a custom system prompt template.
827
827
  *
828
828
  * @param request - ChatWithKnowledgeBaseStreamRequest
829
829
  * @returns ChatWithKnowledgeBaseStreamResponse
@@ -15381,6 +15381,58 @@ export default class Client extends OpenApi {
15381
15381
  return await this.pauseInstanceWithOptions(request, runtime);
15382
15382
  }
15383
15383
 
15384
+ /**
15385
+ * 暂停SaaS服务
15386
+ *
15387
+ * @remarks
15388
+ * 删除模型服务。
15389
+ *
15390
+ * @param request - PauseSaasServiceRequest
15391
+ * @param runtime - runtime options for this request RuntimeOptions
15392
+ * @returns PauseSaasServiceResponse
15393
+ */
15394
+ async pauseSaasServiceWithOptions(request: $_model.PauseSaasServiceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PauseSaasServiceResponse> {
15395
+ request.validate();
15396
+ let query = { };
15397
+ if (!$dara.isNull(request.regionId)) {
15398
+ query["RegionId"] = request.regionId;
15399
+ }
15400
+
15401
+ if (!$dara.isNull(request.serviceId)) {
15402
+ query["ServiceId"] = request.serviceId;
15403
+ }
15404
+
15405
+ let req = new $OpenApiUtil.OpenApiRequest({
15406
+ query: OpenApiUtil.query(query),
15407
+ });
15408
+ let params = new $OpenApiUtil.Params({
15409
+ action: "PauseSaasService",
15410
+ version: "2016-05-03",
15411
+ protocol: "HTTPS",
15412
+ pathname: "/",
15413
+ method: "POST",
15414
+ authType: "AK",
15415
+ style: "RPC",
15416
+ reqBodyType: "formData",
15417
+ bodyType: "json",
15418
+ });
15419
+ return $dara.cast<$_model.PauseSaasServiceResponse>(await this.callApi(params, req, runtime), new $_model.PauseSaasServiceResponse({}));
15420
+ }
15421
+
15422
+ /**
15423
+ * 暂停SaaS服务
15424
+ *
15425
+ * @remarks
15426
+ * 删除模型服务。
15427
+ *
15428
+ * @param request - PauseSaasServiceRequest
15429
+ * @returns PauseSaasServiceResponse
15430
+ */
15431
+ async pauseSaasService(request: $_model.PauseSaasServiceRequest): Promise<$_model.PauseSaasServiceResponse> {
15432
+ let runtime = new $dara.RuntimeOptions({ });
15433
+ return await this.pauseSaasServiceWithOptions(request, runtime);
15434
+ }
15435
+
15384
15436
  /**
15385
15437
  * Pauses a Supabase instance.
15386
15438
  *
@@ -15576,7 +15628,7 @@ export default class Client extends OpenApi {
15576
15628
  }
15577
15629
 
15578
15630
  /**
15579
- * Query a document collection with natural language to retrieve vectors and metadata.
15631
+ * Retrieves vectors and metadata from a specified document collection using natural language queries.
15580
15632
  *
15581
15633
  * @param tmpReq - QueryContentRequest
15582
15634
  * @param runtime - runtime options for this request RuntimeOptions
@@ -15727,7 +15779,7 @@ export default class Client extends OpenApi {
15727
15779
  }
15728
15780
 
15729
15781
  /**
15730
- * Query a document collection with natural language to retrieve vectors and metadata.
15782
+ * Retrieves vectors and metadata from a specified document collection using natural language queries.
15731
15783
  *
15732
15784
  * @param request - QueryContentRequest
15733
15785
  * @returns QueryContentResponse
@@ -15824,7 +15876,7 @@ export default class Client extends OpenApi {
15824
15876
  }
15825
15877
 
15826
15878
  /**
15827
- * Retrieve vectors and metadata from specified knowledge bases using a natural-language query, returning the merged results from a multi-channel recall.
15879
+ * Retrieves vectors and metadata from multiple specified document collections by using natural language statements, merges multi-channel recall results, and returns the combined results.
15828
15880
  *
15829
15881
  * @param tmpReq - QueryKnowledgeBasesContentRequest
15830
15882
  * @param runtime - runtime options for this request RuntimeOptions
@@ -15905,7 +15957,7 @@ export default class Client extends OpenApi {
15905
15957
  }
15906
15958
 
15907
15959
  /**
15908
- * Retrieve vectors and metadata from specified knowledge bases using a natural-language query, returning the merged results from a multi-channel recall.
15960
+ * Retrieves vectors and metadata from multiple specified document collections by using natural language statements, merges multi-channel recall results, and returns the combined results.
15909
15961
  *
15910
15962
  * @param request - QueryKnowledgeBasesContentRequest
15911
15963
  * @returns QueryKnowledgeBasesContentResponse
@@ -16147,6 +16199,62 @@ export default class Client extends OpenApi {
16147
16199
  return await this.resetAccountPasswordWithOptions(request, runtime);
16148
16200
  }
16149
16201
 
16202
+ /**
16203
+ * Resets a Supabase branch.
16204
+ *
16205
+ * @remarks
16206
+ * 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.
16207
+ *
16208
+ * @param request - ResetBranchRequest
16209
+ * @param runtime - runtime options for this request RuntimeOptions
16210
+ * @returns ResetBranchResponse
16211
+ */
16212
+ async resetBranchWithOptions(request: $_model.ResetBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ResetBranchResponse> {
16213
+ request.validate();
16214
+ let query = { };
16215
+ if (!$dara.isNull(request.branchId)) {
16216
+ query["BranchId"] = request.branchId;
16217
+ }
16218
+
16219
+ if (!$dara.isNull(request.projectId)) {
16220
+ query["ProjectId"] = request.projectId;
16221
+ }
16222
+
16223
+ if (!$dara.isNull(request.regionId)) {
16224
+ query["RegionId"] = request.regionId;
16225
+ }
16226
+
16227
+ let req = new $OpenApiUtil.OpenApiRequest({
16228
+ query: OpenApiUtil.query(query),
16229
+ });
16230
+ let params = new $OpenApiUtil.Params({
16231
+ action: "ResetBranch",
16232
+ version: "2016-05-03",
16233
+ protocol: "HTTPS",
16234
+ pathname: "/",
16235
+ method: "POST",
16236
+ authType: "AK",
16237
+ style: "RPC",
16238
+ reqBodyType: "formData",
16239
+ bodyType: "json",
16240
+ });
16241
+ return $dara.cast<$_model.ResetBranchResponse>(await this.callApi(params, req, runtime), new $_model.ResetBranchResponse({}));
16242
+ }
16243
+
16244
+ /**
16245
+ * Resets a Supabase branch.
16246
+ *
16247
+ * @remarks
16248
+ * 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.
16249
+ *
16250
+ * @param request - ResetBranchRequest
16251
+ * @returns ResetBranchResponse
16252
+ */
16253
+ async resetBranch(request: $_model.ResetBranchRequest): Promise<$_model.ResetBranchResponse> {
16254
+ let runtime = new $dara.RuntimeOptions({ });
16255
+ return await this.resetBranchWithOptions(request, runtime);
16256
+ }
16257
+
16150
16258
  /**
16151
16259
  * Resets the IMV statistics.
16152
16260
  *
@@ -16357,6 +16465,82 @@ export default class Client extends OpenApi {
16357
16465
  return await this.restartSupabaseProjectWithOptions(request, runtime);
16358
16466
  }
16359
16467
 
16468
+ /**
16469
+ * Recovers a Supabase branch.
16470
+ *
16471
+ * @remarks
16472
+ * 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.
16473
+ *
16474
+ * @param request - RestoreBranchRequest
16475
+ * @param runtime - runtime options for this request RuntimeOptions
16476
+ * @returns RestoreBranchResponse
16477
+ */
16478
+ async restoreBranchWithOptions(request: $_model.RestoreBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RestoreBranchResponse> {
16479
+ request.validate();
16480
+ let query = { };
16481
+ if (!$dara.isNull(request.branchId)) {
16482
+ query["BranchId"] = request.branchId;
16483
+ }
16484
+
16485
+ if (!$dara.isNull(request.clientToken)) {
16486
+ query["ClientToken"] = request.clientToken;
16487
+ }
16488
+
16489
+ if (!$dara.isNull(request.preserveUnderName)) {
16490
+ query["PreserveUnderName"] = request.preserveUnderName;
16491
+ }
16492
+
16493
+ if (!$dara.isNull(request.projectId)) {
16494
+ query["ProjectId"] = request.projectId;
16495
+ }
16496
+
16497
+ if (!$dara.isNull(request.regionId)) {
16498
+ query["RegionId"] = request.regionId;
16499
+ }
16500
+
16501
+ if (!$dara.isNull(request.sourceBranchId)) {
16502
+ query["SourceBranchId"] = request.sourceBranchId;
16503
+ }
16504
+
16505
+ if (!$dara.isNull(request.sourceBranchLsn)) {
16506
+ query["SourceBranchLsn"] = request.sourceBranchLsn;
16507
+ }
16508
+
16509
+ if (!$dara.isNull(request.sourceBranchTimestamp)) {
16510
+ query["SourceBranchTimestamp"] = request.sourceBranchTimestamp;
16511
+ }
16512
+
16513
+ let req = new $OpenApiUtil.OpenApiRequest({
16514
+ query: OpenApiUtil.query(query),
16515
+ });
16516
+ let params = new $OpenApiUtil.Params({
16517
+ action: "RestoreBranch",
16518
+ version: "2016-05-03",
16519
+ protocol: "HTTPS",
16520
+ pathname: "/",
16521
+ method: "POST",
16522
+ authType: "AK",
16523
+ style: "RPC",
16524
+ reqBodyType: "formData",
16525
+ bodyType: "json",
16526
+ });
16527
+ return $dara.cast<$_model.RestoreBranchResponse>(await this.callApi(params, req, runtime), new $_model.RestoreBranchResponse({}));
16528
+ }
16529
+
16530
+ /**
16531
+ * Recovers a Supabase branch.
16532
+ *
16533
+ * @remarks
16534
+ * 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.
16535
+ *
16536
+ * @param request - RestoreBranchRequest
16537
+ * @returns RestoreBranchResponse
16538
+ */
16539
+ async restoreBranch(request: $_model.RestoreBranchRequest): Promise<$_model.RestoreBranchResponse> {
16540
+ let runtime = new $dara.RuntimeOptions({ });
16541
+ return await this.restoreBranchWithOptions(request, runtime);
16542
+ }
16543
+
16360
16544
  /**
16361
16545
  * Restores a Supabase project from a snapshot.
16362
16546
  *
@@ -16535,6 +16719,58 @@ export default class Client extends OpenApi {
16535
16719
  return await this.resumeInstanceWithOptions(request, runtime);
16536
16720
  }
16537
16721
 
16722
+ /**
16723
+ * 恢复SaaS服务
16724
+ *
16725
+ * @remarks
16726
+ * 删除模型服务。
16727
+ *
16728
+ * @param request - ResumeSaasServiceRequest
16729
+ * @param runtime - runtime options for this request RuntimeOptions
16730
+ * @returns ResumeSaasServiceResponse
16731
+ */
16732
+ async resumeSaasServiceWithOptions(request: $_model.ResumeSaasServiceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ResumeSaasServiceResponse> {
16733
+ request.validate();
16734
+ let query = { };
16735
+ if (!$dara.isNull(request.regionId)) {
16736
+ query["RegionId"] = request.regionId;
16737
+ }
16738
+
16739
+ if (!$dara.isNull(request.serviceId)) {
16740
+ query["ServiceId"] = request.serviceId;
16741
+ }
16742
+
16743
+ let req = new $OpenApiUtil.OpenApiRequest({
16744
+ query: OpenApiUtil.query(query),
16745
+ });
16746
+ let params = new $OpenApiUtil.Params({
16747
+ action: "ResumeSaasService",
16748
+ version: "2016-05-03",
16749
+ protocol: "HTTPS",
16750
+ pathname: "/",
16751
+ method: "POST",
16752
+ authType: "AK",
16753
+ style: "RPC",
16754
+ reqBodyType: "formData",
16755
+ bodyType: "json",
16756
+ });
16757
+ return $dara.cast<$_model.ResumeSaasServiceResponse>(await this.callApi(params, req, runtime), new $_model.ResumeSaasServiceResponse({}));
16758
+ }
16759
+
16760
+ /**
16761
+ * 恢复SaaS服务
16762
+ *
16763
+ * @remarks
16764
+ * 删除模型服务。
16765
+ *
16766
+ * @param request - ResumeSaasServiceRequest
16767
+ * @returns ResumeSaasServiceResponse
16768
+ */
16769
+ async resumeSaasService(request: $_model.ResumeSaasServiceRequest): Promise<$_model.ResumeSaasServiceResponse> {
16770
+ let runtime = new $dara.RuntimeOptions({ });
16771
+ return await this.resumeSaasServiceWithOptions(request, runtime);
16772
+ }
16773
+
16538
16774
  /**
16539
16775
  * Resumes a Supabase instance.
16540
16776
  *
@@ -16587,6 +16823,62 @@ export default class Client extends OpenApi {
16587
16823
  return await this.resumeSupabaseProjectWithOptions(request, runtime);
16588
16824
  }
16589
16825
 
16826
+ /**
16827
+ * Sets the default branch for a Supabase project.
16828
+ *
16829
+ * @remarks
16830
+ * Sets a specified branch as the default branch for a Supabase project.
16831
+ *
16832
+ * @param request - SetAsDefaultBranchRequest
16833
+ * @param runtime - runtime options for this request RuntimeOptions
16834
+ * @returns SetAsDefaultBranchResponse
16835
+ */
16836
+ async setAsDefaultBranchWithOptions(request: $_model.SetAsDefaultBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SetAsDefaultBranchResponse> {
16837
+ request.validate();
16838
+ let query = { };
16839
+ if (!$dara.isNull(request.branchId)) {
16840
+ query["BranchId"] = request.branchId;
16841
+ }
16842
+
16843
+ if (!$dara.isNull(request.projectId)) {
16844
+ query["ProjectId"] = request.projectId;
16845
+ }
16846
+
16847
+ if (!$dara.isNull(request.regionId)) {
16848
+ query["RegionId"] = request.regionId;
16849
+ }
16850
+
16851
+ let req = new $OpenApiUtil.OpenApiRequest({
16852
+ query: OpenApiUtil.query(query),
16853
+ });
16854
+ let params = new $OpenApiUtil.Params({
16855
+ action: "SetAsDefaultBranch",
16856
+ version: "2016-05-03",
16857
+ protocol: "HTTPS",
16858
+ pathname: "/",
16859
+ method: "POST",
16860
+ authType: "AK",
16861
+ style: "RPC",
16862
+ reqBodyType: "formData",
16863
+ bodyType: "json",
16864
+ });
16865
+ return $dara.cast<$_model.SetAsDefaultBranchResponse>(await this.callApi(params, req, runtime), new $_model.SetAsDefaultBranchResponse({}));
16866
+ }
16867
+
16868
+ /**
16869
+ * Sets the default branch for a Supabase project.
16870
+ *
16871
+ * @remarks
16872
+ * Sets a specified branch as the default branch for a Supabase project.
16873
+ *
16874
+ * @param request - SetAsDefaultBranchRequest
16875
+ * @returns SetAsDefaultBranchResponse
16876
+ */
16877
+ async setAsDefaultBranch(request: $_model.SetAsDefaultBranchRequest): Promise<$_model.SetAsDefaultBranchResponse> {
16878
+ let runtime = new $dara.RuntimeOptions({ });
16879
+ return await this.setAsDefaultBranchWithOptions(request, runtime);
16880
+ }
16881
+
16590
16882
  /**
16591
16883
  * Enables or disables a plan for an AnalyticDB for PostgreSQL instance.
16592
16884
  *
@@ -17227,6 +17519,86 @@ export default class Client extends OpenApi {
17227
17519
  return await this.untagSupabaseProjectWithOptions(request, runtime);
17228
17520
  }
17229
17521
 
17522
+ /**
17523
+ * Updates Supabase branch information.
17524
+ *
17525
+ * @remarks
17526
+ * This operation modifies the branch name, description, tags, protection status, and automatic deletion time upon expiration.
17527
+ *
17528
+ * @param request - UpdateBranchRequest
17529
+ * @param runtime - runtime options for this request RuntimeOptions
17530
+ * @returns UpdateBranchResponse
17531
+ */
17532
+ async updateBranchWithOptions(request: $_model.UpdateBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateBranchResponse> {
17533
+ request.validate();
17534
+ let query = { };
17535
+ if (!$dara.isNull(request.branchId)) {
17536
+ query["BranchId"] = request.branchId;
17537
+ }
17538
+
17539
+ if (!$dara.isNull(request.branchName)) {
17540
+ query["BranchName"] = request.branchName;
17541
+ }
17542
+
17543
+ if (!$dara.isNull(request.clearExpiresAt)) {
17544
+ query["ClearExpiresAt"] = request.clearExpiresAt;
17545
+ }
17546
+
17547
+ if (!$dara.isNull(request.description)) {
17548
+ query["Description"] = request.description;
17549
+ }
17550
+
17551
+ if (!$dara.isNull(request.expiresAt)) {
17552
+ query["ExpiresAt"] = request.expiresAt;
17553
+ }
17554
+
17555
+ if (!$dara.isNull(request.projectId)) {
17556
+ query["ProjectId"] = request.projectId;
17557
+ }
17558
+
17559
+ if (!$dara.isNull(request.protected)) {
17560
+ query["Protected"] = request.protected;
17561
+ }
17562
+
17563
+ if (!$dara.isNull(request.regionId)) {
17564
+ query["RegionId"] = request.regionId;
17565
+ }
17566
+
17567
+ if (!$dara.isNull(request.tag)) {
17568
+ query["Tag"] = request.tag;
17569
+ }
17570
+
17571
+ let req = new $OpenApiUtil.OpenApiRequest({
17572
+ query: OpenApiUtil.query(query),
17573
+ });
17574
+ let params = new $OpenApiUtil.Params({
17575
+ action: "UpdateBranch",
17576
+ version: "2016-05-03",
17577
+ protocol: "HTTPS",
17578
+ pathname: "/",
17579
+ method: "POST",
17580
+ authType: "AK",
17581
+ style: "RPC",
17582
+ reqBodyType: "formData",
17583
+ bodyType: "json",
17584
+ });
17585
+ return $dara.cast<$_model.UpdateBranchResponse>(await this.callApi(params, req, runtime), new $_model.UpdateBranchResponse({}));
17586
+ }
17587
+
17588
+ /**
17589
+ * Updates Supabase branch information.
17590
+ *
17591
+ * @remarks
17592
+ * This operation modifies the branch name, description, tags, protection status, and automatic deletion time upon expiration.
17593
+ *
17594
+ * @param request - UpdateBranchRequest
17595
+ * @returns UpdateBranchResponse
17596
+ */
17597
+ async updateBranch(request: $_model.UpdateBranchRequest): Promise<$_model.UpdateBranchResponse> {
17598
+ let runtime = new $dara.RuntimeOptions({ });
17599
+ return await this.updateBranchWithOptions(request, runtime);
17600
+ }
17601
+
17230
17602
  /**
17231
17603
  * Update Metadata of Collection Data
17232
17604
  *