@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.d.ts CHANGED
@@ -346,6 +346,27 @@ export default class Client extends OpenApi {
346
346
  * @returns CreateBackupResponse
347
347
  */
348
348
  createBackup(request: $_model.CreateBackupRequest): Promise<$_model.CreateBackupResponse>;
349
+ /**
350
+ * Creates a Supabase project branch.
351
+ *
352
+ * @remarks
353
+ * 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.
354
+ *
355
+ * @param request - CreateBranchRequest
356
+ * @param runtime - runtime options for this request RuntimeOptions
357
+ * @returns CreateBranchResponse
358
+ */
359
+ createBranchWithOptions(request: $_model.CreateBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateBranchResponse>;
360
+ /**
361
+ * Creates a Supabase project branch.
362
+ *
363
+ * @remarks
364
+ * 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.
365
+ *
366
+ * @param request - CreateBranchRequest
367
+ * @returns CreateBranchResponse
368
+ */
369
+ createBranch(request: $_model.CreateBranchRequest): Promise<$_model.CreateBranchResponse>;
349
370
  /**
350
371
  * Create a vector dataset.
351
372
  *
@@ -669,6 +690,27 @@ export default class Client extends OpenApi {
669
690
  * @returns CreateServiceLinkedRoleResponse
670
691
  */
671
692
  createServiceLinkedRole(request: $_model.CreateServiceLinkedRoleRequest): Promise<$_model.CreateServiceLinkedRoleResponse>;
693
+ /**
694
+ * Creates a snapshot for a Supabase project.
695
+ *
696
+ * @remarks
697
+ * 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.
698
+ *
699
+ * @param request - CreateSnapshotRequest
700
+ * @param runtime - runtime options for this request RuntimeOptions
701
+ * @returns CreateSnapshotResponse
702
+ */
703
+ createSnapshotWithOptions(request: $_model.CreateSnapshotRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateSnapshotResponse>;
704
+ /**
705
+ * Creates a snapshot for a Supabase project.
706
+ *
707
+ * @remarks
708
+ * 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.
709
+ *
710
+ * @param request - CreateSnapshotRequest
711
+ * @returns CreateSnapshotResponse
712
+ */
713
+ createSnapshot(request: $_model.CreateSnapshotRequest): Promise<$_model.CreateSnapshotResponse>;
672
714
  /**
673
715
  * Create External Data Source Configuration
674
716
  *
@@ -718,7 +760,7 @@ export default class Client extends OpenApi {
718
760
  * Creates a Supabase project.
719
761
  *
720
762
  * @remarks
721
- * - This operation is used to create a Supabase instance.
763
+ * 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.
722
764
  *
723
765
  * @param request - CreateSupabaseProjectRequest
724
766
  * @param runtime - runtime options for this request RuntimeOptions
@@ -729,7 +771,7 @@ export default class Client extends OpenApi {
729
771
  * Creates a Supabase project.
730
772
  *
731
773
  * @remarks
732
- * - This operation is used to create a Supabase instance.
774
+ * 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.
733
775
  *
734
776
  * @param request - CreateSupabaseProjectRequest
735
777
  * @returns CreateSupabaseProjectResponse
@@ -839,6 +881,27 @@ export default class Client extends OpenApi {
839
881
  * @returns DeleteBackupResponse
840
882
  */
841
883
  deleteBackup(request: $_model.DeleteBackupRequest): Promise<$_model.DeleteBackupResponse>;
884
+ /**
885
+ * Deletes a Supabase branch.
886
+ *
887
+ * @remarks
888
+ * Deletes a specified Supabase branch. The default branch or branches that still have child branches cannot be deleted.
889
+ *
890
+ * @param request - DeleteBranchRequest
891
+ * @param runtime - runtime options for this request RuntimeOptions
892
+ * @returns DeleteBranchResponse
893
+ */
894
+ deleteBranchWithOptions(request: $_model.DeleteBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteBranchResponse>;
895
+ /**
896
+ * Deletes a Supabase branch.
897
+ *
898
+ * @remarks
899
+ * Deletes a specified Supabase branch. The default branch or branches that still have child branches cannot be deleted.
900
+ *
901
+ * @param request - DeleteBranchRequest
902
+ * @returns DeleteBranchResponse
903
+ */
904
+ deleteBranch(request: $_model.DeleteBranchRequest): Promise<$_model.DeleteBranchResponse>;
842
905
  /**
843
906
  * Deletes chunks from a document collection.
844
907
  *
@@ -1188,6 +1251,27 @@ export default class Client extends OpenApi {
1188
1251
  * @returns DeleteSecretResponse
1189
1252
  */
1190
1253
  deleteSecret(request: $_model.DeleteSecretRequest): Promise<$_model.DeleteSecretResponse>;
1254
+ /**
1255
+ * 删除恢复点
1256
+ *
1257
+ * @remarks
1258
+ * 该接口用于按 ProjectId 和 Lsn 删除指定 Supabase 项目中的快照。
1259
+ *
1260
+ * @param request - DeleteSnapshotRequest
1261
+ * @param runtime - runtime options for this request RuntimeOptions
1262
+ * @returns DeleteSnapshotResponse
1263
+ */
1264
+ deleteSnapshotWithOptions(request: $_model.DeleteSnapshotRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteSnapshotResponse>;
1265
+ /**
1266
+ * 删除恢复点
1267
+ *
1268
+ * @remarks
1269
+ * 该接口用于按 ProjectId 和 Lsn 删除指定 Supabase 项目中的快照。
1270
+ *
1271
+ * @param request - DeleteSnapshotRequest
1272
+ * @returns DeleteSnapshotResponse
1273
+ */
1274
+ deleteSnapshot(request: $_model.DeleteSnapshotRequest): Promise<$_model.DeleteSnapshotResponse>;
1191
1275
  /**
1192
1276
  * Delete a real-time data service.
1193
1277
  *
@@ -1429,6 +1513,27 @@ export default class Client extends OpenApi {
1429
1513
  * @returns DescribeBackupPolicyResponse
1430
1514
  */
1431
1515
  describeBackupPolicy(request: $_model.DescribeBackupPolicyRequest): Promise<$_model.DescribeBackupPolicyResponse>;
1516
+ /**
1517
+ * Queries the details of a Supabase branch.
1518
+ *
1519
+ * @remarks
1520
+ * Queries the detailed information of a specified Supabase branch, including basic branch attributes, parent branch information, protection status, and connection information.
1521
+ *
1522
+ * @param request - DescribeBranchRequest
1523
+ * @param runtime - runtime options for this request RuntimeOptions
1524
+ * @returns DescribeBranchResponse
1525
+ */
1526
+ describeBranchWithOptions(request: $_model.DescribeBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeBranchResponse>;
1527
+ /**
1528
+ * Queries the details of a Supabase branch.
1529
+ *
1530
+ * @remarks
1531
+ * Queries the detailed information of a specified Supabase branch, including basic branch attributes, parent branch information, protection status, and connection information.
1532
+ *
1533
+ * @param request - DescribeBranchRequest
1534
+ * @returns DescribeBranchResponse
1535
+ */
1536
+ describeBranch(request: $_model.DescribeBranchRequest): Promise<$_model.DescribeBranchResponse>;
1432
1537
  /**
1433
1538
  * Queries the information about a vector collection.
1434
1539
  *
@@ -2853,6 +2958,27 @@ export default class Client extends OpenApi {
2853
2958
  * @returns GetAccountResponse
2854
2959
  */
2855
2960
  getAccount(request: $_model.GetAccountRequest): Promise<$_model.GetAccountResponse>;
2961
+ /**
2962
+ * Retrieves the database schema of a Supabase branch.
2963
+ *
2964
+ * @remarks
2965
+ * Queries the schema SQL content of a specified database in a specified branch. The system databases postgres, template0, and template1 are not supported.
2966
+ *
2967
+ * @param request - GetBranchSchemaRequest
2968
+ * @param runtime - runtime options for this request RuntimeOptions
2969
+ * @returns GetBranchSchemaResponse
2970
+ */
2971
+ getBranchSchemaWithOptions(request: $_model.GetBranchSchemaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetBranchSchemaResponse>;
2972
+ /**
2973
+ * Retrieves the database schema of a Supabase branch.
2974
+ *
2975
+ * @remarks
2976
+ * Queries the schema SQL content of a specified database in a specified branch. The system databases postgres, template0, and template1 are not supported.
2977
+ *
2978
+ * @param request - GetBranchSchemaRequest
2979
+ * @returns GetBranchSchemaResponse
2980
+ */
2981
+ getBranchSchema(request: $_model.GetBranchSchemaRequest): Promise<$_model.GetBranchSchemaResponse>;
2856
2982
  /**
2857
2983
  * Retrieves a task to build a knowledge graph.
2858
2984
  *
@@ -3153,6 +3279,27 @@ export default class Client extends OpenApi {
3153
3279
  * @returns ListBackupJobsResponse
3154
3280
  */
3155
3281
  listBackupJobs(request: $_model.ListBackupJobsRequest): Promise<$_model.ListBackupJobsResponse>;
3282
+ /**
3283
+ * Query the branch list of a Supabase project.
3284
+ *
3285
+ * @remarks
3286
+ * This API is used to query all branches under a specified Supabase project with pagination, supporting filtering by parent branch, keyword, and sorting conditions.
3287
+ *
3288
+ * @param request - ListBranchesRequest
3289
+ * @param runtime - runtime options for this request RuntimeOptions
3290
+ * @returns ListBranchesResponse
3291
+ */
3292
+ listBranchesWithOptions(request: $_model.ListBranchesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListBranchesResponse>;
3293
+ /**
3294
+ * Query the branch list of a Supabase project.
3295
+ *
3296
+ * @remarks
3297
+ * This API is used to query all branches under a specified Supabase project with pagination, supporting filtering by parent branch, keyword, and sorting conditions.
3298
+ *
3299
+ * @param request - ListBranchesRequest
3300
+ * @returns ListBranchesResponse
3301
+ */
3302
+ listBranches(request: $_model.ListBranchesRequest): Promise<$_model.ListBranchesResponse>;
3156
3303
  /**
3157
3304
  * Get document chunk details
3158
3305
  *
@@ -4384,6 +4531,48 @@ export default class Client extends OpenApi {
4384
4531
  * @returns RestartDBInstanceResponse
4385
4532
  */
4386
4533
  restartDBInstance(request: $_model.RestartDBInstanceRequest): Promise<$_model.RestartDBInstanceResponse>;
4534
+ /**
4535
+ * Restarts a Supabase project.
4536
+ *
4537
+ * @remarks
4538
+ * Restarts a specified Supabase project. After a successful call, a request ID is returned, and the restart process is executed asynchronously in the backend.
4539
+ *
4540
+ * @param request - RestartSupabaseProjectRequest
4541
+ * @param runtime - runtime options for this request RuntimeOptions
4542
+ * @returns RestartSupabaseProjectResponse
4543
+ */
4544
+ restartSupabaseProjectWithOptions(request: $_model.RestartSupabaseProjectRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RestartSupabaseProjectResponse>;
4545
+ /**
4546
+ * Restarts a Supabase project.
4547
+ *
4548
+ * @remarks
4549
+ * Restarts a specified Supabase project. After a successful call, a request ID is returned, and the restart process is executed asynchronously in the backend.
4550
+ *
4551
+ * @param request - RestartSupabaseProjectRequest
4552
+ * @returns RestartSupabaseProjectResponse
4553
+ */
4554
+ restartSupabaseProject(request: $_model.RestartSupabaseProjectRequest): Promise<$_model.RestartSupabaseProjectResponse>;
4555
+ /**
4556
+ * Restores a Supabase project from a snapshot.
4557
+ *
4558
+ * @remarks
4559
+ * 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.
4560
+ *
4561
+ * @param request - RestoreSnapshotRequest
4562
+ * @param runtime - runtime options for this request RuntimeOptions
4563
+ * @returns RestoreSnapshotResponse
4564
+ */
4565
+ restoreSnapshotWithOptions(request: $_model.RestoreSnapshotRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RestoreSnapshotResponse>;
4566
+ /**
4567
+ * Restores a Supabase project from a snapshot.
4568
+ *
4569
+ * @remarks
4570
+ * 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.
4571
+ *
4572
+ * @param request - RestoreSnapshotRequest
4573
+ * @returns RestoreSnapshotResponse
4574
+ */
4575
+ restoreSnapshot(request: $_model.RestoreSnapshotRequest): Promise<$_model.RestoreSnapshotResponse>;
4387
4576
  /**
4388
4577
  * Resumes data redistribution.
4389
4578
  *