@alicloud/gpdb20160503 3.6.0 → 3.8.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 (189) hide show
  1. package/dist/client.d.ts +267 -36
  2. package/dist/client.js +648 -36
  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/CreateBranchRequest.d.ts +150 -0
  18. package/dist/models/CreateBranchRequest.js +104 -0
  19. package/dist/models/CreateBranchRequest.js.map +1 -0
  20. package/dist/models/CreateBranchResponse.d.ts +19 -0
  21. package/dist/models/CreateBranchResponse.js +69 -0
  22. package/dist/models/CreateBranchResponse.js.map +1 -0
  23. package/dist/models/CreateBranchResponseBody.d.ts +37 -0
  24. package/dist/models/CreateBranchResponseBody.js +62 -0
  25. package/dist/models/CreateBranchResponseBody.js.map +1 -0
  26. package/dist/models/CreateSnapshotRequest.d.ts +55 -0
  27. package/dist/models/CreateSnapshotRequest.js +66 -0
  28. package/dist/models/CreateSnapshotRequest.js.map +1 -0
  29. package/dist/models/CreateSnapshotResponse.d.ts +19 -0
  30. package/dist/models/CreateSnapshotResponse.js +69 -0
  31. package/dist/models/CreateSnapshotResponse.js.map +1 -0
  32. package/dist/models/CreateSnapshotResponseBody.d.ts +45 -0
  33. package/dist/models/CreateSnapshotResponseBody.js +64 -0
  34. package/dist/models/CreateSnapshotResponseBody.js.map +1 -0
  35. package/dist/models/CreateSupabaseProjectRequest.d.ts +62 -48
  36. package/dist/models/CreateSupabaseProjectRequest.js.map +1 -1
  37. package/dist/models/CreateSupabaseProjectResponseBody.d.ts +4 -4
  38. package/dist/models/DeleteBranchRequest.d.ts +31 -0
  39. package/dist/models/DeleteBranchRequest.js +60 -0
  40. package/dist/models/DeleteBranchRequest.js.map +1 -0
  41. package/dist/models/DeleteBranchResponse.d.ts +19 -0
  42. package/dist/models/DeleteBranchResponse.js +69 -0
  43. package/dist/models/DeleteBranchResponse.js.map +1 -0
  44. package/dist/models/DeleteBranchResponseBody.d.ts +21 -0
  45. package/dist/models/DeleteBranchResponseBody.js +58 -0
  46. package/dist/models/DeleteBranchResponseBody.js.map +1 -0
  47. package/dist/models/DeleteSnapshotRequest.d.ts +34 -0
  48. package/dist/models/DeleteSnapshotRequest.js +62 -0
  49. package/dist/models/DeleteSnapshotRequest.js.map +1 -0
  50. package/dist/models/DeleteSnapshotResponse.d.ts +19 -0
  51. package/dist/models/DeleteSnapshotResponse.js +69 -0
  52. package/dist/models/DeleteSnapshotResponse.js.map +1 -0
  53. package/dist/models/DeleteSnapshotResponseBody.d.ts +18 -0
  54. package/dist/models/DeleteSnapshotResponseBody.js +58 -0
  55. package/dist/models/DeleteSnapshotResponseBody.js.map +1 -0
  56. package/dist/models/DescribeBranchRequest.d.ts +31 -0
  57. package/dist/models/DescribeBranchRequest.js +60 -0
  58. package/dist/models/DescribeBranchRequest.js.map +1 -0
  59. package/dist/models/DescribeBranchResponse.d.ts +19 -0
  60. package/dist/models/DescribeBranchResponse.js +69 -0
  61. package/dist/models/DescribeBranchResponse.js.map +1 -0
  62. package/dist/models/DescribeBranchResponseBody.d.ts +211 -0
  63. package/dist/models/DescribeBranchResponseBody.js +138 -0
  64. package/dist/models/DescribeBranchResponseBody.js.map +1 -0
  65. package/dist/models/GetBranchSchemaRequest.d.ts +51 -0
  66. package/dist/models/GetBranchSchemaRequest.js +64 -0
  67. package/dist/models/GetBranchSchemaRequest.js.map +1 -0
  68. package/dist/models/GetBranchSchemaResponse.d.ts +19 -0
  69. package/dist/models/GetBranchSchemaResponse.js +69 -0
  70. package/dist/models/GetBranchSchemaResponse.js.map +1 -0
  71. package/dist/models/GetBranchSchemaResponseBody.d.ts +29 -0
  72. package/dist/models/GetBranchSchemaResponseBody.js +60 -0
  73. package/dist/models/GetBranchSchemaResponseBody.js.map +1 -0
  74. package/dist/models/ListBranchesRequest.d.ts +106 -0
  75. package/dist/models/ListBranchesRequest.js +74 -0
  76. package/dist/models/ListBranchesRequest.js.map +1 -0
  77. package/dist/models/ListBranchesResponse.d.ts +19 -0
  78. package/dist/models/ListBranchesResponse.js +69 -0
  79. package/dist/models/ListBranchesResponse.js.map +1 -0
  80. package/dist/models/ListBranchesResponseBody.d.ts +138 -0
  81. package/dist/models/ListBranchesResponseBody.js +190 -0
  82. package/dist/models/ListBranchesResponseBody.js.map +1 -0
  83. package/dist/models/PauseSaasServiceRequest.d.ts +26 -0
  84. package/dist/models/PauseSaasServiceRequest.js +60 -0
  85. package/dist/models/PauseSaasServiceRequest.js.map +1 -0
  86. package/dist/models/PauseSaasServiceResponse.d.ts +19 -0
  87. package/dist/models/PauseSaasServiceResponse.js +69 -0
  88. package/dist/models/PauseSaasServiceResponse.js.map +1 -0
  89. package/dist/models/PauseSaasServiceResponseBody.d.ts +23 -0
  90. package/dist/models/PauseSaasServiceResponseBody.js +60 -0
  91. package/dist/models/PauseSaasServiceResponseBody.js.map +1 -0
  92. package/dist/models/QueryContentAdvanceRequest.d.ts +57 -70
  93. package/dist/models/QueryContentAdvanceRequest.js +2 -0
  94. package/dist/models/QueryContentAdvanceRequest.js.map +1 -1
  95. package/dist/models/QueryContentRequest.d.ts +57 -70
  96. package/dist/models/QueryContentRequest.js +2 -0
  97. package/dist/models/QueryContentRequest.js.map +1 -1
  98. package/dist/models/QueryContentResponseBody.d.ts +10 -11
  99. package/dist/models/QueryContentResponseBody.js.map +1 -1
  100. package/dist/models/QueryContentShrinkRequest.d.ts +52 -66
  101. package/dist/models/QueryContentShrinkRequest.js.map +1 -1
  102. package/dist/models/QueryKnowledgeBasesContentRequest.d.ts +62 -78
  103. package/dist/models/QueryKnowledgeBasesContentRequest.js +2 -0
  104. package/dist/models/QueryKnowledgeBasesContentRequest.js.map +1 -1
  105. package/dist/models/QueryKnowledgeBasesContentResponseBody.d.ts +11 -25
  106. package/dist/models/QueryKnowledgeBasesContentResponseBody.js.map +1 -1
  107. package/dist/models/QueryKnowledgeBasesContentShrinkRequest.d.ts +11 -15
  108. package/dist/models/QueryKnowledgeBasesContentShrinkRequest.js.map +1 -1
  109. package/dist/models/RestartSupabaseProjectRequest.d.ts +31 -0
  110. package/dist/models/RestartSupabaseProjectRequest.js +60 -0
  111. package/dist/models/RestartSupabaseProjectRequest.js.map +1 -0
  112. package/dist/models/RestartSupabaseProjectResponse.d.ts +19 -0
  113. package/dist/models/RestartSupabaseProjectResponse.js +69 -0
  114. package/dist/models/RestartSupabaseProjectResponse.js.map +1 -0
  115. package/dist/models/RestartSupabaseProjectResponseBody.d.ts +21 -0
  116. package/dist/models/RestartSupabaseProjectResponseBody.js +58 -0
  117. package/dist/models/RestartSupabaseProjectResponseBody.js.map +1 -0
  118. package/dist/models/RestoreSnapshotRequest.d.ts +73 -0
  119. package/dist/models/RestoreSnapshotRequest.js +70 -0
  120. package/dist/models/RestoreSnapshotRequest.js.map +1 -0
  121. package/dist/models/RestoreSnapshotResponse.d.ts +19 -0
  122. package/dist/models/RestoreSnapshotResponse.js +69 -0
  123. package/dist/models/RestoreSnapshotResponse.js.map +1 -0
  124. package/dist/models/RestoreSnapshotResponseBody.d.ts +37 -0
  125. package/dist/models/RestoreSnapshotResponseBody.js +62 -0
  126. package/dist/models/RestoreSnapshotResponseBody.js.map +1 -0
  127. package/dist/models/ResumeSaasServiceRequest.d.ts +26 -0
  128. package/dist/models/ResumeSaasServiceRequest.js +60 -0
  129. package/dist/models/ResumeSaasServiceRequest.js.map +1 -0
  130. package/dist/models/ResumeSaasServiceResponse.d.ts +19 -0
  131. package/dist/models/ResumeSaasServiceResponse.js +69 -0
  132. package/dist/models/ResumeSaasServiceResponse.js.map +1 -0
  133. package/dist/models/ResumeSaasServiceResponseBody.d.ts +23 -0
  134. package/dist/models/ResumeSaasServiceResponseBody.js +60 -0
  135. package/dist/models/ResumeSaasServiceResponseBody.js.map +1 -0
  136. package/dist/models/model.d.ts +40 -0
  137. package/dist/models/model.js +103 -22
  138. package/dist/models/model.js.map +1 -1
  139. package/package.json +1 -1
  140. package/src/client.ts +720 -36
  141. package/src/models/ChatWithKnowledgeBaseRequest.ts +70 -111
  142. package/src/models/ChatWithKnowledgeBaseResponseBody.ts +45 -52
  143. package/src/models/ChatWithKnowledgeBaseShrinkRequest.ts +5 -6
  144. package/src/models/ChatWithKnowledgeBaseStreamRequest.ts +73 -87
  145. package/src/models/ChatWithKnowledgeBaseStreamResponseBody.ts +44 -50
  146. package/src/models/ChatWithKnowledgeBaseStreamShrinkRequest.ts +6 -6
  147. package/src/models/CreateBranchRequest.ts +200 -0
  148. package/src/models/CreateBranchResponse.ts +40 -0
  149. package/src/models/CreateBranchResponseBody.ts +54 -0
  150. package/src/models/CreateSnapshotRequest.ts +76 -0
  151. package/src/models/CreateSnapshotResponse.ts +40 -0
  152. package/src/models/CreateSnapshotResponseBody.ts +64 -0
  153. package/src/models/CreateSupabaseProjectRequest.ts +62 -48
  154. package/src/models/CreateSupabaseProjectResponseBody.ts +4 -4
  155. package/src/models/DeleteBranchRequest.ts +46 -0
  156. package/src/models/DeleteBranchResponse.ts +40 -0
  157. package/src/models/DeleteBranchResponseBody.ts +34 -0
  158. package/src/models/DeleteSnapshotRequest.ts +51 -0
  159. package/src/models/DeleteSnapshotResponse.ts +40 -0
  160. package/src/models/DeleteSnapshotResponseBody.ts +31 -0
  161. package/src/models/DescribeBranchRequest.ts +46 -0
  162. package/src/models/DescribeBranchResponse.ts +40 -0
  163. package/src/models/DescribeBranchResponseBody.ts +286 -0
  164. package/src/models/GetBranchSchemaRequest.ts +70 -0
  165. package/src/models/GetBranchSchemaResponse.ts +40 -0
  166. package/src/models/GetBranchSchemaResponseBody.ts +44 -0
  167. package/src/models/ListBranchesRequest.ts +135 -0
  168. package/src/models/ListBranchesResponse.ts +40 -0
  169. package/src/models/ListBranchesResponseBody.ts +247 -0
  170. package/src/models/PauseSaasServiceRequest.ts +41 -0
  171. package/src/models/PauseSaasServiceResponse.ts +40 -0
  172. package/src/models/PauseSaasServiceResponseBody.ts +38 -0
  173. package/src/models/QueryContentAdvanceRequest.ts +60 -71
  174. package/src/models/QueryContentRequest.ts +60 -71
  175. package/src/models/QueryContentResponseBody.ts +10 -11
  176. package/src/models/QueryContentShrinkRequest.ts +53 -67
  177. package/src/models/QueryKnowledgeBasesContentRequest.ts +64 -78
  178. package/src/models/QueryKnowledgeBasesContentResponseBody.ts +11 -25
  179. package/src/models/QueryKnowledgeBasesContentShrinkRequest.ts +11 -15
  180. package/src/models/RestartSupabaseProjectRequest.ts +46 -0
  181. package/src/models/RestartSupabaseProjectResponse.ts +40 -0
  182. package/src/models/RestartSupabaseProjectResponseBody.ts +34 -0
  183. package/src/models/RestoreSnapshotRequest.ts +98 -0
  184. package/src/models/RestoreSnapshotResponse.ts +40 -0
  185. package/src/models/RestoreSnapshotResponseBody.ts +54 -0
  186. package/src/models/ResumeSaasServiceRequest.ts +41 -0
  187. package/src/models/ResumeSaasServiceResponse.ts +40 -0
  188. package/src/models/ResumeSaasServiceResponseBody.ts +38 -0
  189. package/src/models/model.ts +40 -0
@@ -0,0 +1,46 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeBranchRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The branch ID, which uniquely identifies a Supabase branch.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * br-xxxx
14
+ */
15
+ branchId?: string;
16
+ /**
17
+ * @remarks
18
+ * The region ID. This parameter is required when you create a primary branch. When you create a child branch, the region of the primary branch is inherited by default.
19
+ *
20
+ * @example
21
+ * cn-beijing
22
+ */
23
+ regionId?: string;
24
+ static names(): { [key: string]: string } {
25
+ return {
26
+ branchId: 'BranchId',
27
+ regionId: 'RegionId',
28
+ };
29
+ }
30
+
31
+ static types(): { [key: string]: any } {
32
+ return {
33
+ branchId: 'string',
34
+ regionId: 'string',
35
+ };
36
+ }
37
+
38
+ validate() {
39
+ super.validate();
40
+ }
41
+
42
+ constructor(map?: { [key: string]: any }) {
43
+ super(map);
44
+ }
45
+ }
46
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DescribeBranchResponseBody } from "./DescribeBranchResponseBody";
4
+
5
+
6
+ export class DescribeBranchResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribeBranchResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: DescribeBranchResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,286 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeBranchResponseBodyBranchTags extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The tag key.
9
+ *
10
+ * @example
11
+ * env
12
+ */
13
+ key?: string;
14
+ /**
15
+ * @remarks
16
+ * The tag value.
17
+ *
18
+ * @example
19
+ * dev
20
+ */
21
+ value?: string;
22
+ static names(): { [key: string]: string } {
23
+ return {
24
+ key: 'Key',
25
+ value: 'Value',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ key: 'string',
32
+ value: 'string',
33
+ };
34
+ }
35
+
36
+ validate() {
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
45
+ export class DescribeBranchResponseBodyBranch extends $dara.Model {
46
+ /**
47
+ * @remarks
48
+ * The branch ID, which uniquely identifies a Supabase branch.
49
+ *
50
+ * @example
51
+ * br-xxxx
52
+ */
53
+ branchId?: string;
54
+ /**
55
+ * @remarks
56
+ * The branch name.
57
+ *
58
+ * @example
59
+ * dev
60
+ */
61
+ branchName?: string;
62
+ /**
63
+ * @remarks
64
+ * The connection information of the compute node associated with the branch.
65
+ *
66
+ * @example
67
+ * postgresql://user:password@host:5432/db
68
+ */
69
+ computeEndpoint?: string;
70
+ /**
71
+ * @remarks
72
+ * The time when the branch was created, in ISO 8601 UTC format.
73
+ *
74
+ * @example
75
+ * 2026-04-08T09:11:12Z
76
+ */
77
+ createTime?: string;
78
+ /**
79
+ * @remarks
80
+ * The branch description.
81
+ *
82
+ * @example
83
+ * test branch
84
+ */
85
+ description?: string;
86
+ /**
87
+ * @remarks
88
+ * The time when the branch expires and is automatically deleted, in ISO 8601 UTC format.
89
+ *
90
+ * @example
91
+ * 2026-10-08T09:11:12Z
92
+ */
93
+ expiresAt?: string;
94
+ /**
95
+ * @remarks
96
+ * The initialization source of the branch.
97
+ *
98
+ * Valid values:
99
+ * - ParentData: Copies the schema and data from the parent branch. This is the default value.
100
+ * - SchemaOnly: Copies only the schema structure.
101
+ *
102
+ * @example
103
+ * ParentData
104
+ */
105
+ initSource?: string;
106
+ /**
107
+ * @remarks
108
+ * Indicates whether this is the default branch.
109
+ *
110
+ * @example
111
+ * true
112
+ */
113
+ isDefault?: boolean;
114
+ /**
115
+ * @remarks
116
+ * The parent branch ID, which specifies the parent branch of a new branch or a query condition.
117
+ *
118
+ * @example
119
+ * br-main
120
+ */
121
+ parentBranchId?: string;
122
+ /**
123
+ * @remarks
124
+ * The parent branch name. This value is empty or displayed as - for the primary branch.
125
+ *
126
+ * @example
127
+ * main
128
+ */
129
+ parentBranchName?: string;
130
+ /**
131
+ * @remarks
132
+ * The Log Sequence Number (LSN) of the parent branch at the time this branch was created.
133
+ *
134
+ * @example
135
+ * 0/3522648
136
+ */
137
+ parentLSN?: string;
138
+ /**
139
+ * @remarks
140
+ * The data synchronization point in time selected from the parent branch when this branch was created, in ISO 8601 UTC format.
141
+ *
142
+ * Note:
143
+ * - For child branches, this value indicates the point in time of the parent branch selected during creation.
144
+ * - If no parent branch exists, the value 1970-01-01T00:00:00.000Z is returned.
145
+ *
146
+ * @example
147
+ * 2026-04-08T09:11:12Z
148
+ */
149
+ parentTimestamp?: string;
150
+ /**
151
+ * @remarks
152
+ * The Supabase project ID that corresponds to the primary branch.
153
+ *
154
+ * @example
155
+ * spb-xxxx
156
+ */
157
+ projectId?: string;
158
+ /**
159
+ * @remarks
160
+ * Indicates whether branch protection is enabled. A value of true indicates that branch protection is enabled. A value of false indicates that branch protection is disabled.
161
+ *
162
+ * @example
163
+ * false
164
+ */
165
+ protected?: boolean;
166
+ /**
167
+ * @remarks
168
+ * The service type.
169
+ *
170
+ * Valid values:
171
+ * - Supabase: Supabase service.
172
+ * - Memory: Memory service.
173
+ *
174
+ * @example
175
+ * Supabase
176
+ */
177
+ serviceType?: string;
178
+ /**
179
+ * @remarks
180
+ * The branch status.
181
+ *
182
+ * @example
183
+ * Running
184
+ */
185
+ status?: string;
186
+ /**
187
+ * @remarks
188
+ * The list of branch tags.
189
+ */
190
+ tags?: DescribeBranchResponseBodyBranchTags[];
191
+ static names(): { [key: string]: string } {
192
+ return {
193
+ branchId: 'BranchId',
194
+ branchName: 'BranchName',
195
+ computeEndpoint: 'ComputeEndpoint',
196
+ createTime: 'CreateTime',
197
+ description: 'Description',
198
+ expiresAt: 'ExpiresAt',
199
+ initSource: 'InitSource',
200
+ isDefault: 'IsDefault',
201
+ parentBranchId: 'ParentBranchId',
202
+ parentBranchName: 'ParentBranchName',
203
+ parentLSN: 'ParentLSN',
204
+ parentTimestamp: 'ParentTimestamp',
205
+ projectId: 'ProjectId',
206
+ protected: 'Protected',
207
+ serviceType: 'ServiceType',
208
+ status: 'Status',
209
+ tags: 'Tags',
210
+ };
211
+ }
212
+
213
+ static types(): { [key: string]: any } {
214
+ return {
215
+ branchId: 'string',
216
+ branchName: 'string',
217
+ computeEndpoint: 'string',
218
+ createTime: 'string',
219
+ description: 'string',
220
+ expiresAt: 'string',
221
+ initSource: 'string',
222
+ isDefault: 'boolean',
223
+ parentBranchId: 'string',
224
+ parentBranchName: 'string',
225
+ parentLSN: 'string',
226
+ parentTimestamp: 'string',
227
+ projectId: 'string',
228
+ protected: 'boolean',
229
+ serviceType: 'string',
230
+ status: 'string',
231
+ tags: { 'type': 'array', 'itemType': DescribeBranchResponseBodyBranchTags },
232
+ };
233
+ }
234
+
235
+ validate() {
236
+ if(Array.isArray(this.tags)) {
237
+ $dara.Model.validateArray(this.tags);
238
+ }
239
+ super.validate();
240
+ }
241
+
242
+ constructor(map?: { [key: string]: any }) {
243
+ super(map);
244
+ }
245
+ }
246
+
247
+ export class DescribeBranchResponseBody extends $dara.Model {
248
+ /**
249
+ * @remarks
250
+ * The branch list. Each element represents a Supabase branch.
251
+ */
252
+ branch?: DescribeBranchResponseBodyBranch;
253
+ /**
254
+ * @remarks
255
+ * The request ID.
256
+ *
257
+ * @example
258
+ * ABB39CC3-4488-4857-905D-2E4A051D****
259
+ */
260
+ requestId?: string;
261
+ static names(): { [key: string]: string } {
262
+ return {
263
+ branch: 'Branch',
264
+ requestId: 'RequestId',
265
+ };
266
+ }
267
+
268
+ static types(): { [key: string]: any } {
269
+ return {
270
+ branch: DescribeBranchResponseBodyBranch,
271
+ requestId: 'string',
272
+ };
273
+ }
274
+
275
+ validate() {
276
+ if(this.branch && typeof (this.branch as any).validate === 'function') {
277
+ (this.branch as any).validate();
278
+ }
279
+ super.validate();
280
+ }
281
+
282
+ constructor(map?: { [key: string]: any }) {
283
+ super(map);
284
+ }
285
+ }
286
+
@@ -0,0 +1,70 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetBranchSchemaRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The branch ID that uniquely identifies a Supabase branch.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * br-xxxx
14
+ */
15
+ branchId?: string;
16
+ /**
17
+ * @remarks
18
+ * The database name. The system databases postgres, template0, and template1 do not support schema queries.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * neondb
24
+ */
25
+ DBName?: string;
26
+ /**
27
+ * @remarks
28
+ * The Supabase project ID that corresponds to the primary branch.
29
+ *
30
+ * This parameter is required.
31
+ *
32
+ * @example
33
+ * spb-xxxx
34
+ */
35
+ projectId?: string;
36
+ /**
37
+ * @remarks
38
+ * The region ID. This parameter is required when you create a primary branch. When you create a sub-branch, the region of the primary branch is inherited by default.
39
+ *
40
+ * @example
41
+ * cn-beijing
42
+ */
43
+ regionId?: string;
44
+ static names(): { [key: string]: string } {
45
+ return {
46
+ branchId: 'BranchId',
47
+ DBName: 'DBName',
48
+ projectId: 'ProjectId',
49
+ regionId: 'RegionId',
50
+ };
51
+ }
52
+
53
+ static types(): { [key: string]: any } {
54
+ return {
55
+ branchId: 'string',
56
+ DBName: 'string',
57
+ projectId: 'string',
58
+ regionId: 'string',
59
+ };
60
+ }
61
+
62
+ validate() {
63
+ super.validate();
64
+ }
65
+
66
+ constructor(map?: { [key: string]: any }) {
67
+ super(map);
68
+ }
69
+ }
70
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GetBranchSchemaResponseBody } from "./GetBranchSchemaResponseBody";
4
+
5
+
6
+ export class GetBranchSchemaResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetBranchSchemaResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: GetBranchSchemaResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,44 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetBranchSchemaResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The request ID.
9
+ *
10
+ * @example
11
+ * ABB39CC3-4488-4857-905D-2E4A051D****
12
+ */
13
+ requestId?: string;
14
+ /**
15
+ * @remarks
16
+ * The schema SQL content.
17
+ *
18
+ * @example
19
+ * CREATE TABLE public.example(id int);
20
+ */
21
+ sql?: string;
22
+ static names(): { [key: string]: string } {
23
+ return {
24
+ requestId: 'RequestId',
25
+ sql: 'Sql',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ requestId: 'string',
32
+ sql: 'string',
33
+ };
34
+ }
35
+
36
+ validate() {
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
@@ -0,0 +1,135 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListBranchesRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The maximum number of records to return in this query.
9
+ *
10
+ * @example
11
+ * 20
12
+ */
13
+ maxResults?: number;
14
+ /**
15
+ * @remarks
16
+ * The pagination token. It is not required for the first query. For subsequent queries, use the NextToken returned from the previous query.
17
+ *
18
+ * @example
19
+ * caeba0bbb2be03f84eb48b699f0a4883
20
+ */
21
+ nextToken?: string;
22
+ /**
23
+ * @remarks
24
+ * The page number. The value must be greater than 0. Default value: 1.
25
+ *
26
+ * @example
27
+ * 1
28
+ */
29
+ pageNumber?: number;
30
+ /**
31
+ * @remarks
32
+ * The number of records per page.
33
+ *
34
+ * Valid values:
35
+ * - 10
36
+ * - 20
37
+ * - 50
38
+ * - 100
39
+ *
40
+ * Default value: 20.
41
+ *
42
+ * @example
43
+ * 20
44
+ */
45
+ pageSize?: number;
46
+ /**
47
+ * @remarks
48
+ * The parent branch ID, used to specify the parent branch for a new branch or as a query filter condition.
49
+ *
50
+ * @example
51
+ * br-main
52
+ */
53
+ parentBranchId?: string;
54
+ /**
55
+ * @remarks
56
+ * The region ID. Must be specified when creating a primary branch. When creating a sub-branch, it inherits the region of the primary branch by default.
57
+ *
58
+ * @example
59
+ * cn-beijing
60
+ */
61
+ regionId?: string;
62
+ /**
63
+ * @remarks
64
+ * The search keyword. Supports fuzzy search by branch ID or branch name.
65
+ *
66
+ * @example
67
+ * main
68
+ */
69
+ search?: string;
70
+ /**
71
+ * @remarks
72
+ * The sort field.
73
+ *
74
+ * Valid values:
75
+ * - BranchName: Sort by branch name.
76
+ * - CreateTime: Sort by creation time.
77
+ * - LastRunTime: Sort by last run time.
78
+ *
79
+ * Default value: CreateTime.
80
+ *
81
+ * @example
82
+ * CreateTime
83
+ */
84
+ sortBy?: string;
85
+ /**
86
+ * @remarks
87
+ * The sort direction.
88
+ *
89
+ * Valid values:
90
+ * - Asc: Ascending order.
91
+ * - Desc: Descending order.
92
+ *
93
+ * Default value: Desc.
94
+ *
95
+ * @example
96
+ * Desc
97
+ */
98
+ sortOrder?: string;
99
+ static names(): { [key: string]: string } {
100
+ return {
101
+ maxResults: 'MaxResults',
102
+ nextToken: 'NextToken',
103
+ pageNumber: 'PageNumber',
104
+ pageSize: 'PageSize',
105
+ parentBranchId: 'ParentBranchId',
106
+ regionId: 'RegionId',
107
+ search: 'Search',
108
+ sortBy: 'SortBy',
109
+ sortOrder: 'SortOrder',
110
+ };
111
+ }
112
+
113
+ static types(): { [key: string]: any } {
114
+ return {
115
+ maxResults: 'number',
116
+ nextToken: 'string',
117
+ pageNumber: 'number',
118
+ pageSize: 'number',
119
+ parentBranchId: 'string',
120
+ regionId: 'string',
121
+ search: 'string',
122
+ sortBy: 'string',
123
+ sortOrder: 'string',
124
+ };
125
+ }
126
+
127
+ validate() {
128
+ super.validate();
129
+ }
130
+
131
+ constructor(map?: { [key: string]: any }) {
132
+ super(map);
133
+ }
134
+ }
135
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListBranchesResponseBody } from "./ListBranchesResponseBody";
4
+
5
+
6
+ export class ListBranchesResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListBranchesResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: ListBranchesResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+