@alicloud/gpdb20160503 3.6.0 → 3.7.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 (122) hide show
  1. package/dist/client.d.ts +191 -2
  2. package/dist/client.js +518 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateBranchRequest.d.ts +150 -0
  5. package/dist/models/CreateBranchRequest.js +104 -0
  6. package/dist/models/CreateBranchRequest.js.map +1 -0
  7. package/dist/models/CreateBranchResponse.d.ts +19 -0
  8. package/dist/models/CreateBranchResponse.js +69 -0
  9. package/dist/models/CreateBranchResponse.js.map +1 -0
  10. package/dist/models/CreateBranchResponseBody.d.ts +37 -0
  11. package/dist/models/CreateBranchResponseBody.js +62 -0
  12. package/dist/models/CreateBranchResponseBody.js.map +1 -0
  13. package/dist/models/CreateSnapshotRequest.d.ts +55 -0
  14. package/dist/models/CreateSnapshotRequest.js +66 -0
  15. package/dist/models/CreateSnapshotRequest.js.map +1 -0
  16. package/dist/models/CreateSnapshotResponse.d.ts +19 -0
  17. package/dist/models/CreateSnapshotResponse.js +69 -0
  18. package/dist/models/CreateSnapshotResponse.js.map +1 -0
  19. package/dist/models/CreateSnapshotResponseBody.d.ts +45 -0
  20. package/dist/models/CreateSnapshotResponseBody.js +64 -0
  21. package/dist/models/CreateSnapshotResponseBody.js.map +1 -0
  22. package/dist/models/CreateSupabaseProjectRequest.d.ts +62 -48
  23. package/dist/models/CreateSupabaseProjectRequest.js.map +1 -1
  24. package/dist/models/CreateSupabaseProjectResponseBody.d.ts +4 -4
  25. package/dist/models/DeleteBranchRequest.d.ts +31 -0
  26. package/dist/models/DeleteBranchRequest.js +60 -0
  27. package/dist/models/DeleteBranchRequest.js.map +1 -0
  28. package/dist/models/DeleteBranchResponse.d.ts +19 -0
  29. package/dist/models/DeleteBranchResponse.js +69 -0
  30. package/dist/models/DeleteBranchResponse.js.map +1 -0
  31. package/dist/models/DeleteBranchResponseBody.d.ts +21 -0
  32. package/dist/models/DeleteBranchResponseBody.js +58 -0
  33. package/dist/models/DeleteBranchResponseBody.js.map +1 -0
  34. package/dist/models/DeleteSnapshotRequest.d.ts +34 -0
  35. package/dist/models/DeleteSnapshotRequest.js +62 -0
  36. package/dist/models/DeleteSnapshotRequest.js.map +1 -0
  37. package/dist/models/DeleteSnapshotResponse.d.ts +19 -0
  38. package/dist/models/DeleteSnapshotResponse.js +69 -0
  39. package/dist/models/DeleteSnapshotResponse.js.map +1 -0
  40. package/dist/models/DeleteSnapshotResponseBody.d.ts +18 -0
  41. package/dist/models/DeleteSnapshotResponseBody.js +58 -0
  42. package/dist/models/DeleteSnapshotResponseBody.js.map +1 -0
  43. package/dist/models/DescribeBranchRequest.d.ts +31 -0
  44. package/dist/models/DescribeBranchRequest.js +60 -0
  45. package/dist/models/DescribeBranchRequest.js.map +1 -0
  46. package/dist/models/DescribeBranchResponse.d.ts +19 -0
  47. package/dist/models/DescribeBranchResponse.js +69 -0
  48. package/dist/models/DescribeBranchResponse.js.map +1 -0
  49. package/dist/models/DescribeBranchResponseBody.d.ts +211 -0
  50. package/dist/models/DescribeBranchResponseBody.js +138 -0
  51. package/dist/models/DescribeBranchResponseBody.js.map +1 -0
  52. package/dist/models/GetBranchSchemaRequest.d.ts +51 -0
  53. package/dist/models/GetBranchSchemaRequest.js +64 -0
  54. package/dist/models/GetBranchSchemaRequest.js.map +1 -0
  55. package/dist/models/GetBranchSchemaResponse.d.ts +19 -0
  56. package/dist/models/GetBranchSchemaResponse.js +69 -0
  57. package/dist/models/GetBranchSchemaResponse.js.map +1 -0
  58. package/dist/models/GetBranchSchemaResponseBody.d.ts +29 -0
  59. package/dist/models/GetBranchSchemaResponseBody.js +60 -0
  60. package/dist/models/GetBranchSchemaResponseBody.js.map +1 -0
  61. package/dist/models/ListBranchesRequest.d.ts +106 -0
  62. package/dist/models/ListBranchesRequest.js +74 -0
  63. package/dist/models/ListBranchesRequest.js.map +1 -0
  64. package/dist/models/ListBranchesResponse.d.ts +19 -0
  65. package/dist/models/ListBranchesResponse.js +69 -0
  66. package/dist/models/ListBranchesResponse.js.map +1 -0
  67. package/dist/models/ListBranchesResponseBody.d.ts +138 -0
  68. package/dist/models/ListBranchesResponseBody.js +190 -0
  69. package/dist/models/ListBranchesResponseBody.js.map +1 -0
  70. package/dist/models/RestartSupabaseProjectRequest.d.ts +31 -0
  71. package/dist/models/RestartSupabaseProjectRequest.js +60 -0
  72. package/dist/models/RestartSupabaseProjectRequest.js.map +1 -0
  73. package/dist/models/RestartSupabaseProjectResponse.d.ts +19 -0
  74. package/dist/models/RestartSupabaseProjectResponse.js +69 -0
  75. package/dist/models/RestartSupabaseProjectResponse.js.map +1 -0
  76. package/dist/models/RestartSupabaseProjectResponseBody.d.ts +21 -0
  77. package/dist/models/RestartSupabaseProjectResponseBody.js +58 -0
  78. package/dist/models/RestartSupabaseProjectResponseBody.js.map +1 -0
  79. package/dist/models/RestoreSnapshotRequest.d.ts +73 -0
  80. package/dist/models/RestoreSnapshotRequest.js +70 -0
  81. package/dist/models/RestoreSnapshotRequest.js.map +1 -0
  82. package/dist/models/RestoreSnapshotResponse.d.ts +19 -0
  83. package/dist/models/RestoreSnapshotResponse.js +69 -0
  84. package/dist/models/RestoreSnapshotResponse.js.map +1 -0
  85. package/dist/models/RestoreSnapshotResponseBody.d.ts +37 -0
  86. package/dist/models/RestoreSnapshotResponseBody.js +62 -0
  87. package/dist/models/RestoreSnapshotResponseBody.js.map +1 -0
  88. package/dist/models/model.d.ts +34 -0
  89. package/dist/models/model.js +91 -22
  90. package/dist/models/model.js.map +1 -1
  91. package/package.json +1 -1
  92. package/src/client.ts +582 -2
  93. package/src/models/CreateBranchRequest.ts +200 -0
  94. package/src/models/CreateBranchResponse.ts +40 -0
  95. package/src/models/CreateBranchResponseBody.ts +54 -0
  96. package/src/models/CreateSnapshotRequest.ts +76 -0
  97. package/src/models/CreateSnapshotResponse.ts +40 -0
  98. package/src/models/CreateSnapshotResponseBody.ts +64 -0
  99. package/src/models/CreateSupabaseProjectRequest.ts +62 -48
  100. package/src/models/CreateSupabaseProjectResponseBody.ts +4 -4
  101. package/src/models/DeleteBranchRequest.ts +46 -0
  102. package/src/models/DeleteBranchResponse.ts +40 -0
  103. package/src/models/DeleteBranchResponseBody.ts +34 -0
  104. package/src/models/DeleteSnapshotRequest.ts +51 -0
  105. package/src/models/DeleteSnapshotResponse.ts +40 -0
  106. package/src/models/DeleteSnapshotResponseBody.ts +31 -0
  107. package/src/models/DescribeBranchRequest.ts +46 -0
  108. package/src/models/DescribeBranchResponse.ts +40 -0
  109. package/src/models/DescribeBranchResponseBody.ts +286 -0
  110. package/src/models/GetBranchSchemaRequest.ts +70 -0
  111. package/src/models/GetBranchSchemaResponse.ts +40 -0
  112. package/src/models/GetBranchSchemaResponseBody.ts +44 -0
  113. package/src/models/ListBranchesRequest.ts +135 -0
  114. package/src/models/ListBranchesResponse.ts +40 -0
  115. package/src/models/ListBranchesResponseBody.ts +247 -0
  116. package/src/models/RestartSupabaseProjectRequest.ts +46 -0
  117. package/src/models/RestartSupabaseProjectResponse.ts +40 -0
  118. package/src/models/RestartSupabaseProjectResponseBody.ts +34 -0
  119. package/src/models/RestoreSnapshotRequest.ts +98 -0
  120. package/src/models/RestoreSnapshotResponse.ts +40 -0
  121. package/src/models/RestoreSnapshotResponseBody.ts +54 -0
  122. package/src/models/model.ts +34 -0
package/dist/client.js CHANGED
@@ -1197,6 +1197,84 @@ class Client extends openapi_core_1.default {
1197
1197
  let runtime = new $dara.RuntimeOptions({});
1198
1198
  return await this.createBackupWithOptions(request, runtime);
1199
1199
  }
1200
+ /**
1201
+ * Creates a Supabase project branch.
1202
+ *
1203
+ * @remarks
1204
+ * Creates a new Supabase branch based on a specified parent branch. By default, a child branch inherits the region, network, storage, and other resource configurations from the primary branch.
1205
+ *
1206
+ * @param request - CreateBranchRequest
1207
+ * @param runtime - runtime options for this request RuntimeOptions
1208
+ * @returns CreateBranchResponse
1209
+ */
1210
+ async createBranchWithOptions(request, runtime) {
1211
+ request.validate();
1212
+ let query = {};
1213
+ if (!$dara.isNull(request.branchName)) {
1214
+ query["BranchName"] = request.branchName;
1215
+ }
1216
+ if (!$dara.isNull(request.clientToken)) {
1217
+ query["ClientToken"] = request.clientToken;
1218
+ }
1219
+ if (!$dara.isNull(request.description)) {
1220
+ query["Description"] = request.description;
1221
+ }
1222
+ if (!$dara.isNull(request.expiresAt)) {
1223
+ query["ExpiresAt"] = request.expiresAt;
1224
+ }
1225
+ if (!$dara.isNull(request.initSource)) {
1226
+ query["InitSource"] = request.initSource;
1227
+ }
1228
+ if (!$dara.isNull(request.parentBranchId)) {
1229
+ query["ParentBranchId"] = request.parentBranchId;
1230
+ }
1231
+ if (!$dara.isNull(request.parentLsn)) {
1232
+ query["ParentLsn"] = request.parentLsn;
1233
+ }
1234
+ if (!$dara.isNull(request.parentTimestamp)) {
1235
+ query["ParentTimestamp"] = request.parentTimestamp;
1236
+ }
1237
+ if (!$dara.isNull(request.projectId)) {
1238
+ query["ProjectId"] = request.projectId;
1239
+ }
1240
+ if (!$dara.isNull(request.protected)) {
1241
+ query["Protected"] = request.protected;
1242
+ }
1243
+ if (!$dara.isNull(request.regionId)) {
1244
+ query["RegionId"] = request.regionId;
1245
+ }
1246
+ if (!$dara.isNull(request.tag)) {
1247
+ query["Tag"] = request.tag;
1248
+ }
1249
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1250
+ query: openapi_core_2.OpenApiUtil.query(query),
1251
+ });
1252
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1253
+ action: "CreateBranch",
1254
+ version: "2016-05-03",
1255
+ protocol: "HTTPS",
1256
+ pathname: "/",
1257
+ method: "POST",
1258
+ authType: "AK",
1259
+ style: "RPC",
1260
+ reqBodyType: "formData",
1261
+ bodyType: "json",
1262
+ });
1263
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateBranchResponse({}));
1264
+ }
1265
+ /**
1266
+ * Creates a Supabase project branch.
1267
+ *
1268
+ * @remarks
1269
+ * Creates a new Supabase branch based on a specified parent branch. By default, a child branch inherits the region, network, storage, and other resource configurations from the primary branch.
1270
+ *
1271
+ * @param request - CreateBranchRequest
1272
+ * @returns CreateBranchResponse
1273
+ */
1274
+ async createBranch(request) {
1275
+ let runtime = new $dara.RuntimeOptions({});
1276
+ return await this.createBranchWithOptions(request, runtime);
1277
+ }
1200
1278
  /**
1201
1279
  * Create a vector dataset.
1202
1280
  *
@@ -2586,6 +2664,63 @@ class Client extends openapi_core_1.default {
2586
2664
  let runtime = new $dara.RuntimeOptions({});
2587
2665
  return await this.createServiceLinkedRoleWithOptions(request, runtime);
2588
2666
  }
2667
+ /**
2668
+ * Creates a snapshot for a Supabase project.
2669
+ *
2670
+ * @remarks
2671
+ * Creates a snapshot for a Supabase project based on a specified point in time or Log Sequence Number (LSN). You must specify either SnapshotTimestamp or Lsn. ClientToken is used to ensure idempotence of the request.
2672
+ *
2673
+ * @param request - CreateSnapshotRequest
2674
+ * @param runtime - runtime options for this request RuntimeOptions
2675
+ * @returns CreateSnapshotResponse
2676
+ */
2677
+ async createSnapshotWithOptions(request, runtime) {
2678
+ request.validate();
2679
+ let query = {};
2680
+ if (!$dara.isNull(request.clientToken)) {
2681
+ query["ClientToken"] = request.clientToken;
2682
+ }
2683
+ if (!$dara.isNull(request.lsn)) {
2684
+ query["Lsn"] = request.lsn;
2685
+ }
2686
+ if (!$dara.isNull(request.projectId)) {
2687
+ query["ProjectId"] = request.projectId;
2688
+ }
2689
+ if (!$dara.isNull(request.regionId)) {
2690
+ query["RegionId"] = request.regionId;
2691
+ }
2692
+ if (!$dara.isNull(request.snapshotTimestamp)) {
2693
+ query["SnapshotTimestamp"] = request.snapshotTimestamp;
2694
+ }
2695
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2696
+ query: openapi_core_2.OpenApiUtil.query(query),
2697
+ });
2698
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2699
+ action: "CreateSnapshot",
2700
+ version: "2016-05-03",
2701
+ protocol: "HTTPS",
2702
+ pathname: "/",
2703
+ method: "POST",
2704
+ authType: "AK",
2705
+ style: "RPC",
2706
+ reqBodyType: "formData",
2707
+ bodyType: "json",
2708
+ });
2709
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateSnapshotResponse({}));
2710
+ }
2711
+ /**
2712
+ * Creates a snapshot for a Supabase project.
2713
+ *
2714
+ * @remarks
2715
+ * Creates a snapshot for a Supabase project based on a specified point in time or Log Sequence Number (LSN). You must specify either SnapshotTimestamp or Lsn. ClientToken is used to ensure idempotence of the request.
2716
+ *
2717
+ * @param request - CreateSnapshotRequest
2718
+ * @returns CreateSnapshotResponse
2719
+ */
2720
+ async createSnapshot(request) {
2721
+ let runtime = new $dara.RuntimeOptions({});
2722
+ return await this.createSnapshotWithOptions(request, runtime);
2723
+ }
2589
2724
  /**
2590
2725
  * Create External Data Source Configuration
2591
2726
  *
@@ -2814,7 +2949,7 @@ class Client extends openapi_core_1.default {
2814
2949
  * Creates a Supabase project.
2815
2950
  *
2816
2951
  * @remarks
2817
- * - This operation is used to create a Supabase instance.
2952
+ * Creates a Supabase project in a specified region and zone. This operation supports Free, pay-as-you-go, and subscription billing methods. You can specify the network, specifications, storage, access IP address whitelist, DPI engine version, and auto start/stop configurations.
2818
2953
  *
2819
2954
  * @param request - CreateSupabaseProjectRequest
2820
2955
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2891,7 +3026,7 @@ class Client extends openapi_core_1.default {
2891
3026
  * Creates a Supabase project.
2892
3027
  *
2893
3028
  * @remarks
2894
- * - This operation is used to create a Supabase instance.
3029
+ * Creates a Supabase project in a specified region and zone. This operation supports Free, pay-as-you-go, and subscription billing methods. You can specify the network, specifications, storage, access IP address whitelist, DPI engine version, and auto start/stop configurations.
2895
3030
  *
2896
3031
  * @param request - CreateSupabaseProjectRequest
2897
3032
  * @returns CreateSupabaseProjectResponse
@@ -3220,6 +3355,54 @@ class Client extends openapi_core_1.default {
3220
3355
  let runtime = new $dara.RuntimeOptions({});
3221
3356
  return await this.deleteBackupWithOptions(request, runtime);
3222
3357
  }
3358
+ /**
3359
+ * Deletes a Supabase branch.
3360
+ *
3361
+ * @remarks
3362
+ * Deletes a specified Supabase branch. The default branch or branches that still have child branches cannot be deleted.
3363
+ *
3364
+ * @param request - DeleteBranchRequest
3365
+ * @param runtime - runtime options for this request RuntimeOptions
3366
+ * @returns DeleteBranchResponse
3367
+ */
3368
+ async deleteBranchWithOptions(request, runtime) {
3369
+ request.validate();
3370
+ let query = {};
3371
+ if (!$dara.isNull(request.branchId)) {
3372
+ query["BranchId"] = request.branchId;
3373
+ }
3374
+ if (!$dara.isNull(request.regionId)) {
3375
+ query["RegionId"] = request.regionId;
3376
+ }
3377
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3378
+ query: openapi_core_2.OpenApiUtil.query(query),
3379
+ });
3380
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3381
+ action: "DeleteBranch",
3382
+ version: "2016-05-03",
3383
+ protocol: "HTTPS",
3384
+ pathname: "/",
3385
+ method: "POST",
3386
+ authType: "AK",
3387
+ style: "RPC",
3388
+ reqBodyType: "formData",
3389
+ bodyType: "json",
3390
+ });
3391
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteBranchResponse({}));
3392
+ }
3393
+ /**
3394
+ * Deletes a Supabase branch.
3395
+ *
3396
+ * @remarks
3397
+ * Deletes a specified Supabase branch. The default branch or branches that still have child branches cannot be deleted.
3398
+ *
3399
+ * @param request - DeleteBranchRequest
3400
+ * @returns DeleteBranchResponse
3401
+ */
3402
+ async deleteBranch(request) {
3403
+ let runtime = new $dara.RuntimeOptions({});
3404
+ return await this.deleteBranchWithOptions(request, runtime);
3405
+ }
3223
3406
  /**
3224
3407
  * Deletes chunks from a document collection.
3225
3408
  *
@@ -4288,6 +4471,57 @@ class Client extends openapi_core_1.default {
4288
4471
  let runtime = new $dara.RuntimeOptions({});
4289
4472
  return await this.deleteSecretWithOptions(request, runtime);
4290
4473
  }
4474
+ /**
4475
+ * 删除恢复点
4476
+ *
4477
+ * @remarks
4478
+ * 该接口用于按 ProjectId 和 Lsn 删除指定 Supabase 项目中的快照。
4479
+ *
4480
+ * @param request - DeleteSnapshotRequest
4481
+ * @param runtime - runtime options for this request RuntimeOptions
4482
+ * @returns DeleteSnapshotResponse
4483
+ */
4484
+ async deleteSnapshotWithOptions(request, runtime) {
4485
+ request.validate();
4486
+ let query = {};
4487
+ if (!$dara.isNull(request.lsn)) {
4488
+ query["Lsn"] = request.lsn;
4489
+ }
4490
+ if (!$dara.isNull(request.projectId)) {
4491
+ query["ProjectId"] = request.projectId;
4492
+ }
4493
+ if (!$dara.isNull(request.regionId)) {
4494
+ query["RegionId"] = request.regionId;
4495
+ }
4496
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4497
+ query: openapi_core_2.OpenApiUtil.query(query),
4498
+ });
4499
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4500
+ action: "DeleteSnapshot",
4501
+ version: "2016-05-03",
4502
+ protocol: "HTTPS",
4503
+ pathname: "/",
4504
+ method: "POST",
4505
+ authType: "AK",
4506
+ style: "RPC",
4507
+ reqBodyType: "formData",
4508
+ bodyType: "json",
4509
+ });
4510
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteSnapshotResponse({}));
4511
+ }
4512
+ /**
4513
+ * 删除恢复点
4514
+ *
4515
+ * @remarks
4516
+ * 该接口用于按 ProjectId 和 Lsn 删除指定 Supabase 项目中的快照。
4517
+ *
4518
+ * @param request - DeleteSnapshotRequest
4519
+ * @returns DeleteSnapshotResponse
4520
+ */
4521
+ async deleteSnapshot(request) {
4522
+ let runtime = new $dara.RuntimeOptions({});
4523
+ return await this.deleteSnapshotWithOptions(request, runtime);
4524
+ }
4291
4525
  /**
4292
4526
  * Delete a real-time data service.
4293
4527
  *
@@ -4937,6 +5171,54 @@ class Client extends openapi_core_1.default {
4937
5171
  let runtime = new $dara.RuntimeOptions({});
4938
5172
  return await this.describeBackupPolicyWithOptions(request, runtime);
4939
5173
  }
5174
+ /**
5175
+ * Queries the details of a Supabase branch.
5176
+ *
5177
+ * @remarks
5178
+ * Queries the detailed information of a specified Supabase branch, including basic branch attributes, parent branch information, protection status, and connection information.
5179
+ *
5180
+ * @param request - DescribeBranchRequest
5181
+ * @param runtime - runtime options for this request RuntimeOptions
5182
+ * @returns DescribeBranchResponse
5183
+ */
5184
+ async describeBranchWithOptions(request, runtime) {
5185
+ request.validate();
5186
+ let query = {};
5187
+ if (!$dara.isNull(request.branchId)) {
5188
+ query["BranchId"] = request.branchId;
5189
+ }
5190
+ if (!$dara.isNull(request.regionId)) {
5191
+ query["RegionId"] = request.regionId;
5192
+ }
5193
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5194
+ query: openapi_core_2.OpenApiUtil.query(query),
5195
+ });
5196
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5197
+ action: "DescribeBranch",
5198
+ version: "2016-05-03",
5199
+ protocol: "HTTPS",
5200
+ pathname: "/",
5201
+ method: "POST",
5202
+ authType: "AK",
5203
+ style: "RPC",
5204
+ reqBodyType: "formData",
5205
+ bodyType: "json",
5206
+ });
5207
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeBranchResponse({}));
5208
+ }
5209
+ /**
5210
+ * Queries the details of a Supabase branch.
5211
+ *
5212
+ * @remarks
5213
+ * Queries the detailed information of a specified Supabase branch, including basic branch attributes, parent branch information, protection status, and connection information.
5214
+ *
5215
+ * @param request - DescribeBranchRequest
5216
+ * @returns DescribeBranchResponse
5217
+ */
5218
+ async describeBranch(request) {
5219
+ let runtime = new $dara.RuntimeOptions({});
5220
+ return await this.describeBranchWithOptions(request, runtime);
5221
+ }
4940
5222
  /**
4941
5223
  * Queries the information about a vector collection.
4942
5224
  *
@@ -9093,6 +9375,60 @@ class Client extends openapi_core_1.default {
9093
9375
  let runtime = new $dara.RuntimeOptions({});
9094
9376
  return await this.getAccountWithOptions(request, runtime);
9095
9377
  }
9378
+ /**
9379
+ * Retrieves the database schema of a Supabase branch.
9380
+ *
9381
+ * @remarks
9382
+ * Queries the schema SQL content of a specified database in a specified branch. The system databases postgres, template0, and template1 are not supported.
9383
+ *
9384
+ * @param request - GetBranchSchemaRequest
9385
+ * @param runtime - runtime options for this request RuntimeOptions
9386
+ * @returns GetBranchSchemaResponse
9387
+ */
9388
+ async getBranchSchemaWithOptions(request, runtime) {
9389
+ request.validate();
9390
+ let query = {};
9391
+ if (!$dara.isNull(request.branchId)) {
9392
+ query["BranchId"] = request.branchId;
9393
+ }
9394
+ if (!$dara.isNull(request.DBName)) {
9395
+ query["DBName"] = request.DBName;
9396
+ }
9397
+ if (!$dara.isNull(request.projectId)) {
9398
+ query["ProjectId"] = request.projectId;
9399
+ }
9400
+ if (!$dara.isNull(request.regionId)) {
9401
+ query["RegionId"] = request.regionId;
9402
+ }
9403
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9404
+ query: openapi_core_2.OpenApiUtil.query(query),
9405
+ });
9406
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9407
+ action: "GetBranchSchema",
9408
+ version: "2016-05-03",
9409
+ protocol: "HTTPS",
9410
+ pathname: "/",
9411
+ method: "POST",
9412
+ authType: "AK",
9413
+ style: "RPC",
9414
+ reqBodyType: "formData",
9415
+ bodyType: "json",
9416
+ });
9417
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetBranchSchemaResponse({}));
9418
+ }
9419
+ /**
9420
+ * Retrieves the database schema of a Supabase branch.
9421
+ *
9422
+ * @remarks
9423
+ * Queries the schema SQL content of a specified database in a specified branch. The system databases postgres, template0, and template1 are not supported.
9424
+ *
9425
+ * @param request - GetBranchSchemaRequest
9426
+ * @returns GetBranchSchemaResponse
9427
+ */
9428
+ async getBranchSchema(request) {
9429
+ let runtime = new $dara.RuntimeOptions({});
9430
+ return await this.getBranchSchemaWithOptions(request, runtime);
9431
+ }
9096
9432
  /**
9097
9433
  * Retrieves a task to build a knowledge graph.
9098
9434
  *
@@ -9943,6 +10279,75 @@ class Client extends openapi_core_1.default {
9943
10279
  let runtime = new $dara.RuntimeOptions({});
9944
10280
  return await this.listBackupJobsWithOptions(request, runtime);
9945
10281
  }
10282
+ /**
10283
+ * Query the branch list of a Supabase project.
10284
+ *
10285
+ * @remarks
10286
+ * This API is used to query all branches under a specified Supabase project with pagination, supporting filtering by parent branch, keyword, and sorting conditions.
10287
+ *
10288
+ * @param request - ListBranchesRequest
10289
+ * @param runtime - runtime options for this request RuntimeOptions
10290
+ * @returns ListBranchesResponse
10291
+ */
10292
+ async listBranchesWithOptions(request, runtime) {
10293
+ request.validate();
10294
+ let query = {};
10295
+ if (!$dara.isNull(request.maxResults)) {
10296
+ query["MaxResults"] = request.maxResults;
10297
+ }
10298
+ if (!$dara.isNull(request.nextToken)) {
10299
+ query["NextToken"] = request.nextToken;
10300
+ }
10301
+ if (!$dara.isNull(request.pageNumber)) {
10302
+ query["PageNumber"] = request.pageNumber;
10303
+ }
10304
+ if (!$dara.isNull(request.pageSize)) {
10305
+ query["PageSize"] = request.pageSize;
10306
+ }
10307
+ if (!$dara.isNull(request.parentBranchId)) {
10308
+ query["ParentBranchId"] = request.parentBranchId;
10309
+ }
10310
+ if (!$dara.isNull(request.regionId)) {
10311
+ query["RegionId"] = request.regionId;
10312
+ }
10313
+ if (!$dara.isNull(request.search)) {
10314
+ query["Search"] = request.search;
10315
+ }
10316
+ if (!$dara.isNull(request.sortBy)) {
10317
+ query["SortBy"] = request.sortBy;
10318
+ }
10319
+ if (!$dara.isNull(request.sortOrder)) {
10320
+ query["SortOrder"] = request.sortOrder;
10321
+ }
10322
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
10323
+ query: openapi_core_2.OpenApiUtil.query(query),
10324
+ });
10325
+ let params = new openapi_core_2.$OpenApiUtil.Params({
10326
+ action: "ListBranches",
10327
+ version: "2016-05-03",
10328
+ protocol: "HTTPS",
10329
+ pathname: "/",
10330
+ method: "POST",
10331
+ authType: "AK",
10332
+ style: "RPC",
10333
+ reqBodyType: "formData",
10334
+ bodyType: "json",
10335
+ });
10336
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListBranchesResponse({}));
10337
+ }
10338
+ /**
10339
+ * Query the branch list of a Supabase project.
10340
+ *
10341
+ * @remarks
10342
+ * This API is used to query all branches under a specified Supabase project with pagination, supporting filtering by parent branch, keyword, and sorting conditions.
10343
+ *
10344
+ * @param request - ListBranchesRequest
10345
+ * @returns ListBranchesResponse
10346
+ */
10347
+ async listBranches(request) {
10348
+ let runtime = new $dara.RuntimeOptions({});
10349
+ return await this.listBranchesWithOptions(request, runtime);
10350
+ }
9946
10351
  /**
9947
10352
  * Get document chunk details
9948
10353
  *
@@ -14005,6 +14410,117 @@ class Client extends openapi_core_1.default {
14005
14410
  let runtime = new $dara.RuntimeOptions({});
14006
14411
  return await this.restartDBInstanceWithOptions(request, runtime);
14007
14412
  }
14413
+ /**
14414
+ * Restarts a Supabase project.
14415
+ *
14416
+ * @remarks
14417
+ * Restarts a specified Supabase project. After a successful call, a request ID is returned, and the restart process is executed asynchronously in the backend.
14418
+ *
14419
+ * @param request - RestartSupabaseProjectRequest
14420
+ * @param runtime - runtime options for this request RuntimeOptions
14421
+ * @returns RestartSupabaseProjectResponse
14422
+ */
14423
+ async restartSupabaseProjectWithOptions(request, runtime) {
14424
+ request.validate();
14425
+ let query = {};
14426
+ if (!$dara.isNull(request.projectId)) {
14427
+ query["ProjectId"] = request.projectId;
14428
+ }
14429
+ if (!$dara.isNull(request.regionId)) {
14430
+ query["RegionId"] = request.regionId;
14431
+ }
14432
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
14433
+ query: openapi_core_2.OpenApiUtil.query(query),
14434
+ });
14435
+ let params = new openapi_core_2.$OpenApiUtil.Params({
14436
+ action: "RestartSupabaseProject",
14437
+ version: "2016-05-03",
14438
+ protocol: "HTTPS",
14439
+ pathname: "/",
14440
+ method: "POST",
14441
+ authType: "AK",
14442
+ style: "RPC",
14443
+ reqBodyType: "formData",
14444
+ bodyType: "json",
14445
+ });
14446
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.RestartSupabaseProjectResponse({}));
14447
+ }
14448
+ /**
14449
+ * Restarts a Supabase project.
14450
+ *
14451
+ * @remarks
14452
+ * Restarts a specified Supabase project. After a successful call, a request ID is returned, and the restart process is executed asynchronously in the backend.
14453
+ *
14454
+ * @param request - RestartSupabaseProjectRequest
14455
+ * @returns RestartSupabaseProjectResponse
14456
+ */
14457
+ async restartSupabaseProject(request) {
14458
+ let runtime = new $dara.RuntimeOptions({});
14459
+ return await this.restartSupabaseProjectWithOptions(request, runtime);
14460
+ }
14461
+ /**
14462
+ * Restores a Supabase project from a snapshot.
14463
+ *
14464
+ * @remarks
14465
+ * Restores to a target branch based on a snapshot LSN. You can specify the restored branch name and target branch. FinalizeRestore controls whether to complete the restoration immediately.
14466
+ *
14467
+ * @param request - RestoreSnapshotRequest
14468
+ * @param runtime - runtime options for this request RuntimeOptions
14469
+ * @returns RestoreSnapshotResponse
14470
+ */
14471
+ async restoreSnapshotWithOptions(request, runtime) {
14472
+ request.validate();
14473
+ let query = {};
14474
+ if (!$dara.isNull(request.clientToken)) {
14475
+ query["ClientToken"] = request.clientToken;
14476
+ }
14477
+ if (!$dara.isNull(request.finalizeRestore)) {
14478
+ query["FinalizeRestore"] = request.finalizeRestore;
14479
+ }
14480
+ if (!$dara.isNull(request.projectId)) {
14481
+ query["ProjectId"] = request.projectId;
14482
+ }
14483
+ if (!$dara.isNull(request.regionId)) {
14484
+ query["RegionId"] = request.regionId;
14485
+ }
14486
+ if (!$dara.isNull(request.restoredBranchName)) {
14487
+ query["RestoredBranchName"] = request.restoredBranchName;
14488
+ }
14489
+ if (!$dara.isNull(request.restoredLsn)) {
14490
+ query["RestoredLsn"] = request.restoredLsn;
14491
+ }
14492
+ if (!$dara.isNull(request.targetBranchId)) {
14493
+ query["TargetBranchId"] = request.targetBranchId;
14494
+ }
14495
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
14496
+ query: openapi_core_2.OpenApiUtil.query(query),
14497
+ });
14498
+ let params = new openapi_core_2.$OpenApiUtil.Params({
14499
+ action: "RestoreSnapshot",
14500
+ version: "2016-05-03",
14501
+ protocol: "HTTPS",
14502
+ pathname: "/",
14503
+ method: "POST",
14504
+ authType: "AK",
14505
+ style: "RPC",
14506
+ reqBodyType: "formData",
14507
+ bodyType: "json",
14508
+ });
14509
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.RestoreSnapshotResponse({}));
14510
+ }
14511
+ /**
14512
+ * Restores a Supabase project from a snapshot.
14513
+ *
14514
+ * @remarks
14515
+ * Restores to a target branch based on a snapshot LSN. You can specify the restored branch name and target branch. FinalizeRestore controls whether to complete the restoration immediately.
14516
+ *
14517
+ * @param request - RestoreSnapshotRequest
14518
+ * @returns RestoreSnapshotResponse
14519
+ */
14520
+ async restoreSnapshot(request) {
14521
+ let runtime = new $dara.RuntimeOptions({});
14522
+ return await this.restoreSnapshotWithOptions(request, runtime);
14523
+ }
14008
14524
  /**
14009
14525
  * Resumes data redistribution.
14010
14526
  *